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.StringCONTROL_MODELstatic java.lang.StringCONTROL_MODEL_PARAMstatic java.lang.StringDEPENDENCE_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 booleanexpandQuery(MatchingQueryTerms mqt, Request rq)java.lang.StringgetInfo()Returns the name of the processor.protected voidinitialise(SearchRequest q)voidprocess(MatchingQueryTerms mqt, java.lang.String modelName)voidprocess(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:ProcessRun 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:
expandQueryin interfaceMQTRewritingProcess- Throws:
java.io.IOException
-
-