Package opennlp.tools.sentdetect
Class SentenceDetectorEvaluator
- java.lang.Object
-
- opennlp.tools.util.eval.Evaluator<SentenceSample>
-
- opennlp.tools.sentdetect.SentenceDetectorEvaluator
-
public class SentenceDetectorEvaluator extends Evaluator<SentenceSample>
TheSentenceDetectorEvaluator
measures the performance of the givenSentenceDetector
with the provided referenceSentenceSample
s.- See Also:
Evaluator
,SentenceDetector
,SentenceSample
-
-
Constructor Summary
Constructors Constructor Description SentenceDetectorEvaluator(SentenceDetector sentenceDetector, SentenceDetectorEvaluationMonitor... listeners)
Initializes the current instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FMeasure
getFMeasure()
-
Methods inherited from class opennlp.tools.util.eval.Evaluator
evaluate, evaluateSample
-
-
-
-
Constructor Detail
-
SentenceDetectorEvaluator
public SentenceDetectorEvaluator(SentenceDetector sentenceDetector, SentenceDetectorEvaluationMonitor... listeners)
Initializes the current instance.- Parameters:
sentenceDetector
- TheSentenceDetector
to be used for predicting sentences.listeners
- Theevaluation sample listeners
.
-
-
Method Detail
-
getFMeasure
public FMeasure getFMeasure()
-
-