- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我的第一个 Telegram 聊天机器人(使用 Chatterbot 库完成)有问题。
我的项目由以下人员组成:
我在 Heroku 上部署了我的项目,但出现了这个问题:
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 275 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: -----> Installing requirements with pip
remote:
remote: -----> Downloading NLTK corpora…
remote: ! 'nltk.txt' not found, not downloading any corpora
remote: ! Learn more: https://devcenter.heroku.com/articles/python-nltk
remote: -----> Discovering process types
remote: Procfile declares types -> worker
remote:
remote: -----> Compressing...
remote: Done: 47.3M
remote: -----> Launching...
remote: Released v5
remote: https://magghy.herokuapp.com/ deployed to Heroku
remote:
remote: Verifying deploy.... done.
To https://git.heroku.com/magghy.git
2cdd74d..254cbad master -> master
我不知道要插入什么 NLTK 语料库。聊天机器人必须引用的我的语料库位于名为“conversations”(yml 文件)和“math_words”(json 文件)的文件中。
我该如何继续?
最佳答案
关于python - NLTK 语料库部署 Chatterbot Heroku,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46806912/
我想为使用 ChatterBot 库编写的聊天机器人指定一个特定问题的答案。这是我的代码 from chatterbot import ChatBot # Create a new chat bot
我的目标是编写某种会说西类牙语的聊天机器人。我见过简单的 python 聊天机器人的示例,但它们的答案大多只是随机的。我希望机器人能够部分理解问题并制定回应,例如 http://cleverbot.c
我正在尝试在网络上创建一个基于关键字的 Chatterbot。只需在输入中查找关键字并返回相关响应。 例子: User(Input): What is your phone number? Bot(O
当我在“安装构建依赖项”步骤后执行命令 pip install chatterbot 时,出现以下错误。有人可以告诉我如何纠正它或者有其他方法安装它吗? 错误: Command errored out
我的第一个 Telegram 聊天机器人(使用 Chatterbot 库完成)有问题。 我的项目由以下人员组成: 配置文件 要求(txt 文件) telegramtoken(txt 文件) 运行时(t
我正在使用 Python 和 chatterbot 库创建一个简单的聊天机器人。我已经能够得到一些能够工作的东西,用户输入一些内容,机器人就会根据模式和响应的 .json 进行响应。 每次我执行时,机
我现在遇到了几个问题,我几乎已经让 Chatterbot 示例可以在 Heroku 上运行 Django。 这是我的示例页面。 https://polar-basin-92507.herokuapp.
似乎可以通过指定位置路径来使用自定义语料库 json 文件。但是,我对如何完成感到困惑。 chatterbot 提供的示例不是很清楚。 http://chatterbot.readthedocs.io
在 Django 管理中,使用执行训练后,chatterbot 转换表为空 python管理.py训练 上面的代码使用基于 yml 文件的训练数据填充语句和响应表。这很好。 但是,在测试过程中,发布到
我正在尝试构建一个聊天机器人。所以我安装了 chatterbot 包。python 代码如下: from chatterbot import TalkWithCleverbot talk = Talk
我正在安装 Chatterbot,当我得到 Spacy 包时,出现了一个巨大的错误并关闭了 pip,我的电脑上只安装了 python 3.8 64 位 我用了pip install, pip -U 和
当 chatbot.get_response() 和 trainer.tain() 在英语字符串列表上时(完全相同的问题)时,我遇到问题。它说 OperationalError: no such co
我有以下使用Chatterbot第三方库的代码:。当我尝试使用代码时,从Visual Studio收到如下错误:。我安装了以下程序包:。我尝试了使用Python3.9和3.11以及Chatterbot
我有以下使用Chatterbot第三方库的代码:。当我尝试使用代码时,从Visual Studio收到如下错误:。我安装了以下程序包:。我尝试了使用Python3.9和3.11以及Chatterbot
我有以下使用Chatterbot第三方库的代码:。当我尝试使用代码时,从Visual Studio收到如下错误:。我安装了以下程序包:。我尝试了使用Python3.9和3.11以及Chatterbot
我是一名优秀的程序员,十分优秀!