POS tagging - NLTK thinks noun is adjective

后端 未结 5 1794
执笔经年
执笔经年 2020-12-19 11:56

In the following code, why does nltk think \'fish\' is an adjective and not a noun?

>>> import nltk
>>> s = \"a woman needs a man like a fi         


        
5条回答
  •  梦毁少年i
    2020-12-19 12:48

    If you used a Lookup Tagger as described in the NLTK book, chapter 5 (for example using WordNet as lookup reference) first, your tagger would already "know" that fish cannot be an adjective. For all words with several possible POS Tags you could then use a statistical tagger as a backoff tagger.

提交回复
热议问题