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

opennlp.tools.sentdetect.lang.th

## Class SentenceContextGenerator

- java.lang.Object
- - opennlp.tools.sentdetect.DefaultSDContextGenerator
  - - opennlp.tools.sentdetect.lang.th.SentenceContextGenerator

- All Implemented Interfaces:
    SDContextGenerator

      public class SentenceContextGenerator
      extends DefaultSDContextGenerator

  Creates contexts/features for end-of-sentence detection in Thai text.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static char[]` | `eosCharacters`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SentenceContextGenerator()`

  - ### Method Summary

    - ### Methods inherited from class opennlp.tools.sentdetect.DefaultSDContextGenerator

      `getContext`

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

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

- - ### Field Detail

    - #### eosCharacters

          public static final char[] eosCharacters

  - ### Constructor Detail

    - #### SentenceContextGenerator

          public SentenceContextGenerator()

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