There is always a warning when calling chatterbot to talk to bot in it.

when I call chatterbot and have a conversation with a trained bot, there is always a "No value for search_text was available on the provided input" sentence between the conversations, just like the one in the picture:

:


"No value for search_text was available on the provided input"nltk:

it"s win10+python3.6.8+chatterbot1.0.2
Thank you

Jun.22,2022

observe the submission record of the chatterbot project.

The

get_response () function is initially designed to pass in only one input_statement of type str , and then allows the passing of a Statement object in order to support other Adapter . Statement originally there was only one field text . Later, in order to support IndexedTextSearch , the search_text field was added.

search_text is originally stem_text for stem extraction. You can find that the search_text field has been added to Statement on .

Note ,
if you are passing a string object into get_response () without a search_text field, then there must be a warning thrown. But it should not affect the function of the program.

you can avoid warnings like this:
1. Pass a Statement object with search_text attribute to the get_response () function:

import logging
logger = logging.getLogger()
logger.setLevel(logging.CRITICAL)
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bbf507-30455.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bbf507-30455.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?