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
sentenceDetectorISentenceDetectorthe ISentenceDetector to evaluate.
listenersISentenceDetectorEvaluationMonitor[]evaluation sample listeners
Properties
FMeasure
public virtual FMeasure FMeasure { get; }
Property Value
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
sampleSentenceSample
Returns
- SentenceSample
the predicted sample