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

opennlp.tools.ml.maxent

## Interface ContextGenerator<T>

- All Known Implementing Classes:
    BasicContextGenerator

      public interface ContextGenerator<T>

  Generate contexts for maxent decisions.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `String[]` | `getContext(T o)` Builds up the list of contextual predicates given an Object.

- - ### Method Detail

    - #### getContext

          String[] getContext(T o)

      Builds up the list of contextual predicates given an Object.

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