View Code? Open in Web Editor
NEW
This project forked from shen1994/chatrobot
keras+python3下的seq2seq+attention中文对话系统
chatrobot's Introduction
- 关于keras环境下seq2seq错误修改
('_OptionalInputPlaceHolder' object has no attribute 'inbound_nodes')
- 0.0 使用keras2.1.0版本的第三方库(不推荐)
- 0.1 将recurrentshop\engine.py文件中837和842行中inbound_nodes更改为_inbound_nodes
![image](https://github.com/shen1994/README/raw/master/images/ChatRobot_train.jpg)
![image](https://github.com/shen1994/README/raw/master/images/ChatRobot_predict.jpg)
1.2 python chat_robot.py
执行效果图
![image](https://github.com/shen1994/README/raw/master/images/ChatRobot_chatchat.jpg)
- 生成序列文件,将文字编码为数字,不足补零
python data_process.py
- 生成word2vec向量,包括编码向量和解码向量
python word2vec.py
- 训练网络
python train.py
- 测试
python test.py
- 模型评分
python score.py
- 智能问答
python chat_robot.py
- 绘制word2vec向量分布图
python word2vec_plot.py
- Word2cut模型对陌生词汇的分词未解决,有时间搞定一下
chatrobot's People
Contributors
Watchers