Terrier IR Platform
2.2.1

uk.ac.gla.terrier.matching
Class LMMatching

java.lang.Object
  extended by uk.ac.gla.terrier.matching.Matching
      extended by uk.ac.gla.terrier.matching.LMMatching

public class LMMatching
extends Matching

Performs the matching of documents for language modelling with a query, by assigning scores to documents for each query in the lexicon according to the term's occurrences in the document and in the query.

Version:
$Revision: 1.29 $
Author:
Ben He

Constructor Summary
LMMatching(Index index)
          Default constructor.
 
Method Summary
 java.lang.String getInfo()
          Returns a descriptive string for the retrieval process performed.
 void match(java.lang.String queryNumber, MatchingQueryTerms queryTerms)
          Implements the matching of a query with the documents.
 void setModel(Model model)
          Sets the language model used for retrieval.
 
Methods inherited from class uk.ac.gla.terrier.matching.Matching
addDocumentScoreModifier, addTermScoreModifier, getDocumentScoreModifier, getResultSet, getTermScoreModifier
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LMMatching

public LMMatching(Index index)
Default constructor.

Parameters:
index - Index for retrieval.
Method Detail

match

public void match(java.lang.String queryNumber,
                  MatchingQueryTerms queryTerms)
Implements the matching of a query with the documents.

Overrides:
match in class Matching
Parameters:
queryNumber - the identifier of the processed query.
queryTerms - the query terms to be processed.

setModel

public void setModel(Model model)
Sets the language model used for retrieval.

Overrides:
setModel in class Matching
Parameters:
model - the language model used for retrieval

getInfo

public java.lang.String getInfo()
Returns a descriptive string for the retrieval process performed.

Overrides:
getInfo in class Matching
Returns:
String the name of the matching.

Terrier IR Platform
2.2.1

Terrier Information Retrieval Platform 2.2.1. Copyright 2004-2008 University of Glasgow