Package opennlp.tools.lemmatizer

# Class DefaultLemmatizerContextGenerator

java.lang.Object
opennlp.tools.lemmatizer.DefaultLemmatizerContextGenerator

All Implemented Interfaces:
  `opennlp.tools.lemmatizer.LemmatizerContextGenerator`, `opennlp.tools.util.BeamSearchContextGenerator<String>`

public class DefaultLemmatizerContextGenerator extends Object implements opennlp.tools.lemmatizer.LemmatizerContextGenerator
Simple feature generator for learning statistical lemmatizers.

Features based on Grzegorz Chrupała. 2008. Towards a Machine-Learning Architecture for Lexical Functional Grammar Parsing. PhD dissertation, Dublin City University

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DefaultLemmatizerContextGenerator()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String[]`
  `getContext(int index, String[] sequence, String[] priorDecisions, Object[] additionalContext)`
  `String[]`
  `getContext(int index, String[] toks, String[] tags, String[] preds)`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### DefaultLemmatizerContextGenerator

    public DefaultLemmatizerContextGenerator()

- ## Method Details

  - ### getContext

    public String[] getContext(int index, String[] sequence, String[] priorDecisions, Object[] additionalContext)
    Specified by:
      `getContext` in interface `opennlp.tools.util.BeamSearchContextGenerator<String>`

  - ### getContext

    public String[] getContext(int index, String[] toks, String[] tags, String[] preds)
    Specified by:
      `getContext` in interface `opennlp.tools.lemmatizer.LemmatizerContextGenerator`