@Test public void testNegative() throws InvalidFormatException { OutputStream stream = new ByteArrayOutputStream(); DetokenEvaluationErrorListener listener = new DetokenEvaluationErrorListener( stream); DetokenizerEvaluator eval = new DetokenizerEvaluator(new DummyDetokenizer( TokenSampleTest.createGoldSample()), listener); eval.evaluateSample(TokenSampleTest.createPredSilverSample()); Assert.assertEquals(-1.0d, eval.getFMeasure().getFMeasure(), .1d); Assert.assertNotSame(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();  }