Examples of AlignmentStats


Examples of edu.stanford.nlp.sempre.paraphrase.Aligner.AlignmentStats

    for(String line: IOUtils.readLines(path)) {
      String[] tokens = line.split("\t");
      double count = Double.parseDouble(tokens[2]);
      MapUtils.putIfAbsent(res, tokens[0], new HashMap<String,AlignmentStats>());
      if(count>=threshold) {
        AlignmentStats aStats = new AlignmentStats(count, Double.parseDouble(tokens[3]), Double.parseDouble(tokens[4]));
        res.get(tokens[0]).put(tokens[1], aStats);
      }
    }
    LogInfo.logs("ParaphraseUtils.loadPhraseTable: number of entries=%s",res.size());
    LogInfo.end_track();
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.