What is NLTK POS tagger asking me to download?

后端 未结 6 2318
感动是毒
感动是毒 2020-12-03 02:51

I just started using a part-of-speech tagger, and I am facing many problems.

I started POS tagging with the following:

import nltk
text=nltk.word_to         


        
6条回答
  •  温柔的废话
    2020-12-03 03:24

    If nltk version is 3.4.5, do the below:

    import nltk
    nltk.download('averaged_perceptron_tagger')
    

    To check you nltk version, do the below:

    print (nltk.__version__)
    

提交回复
热议问题