未在chatterbot Django应用程序中加载自定义语料库

2024-06-11 04:42:38 发布

您现在位置:Python中文网/ 问答频道 /正文

我正试图用this示例代码中的chatterbot django integration构建一个django应用程序。你知道吗

我想使用一个定制的语料库,即chatterbot.corpus.bangla。你知道吗

我的settings.py有以下内容:

# ChatterBot settings

CHATTERBOT = {
    'name': 'Django ChatterBot Example',
    'django_app_name': 'django_chatterbot',
    'trainer': 'chatterbot.trainers.ChatterBotCorpusTrainer',
    'training_data': ['chatterbot.corpus.bangla']
}

但是在测试聊天机器人时,我没有从这个语料库得到回复。第一个回复只是给定输入的回音,这意味着聊天机器人当前未经训练

enter image description here

我已经运行了python manage.py migrate django_chatterbotpython manage.py migrate并重新启动了服务器。你知道吗

但还是一样的问题。你知道吗

我如何确保chatterbot使用我所说的语料库?你知道吗

谢谢。你知道吗


Tags: djangonamepy示例settingsmanage机器人corpus