Package uk.ac.ucl.panda.utility.io

Examples of uk.ac.ucl.panda.utility.io.DocNameExtractor.docName()


    // doc name extractor, just in
    // case.
    DocNameExtractor xt = new DocNameExtractor(docNameField);
    // System.out.println( sd.length );
    for (int i = 0; i < sd.length; i++) {
      String docName = xt.docName(searcher, sd[i].doc);

      // System.out.println( sd[i].doc);
      long docNameExtractTime = System.currentTimeMillis() - t1;
      t1 = System.currentTimeMillis();
      boolean isRelevant = judge.isRelevant(docName, qq);
View Full Code Here


    // doc name extractor, just in
    // case.
    DocNameExtractor xt = new DocNameExtractor(docNameField);
    // System.out.println( sd.length );
    for (int i = 0; i < sd.length; i++) {
      String docName = xt.docName(searcher, sd[i].doc);

      // System.out.println( sd[i].doc);
      long docNameExtractTime = System.currentTimeMillis() - t1;
      t1 = System.currentTimeMillis();
      boolean isRelevant = judge.isRelevant(docName, qq);
View Full Code Here

    // doc name extractor, just in
    // case.
    DocNameExtractor xt = new DocNameExtractor(docNameField);
    // System.out.println( sd.length );
    for (int i = 0; i < sd.length; i++) {
      String docName = xt.docName(searcher, sd[i].doc);

      // System.out.println( sd[i].doc);
      long docNameExtractTime = System.currentTimeMillis() - t1;
      t1 = System.currentTimeMillis();
      boolean isRelevant = judge.isRelevant(docName, qq);
View Full Code Here

      throws IOException {
    ScoreDoc sd[] = td.scoreDocs;
    DocNameExtractor xt = new DocNameExtractor(docNameField);
    // System.out.println( sd.length );
    for (int i = 0; i < sd.length; i++) {
      String docName = xt.docName(searcher, sd[i].doc);
      if (logger != null) {
        logger.println(qq.getQueryID() + '\t' + "Q0" + '\t' + docName
            + '\t' + i + '\t' + sd[i].score + '\t' + "test");
      }
    }
View Full Code Here

      PrintWriter logger) throws IOException {
    MeanVarianceScoreDoc sd[] = td.MeanVariancescoreDocs;
    DocNameExtractor xt = new DocNameExtractor(docNameField);
    // System.out.println( sd.length );
    for (int i = 0; i < sd.length; i++) {
      String docName = xt.docName(searcher, sd[i].doc);
      if (logger != null) {
        logger.println(qq.getQueryID() + '\t' + "Q0" + '\t' + docName
            + '\t' + i + '\t' + sd[i].score + '\t' + sd[i].mean
            + '\t' + sd[i].variance + '\t' + "test");
      }
View Full Code Here

    TopDocsMeanVariance f_td = td;
    MeanVarianceScoreDoc temp[] = f_td.MeanVariancescoreDocs;
    for (int d = 0; d < temp.length; d++) {
      for (int j = d + 1; j < temp.length; j++) {
        double rou = correlation(temp[d].doc, temp[j].doc);
        String docName1 = xt.docName(searcher, temp[d].doc);
        String docName2 = xt.docName(searcher, temp[j].doc);
        logger.println(docName1 + sep + docName2 + sep + rou + sep);

      }
    }
View Full Code Here

    MeanVarianceScoreDoc temp[] = f_td.MeanVariancescoreDocs;
    for (int d = 0; d < temp.length; d++) {
      for (int j = d + 1; j < temp.length; j++) {
        double rou = correlation(temp[d].doc, temp[j].doc);
        String docName1 = xt.docName(searcher, temp[d].doc);
        String docName2 = xt.docName(searcher, temp[j].doc);
        logger.println(docName1 + sep + docName2 + sep + rou + sep);

      }
    }
  }
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.