Skip to content
Chatbot in 200 lines of code using TensorLayer
Branch: master
Clone or download
egens and zsdonghao Change seq2seq import names (#42)
Had the #37 problem. It looks like on in current version of tensorlayer import names changed.

These imports work with 
tensorflow 2.0.0-beta1
tensorlayer 2.1.0
Latest commit a3d1cfa Jul 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data check 1.8.1 works Mar 11, 2018
.gitignore TL2.0 (#35) May 25, 2019
README.md Update README.md Jul 16, 2019
main.py Change seq2seq import names (#42) Jul 19, 2019
requirements.txt TL2.0 (#35) May 25, 2019

README.md

Seq2Seq Chatbot

This is a 200 lines implementation of Twitter/Cornell-Movie Chatbot, please read the following references before you read the code:

Prerequisites

Model


Training

python3 main.py

Results

Query > happy birthday have a nice day
 > thank you so much
 > thank babe
 > thank bro
 > thanks so much
 > thank babe i appreciate it
Query > donald trump won last nights presidential debate according to snap online polls
 > i dont know what the fuck is that
 > i think he was a racist
 > he is not a racist
 > he is a liar
 > trump needs to be president
You can’t perform that action at this time.