Package cc.mallet.fst.confidence

Examples of cc.mallet.fst.confidence.ConfidenceEvaluator



     
    }
   
    ConfidenceEvaluator evaluator = new ConfidenceEvaluator(entityConfidences, this.numberBins);
    out.println("correlation: " + evaluator.correlation());
    out.println("avg precision: " + evaluator.getAveragePrecision());
    out.println("coverage\taccuracy:\n" + evaluator.accuracyCoverageValuesToString());   
    double[] ac = evaluator.getAccuracyCoverageValues();
    for (int i=0; i < ac.length; i++) {
      int marks = (int)(ac[i]*25.0);
      for (int j=0; j < marks; j++)
        out.print("*");
      out.println();
    }

    out.println("nTrue:" + numTrueValues + " nCorr:" + numCorrValues + " nPred:" + numPredValues + "\n");
    out.println("recall\taccuracy:\n" + evaluator.accuracyRecallValuesToString(numTrueValues));
  }
View Full Code Here

TOP

Related Classes of cc.mallet.fst.confidence.ConfidenceEvaluator

Copyright © 2015 www.massapicom. 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.