/seq2seq-chatbot

Chatbot in 200 lines of code using TensorLayer

Primary LanguagePython

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


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

Chatbot Server

It's a chat loop server to talk with you.

Depend on the output of training result: n.npz

  • Run: python3 chatbot_svr.py

  • Entry a chat loop:

Query >well 
 > i love you guys
 > i love you guys
 > thank you so much
 > thank you so much for the support
 > i love this show
Query >what is the big news
 > latest in the last time
 > i think its a good idea but its not even close to the end of the season
 > i think the whole same thing is insane
 > latest and the first one
 > the cyber is the best