Package org.apache.lucene.benchmark.quality.utils

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


      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

    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

      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

    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

      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

TOP

Related Classes of org.apache.lucene.benchmark.quality.utils.SubmissionReport

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.