Examples of SubmissionReport


Examples of org.apache.lucene.benchmark.quality.utils.SubmissionReport

      System.exit(1);
    }
   
    File topicsFile = new File(args[0]);
    File qrelsFile = new File(args[1]);
    SubmissionReport submitLog = new SubmissionReport(new PrintWriter(args[2], IOUtils.UTF_8 /* huh, no nio.Charset ctor? */), "lucene");
    FSDirectory dir = FSDirectory.open(new File(args[3]));
    String fieldSpec = args.length == 5 ? args[4] : "T"; // default to Title-only if not specified.
    IndexReader reader = DirectoryReader.open(dir);
    IndexSearcher searcher = new IndexSearcher(reader);

View Full Code Here

Examples of org.apache.lucene.benchmark.quality.utils.SubmissionReport

      System.exit(1);
    }
   
    File topicsFile = new File(args[0]);
    File qrelsFile = new File(args[1]);
    SubmissionReport submitLog = new SubmissionReport(new PrintWriter(args[2]), "lucene");
    FSDirectory dir = FSDirectory.open(new File(args[3]));
    IndexReader r = IndexReader.open(dir, true);
    IndexSearcher searcher = new IndexSearcher(r);
    String fieldSpec = args.length == 5 ? args[4] : "T"; // default to Title-only if not specified.
View Full Code Here

Examples of org.apache.lucene.benchmark.quality.utils.SubmissionReport

    IndexSearcher searcher = newSearcher(r);

    QualityQueryParser qqParser = new SimpleQQParser("title","body");
    QualityBenchmark qrun = new QualityBenchmark(qqs, qqParser, searcher, docNameField);
   
    SubmissionReport submitLog = VERBOSE ? new SubmissionReport(logger, "TestRun") : null;
    qrun.setMaxResults(maxResults);
    QualityStats stats[] = qrun.execute(judge, submitLog, logger);
   
    // --------- verify by the way judgments were altered for this test:
    // for some queries, depending on m = qnum % 8
View Full Code Here

Examples of org.apache.lucene.benchmark.quality.utils.SubmissionReport

      System.exit(1);
    }
   
    File topicsFile = new File(args[0]);
    File qrelsFile = new File(args[1]);
    SubmissionReport submitLog = new SubmissionReport(new PrintWriter(args[2]), "lucene");
    FSDirectory dir = FSDirectory.open(new File(args[3]));
    IndexReader r = IndexReader.open(dir, true);
    IndexSearcher searcher = new IndexSearcher(r);
    String fieldSpec = args.length == 5 ? args[4] : "T"; // default to Title-only if not specified.
View Full Code Here

Examples of org.apache.lucene.benchmark.quality.utils.SubmissionReport

    IndexSearcher searcher = new IndexSearcher(dir, true);

    QualityQueryParser qqParser = new SimpleQQParser("title","body");
    QualityBenchmark qrun = new QualityBenchmark(qqs, qqParser, searcher, docNameField);
   
    SubmissionReport submitLog = VERBOSE ? new SubmissionReport(logger, "TestRun") : null;
    qrun.setMaxResults(maxResults);
    QualityStats stats[] = qrun.execute(judge, submitLog, logger);
   
    // --------- verify by the way judgments were altered for this test:
    // for some queries, depending on m = qnum % 8
View Full Code Here

Examples of org.apache.lucene.benchmark.quality.utils.SubmissionReport

      System.exit(1);
    }
   
    File topicsFile = new File(args[0]);
    File qrelsFile = new File(args[1]);
    SubmissionReport submitLog = new SubmissionReport(new PrintWriter(args[2]), "lucene");
    FSDirectory dir = FSDirectory.open(new File(args[3]));
    String fieldSpec = args.length == 5 ? args[4] : "T"; // default to Title-only if not specified.
    Searcher searcher = new IndexSearcher(dir, true);

    int maxResults = 1000;
View Full Code Here

Examples of uk.ac.ucl.panda.utility.io.SubmissionReport

      QualityQueryParser qqParser = new SimpleQQParser("title", "body");

      // run the benchmark
      QualityBenchmark qrun = new QualityBenchmark(qqs, qqParser, index, docNameField);
      qrun.setMaxResults(maxResults);
      SubmissionReport submitLog = null;
     
     
     
      QualityStats stats[] = qrun.execute(judge, submitLog, logger, scorelogger);
