我調用chatterbot然后和訓練過的bot進行對話的時候,總是會在對話之間有一個"No value for search_text was available on the provided input"的句子,就像圖里那樣子:代碼的話就是最簡單的一種,使用的代碼如下:from chatterbot import ChatBotfrom chatterbot.trainers import ChatterBotCorpusTrainer
chatbot = ChatBot("ChineseChatBot")
trainer = ChatterBotCorpusTrainer(chatbot)
trainer.train( "chatterbot.corpus.chinese")while True:
print(chatbot.get_response(input(">>>")))想請問一下為什么會出現"No value for search_text was available on the provided input"這句話,怎么才能不讓這句話出現?順便再問一下,跑程序之前一定會有這個嗎?關于nltk的東西:是win10+python3.6.8+chatterbot1.0.2
添加回答
舉報
0/150
提交
取消
