Package opennlp.tools.commons

# Interface Trainer<P extends Parameters>

All Known Subinterfaces:
  `EventModelSequenceTrainer<T,P>`, `EventTrainer<P>`, `SequenceTrainer<P>`

public interface Trainer<P extends Parameters>
Represents a common base for training implementations.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `init(P trainParams, Map<String,String> reportMap)`
  Conducts the initialization of an `Trainer` via `Parameters` and a `report map`.
  `void`
  `init(P trainParams, Map<String,String> reportMap, TrainingConfiguration config)`
  Conducts the initialization of a `Trainer` via `Parameters`, `report map` and `TrainingConfiguration`

- ## Method Details

  - ### init

    void init(P trainParams, Map<String,String> reportMap)
    Conducts the initialization of an `Trainer` via `Parameters` and a `report map`.
    Parameters:
      `trainParams` - The `Parameters` to use.
      `reportMap` - The `Map` instance used as report map.

  - ### init

    void init(P trainParams, Map<String,String> reportMap, TrainingConfiguration config)
    Conducts the initialization of a `Trainer` via `Parameters`, `report map` and `TrainingConfiguration`
    Parameters:
      `trainParams` - The `Parameters` to use.
      `reportMap` - The `Map` instance used as report map.
      `config` - The `TrainingConfiguration` to use. If `null`, suitable defaults will be used.