@Test public void testPositive() throws InvalidFormatException { OutputStream stream = new ByteArrayOutputStream(); SentenceDetectorEvaluationMonitor listener = new SentenceEvaluationErrorListener(stream); SentenceDetectorEvaluator eval = new SentenceDetectorEvaluator(new DummySD( SentenceSampleTest.createGoldSample()), listener); eval.evaluateSample(SentenceSampleTest.createGoldSample()); Assert.assertEquals(1.0, eval.getFMeasure().getFMeasure(), 0.0); Assert.assertEquals(0, stream.toString().length()); }
public FMeasure getFMeasure() { return fmeasure; }
SentenceDetectorEvaluator extends Evaluator<SentenceSample> { public FMeasure getFMeasure() { return fmeasure; } }
SentenceDetectorEvaluator extends Evaluator<SentenceSample> { public FMeasure getFMeasure() { return fmeasure; } SentenceDetectorEvaluator(SentenceDetector sentenceDetector,
                                   SentenceDetectorEvaluationMonitor... listeners); }
SentenceDetectorEvaluator extends Evaluator<SentenceSample> { public FMeasure getFMeasure() { return fmeasure; } SentenceDetectorEvaluator(SentenceDetector sentenceDetector,
                                   SentenceDetectorEvaluationMonitor... listeners); FMeasure getFMeasure(); }
SentenceDetectorEvaluator extends Evaluator<SentenceSample> { public FMeasure getFMeasure() { return fmeasure; } SentenceDetectorEvaluator(SentenceDetector sentenceDetector,
                                   SentenceDetectorEvaluationMonitor... listeners); FMeasure getFMeasure();  }