Conchylicultor / DeepQA

My tensorflow implementation of "A neural conversational model", a Deep learning based chatbot
Apache License 2.0
2.93k stars 1.17k forks source link

With Pretrained Model got nonsense answers. #85

Closed Edward-liang closed 7 years ago

Edward-liang commented 7 years ago

I followed the instructions in Readme file to deploy the pretrained model and nltk corpus under certain folders. Env: Python3.6.0 Tensorflow1.0 The program goes smoothly with "python main.py --modelTag pretrainedv2 --test interactive", However I got nonsense talks as followed. Has any one met similar problems before, please?

Q: hello A: Hepburn reiss reiss reiss reiss qualen qualen qualen qualen shrouds shrouds shroud

Q: Hi. A: Hepburn hepburn daylight foresee dedicated dedicated dedicated dedicated mugshot m

Q: What is your name? A: Megan gracious-living-wise gracious-living-wise gracious-living-wise rotting rotti ng rotting rotting rotting rotting connelly connelly

Q: What does that mean ? A: Shitty shitty shitty shitty rotting rotting rotting aspiration aspiration aspirati on aspiration aspiration

Q: How old are you? A: Aurelius aurelius lindenmeyer chargin chargin chargin conscientious conscientious conscientious ripper ripper ripper

Q: Will Google hire me? A: Starbuck gracious-living-wise gracious-living-wise berlin crumble-crumble crumble-crumble crumble-crumble crumble-crumble crumble-crumble crumble-crumble crumble-crumble crumble-crumble

Q: Tell me the alphabet. A: Guiding cuban-americans decompose decompose redistribution redistribution erin erin erin erin erin erin

Q: That's not nice. A: Slashed slashed slashed slashed slashed traidor traidor blue-winged blue-winged blue-winged blue-winged blue-winged

Conchylicultor commented 7 years ago

Could you copy the full terminal output please ?

Edward-liang commented 7 years ago

@Conchylicultor Thank you very much for your reply. I find a hint in the output says:

No previous model found, starting from clean directory: /home/zl/DeepQA-master/save/model-pretrainedv2 Testing: Launch interactive mode:

which was caused by my wrong handling of the model: I just extracted the contents in the zip "model-pretrainedv2" which their parent folder. Now I move them under model-pretrainedv2 folder, and everything now goes fine.

Again, thank you for your timely reply.

paratata commented 7 years ago

What have you done? I dont understand

Edward-liang commented 7 years ago

@paratata I mean to load the pre-trained model properly, you should extract the content in the zip file into a folder called model-pretrainedv2, and then copy the folder under the path :DeepQA-master/save/