gunthercox / ChatterBot

ChatterBot is a machine learning, conversational dialog engine for creating chat bots
https://chatterbot.readthedocs.io
BSD 3-Clause "New" or "Revised" License
14.03k stars 4.44k forks source link

Default response not working for other langauges other than english #1643

Open AfrahAsif opened 5 years ago

AfrahAsif commented 5 years ago

Followed this , https://github.com/gunthercox/ChatterBot/blob/master/examples/default_response_example.py for replying with deafult response. I am working on a language other than english and there I am not able to get the default reponse I provided.

Why would that be so?

vkosuri commented 5 years ago

If possible, could you post your code snippet?

AkiraG commented 5 years ago

Im having problems with this default response too, i literaly just copy the code on this example https://github.com/gunthercox/ChatterBot/blob/master/examples/default_response_example.py. Just add the logging info to see what happens and this is the result of my terminal prompt.

$ python Teste.py [nltk_data] Downloading package averaged_perceptron_tagger to [nltk_data] C:\Users\saita\AppData\Roaming\nltk_data... [nltk_data] Package averaged_perceptron_tagger is already up-to- [nltk_data] date! [nltk_data] Downloading package punkt to [nltk_data] C:\Users\saita\AppData\Roaming\nltk_data... [nltk_data] Package punkt is already up-to-date! [nltk_data] Downloading package stopwords to [nltk_data] C:\Users\saita\AppData\Roaming\nltk_data... [nltk_data] Package stopwords is already up-to-date! List Trainer: [####################] 100% INFO:chatterbot.chatterbot:Beginning search for close text match WARNING:chatterbot.chatterbot:No value for search_text was available on the provided input INFO:chatterbot.chatterbot:Processing search results INFO:chatterbot.chatterbot:Using "How do I make an omelette?" as a close match to "How do I make an omelette?" with a confidence of 0 INFO:chatterbot.chatterbot:Selecting response from 1 optimal responses. INFO:chatterbot.response_selection:Selecting first response from list of 1 options. INFO:chatterbot.chatterbot:Response selected. Using "How can I help you?" INFO:chatterbot.chatterbot:BestMatch selected "How can I help you?" as a response with a confidence of 0 INFO:chatterbot.chatterbot:Adding "How do I make an omelette?" as a response to "None" How can I help you?

AfrahAsif commented 5 years ago

If possible, could you post your code snippet?

2