public class SentenceDetectorEvaluator extends Evaluator<SentenceSample>
SentenceDetectorEvaluator
measures the performance of
the given SentenceDetector
with the provided reference
SentenceSample
s.Evaluator
,
SentenceDetector
,
SentenceSample
Constructor and Description |
---|
SentenceDetectorEvaluator(SentenceDetector sentenceDetector,
SentenceDetectorEvaluationMonitor... listeners)
Initializes the current instance.
|
Modifier and Type | Method and Description |
---|---|
FMeasure |
getFMeasure() |
protected SentenceSample |
processSample(SentenceSample sample)
Evaluates the given reference sample object.
|
evaluate, evaluateSample
public SentenceDetectorEvaluator(SentenceDetector sentenceDetector, SentenceDetectorEvaluationMonitor... listeners)
sentenceDetector
- listeners
- evaluation sample listenersprotected SentenceSample processSample(SentenceSample sample)
Evaluator
processSample
in class Evaluator<SentenceSample>
sample
- the reference sample.public FMeasure getFMeasure()
Copyright © 2018 The Apache Software Foundation. All rights reserved.