我的第一个 Telegram 聊天机器人(使用 Chatterbot 库完成)有问题。
我的项目由以下人员组成:
- 配置文件
- 要求(txt 文件)
- telegramtoken(txt 文件)
- 运行时(txt 文件)
- nltk(txt 文件)
- 机器人用户(csv 文件)
- magghybot(py 文件)
- Maggy(py 文件)
- 对话(名为 lang 的文件夹中的 yml 文件)
- math_words(名为 lang 的文件夹中的 json 文件)
我在 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/