Package interfaces

Examples of interfaces.IRouge.evaluate()


        parsedArgs.getInt(Config.GRAM_SIZE.toString()),
        parsedArgs.getChar(Config.METHOD.toString()),
        parsedArgs.getDouble(Config.ALPHA.toString())
        );

      Map<ScoreType, Double> scores = rouge.evaluate();

      rss.addValue(scores.get(ScoreType.R));
      pss.addValue(scores.get(ScoreType.P));
      fss.addValue(scores.get(ScoreType.F));
  }
View Full Code Here


  System.out.println("ROUGE-N");
  IRouge rouge = null;
  for (IRougeSummaryModel system : results.keySet())
  {
      rouge = new RougeN(system, results.get(system), Integer.MAX_VALUE, Integer.MAX_VALUE, 2, 'A', 0.5);
      Map<ScoreType, Double> scores = rouge.evaluate();
      r += scores.get(ScoreType.R);
      p += scores.get(ScoreType.P);
      f += scores.get(ScoreType.F);
  }
 
View Full Code Here

  r = p = f = 0;
  rouge = null;
  for (IRougeSummaryModel system : results.keySet())
  {
      rouge = new JRougeN(system, results.get(system), Integer.MAX_VALUE, Integer.MAX_VALUE, 2, 'A', 0.5);
      Map<ScoreType, Double> scores = rouge.evaluate();
      r += scores.get(ScoreType.R);
      p += scores.get(ScoreType.P);
      f += scores.get(ScoreType.F);
  }
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.