NLTK语料库部署Chatterbot Heroku

2024-04-28 23:40:24 发布

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

我的第一个电报聊天机器人有一个问题,用了聊天工具库。在

我的项目包括:

  • 程序文件
  • 要求(txt文件)
  • 电报令牌(txt文件)
  • 运行时(txt文件)
  • nltk(txt文件)
  • botusers(csv文件)
  • magghybot(py文件)
  • Magghy(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文件)的文件中。在

我该怎么做?在


Tags: 文件项目pyhttpstxt文件夹comlang