Trainer (Apache OpenNLP Tools 2.5.9 API)
Description: declaration: package: opennlp.tools.commons, interface: Trainer

# Interface Trainer

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

All Known Implementing Classes:
  `AbstractEventModelSequenceTrainer, AbstractEventTrainer, AbstractTrainer, GISTrainer, NaiveBayesTrainer, PerceptronTrainer, QNTrainer, SimplePerceptronSequenceTrainer`

public interface Trainer
Represents a common base for training implementations.

- ## Method Summary

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

- ## Method Details

  - ### init

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

  - ### init

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