Interface ISequenceTrainer<T>

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

A trainer which produces a ISequenceClassificationModel<T> from a stream of sequences.

public interface ISequenceTrainer<T>

Type Parameters

T

The type of the object which is the source of each sequence.

Methods

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

Initializes this trainer with the given parameters.

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

Parameters

trainParams TrainingParameters
reportMap IDictionary<string, string>

Train(ISequenceStream<T>)

Trains a sequence classification model from the given sequence stream.

ISequenceClassificationModel<string> Train(ISequenceStream<T> events)

Parameters

events ISequenceStream<T>

Returns

ISequenceClassificationModel<string>