chatbot_pytorch
所属分类:自然语言处理
开发工具:Jupyter Notebook
文件大小:338KB
下载次数:0
上传日期:2019-04-08 07:28:04
上 传 者:
sh-1993
说明: 对于pytorch官网chatbot的教程做了模块化的处理,包含大量的注释
(The tutorial of Chatbot on the official website of Pytorch is modularized and contains a lot of comments)
文件列表:
chatbot_tutorial.ipynb (379435, 2019-04-08)
config.py (1225, 2019-04-08)
data_util.py (14477, 2019-04-08)
image (0, 2019-04-08)
image\2019-04-04.png (34415, 2019-04-08)
image\RNN-bidirectional.png (23625, 2019-04-08)
image\global_attn.png (88212, 2019-04-08)
image\grad_clip.png (31507, 2019-04-08)
image\scores.png (40027, 2019-04-08)
image\seq2seq_batches.png (37470, 2019-04-08)
image\seq2seq_ts.png (41527, 2019-04-08)
predict.py (3741, 2019-04-08)
seq2seq.py (19079, 2019-04-08)
train.py (4391, 2019-04-08)
# 对于官方教程做了简单的模块化整理,包含大量注释
主要参考官网教程,以及https://github.com/fancyerii/blog-codes/blob/master/chatbot
#
数据集使用的是Cornell电影对话语料库
#
数据集[下载链接](http://www.cs.cornell.edu/~cristian/data/cornell_movie_dialogs_corpus.zip)
#
下载训练语料库,这是一个zip文件,下载后把它移到项目目录的子目录data下
#
效果截图:
#
![image](https://github.com/lixuan1/chatbot_pytorch/raw/master/image/2019-04-04.png)
#
通过修改config.py中的模型参数,或更换数据集,修改data_util.py,以训练一个更好的chatbot
近期下载者:
相关文件:
收藏者: