【发布时间】:2019-04-08 05:29:37
【问题描述】:
我已经安装了 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)
【问题讨论】:
-
@Mohammad Rabiulla 感谢您编辑我的帖子
标签: python chatbot chatterbot