@Test public void testNegative() throws InvalidFormatException { OutputStream stream = new ByteArrayOutputStream(); TokenizerEvaluationMonitor listener = new TokenEvaluationErrorListener( stream); TokenizerEvaluator eval = new TokenizerEvaluator(new DummyTokenizer( TokenSampleTest.createGoldSample()), listener); eval.evaluateSample(TokenSampleTest.createPredSample()); Assert.assertEquals(.5d, eval.getFMeasure().getFMeasure(), .1d); Assert.assertNotSame(0, stream.toString().length()); }
public FMeasure getFMeasure() { return fmeasure; }
TokenizerEvaluator extends Evaluator<TokenSample> { public FMeasure getFMeasure() { return fmeasure; } }
TokenizerEvaluator extends Evaluator<TokenSample> { public FMeasure getFMeasure() { return fmeasure; } TokenizerEvaluator(Tokenizer tokenizer, TokenizerEvaluationMonitor ... listeners); }
TokenizerEvaluator extends Evaluator<TokenSample> { public FMeasure getFMeasure() { return fmeasure; } TokenizerEvaluator(Tokenizer tokenizer, TokenizerEvaluationMonitor ... listeners); FMeasure getFMeasure(); }
TokenizerEvaluator extends Evaluator<TokenSample> { public FMeasure getFMeasure() { return fmeasure; } TokenizerEvaluator(Tokenizer tokenizer, TokenizerEvaluationMonitor ... listeners); FMeasure getFMeasure();  }