finding noun and verb in stanford parser

后端 未结 3 1932
失恋的感觉
失恋的感觉 2020-12-30 14:26

I need to find whether a word is verb or noun or it is both

For example, the word is \"search\" it can be both noun and a verb but stanford parser gives NN tag to i

3条回答
  •  时光取名叫无心
    2020-12-30 15:27

    The Stanford Parser guesses the part-of-speech tag of a word based on context statistics. You should really pass in a complete sentence to determine whether, in that sentence, "search" is a noun or a verb.

    You don't need a full parser just to get part-of-speech tags. The Stanford POS Tagger is enough; it also includes the Morphology class, but it too takes context into account.

    If you want all part-of-speech tags that an English word can take on, without giving context, then WordNet is probably a better choice. It has several Java interfaces, including JWNL and JWI.

提交回复
热议问题