Class DefaultChunkerContextGenerator

java.lang.Object
opennlp.tools.chunker.DefaultChunkerContextGenerator
All Implemented Interfaces:
opennlp.tools.chunker.ChunkerContextGenerator, opennlp.tools.util.BeamSearchContextGenerator<opennlp.tools.util.TokenTag>

public class DefaultChunkerContextGenerator extends Object implements opennlp.tools.chunker.ChunkerContextGenerator
Features based on chunking model described in Fei Sha and Fernando Pereira. Shallow parsing with conditional random fields. In Proceedings of HLT-NAACL 2003. Association for Computational Linguistics, 2003.
  • Constructor Details

  • Method Details

    • getContext

      public String[] getContext(int i, String[] toks, String[] tags, String[] preds)
      Specified by:
      getContext in interface opennlp.tools.chunker.ChunkerContextGenerator
    • getContext

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