dynamic-seq2seq:seq2seq中文聊天机器人-源码

上传者: 42129300 | 上传时间: 2021-08-19 13:32:59 | 文件大小: 10.69MB | 文件类型: ZIP
dynamic-seq2seq 欢迎关注我的另一个项目 基于中文语料和dynamic_rnn的seq2seq模型 Update: 修复loss计算bug 修复batch_size大于1时的计算bug Requirements tensorflow-1.4+ python2.7 (暂时未对python3 兼容) requests jieba cPickle numpy 谷歌最近开源了一个seq2seq项目 tensorflow推出了dynamic_rnn替代了原来的bucket,本项目就是基于dynamic_rnn的seq2seq模型。 这里我构建了一些对话预料,中文语料本身就比较稀缺,理论上来说语料越多模型的效果越好,但会遇到很多新的问题,这里就不多作说明。 对话语料分别在data目录下 Q.txt A.txt中,可以替换成你自己的对话语料。 用法: # 新增小黄鸡语料 # 添加 pyt

文件下载

资源详情

[{"title":"( 23 个子文件 10.69MB ) dynamic-seq2seq:seq2seq中文聊天机器人-源码","children":[{"title":"dynamic-seq2seq-master","children":[{"title":"dynamic_seq2seq_model.py <span style='color:#111;'> 8.16KB </span>","children":null,"spread":false},{"title":"dialog","children":[{"title":"Q <span style='color:#111;'> 32.12KB </span>","children":null,"spread":false},{"title":"xiaohuangji50w_nofenci.conv <span style='color:#111;'> 23.33MB </span>","children":null,"spread":false},{"title":"A <span style='color:#111;'> 51.66KB </span>","children":null,"spread":false}],"spread":true},{"title":"test.py <span style='color:#111;'> 242B </span>","children":null,"spread":false},{"title":"model","children":[{"title":"chatbot_seq2seq.ckpt--1.meta <span style='color:#111;'> 501.99KB </span>","children":null,"spread":false},{"title":"chatbot_seq2seq.ckpt--1.index <span style='color:#111;'> 537B </span>","children":null,"spread":false},{"title":"chatbot_seq2seq.ckpt--1.data-00000-of-00001 <span style='color:#111;'> 785.47KB </span>","children":null,"spread":false},{"title":"checkpoint <span style='color:#111;'> 103B </span>","children":null,"spread":false}],"spread":true},{"title":".vscode","children":[{"title":"settings.json <span style='color:#111;'> 46B </span>","children":null,"spread":false}],"spread":true},{"title":"utils.py <span style='color:#111;'> 2.02KB </span>","children":null,"spread":false},{"title":"seq2seq.py <span style='color:#111;'> 5.65KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false},{"title":"__pycache__","children":[{"title":"dynamic_seq2seq_model.cpython-36.pyc <span style='color:#111;'> 8.16KB </span>","children":null,"spread":false}],"spread":true},{"title":"action.py <span style='color:#111;'> 750B </span>","children":null,"spread":false},{"title":"data","children":[{"title":"word_dict.txt <span style='color:#111;'> 51B </span>","children":null,"spread":false},{"title":"map.pkl <span style='color:#111;'> 275.50KB </span>","children":null,"spread":false},{"title":"A_vocab <span style='color:#111;'> 34.23KB </span>","children":null,"spread":false},{"title":"Q_vocab <span style='color:#111;'> 21.01KB </span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 5B </span>","children":null,"spread":false},{"title":"_config.yml <span style='color:#111;'> 29B </span>","children":null,"spread":false},{"title":"preprocess.py <span style='color:#111;'> 2.17KB </span>","children":null,"spread":false},{"title":"prepare_dialog.py <span style='color:#111;'> 912B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明