public abstract class ExpansionTerms extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ExpansionTerms.ExpansionTerm
This class implements a data structure
for a term in the top-retrieved documents.
|
Modifier and Type | Field and Description |
---|---|
protected static Comparator<ExpansionTerms.ExpansionTerm> |
EXPANSIONTERM_DESC_SCORE_SORTER |
protected static org.slf4j.Logger |
logger |
protected QueryExpansionModel |
model |
protected gnu.trove.TIntDoubleHashMap |
originalTermFreqs
The frequency of each query term in the original query.
|
protected gnu.trove.TIntObjectHashMap<String> |
originalTermids
The original query terms.
|
Modifier | Constructor and Description |
---|---|
protected |
ExpansionTerms() |
Modifier and Type | Method and Description |
---|---|
abstract SingleTermQuery[] |
getExpandedTerms(int numberOfExpandedTerms)
Get the most informative terms for the expanded set.
|
abstract int |
getNumberOfUniqueTerms()
Returns the number of terms being considered
|
abstract void |
insertDocument(FeedbackDocument doc)
Add a single document to be considered for expanding the query
|
void |
setModel(QueryExpansionModel m)
Set query expansion model
|
void |
setOriginalQueryTerms(MatchingQueryTerms query)
Set the original query terms.
|
protected static final org.slf4j.Logger logger
protected static final Comparator<ExpansionTerms.ExpansionTerm> EXPANSIONTERM_DESC_SCORE_SORTER
protected gnu.trove.TIntObjectHashMap<String> originalTermids
protected gnu.trove.TIntDoubleHashMap originalTermFreqs
protected QueryExpansionModel model
public void setOriginalQueryTerms(MatchingQueryTerms query)
query
- The original query.public abstract void insertDocument(FeedbackDocument doc) throws IOException
IOException
public abstract SingleTermQuery[] getExpandedTerms(int numberOfExpandedTerms)
numberOfExpandedTerms
- - number of terms to get.public void setModel(QueryExpansionModel m)
m
- public abstract int getNumberOfUniqueTerms()
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow