Examples of docName()


Examples of org.apache.lucene.benchmark.quality.utils.DocNameExtractor.docName()

    QualityStats stts = new QualityStats(judge.maxRecall(qq),searchTime);
    ScoreDoc sd[] = td.scoreDocs;
    long t1 = System.currentTimeMillis(); // extraction of first doc name we meassure also construction of doc name extractor, just in case.
    DocNameExtractor xt = new DocNameExtractor(docNameField);
    for (int i=0; i<sd.length; i++) {
      String docName = xt.docName(searcher,sd[i].doc);
      long docNameExtractTime = System.currentTimeMillis() - t1;
      t1 = System.currentTimeMillis();
      boolean isRelevant = judge.isRelevant(docName,qq);
      stts.addResult(i+1,isRelevant, docNameExtractTime);
    }
View Full Code Here

Examples of org.apache.lucene.benchmark.quality.utils.DocNameExtractor.docName()

    QualityStats stts = new QualityStats(judge.maxRecall(qq),searchTime);
    ScoreDoc sd[] = td.scoreDocs;
    long t1 = System.currentTimeMillis(); // extraction of first doc name we measure also construction of doc name extractor, just in case.
    DocNameExtractor xt = new DocNameExtractor(docNameField);
    for (int i=0; i<sd.length; i++) {
      String docName = xt.docName(searcher,sd[i].doc);
      long docNameExtractTime = System.currentTimeMillis() - t1;
      t1 = System.currentTimeMillis();
      boolean isRelevant = judge.isRelevant(docName,qq);
      stts.addResult(i+1,isRelevant, docNameExtractTime);
    }
View Full Code Here

Examples of org.apache.lucene.benchmark.quality.utils.DocNameExtractor.docName()

    QualityStats stts = new QualityStats(judge.maxRecall(qq),searchTime);
    ScoreDoc sd[] = td.scoreDocs;
    long t1 = System.currentTimeMillis(); // extraction of first doc name we measure also construction of doc name extractor, just in case.
    DocNameExtractor xt = new DocNameExtractor(docNameField);
    for (int i=0; i<sd.length; i++) {
      String docName = xt.docName(searcher,sd[i].doc);
      long docNameExtractTime = System.currentTimeMillis() - t1;
      t1 = System.currentTimeMillis();
      boolean isRelevant = judge.isRelevant(docName,qq);
      stts.addResult(i+1,isRelevant, docNameExtractTime);
    }
View Full Code Here

Examples of org.apache.lucene.benchmark.quality.utils.DocNameExtractor.docName()

    QualityStats stts = new QualityStats(judge.maxRecall(qq),searchTime);
    ScoreDoc sd[] = td.scoreDocs;
    long t1 = System.currentTimeMillis(); // extraction of first doc name we measure also construction of doc name extractor, just in case.
    DocNameExtractor xt = new DocNameExtractor(docNameField);
    for (int i=0; i<sd.length; i++) {
      String docName = xt.docName(searcher,sd[i].doc);
      long docNameExtractTime = System.currentTimeMillis() - t1;
      t1 = System.currentTimeMillis();
      boolean isRelevant = judge.isRelevant(docName,qq);
      stts.addResult(i+1,isRelevant, docNameExtractTime);
    }
View Full Code Here

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

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

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

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

      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

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

      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

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

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