Class EnglishPOSLexicon
java.lang.Object
smile.nlp.pos.EnglishPOSLexicon
An English lexicon with part-of-speech tags.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<PennTreebankPOS[]> Returns the part-of-speech tags for the given word, or an emptyOptionalif the word does not exist in the dictionary.
-
Method Details
-
get
Returns the part-of-speech tags for the given word, or an emptyOptionalif the word does not exist in the dictionary.- Parameters:
word- the word to look up.- Returns:
- an
Optionalcontaining the POS tags, or empty if unknown.
-