EvaluationUtilities { public static ModelStats computeStats(String theResult) { return new ModelStats(theResult); }  static String taggerRun(List<String> ress, Tagger tagger); static ModelStats evaluateStandard(String path, final GenericTagger tagger); static ModelStats evaluateStandard(String path, Function<List<String>, String> taggerFunction); static ModelStats computeStats(String theResult); @Deprecated static Stats tokenLevelStats(String theResult); static String computeMetrics(Stats stats);  }
@Test public void testTokenLevelStats4_realCase() throws Exception { String result = IOUtils.toString(this.getClass().getResourceAsStream("/sample.wapiti.output.3.txt"), StandardCharsets.UTF_8); ModelStats fieldStats = EvaluationUtilities.computeStats(result); assertThat(fieldStats.getTotalInstances(), is(4)); assertThat(fieldStats.getCorrectInstance(), is(1)); assertThat(fieldStats.getInstanceRecall(), is(1.0/4)); assertThat(fieldStats.getSupportSum(), is(6L)); }