Package org.terrier.matching.models
Class WeightingModelFactory
- java.lang.Object
-
- org.terrier.matching.models.WeightingModelFactory
-
public class WeightingModelFactory extends java.lang.ObjectA factory method for handling the initialisation of weighting models.- Author:
- Rodrygo Santos, Craig Macdonald
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAMESPACEThe default namespace for weighting models.
-
Constructor Summary
Constructors Constructor Description WeightingModelFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidclearCache()Clear the cache underlying this WeightingModelFactorystatic WeightingModelnewInstance(java.lang.String name)Returns the requested weighting model.static WeightingModelnewInstance(java.lang.String name, Index index)Returns the requested weighting model for the specified index.
-
-
-
Field Detail
-
NAMESPACE
public static final java.lang.String NAMESPACE
The default namespace for weighting models.- See Also:
- Constant Field Values
-
-
Method Detail
-
clearCache
public static void clearCache()
Clear the cache underlying this WeightingModelFactory
-
newInstance
public static WeightingModel newInstance(java.lang.String name)
Returns the requested weighting model.- Parameters:
name- The name of the weighting model to instantiate.
-
newInstance
public static WeightingModel newInstance(java.lang.String name, Index index)
Returns the requested weighting model for the specified index.- Parameters:
name- The name of the weighting model to instantiate.index- The index where the weighting model should be applied.
-
-