CheckContextGenerator (Apache OpenNLP Tools 1.9.5 API)
Date: 2026-06-18

opennlp.tools.parser.treeinsert

## Class CheckContextGenerator

- java.lang.Object
- - opennlp.tools.parser.AbstractContextGenerator
  - - opennlp.tools.parser.treeinsert.CheckContextGenerator

-     public class CheckContextGenerator
      extends AbstractContextGenerator

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CheckContextGenerator(Set<String> punctSet)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String[]` | `getContext(Object arg0)`
    `String[]` | `getContext(Parse parent, Parse[] constituents, int index, boolean trimFrontier)`

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

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

- - ### Constructor Detail

    - #### CheckContextGenerator

          public CheckContextGenerator(Set<String> punctSet)

  - ### Method Detail

    - #### getContext

          public String[] getContext(Object arg0)

    - #### getContext

          public String[] getContext(Parse parent,
                                     Parse[] constituents,
                                     int index,
                                     boolean trimFrontier)

Copyright © 2026 The Apache Software Foundation. All rights reserved.