Package opennlp.tools.ml

## Interface SequenceTrainer

- All Superinterfaces:
    `Trainer`

      public interface SequenceTrainer
      extends Trainer

- - ### Field Summary

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

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `<T> SequenceClassificationModel<String>` | `train​(SequenceStream<T> events)` | Trains a `SequenceClassificationModel` for given `events`.

    - ### Methods inherited from interface opennlp.tools.commons.Trainer

      `init`

- - ### Field Detail

    - #### SEQUENCE_VALUE

          static final String SEQUENCE_VALUE

      See Also:
        Constant Field Values

  - ### Method Detail

    - #### train

          <T> SequenceClassificationModel<String> train​(SequenceStream<T> events)
                                                 throws IOException

      Trains a `SequenceClassificationModel` for given `events`.
      Type Parameters:
        `T` - The generic type of elements to process via the `SequenceStream`.
      Parameters:
        `events` - The input `events`.
      Returns:
        The trained `SequenceClassificationModel`.
      Throws:
        `IOException` - Thrown if IO errors occurred.