我已经安装了 chatterbot,现在我正在使用它运行一个文件,但我面临以下错误.....
OSError:[E050] 找不到模型“en”。它似乎不是快捷链接、Python 包或数据目录的有效路径。
请帮我解决这个问题。
代码如下......
from chatterbot import ChatBot
from chatterbot.trainers import ChatterBotCorpusTrainer
chatbot = ChatBot("Ron Obvious")
conversation = [
"Hello",
"Hi there!",
"How are you doing?",
"I'm doing great.",
"That is good to hear",
"Thank you.",
"You're welcome."
]
trainer = ChatterBotCorpusTrainer(chatbot)
trainer.train(conversation)
response = chatbot.get_response("Good morning!")
print(response)