Examples of validateData()


Examples of org.apache.lucene.benchmark.quality.trec.TrecJudge.validateData()

    // prepare judge, with trec utilities that read from a QRels file
    Judge judge = new TrecJudge(new BufferedReader(new FileReader(qrelsFile)));

    // validate topics & judgments match each other
    judge.validateData(qqs, logger);

    // set the parsing of quality queries into Lucene queries.
    QualityQueryParser qqParser = new SimpleQQParser("title", "body");

    // run the benchmark
View Full Code Here

Examples of org.apache.lucene.benchmark.quality.trec.TrecJudge.validateData()

    // prepare judge, with trec utilities that read from a QRels file
    Judge judge = new TrecJudge(new BufferedReader(new FileReader(qrelsFile)));

    // validate topics & judgments match each other
    judge.validateData(qqs, logger);

    // set the parsing of quality queries into Lucene queries.
    QualityQueryParser qqParser = new SimpleQQParser("title", "body");

    // run the benchmark
View Full Code Here

Examples of org.apache.lucene.benchmark.quality.trec.TrecJudge.validateData()

    File qrelsFile = new File(srcTestDir, "trecQRels.txt");
    assertTrue("Bad qrelsFile: "+qrelsFile, qrelsFile.exists()&& qrelsFile.isFile());
    Judge judge = new TrecJudge(new BufferedReader(new FileReader(qrelsFile)));
   
    // validate topics & judgments match each other
    judge.validateData(qqs, logger);
   
    IndexSearcher searcher = new IndexSearcher(FSDirectory.open(new File(workDir,"index")));

    QualityQueryParser qqParser = new SimpleQQParser("title","body");
    QualityBenchmark qrun = new QualityBenchmark(qqs, qqParser, searcher, docNameField);
View Full Code Here

Examples of org.apache.lucene.benchmark.quality.trec.TrecJudge.validateData()

    // prepare judge
    InputStream qrels = getClass().getResourceAsStream("trecQRels.txt");
    Judge judge = new TrecJudge(new BufferedReader(new InputStreamReader(qrels, StandardCharsets.UTF_8)));
   
    // validate topics & judgments match each other
    judge.validateData(qqs, logger);
   
    Directory dir = newFSDirectory(new File(getWorkDir(),"index"));
    IndexReader reader = DirectoryReader.open(dir);
    IndexSearcher searcher = new IndexSearcher(reader);
View Full Code Here

Examples of org.apache.lucene.benchmark.quality.trec.TrecJudge.validateData()

    // prepare judge
    InputStream qrels = getClass().getResourceAsStream("trecQRels.txt");
    Judge judge = new TrecJudge(new BufferedReader(new InputStreamReader(qrels, "UTF-8")));
   
    // validate topics & judgments match each other
    judge.validateData(qqs, logger);
   
    Directory dir = newFSDirectory(new File(getWorkDir(),"index"));
    IndexReader r = IndexReader.open(dir, true);
    IndexSearcher searcher = newSearcher(r);
View Full Code Here

Examples of org.apache.lucene.benchmark.quality.trec.TrecJudge.validateData()

    // prepare judge
    InputStream qrels = getClass().getResourceAsStream("trecQRels.txt");
    Judge judge = new TrecJudge(new BufferedReader(new InputStreamReader(qrels, "UTF-8")));
   
    // validate topics & judgments match each other
    judge.validateData(qqs, logger);
   
    Directory dir = newFSDirectory(new File(getWorkDir(),"index"));
    IndexSearcher searcher = new IndexSearcher(dir, true);

    QualityQueryParser qqParser = new SimpleQQParser("title","body");
View Full Code Here

Examples of org.apache.lucene.benchmark.quality.trec.TrecJudge.validateData()

    // prepare judge, with trec utilities that read from a QRels file
    Judge judge = new TrecJudge(new BufferedReader(new FileReader(qrelsFile)));

    // validate topics & judgments match each other
    judge.validateData(qqs, logger);

    Set<String> fieldSet = new HashSet<String>();
    if (fieldSpec.indexOf('T') >= 0) fieldSet.add("title");
    if (fieldSpec.indexOf('D') >= 0) fieldSet.add("description");
    if (fieldSpec.indexOf('N') >= 0) fieldSet.add("narrative");
View Full Code Here

Examples of org.openmhealth.reference.domain.Schema.validateData()

      }
     
      // Create and add the point to the set of data.
      dataPoints
        .add(
          schema
            .validateData(
              requestingUser.getUsername(),
              metaData,
              schemaData));
    }
View Full Code Here

Examples of uk.ac.ucl.panda.applications.evaluation.trec.Judge.validateData()

           
      // prepare judge, with trec utilities that read from a QRels file
      Judge judge = new TrecJudge(FileReader.openFileReader(qrels));

      // validate topics & judgments match each other
      judge.validateData(qqs, logger);

      // set the parsing of quality queries into Lucene queries.
      QualityQueryParser qqParser = new SimpleQQParser("title", "body");

      // run the benchmark
View Full Code Here

Examples of uk.ac.ucl.panda.applications.evaluation.trec.Judge.validateData()

           
      // prepare judge, with trec utilities that read from a QRels file
      Judge judge = new TrecJudge(FileReader.openFileReader(qrels));

      // validate topics & judgments match each other
      judge.validateData(qqs, logger);

      // set the parsing of quality queries into Lucene queries.
      QualityQueryParser qqParser = new SimpleQQParser("title", "body");

      // run the benchmark
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.