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

opennlp.tools.ml

## Interface SequenceTrainer

- All Known Implementing Classes:
    AbstractSequenceTrainer

      public interface SequenceTrainer

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `SEQUENCE_VALUE`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `init(Map<String,String> trainParams, Map<String,String> reportMap)` Deprecated.
    `void` | `init(TrainingParameters trainParams, Map<String,String> reportMap)`
    `SequenceClassificationModel<String>` | `train(SequenceStream events)`

- - ### Field Detail

    - #### SEQUENCE_VALUE

          static final String SEQUENCE_VALUE

      See Also:
        Constant Field Values

  - ### Method Detail

    - #### init

          @Deprecated
          void init(Map<String,String> trainParams,
                                Map<String,String> reportMap)

      Deprecated.

    - #### init

          void init(TrainingParameters trainParams,
                    Map<String,String> reportMap)

    - #### train

          SequenceClassificationModel<String> train(SequenceStream events)
                                             throws IOException

      Throws:
        `IOException`

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