Class SentenceDetectorEvaluator

Namespace
NOpenNLP.Tools.Sentdetect
Assembly
NOpenNLP.Tools.dll

The SentenceDetectorEvaluator measures the performance of the given ISentenceDetector with the provided reference SentenceSamples.

public class SentenceDetectorEvaluator : Evaluator<SentenceSample>
Inheritance
SentenceDetectorEvaluator
Inherited Members

Constructors

SentenceDetectorEvaluator(ISentenceDetector, params ISentenceDetectorEvaluationMonitor?[]?)

Initializes the current instance.

public SentenceDetectorEvaluator(ISentenceDetector sentenceDetector, params ISentenceDetectorEvaluationMonitor?[]? listeners)

Parameters

sentenceDetector ISentenceDetector

the ISentenceDetector to evaluate.

listeners ISentenceDetectorEvaluationMonitor[]

evaluation sample listeners

Properties

FMeasure

public virtual FMeasure FMeasure { get; }

Property Value

FMeasure

Methods

ProcessSample(SentenceSample)

Evaluates the given reference sample object.

The implementation has to update the score after every invocation.

protected override SentenceSample ProcessSample(SentenceSample sample)

Parameters

sample SentenceSample

Returns

SentenceSample

the predicted sample

See Also