View Full Code Here

Examples of uk.ac.ucl.panda.utility.io.SubmissionReport

      QualityQueryParser qqParser = new SimpleQQParser("title", "body");

      // run the benchmark
      QualityBenchmark qrun = new QualityBenchmark(qqs, qqParser, index, docNameField);
      qrun.setMaxResults(maxResults);
      SubmissionReport submitLog = null;
     
           
            //batch
             logger.print("MAP"+'\t'+"MRR"+'\t'+"Recall"+'\t'+"1-call"+'\t'+"2-call"+'\t'+"3-call"+'\t'+"4-call"+'\t'+"5-call"+'\t'+"6-call"+'\t'+"7-call"+'\t'+"8-call"+'\t'+"9-call"+'\t'+"10-call"+'\t'+"NDCG@1"+'\t'+"NDCG@5"+'\t'+"NDCG@10"+'\t'+"NDCG@15"+'\t'+"NDCG@20"+"NDCG@35"+'\t'+"NDCG@50"+'\t'+"NDCG@70"+'\t'+"NDCG@100"+'\t'+"NDCG@200"+'\t'+"NDCG@250"+'\t'+"NDCG@400"+'\t'+"NDCG@500"+'\t'+"NDCG@600"+'\t'+"NDCG@700"+'\t');
            for(int i =1; i<=70 ;i++){
View Full Code Here

Examples of uk.ac.ucl.panda.utility.io.SubmissionReport

      QualityQueryParser qqParser = new SimpleQQParser("title", "body");

      // run the benchmark
      QualityBenchmark qrun = new QualityBenchmark(qqs, qqParser, index, docNameField);
      qrun.setMaxResults(maxResults);
      SubmissionReport submitLog = null;


            //batch
             logger.print("MAP"+'\t'+"MRR"+'\t'+"Recall"+'\t'+"1-call"+'\t'+"2-call"+'\t'+"3-call"+'\t'+"4-call"+'\t'+"5-call"+'\t'+"6-call"+'\t'+"7-call"+'\t'+"8-call"+'\t'+"9-call"+'\t'+"10-call"+'\t'+"NDCG@1"+'\t'+"NDCG@5"+'\t'+"NDCG@10"+'\t'+"NDCG@15"+'\t'+"NDCG@20"+"NDCG@35"+'\t'+"NDCG@50"+'\t'+"NDCG@70"+'\t'+"NDCG@100"+'\t'+"NDCG@200"+'\t'+"NDCG@250"+'\t'+"NDCG@400"+'\t'+"NDCG@500"+'\t'+"NDCG@600"+'\t'+"NDCG@700"+'\t');
            for(int i =1; i<=70 ;i++){
View Full Code Here

Examples of uk.ac.ucl.panda.utility.io.SubmissionReport

      QualityQueryParser qqParser = new SimpleQQParser("title", "body");

      // run the benchmark
      QualityBenchmark qrun = new QualityBenchmark(qqs, qqParser, index, docNameField);
      qrun.setMaxResults(maxResults);
      SubmissionReport submitLog = null;


            //batch
             logger.print("MAP"+'\t'+"MRR"+'\t'+"Recall"+'\t'+"1-call"+'\t'+"2-call"+'\t'+"3-call"+'\t'+"4-call"+'\t'+"5-call"+'\t'+"6-call"+'\t'+"7-call"+'\t'+"8-call"+'\t'+"9-call"+'\t'+"10-call"+'\t'+"NDCG@1"+'\t'+"NDCG@5"+'\t'+"NDCG@10"+'\t'+"NDCG@15"+'\t'+"NDCG@20"+"NDCG@35"+'\t'+"NDCG@50"+'\t'+"NDCG@70"+'\t'+"NDCG@100"+'\t'+"NDCG@200"+'\t'+"NDCG@250"+'\t'+"NDCG@400"+'\t'+"NDCG@500"+'\t'+"NDCG@600"+'\t'+"NDCG@700"+'\t');
            for(int i =1; i<=70 ;i++){
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.