How to install NLTK modules in Heroku

后端 未结 4 1893
独厮守ぢ
独厮守ぢ 2021-02-20 08:11

Hey i\'d like to install the NLTK pos_tag on my Heroku server. How can i do so. Please give me the steps as im new to the Heroku server system.

4条回答
  •  感情败类
    2021-02-20 08:31

    If you want to use simple functionalities like pos_tag, tokenizer, stemming, etc. then you can do the following steps

    1. mention nltk in requirements.txt
    2. mention following modules in nltk.txt
      • wordnet
      • pros_cons
      • reuters
      • hmm_treebank_pos_tagger
      • maxent_treebank_pos_tagger
      • universal_tagset
      • punkt
      • averaged_perceptron_tagger_ru
      • averaged_perceptron_tagger
      • snowball_data
      • rslp
      • porter_test
      • vader_lexicon
      • treebank
      • dependency_treebank

提交回复
热议问题