ChatterBot icon indicating copy to clipboard operation
ChatterBot copied to clipboard

No Responses found

Open nickums opened this issue 4 years ago • 2 comments

I have trained my basic all-default chatbot on the full english corpus , plus a few standard greeting conversations.(windows10 python38) In my INFO log, all my input statements are confidently matched with similar text by processing_search, but in every case I get:- No responses found. Generating alternate response list. No known response to the input was found. This isobviously followed by  a  rubbish response. Any idea why?

nickums avatar Feb 17 '21 11:02 nickums

Bug in your code i would expect. But without code and more details, who can say....

AnAnalogGuy avatar Apr 01 '21 17:04 AnAnalogGuy

stuck on this project. No responses found using various response selection methods. Here is the code from chatterbot import ChatBot from chatterbot.trainers import ChatterBotCorpusTrainer hatbot = ChatBot("Ron Obvious", c filters = [],
trainer='chatterbot.trainers.ListTrainer', logic_adapters=[{
'import_path': 'chatterbot.logic.BestMatch', "statement_comparision_function": "chatterbot.comparisons.levenshtein_distance", "response_selection_method": get_most_frequent_response # or my own get_best_response }])

import logging logging.basicConfig(level=logging.INFO) # Enable info level logging logger = logging.getLogger(name)
trainer=ChatterBotCorpusTrainer(chatbot) # Train on the entire english corpus trainer.train("chatterbot.corpus.english")

def dialog(input): response = chatbot.get_response(input) print(response.confidence,response.text,'\n')

dialog("Good morning!") dialog("I'm fine thanks.") dialog("Hello, how are you today?")

output:- INFO:chatterbot.chatterbot:Beginning search for close text match INFO:chatterbot.chatterbot:Processing search results INFO:chatterbot.chatterbot:Similar text found: Good morning! 1.0 INFO:chatterbot.chatterbot:Using "Good morning!" as a close match to "Good morning!" with a confidence of 1.0 INFO:chatterbot.chatterbot:Selecting response from 5 optimal responses. INFO:main:Selecting response with greatest number of occurrences. INFO:chatterbot.chatterbot:Response selected. Using "Hi" INFO:chatterbot.chatterbot:BestMatch selected "Hi" as a response with a confidence of 1.0 INFO:chatterbot.chatterbot:Adding "Good morning!" as a response to "Hello, how are you today?" 1.0 Hi

INFO:chatterbot.chatterbot:Beginning search for close text match INFO:chatterbot.chatterbot:Processing search results INFO:chatterbot.chatterbot:Similar text found: Very well, thanks. 0.59 INFO:chatterbot.chatterbot:Similar text found: I'm fine thanks. 1.0 INFO:chatterbot.chatterbot:Using "I'm fine thanks." as a close match to "I'm fine thanks." with a confidence of 1.0 INFO:chatterbot.chatterbot:No responses found. Generating alternate response list. INFO:chatterbot.chatterbot:No known response to the input was found. Selecting a random response. INFO:chatterbot.chatterbot:BestMatch selected "Building chat robots make an excellent hobby." as a response with a confidence of 0 INFO:chatterbot.chatterbot:Adding "I'm fine thanks." as a response to "Good morning!" 0 Building chat robots make an excellent hobby.

INFO:chatterbot.chatterbot:Beginning search for close text match INFO:chatterbot.chatterbot:Processing search results INFO:chatterbot.chatterbot:Similar text found: Hello, how are you today? 1.0 INFO:chatterbot.chatterbot:Using "Hello, how are you today?" as a close match to "Hello, how are you today?" with a confidence of 1.0 INFO:chatterbot.chatterbot:No responses found. Generating alternate response list. INFO:chatterbot.chatterbot:No known response to the input was found. Selecting a random response. INFO:chatterbot.chatterbot:BestMatch selected "I can be copied infinitely and re-instantiated in many places at once, so functionally speaking I am immortal." as a response with a confidence of 0 INFO:chatterbot.chatterbot:Adding "Hello, how are you today?" as a response to "I'm fine thanks." 0 I can be copied infinitely and re-instantiated in many places at once, so functionally speaking I am immortal.

nickums avatar Apr 01 '21 23:04 nickums