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 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