Skip to content

A toy chatbot using word2vec as key implement. And this chatbot speak Chinese.

Notifications You must be signed in to change notification settings

benja-wu/toychatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

toychatbot

A toy chatbot using word2vec as key implement. And this chatbot speak Chinese.

Implement

  • First, using cut_clean_corpus_tool.py to get clean and splited sentences.
  • Second, using idf_cal_tool.py to cal the idf value of every words.
  • Third, using word2vec_py_train.py for getting the embedding words.
  • Fourth, using dump_qa_pair_2_sqlited3.py for writing the qa pair into database. Creating table sentence exist in data directory.
  • At last, playing chatbot.py for fun.

About

A toy chatbot using word2vec as key implement. And this chatbot speak Chinese.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages