|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.gla.terrier.matching.Matching
public class Matching
Performs the matching of documents with a query, by first assigning scores to documents for each query term and modifying these scores with the appropriate modifiers. Then, a series of document score modifiers are applied if necessary.
Constructor Summary | |
---|---|
Matching(Index index)
A default constructor that creates the CollectionResultSet and initialises the document and term modifier containers. |
Method Summary | |
---|---|
void |
addDocumentScoreModifier(DocumentScoreModifier documentScoreModifier)
Registers a document score modifier. |
void |
addTermScoreModifier(TermScoreModifier termScoreModifier)
Registers a term score modifier. |
DocumentScoreModifier |
getDocumentScoreModifier(int i)
Returns the i-th registered document score modifier. |
java.lang.String |
getInfo()
Returns a descriptive string for the retrieval process performed. |
ResultSet |
getResultSet()
Returns the result set. |
TermScoreModifier |
getTermScoreModifier(int i)
Returns the i-th registered term score modifier. |
void |
match(java.lang.String queryNumber,
MatchingQueryTerms queryTerms)
Implements the matching of a query with the documents. |
void |
setModel(Model model)
Sets the weihting model used for retrieval. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Matching(Index index)
index
- the object that encapsulates the basic
data structures used for retrieval.Method Detail |
---|
public ResultSet getResultSet()
public void addTermScoreModifier(TermScoreModifier termScoreModifier)
termScoreModifier
- TermScoreModifier the score modifier to be
applied.public TermScoreModifier getTermScoreModifier(int i)
public void addDocumentScoreModifier(DocumentScoreModifier documentScoreModifier)
documentScoreModifier
- DocumentScoreModifier the score modifier to be
applied.public DocumentScoreModifier getDocumentScoreModifier(int i)
public void setModel(Model model)
model
- the weighting model used for retrievalpublic java.lang.String getInfo()
public void match(java.lang.String queryNumber, MatchingQueryTerms queryTerms)
queryNumber
- the identifier of the processed query.queryTerms
- the query terms to be processed.
|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |