【问题标题】:NLTK corpus deployment Chatterbot HerokuNLTK 语料库部署 Chatterbot Heroku
【发布时间】:2017-10-18 09:28:31
【问题描述】:

我的第一个 Telegram 聊天机器人有问题,使用 Chatterbot 库完成。

我的项目由以下人员组成:

  • 过程文件
  • 要求(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 文件)的文件中。

我该如何从这里开始?

【问题讨论】:

    标签: python nltk corpus


    【解决方案1】:

    在 buildpack 中使用此链接而不是 Heroku/python:

    https://github.com/heroku/heroku-buildpack-python.git
    

    例如:

    【讨论】:

    • 虽然此链接可能会回答问题,但最好在此处包含答案的基本部分并提供链接以供参考。如果链接页面发生更改,仅链接答案可能会失效。 - From Review
    • @SeM 在我看来,URL 是运行构建时使用的参数,而不是 OP 发布的让我们点击阅读的内容。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-12-02
    • 2022-01-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多