Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tensorlayer/seq2seq-chatbot
Chatbot in 200 lines of code using TensorLayer
https://github.com/tensorlayer/seq2seq-chatbot
bot chat chatbot corpus lstm nlp python rnn tensorflow tensorlayer
Last synced: 2 days ago
JSON representation
Chatbot in 200 lines of code using TensorLayer
- Host: GitHub
- URL: https://github.com/tensorlayer/seq2seq-chatbot
- Owner: tensorlayer
- Created: 2017-09-05T23:11:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-10-05T13:25:46.000Z (about 3 years ago)
- Last Synced: 2024-12-01T14:39:22.217Z (12 days ago)
- Topics: bot, chat, chatbot, corpus, lstm, nlp, python, rnn, tensorflow, tensorlayer
- Language: Python
- Homepage: https://github.com/tensorlayer/tensorlayer
- Size: 14.7 MB
- Stars: 835
- Watchers: 40
- Forks: 314
- Open Issues: 28
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-tensorlayer - Seq2Seq Chatbot - seq2seq). (5. Natural Language Processing / 5.1 ChatBot)
- awesome-tensorflow - Seq2seq-Chatbot - Chatbot in 200 lines of code (Models/Projects)
- awesome-tensorflow - Seq2seq-Chatbot - Chatbot in 200 lines of code (Models/Projects)
- fucking-awesome-tensorflow - Seq2seq-Chatbot - Chatbot in 200 lines of code (Models/Projects)
README
# Seq2Seq Chatbot
This is a 200 lines implementation of Twitter/Cornell-Movie Chatbot, please read the following references before you read the code:
- [Practical-Seq2Seq](http://suriyadeepan.github.io/2016-12-31-practical-seq2seq/)
- [The Unreasonable Effectiveness of Recurrent Neural Networks](http://karpathy.github.io/2015/05/21/rnn-effectiveness/)
- [Understanding LSTM Networks](http://colah.github.io/posts/2015-08-Understanding-LSTMs/) (optional)### Prerequisites
- Python 3.6
- [TensorFlow](https://github.com/tensorflow/tensorflow) >= 2.0
- [TensorLayer](https://github.com/zsdonghao/tensorlayer) >= 2.0### 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