Package uk.ac.ucl.panda.retrieval

Examples of uk.ac.ucl.panda.retrieval.TopDocs


  }

  // Correlation adjust the TOP 10 rank
  private TopDocs Correlation_Adjust(TopDocs td, double c) throws IOException {
    double log2toe = 1.0d / Math.log(2.0d);
    TopDocs f_td = td;
    ScoreDoc temp[] = f_td.scoreDocs;
    // System.out.println("number: "+temp.length);
    TopDocCollector collector = null;
    for (int d = 0; d < 19; d++) {
      collector = new TopDocCollector(temp.length);
View Full Code Here


      QualityQuery qq = qualityQueries[i];
      // generate query
      Query q = qqParser.parse(qq);
      // search with this query
      long t1 = System.currentTimeMillis();
      TopDocs td = searcher.search(q, null, maxResults, a1);

      // ///////////////////////////
      // ucl

      TopDocs f_td = td;
      if (a2 != 0) {
        f_td = Correlation_Adjust(td, a2);
      }

      long searchTime = System.currentTimeMillis() - t1;
View Full Code Here

      // generate query
      Query q = qqParser.parse(qq);

      // search with this query
      long t1 = System.currentTimeMillis();
      TopDocs td = searcher.search_plot(q, null, maxResults, a1);

      // ///////////////////////////
      // ucl

      TopDocs f_td = td;
      if (a2 != 0) {
        f_td = Correlation_Adjust(td, a2);
      }

      long searchTime = System.currentTimeMillis() - t1;
View Full Code Here

TOP

Related Classes of uk.ac.ucl.panda.retrieval.TopDocs

Copyright © 2018 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.