Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
T

tensorflow_chatbot

> 编程语言
Open source

Tensorflow chatbot demo by @Sirajology on Youtube

1.4K stars0 likes0 views
WebsiteGitHub

About

Tensorflow chatbot demo by @Sirajology on Youtube

Tensorflow Chatbot

Tensorflow Chatbot Demo by @Sirajology on Youtube

Overview

This is the full code for 'How to Make an Amazing Tensorflow Chatbot Easily' by @Sirajology on Youtube. In this demo code, we implement Tensorflows Sequence to Sequence model to train a chatbot on the Cornell Movie Dialogue dataset. After training for a few hours, the bot is able to hold a fun conversation.

Dependencies

  • numpy
  • scipy
  • six
  • tensorflow (https://www.tensorflow.org/versions/r0.12/get_started/os_setup.html)

Use pip to install any missing dependencies

Usage

To train the bot, edit the seq2seq.ini file so that mode is set to train like so

mode = train

then run the code like so

python execute.py

To test the bot during or after training, edit the seq2seq.ini file so that mode is set to test like so

mode = test

then run the code like so

python execute.py

Challenge

The challenge for this video is write an entirely different script using TF Learn to generate Lord of the Ring style sentences. Check out this very similar example, it uses TF Learn to generate Shakespeare-style sentences. Train your model on Lord of the rings text to do something similar! And play around with the hyperparameters to get a more accurate result. Post your GitHub link in the video comments and I'll judge it!

Due date: December 8th

Also see this issue, some people have found this discussion helpful https://github.com/llSourcell/tensorflow_chatbot/issues/3

Credits

Credit for the vast majority of code here goes to suriyadeepan. I've merely created a wrapper to get people started.

GitHub Issues· 75 open

View all on GitHub
  • #99

    Py to Exe

    Updated Feb 12, 2023
  • #108

    UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd1 in position 60: invalid continuation byte

    Updated Feb 12, 2023
  • #10

    AttributeError: module 'execute' has no attribute 'init_session'

    Updated Jun 26, 2022
  • #106

    Data File and All of its Contents Missing

    Updated Jun 10, 2022
  • #17

    UnicodeDecodeError: 'utf-8' codec can't decode byte 0x96 in position N: invalid start byte

    Updated Jun 23, 2021
  • #81

    Got ConfigParser.NoSectionError: No section: 'ints'

    Updated Jun 20, 2021
  • #38

    Whatever you say is going back to _UNK

    Updated Nov 19, 2020
  • #55

    Missing train directory?

    Updated Sep 20, 2020
  • #28

    Issues after changing all the imports for TF 1.0.0

    Updated Apr 5, 2020
  • #101

    migrate to tensorflow 2.10

    Updated Mar 11, 2020

Highlights

  • •Python

> Tags

Python

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言