Package org.terrier.matching

Examples of org.terrier.matching.PostingListManager$PostingListManagerPlugin


      if (phraseQTWfnid < 1 || phraseQTWfnid > 4) {
        System.err
        .println("ERROR: Wrong function id specified for ProximityScoreModifierTREC2009");
      }
 
      PostingListManager plm = new PostingListManager(index, index.getCollectionStatistics(), terms);
      plm.prepare(false);
      phraseTerms = new String[plm.getNumTerms()];
      EntryStatistics[] es = new EntryStatistics[plm.getNumTerms()];
      IterablePosting[] ips = new IterablePosting[plm.getNumTerms()];
     
      for (int i = 0; i < plm.getNumTerms(); i++) {
        phraseTerms[i] = plm.getTerm(i);
        es[i] = plm.getStatistics(i);
        ips[i] = plm.getPosting(i);
      }
     
      final int phraseLength = phraseTerms.length;
      if (phraseLength == 1)
        return false;
View Full Code Here


  public ResultSet match(String queryNumber, MatchingQueryTerms queryTerms) throws IOException
  {
    final long starttime = System.currentTimeMillis();
    initialise(queryTerms);
   
    plm = new PostingListManager(index, super.collectionStatistics, queryTerms);
    if (MATCH_EMPTY_QUERY && plm.size() == 0)
    {
      // Check whether we need to match an empty query. If so, then return the existing result set.
      resultSet = new CollectionResultSet(collectionStatistics.getNumberOfDocuments());
      resultSet.setExactResultSize(collectionStatistics.getNumberOfDocuments());
View Full Code Here

  @Override
  public ResultSet match(String queryNumber, MatchingQueryTerms queryTerms) throws IOException
  {
    // The first step is to initialise the arrays of scores and document ids.
    initialise(queryTerms);
    plm = new PostingListManager(index, super.collectionStatistics, queryTerms);
    plm.prepare(true);
   
    // Check whether we need to match an empty query. If so, then return the existing result set.
    String[] queryTermStrings = queryTerms.getTerms();
    if (MATCH_EMPTY_QUERY && queryTermStrings.length == 0) {
View Full Code Here

TOP

Related Classes of org.terrier.matching.PostingListManager$PostingListManagerPlugin

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.