Package org.terrier.querying
Class DependenceModelPreProcess
- java.lang.Object
-
- org.terrier.querying.DependenceModelPreProcess
-
- All Implemented Interfaces:
MQTRewritingProcess
,Process
public class DependenceModelPreProcess extends java.lang.Object implements MQTRewritingProcess
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONTROL_MODEL
static java.lang.String
CONTROL_MODEL_PARAM
static java.lang.String
DEPENDENCE_TAG
-
Constructor Summary
Constructors Constructor Description DependenceModelPreProcess()
DependenceModelPreProcess(java.lang.String _defaultModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
expandQuery(MatchingQueryTerms mqt, Request rq)
java.lang.String
getInfo()
Returns the name of the processor.protected void
initialise(SearchRequest q)
void
process(MatchingQueryTerms mqt, java.lang.String modelName)
void
process(Manager manager, SearchRequest q)
Run the instantiated process on the search request represented by q.protected java.util.List<MatchingQueryTerms.MatchingTerm>
SD(java.lang.String modelName, java.util.List<Operator> queryTerms)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.terrier.querying.MQTRewritingProcess
configureIndex
-
-
-
-
Field Detail
-
CONTROL_MODEL
public static final java.lang.String CONTROL_MODEL
- See Also:
- Constant Field Values
-
CONTROL_MODEL_PARAM
public static final java.lang.String CONTROL_MODEL_PARAM
- See Also:
- Constant Field Values
-
DEPENDENCE_TAG
public static final java.lang.String DEPENDENCE_TAG
- See Also:
- Constant Field Values
-
-
Method Detail
-
initialise
protected void initialise(SearchRequest q)
-
process
public void process(Manager manager, SearchRequest q)
Description copied from interface:Process
Run the instantiated process on the search request represented by q.
-
process
public void process(MatchingQueryTerms mqt, java.lang.String modelName)
-
SD
protected java.util.List<MatchingQueryTerms.MatchingTerm> SD(java.lang.String modelName, java.util.List<Operator> queryTerms)
-
expandQuery
public boolean expandQuery(MatchingQueryTerms mqt, Request rq) throws java.io.IOException
- Specified by:
expandQuery
in interfaceMQTRewritingProcess
- Throws:
java.io.IOException
-
-