tf_seq2seq_chatbot icon indicating copy to clipboard operation
tf_seq2seq_chatbot copied to clipboard

if the answer is very long

Open zhoucrawl opened this issue 8 years ago • 4 comments

For this model, if the answer is very long, the answer is not good。 In chat.py, the answer is up to 15 words. How to modify the program?

zhoucrawl avatar Oct 13 '16 06:10 zhoucrawl

HI there, I run python train.py directly and stop the train at step = 3900, the chat result is awful, what was your test.py outputs look like?

chengiant@127:~/workspace/tensorflow/work/chatbot$ python test.py Reading model parameters from /var/lib/tf_seq2seq_chatbot/nn_models/model.ckpt-3900 ('Hi!', ' -> ', "+++$+++ i ' m sorry .") ('Hi', ' -> ', '') ('what ?', ' -> ', "i ' m sorry .") ('why ?', ' -> ', "i ' m not a _UNK .") ('who ?', ' -> ', "+++$+++ i ' m not a _UNK .") ('yeah ?', ' -> ', 'yeah .') ('what is it ?', ' -> ', "i ' m sorry .") ('why not ?', ' -> ', "i ' m not a little .") ('really ?', ' -> ', 'yes .') ('huh ?', ' -> ', 'yes .') ('yes ?', ' -> ', "+++$+++ i ' m not going to be .") ("what ' s that ?", ' -> ', "i ' m sorry .") ('what are you doing ?', ' -> ', "i ' m sorry .") ('what are you talking about ?', ' -> ', "i ' m sorry .") ('what happened ?', ' -> ', "i ' m sorry .") ('hello ?', ' -> ', 'yes .') ('where ?', ' -> ', "+++$+++ i ' m not a _UNK .") ('how ?', ' -> ', "+++$+++ i ' m sorry .") ('excuse me ?', ' -> ', 'yes .') ('who are you ?', ' -> ', "i ' m not a _UNK .") ('what do you want ?', ' -> ', "i ' m sorry .") ("what ' s wrong ?", ' -> ', "i ' m sorry .") ('so ?', ' -> ', 'yes .')

uwittygit avatar Oct 14 '16 05:10 uwittygit

I run python train.py directly and stop the train at step = 17850, perplexity = 14.74. You can continue to train. image default

zhoucrawl avatar Oct 14 '16 08:10 zhoucrawl

@zhoucrawl thanks for your information. I'll take a try

uwittygit avatar Oct 14 '16 09:10 uwittygit

@zhoucrawl seems you've got a nice result. Maybe I stop the programme too early. I'll try it again.

7oranger avatar Mar 05 '17 14:03 7oranger