Package uk.ac.ucl.panda.retrieval.query

Examples of uk.ac.ucl.panda.retrieval.query.QualityQuery


        fields.put("title",title);
        fields.put("description",descripion);
        //////////////
//        fields.put("", );
        ////////////////
        QualityQuery topic = new QualityQuery(id,fields);
        //if (ht.contains (id))
        res.add(topic);
        // skip narrative, get to end of doc
        read(reader,"</TOP>",null,false,false);
      }
    } finally {
      reader.close();
    }
    // sort result array (by ID)
    QualityQuery qq[] = (QualityQuery[]) res.toArray(new QualityQuery[0]);
    Arrays.sort(qq);
    return qq;
  }
View Full Code Here


    // /////////
    // System.out.println("Number of queries "+nQueries);
    // ///////////

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

    // /////////
    // System.out.println("Number of queries "+nQueries);
    // ///////////

    for (int i = 0; i < nQueries; i++) {
      QualityQuery qq = qualityQueries[i];
      // generate query
      Query q = qqParser.parse(qq);

      // search with this query
      long t1 = System.currentTimeMillis();
View Full Code Here

    // /////////
    // System.out.println("Number of queries "+nQueries);
    // ///////////

    for (int i = 0; i < nQueries; i++) {
      QualityQuery qq = qualityQueries[i];
      // generate query
      Query q = qqParser.parse(qq);
      // search with this query
      long t1 = System.currentTimeMillis();
      TopDocsMeanVariance td = searcher.search_var(q, null, maxResults,
View Full Code Here

             FileOutputStream results =new FileOutputStream(new File(var+fileseparator+"results"));
            PrintWriter scorelogger = new PrintWriter(results,true);
      // use trec utilities to read trec topics into quality queries
      TrecTopicsReader qReader = new TrecTopicsReader();
      QualityQuery qqs[] = qReader.readQueries(FileReader.openFileReader(topics));
            ////////////
      //       System.out.println("Number of queries: "+qqs.length);
            ///////////
           
      // prepare judge, with trec utilities that read from a QRels file
View Full Code Here

             FileOutputStream results =new FileOutputStream(new File(var+fileseparator+"results"));
            PrintWriter scorelogger = new PrintWriter(results,true);
      // use trec utilities to read trec topics into quality queries
      TrecTopicsReader qReader = new TrecTopicsReader();
      QualityQuery qqs[] = qReader.readQueries(FileReader.openFileReader(topics));

            ////////////
      //       System.out.println("Number of queries: "+qqs.length);
            ///////////
           
View Full Code Here

             FileOutputStream results =new FileOutputStream(new File(var+fileseparator+"results"));
            PrintWriter scorelogger = new PrintWriter(results,true);
      // use trec utilities to read trec topics into quality queries
      TrecTopicsReader qReader = new TrecTopicsReader();
      QualityQuery qqs[] = qReader.readQueries(FileReader.openFileReader(topics));

            ////////////
      //       System.out.println("Number of queries: "+qqs.length);
            ///////////
View Full Code Here

             FileOutputStream results =new FileOutputStream(new File(var+fileseparator+"result-plot"));
            PrintWriter scorelogger = new PrintWriter(results,true);
      // use trec utilities to read trec topics into quality queries
      TrecTopicsReader qReader = new TrecTopicsReader();
      QualityQuery qqs[] = qReader.readQueries(FileReader.openFileReader(topics));

            ////////////
      //       System.out.println("Number of queries: "+qqs.length);
            ///////////
View Full Code Here

TOP

Related Classes of uk.ac.ucl.panda.retrieval.query.QualityQuery

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.