我已经编写了一些需要使用 NLTK 的 punkt 的代码。我已经包含nltk在requirements.txt和 中setup.py。但是,当我使用 GitHub 操作运行我的项目的构建时,它会因此错误而失败。
E LookupError:
E **********************************************************************
E Resource punkt not found.
E Please use the NLTK Downloader to obtain the resource:
E
E >>> import nltk
E >>> nltk.download('punkt')
告诉 GitHub 需要的操作而不在代码中某处'punkt'硬编码的标准方法是什么?nltk.download('punkt')我应该在文件中添加一行,ci.yml最好的方法是什么?