Package org.terrier.matching

Examples of org.terrier.matching.ResultSet


  /**
   * {@inheritDoc}
   */
  public FeedbackDocument[] getFeedbackDocuments(Request request)
  {
    final ResultSet rs = request.getResultSet();
    if (rs.getResultSize() == 0)
      return null;

    final int[] docIDs = rs.getDocids();
    final double[] scores = rs.getScores();

    // if the number of retrieved documents is lower than the parameter
        // EXPANSION_DOCUMENTS, reduce the number of documents for expansion
        // to the number of retrieved documents.
    final int effDocuments = Math.min(docIDs.length, ApplicationSetup.EXPANSION_DOCUMENTS);
View Full Code Here


   * @param pw PrintWriter the file to write the results to.
   * @param q SearchRequest the search request to get results from.
   */
        ResultSet set;
  public void printResults(PrintWriter pw, SearchRequest q) throws IOException {
    ResultSet newSet = q.getResultSet();
                set=newSet.getResultSet(0,7);
                globalSet=set;
            //    System.out.println("printing of sim1 records start" );
              //  System.out.println(" Set is : "+set);
               // System.out.println("global set is : "+globalSet);
                int[] docids = set.getDocids();
View Full Code Here

TOP

Related Classes of org.terrier.matching.ResultSet

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.