Package uk.ac.ucl.panda.retrieval

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


   */
  public void report(QualityQuery qq, TopDocs td, String docNameField, Searcher searcher) throws IOException {
    if (logger==null) {
      return;
    }
    ScoreDoc sd[] = td.scoreDocs;
    String sep = " \t ";
    DocNameExtractor xt = new DocNameExtractor(docNameField);
    for (int i=0; i<sd.length; i++) {
      String docName = xt.docName(searcher,sd[i].doc);
      logger.println(
View Full Code Here


  /* Analyze/judge results for a single quality query; optionally log them. */
  private QualityStats analyzeQueryResults(QualityQuery qq, Query q,
      TopDocs td, Judge judge, PrintWriter logger, long searchTime)
      throws IOException {
    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);
View Full Code Here

  //
  private QualityStats analyzeQueryResults_plot(QualityQuery qq, Query q,
      TopDocs td, Judge judge, PrintWriter logger, long searchTime,
      PrintWriter relScoreLogger) throws IOException {
    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);
View Full Code Here

  // 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);
      for (int j = 0; j <= d; j++) {
View Full Code Here

  }

  // UCL
  private void outresult(QualityQuery qq, TopDocs td, PrintWriter logger)
      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) {
View Full Code Here

TOP

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

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.