|
Terrier IR Platform 1.1.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.gla.terrier.querying.QueryExpansion
public class QueryExpansion
Implements automatic query expansion as PostFilter that is applied to the resultset after 1st-time matching. Controls
| Field Summary | |
|---|---|
static java.lang.String |
NAMESPACE_QEMODEL
The default namespace of query expansion model classes. |
| Constructor Summary | |
|---|---|
QueryExpansion()
The default constructor of QueryExpansion. |
|
| Method Summary | |
|---|---|
void |
expandQuery(MatchingQueryTerms query,
ResultSet resultSet)
This method implements the functionality of expanding a query. |
java.lang.String |
getInfo()
Returns the name of the used query expansion model. |
QueryExpansionModel |
getQueryExpansionModel(java.lang.String Name)
Obtain the query expansion model for QE to use. |
void |
process(Manager manager,
SearchRequest q)
Runs the actual query expansion |
void |
setQueryExpansionModel(QueryExpansionModel QEModel)
Set the used query expansion model. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NAMESPACE_QEMODEL
| Constructor Detail |
|---|
public QueryExpansion()
| Method Detail |
|---|
public void setQueryExpansionModel(QueryExpansionModel QEModel)
QEModel - QueryExpansionModel The query expansion model to be used.
public void expandQuery(MatchingQueryTerms query,
ResultSet resultSet)
query - MatchingQueryTerms the query terms of
the original query.resultSet - CollectionResultSet the set of retrieved
documents from the first pass retrieval.
public void process(Manager manager,
SearchRequest q)
process in interface PostProcessmanager - The manager instance handling this search session.q - the current query being processedPostProcess.process(uk.ac.gla.terrier.querying.Manager,uk.ac.gla.terrier.querying.SearchRequest)public QueryExpansionModel getQueryExpansionModel(java.lang.String Name)
Name - the naem of the query expansion model to load.public java.lang.String getInfo()
getInfo in interface PostProcess
|
Terrier IR Platform 1.1.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||