org.terrier.matching.models
Class WeightingModelFactory

java.lang.Object
  extended by org.terrier.matching.models.WeightingModelFactory

public class WeightingModelFactory
extends java.lang.Object

A factory method for handling the initialisation of weighting models.

Author:
Rodrygo Santos, Craig Macdonald

Field Summary
static java.lang.String NAMESPACE
          The default namespace for weighting models.
 
Constructor Summary
WeightingModelFactory()
           
 
Method Summary
static WeightingModel newInstance(java.lang.String name)
          Returns the requested weighting model.
static WeightingModel newInstance(java.lang.String name, Index index)
          Returns the requested weighting model for the specified index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMESPACE

public static final java.lang.String NAMESPACE
The default namespace for weighting models.

See Also:
Constant Field Values
Constructor Detail

WeightingModelFactory

public WeightingModelFactory()
Method Detail

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.


Terrier 3.5. Copyright © 2004-2011 University of Glasgow