Package smile.nlp.pos

Class EnglishPOSLexicon

java.lang.Object
smile.nlp.pos.EnglishPOSLexicon

public class EnglishPOSLexicon extends Object
An English lexicon with part-of-speech tags.
  • Method Details

    • get

      public static PennTreebankPOS[] get(String word)
      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.