What are all possible pos tags of NLTK?

前端 未结 8 1712
你的背包
你的背包 2020-12-02 03:36

How do I find a list with all possible pos tags used by the Natural Language Toolkit (nltk)?

8条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-02 04:28

    Just run this verbatim.

    import nltk
    nltk.download('tagsets')
    nltk.help.upenn_tagset()
    

    nltk.tag._POS_TAGGER won't work. It will give AttributeError: module 'nltk.tag' has no attribute '_POS_TAGGER'. It's not available in NLTK 3 anymore.

提交回复
热议问题