SequenceTrainer (Apache OpenNLP :: API 3.0.0-M4 API)
Description: declaration: package: opennlp.tools.ml, interface: SequenceTrainer

Package opennlp.tools.ml

# Interface SequenceTrainer<P extends Parameters>

All Superinterfaces:
  `Trainer<P>`

public interface SequenceTrainer<P extends Parameters> extends Trainer<P>

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final String`
  `SEQUENCE_VALUE`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `<T> SequenceClassificationModel`
  `train(SequenceStream<T> events)`
  Trains a `SequenceClassificationModel` for given `events`.

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

  `init, init`

- ## Field Details

  - ### SEQUENCE_VALUE

    static final String SEQUENCE_VALUE
    See Also:
      - Constant Field Values

- ## Method Details

  - ### train

    <T> SequenceClassificationModel 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.