Interface IEventTrainer

Namespace
NOpenNLP.Tools.Ml
Assembly
NOpenNLP.Tools.dll

A trainer which produces a IMaxentModel from a stream of events.

public interface IEventTrainer

Methods

Init(TrainingParameters, IDictionary<string, string>?)

Initializes this trainer with the given parameters.

void Init(TrainingParameters trainingParams, IDictionary<string, string>? reportMap)

Parameters

trainingParams TrainingParameters
reportMap IDictionary<string, string>

Train(IDataIndexer)

Trains a model from the given, already indexed, training data.

IMaxentModel Train(IDataIndexer indexer)

Parameters

indexer IDataIndexer

Returns

IMaxentModel

Train(IObjectStream<Event?>)

Trains a model from the given event stream.

IMaxentModel Train(IObjectStream<Event?> events)

Parameters

events IObjectStream<Event>

Returns

IMaxentModel