Package smile.nlp.pos
Class EnglishPOSLexicon
java.lang.Object
smile.nlp.pos.EnglishPOSLexicon
An English lexicon with part-of-speech tags.
-
Method Summary
Modifier and TypeMethodDescriptionstatic PennTreebankPOS[]
Returns the part-of-speech tags for given word, or null if the word does not exist in the dictionary.
-
Method Details
-
get
Returns the part-of-speech tags for given word, or null if the word does not exist in the dictionary.- Parameters:
word
- the word.- Returns:
- the part-of-speech tags.
-