@Test public void testPositive() { OutputStream stream = new ByteArrayOutputStream(); TokenNameFinderEvaluationMonitor listener = new NameEvaluationErrorListener(stream); Span[] pred = createSimpleNameSampleA().getNames(); TokenNameFinderEvaluator eval = new TokenNameFinderEvaluator(new DummyNameFinder(pred), listener); eval.evaluateSample(createSimpleNameSampleA()); Assert.assertEquals(1.0, eval.getFMeasure().getFMeasure(), 0.0); Assert.assertEquals(0, stream.toString().length()); }
public FMeasure getFMeasure() { return fmeasure; }
TokenNameFinderEvaluator extends Evaluator<NameSample> { public FMeasure getFMeasure() { return fmeasure; } }
TokenNameFinderEvaluator extends Evaluator<NameSample> { public FMeasure getFMeasure() { return fmeasure; } TokenNameFinderEvaluator(TokenNameFinder nameFinder,
      TokenNameFinderEvaluationMonitor ... listeners); }
TokenNameFinderEvaluator extends Evaluator<NameSample> { public FMeasure getFMeasure() { return fmeasure; } TokenNameFinderEvaluator(TokenNameFinder nameFinder,
      TokenNameFinderEvaluationMonitor ... listeners); FMeasure getFMeasure(); }
TokenNameFinderEvaluator extends Evaluator<NameSample> { public FMeasure getFMeasure() { return fmeasure; } TokenNameFinderEvaluator(TokenNameFinder nameFinder,
      TokenNameFinderEvaluationMonitor ... listeners); FMeasure getFMeasure();  }