com.sun.labs.minion.clustering
Class ClustererFactory
java.lang.Object
com.sun.labs.minion.clustering.ClustererFactory
- All Implemented Interfaces:
- com.sun.labs.util.props.Component, com.sun.labs.util.props.Configurable
public class ClustererFactory
- extends java.lang.Object
- implements com.sun.labs.util.props.Configurable
A factory for results clusterers.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
protected java.lang.String name
logTag
public static final java.lang.String logTag
- See Also:
- Constant Field Values
PROP_FEATURE_SELECTOR_CLASS_NAME
@ConfigString(defaultValue="com.sun.labs.minion.classification.MIFeatureSelector")
public static final java.lang.String PROP_FEATURE_SELECTOR_CLASS_NAME
- See Also:
- Constant Field Values
PROP_FEATURE_CLUSTERER_CLASS_NAME
@ConfigString(defaultValue="com.sun.labs.minion.classification.StemmingClusterer")
public static final java.lang.String PROP_FEATURE_CLUSTERER_CLASS_NAME
- See Also:
- Constant Field Values
PROP_NUM_FEATURES
@ConfigInteger(defaultValue=800)
public static final java.lang.String PROP_NUM_FEATURES
- See Also:
- Constant Field Values
PROP_RESULTS_CLUSTERER_CLASS_NAME
@ConfigString(defaultValue="com.sun.labs.minion.clustering.KMeans")
public static final java.lang.String PROP_RESULTS_CLUSTERER_CLASS_NAME
- See Also:
- Constant Field Values
CLUSTERER_FACTORY_CONFIG_NAME
public static final java.lang.String CLUSTERER_FACTORY_CONFIG_NAME
- See Also:
- Constant Field Values
PROP_STOP_WORDS
@ConfigComponent(type=StopWords.class)
public static final java.lang.String PROP_STOP_WORDS
- See Also:
- Constant Field Values
ClustererFactory
public ClustererFactory()
- Creates a ClustererFactory
getResultsClusterer
public AbstractClusterer getResultsClusterer()
getResultsClusterer
public AbstractClusterer getResultsClusterer(java.lang.Class<AbstractClusterer> clustererClass)
getResultsClusterer
public AbstractClusterer getResultsClusterer(java.lang.Class<AbstractClusterer> clustererClass,
int nFeatures)
getFeatureSelector
public FeatureSelector getFeatureSelector()
getFeatureClusterer
public FeatureClusterer getFeatureClusterer()
newProperties
public void newProperties(com.sun.labs.util.props.PropertySheet ps)
throws com.sun.labs.util.props.PropertyException
- Specified by:
newProperties
in interface com.sun.labs.util.props.Configurable
- Throws:
com.sun.labs.util.props.PropertyException
getName
public java.lang.String getName()
getNumFeatures
public int getNumFeatures()
setNumFeatures
public void setNumFeatures(int numFeatures)