ChatGirl 一個基於 TensorFlow Seq2Seq 模型的聊天機器人[中文文檔]

ChatGirl 一個基於 TensorFlow Seq2Seq 模型的聊天機器人[中文文檔]

簡介

簡單地說就是該有的都有了,可是整體跑起來效果還很差。
還在開發中,它工做的效果還很差。可是你能夠直接訓練,而且運行。
包含預處理過的 twitter 英文數據集,訓練,運行,工具代碼,能夠運行可是效果有待提升。git

數據集

Twitter 數據集:github

https://github.com/suriyadeepan/datasets網絡

訓練

你須要新建一個 model 文件夾來保存訓練完的模型
運行這個文件來訓練模型函數

Train_Model.py工具

運行

運行這個文件來運行模型學習

Run_model.py優化

工具集

w2idx:單詞到 id ,用於下一步將單詞轉化爲向量。教程

idx2w:id 到 單詞,用於將 id 轉換爲單詞。開發

hello.py 中有兩個函數的 demo。文檔

結果

Result.md(部分輸出)

博客

http://www.tensorflownews.com/

開發計劃

  • 優化數據集
  • 優化模型

[under developing]

TensorFlowNews 項目推薦:

基於 TensorFlow 的神經網絡三大主流模型卷積神經網絡,循環神經網絡,序列到序列模型 TensorFlowNews 都原創了實戰項目,包含模型,代碼,數據集,工具集,歡迎 star :

  • TensorFlow CNN Model Project:

FaceRank - Rank Face by CNN Model based on TensorFlow (add keras version). FaceRank-人臉打分基於 TensorFlow (新增 Keras 版本) 的 CNN 模型(多是最有趣的 TensorFlow 中文入門實戰項目)

https://github.com/fendouai/FaceRank

  • TensorFlow LSTM Model Project:

一個比特幣交易機器人基於 Tensorflow LSTM 模型,僅供娛樂。 A Bitcoin trade robot based on Tensorflow LSTM model.Just for fun.

https://github.com/TensorFlowNews/TensorFlow-Bitcoin-Robot

  • TensorFlow Seq2Seq Model Project:

ChatGirl is an AI ChatBot based on TensorFlow Seq2Seq Model.ChatGirl 一個基於 TensorFlow Seq2Seq 模型的聊天機器人。(包含預處理過的 twitter 英文數據集,訓練,運行,工具代碼,能夠運行可是效果有待提升。)

https://github.com/fendouai/ChatGirl

學習流程

若是看到這裏有不少不懂的話,建議:

歡迎關注個人博客,由於我也還在學習中,現有的教程常常比較大,涉及到的只是比較多,我會常常拆分出小的知識點,個人博客也會把這些小的知識點記錄下來。

相關文章
相關標籤/搜索