@Test public void testPositive() throws InvalidFormatException { OutputStream stream = new ByteArrayOutputStream(); DetokenEvaluationErrorListener listener = new DetokenEvaluationErrorListener(stream); DetokenizerEvaluator eval = new DetokenizerEvaluator(new DummyDetokenizer( TokenSampleTest.createGoldSample()), listener); eval.evaluateSample(TokenSampleTest.createGoldSample()); Assert.assertEquals(1.0, eval.getFMeasure().getFMeasure(), 0.0); Assert.assertEquals(0, stream.toString().length()); }
public FMeasure getFMeasure() { return fmeasure; }
DetokenizerEvaluator extends Evaluator<TokenSample> { public FMeasure getFMeasure() { return fmeasure; } }
DetokenizerEvaluator extends Evaluator<TokenSample> { public FMeasure getFMeasure() { return fmeasure; } DetokenizerEvaluator(Detokenizer detokenizer, DetokenEvaluationErrorListener... listeners); }
DetokenizerEvaluator extends Evaluator<TokenSample> { public FMeasure getFMeasure() { return fmeasure; } DetokenizerEvaluator(Detokenizer detokenizer, DetokenEvaluationErrorListener... listeners); FMeasure getFMeasure(); }
DetokenizerEvaluator extends Evaluator<TokenSample> { public FMeasure getFMeasure() { return fmeasure; } DetokenizerEvaluator(Detokenizer detokenizer, DetokenEvaluationErrorListener... listeners); FMeasure getFMeasure();  }