org.terrier.matching.taat
Class FullNoPLM

java.lang.Object
  extended by org.terrier.matching.BaseMatching
      extended by org.terrier.matching.taat.FullNoPLM
All Implemented Interfaces:
Matching

public class FullNoPLM
extends BaseMatching

An exhaustive term-at-a-time approach for matching documents to a query. Posting lists for terms are processed in a sequential manner, i.e. the postings for a given query terms are scored before scoring commences on the next term in the query. In this class, all postings for all query terms are scored. After matching, the document score modifiers are applied if necessary.

The nature of scoring by taat.Full means that it can consume large amounts of memory for scoring large indices. If this is a problem or concern, use daat.Full instead.

Since:
3.0
Author:
Nicola Tonellotto, Craig Macdonald
See Also:
Full, Matching

Field Summary
 
Fields inherited from class org.terrier.matching.BaseMatching
collectionStatistics, documentModifiers, dsmNamespace, IGNORE_LOW_IDF_TERMS, index, invertedIndex, lexicon, logger, MATCH_EMPTY_QUERY, numberOfRetrievedDocuments, queryTermsToMatchList, resultSet, RETRIEVED_SET_SIZE, totalTime, wm
 
Constructor Summary
FullNoPLM(Index index)
          Create a new Matching instance based on the specified index
 
Method Summary
protected  void assignScores(int i, WeightingModel[] wModels, AccumulatorResultSet rs, IterablePosting postings)
           
 java.lang.String getInfo()
          Return a human readable description of this Matching class
 ResultSet match(java.lang.String queryNumber, MatchingQueryTerms queryTerms)
          Get a ResultSet for the given query terms.
 
Methods inherited from class org.terrier.matching.BaseMatching
finalise, getTotalTime, initialise, initialisePostings, setCollectionStatistics, updateEndTime, updateStartTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FullNoPLM

public FullNoPLM(Index index)
Create a new Matching instance based on the specified index

Method Detail

getInfo

public java.lang.String getInfo()
Return a human readable description of this Matching class

Specified by:
getInfo in interface Matching
Specified by:
getInfo in class BaseMatching

match

public ResultSet match(java.lang.String queryNumber,
                       MatchingQueryTerms queryTerms)
                throws java.io.IOException
Get a ResultSet for the given query terms.

Specified by:
match in interface Matching
Specified by:
match in class BaseMatching
Parameters:
queryNumber - - some ID of the query
queryTerms - - query terms to match
Returns:
ResultSet - the matched results
Throws:
java.io.IOException - if a problem occurs during matching

assignScores

protected void assignScores(int i,
                            WeightingModel[] wModels,
                            AccumulatorResultSet rs,
                            IterablePosting postings)
                     throws java.io.IOException
Throws:
java.io.IOException


Terrier 3.5. Copyright © 2004-2011 University of Glasgow