Package smile.nlp.pos

Interface POSTagger

All Known Implementing Classes:
HMMPOSTagger

public interface POSTagger
Part-of-speech tagging (POS tagging) is the process of marking up the words in a sentence as corresponding to a particular part of speech. Part-of-speech tagging is hard because some words can represent more than one part of speech at different times, and because some parts of speech are complex or unspoken.
  • Method Summary

    Modifier and Type
    Method
    Description
    tag(String[] sentence)
    Tags the sentence in the form of a sequence of words.
  • Method Details

    • tag

      PennTreebankPOS[] tag(String[] sentence)
      Tags the sentence in the form of a sequence of words.
      Parameters:
      sentence - the sentence.
      Returns:
      the POS tags.