Package opennlp.tools.lemmatizer

# Interface Lemmatizer

All Known Implementing Classes:
  `DictionaryLemmatizer`, `LemmatizerME`

public interface Lemmatizer
The common interface for lemmatizers.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String[]`
  `lemmatize(String[] toks, String[] tags)`
  Generates lemmas for the word and postag.
  `List<List<String>>`
  `lemmatize(List<String> toks, List<String> tags)`
  Generates lemma tags for the word and postag.

- ## Method Details

  - ### lemmatize

    String[] lemmatize(String[] toks, String[] tags)
    Generates lemmas for the word and postag.
    Parameters:
      `toks` - An array of the tokens
      `tags` - an array of the pos tags
    Returns:
      An array of possible lemmas for each token in the `toks` sequence.

  - ### lemmatize

    List<List<String>> lemmatize(List<String> toks, List<String> tags)
    Generates lemma tags for the word and postag.
    Parameters:
      `toks` - An array of the tokens
      `tags` - An array of the pos tags
    Returns:
      A list of every possible lemma for each token in the `toks` sequence.