|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.labs.minion.classification.ContingencyFeatureClusterer com.sun.labs.minion.classification.KnowledgeSourceClusterer
public class KnowledgeSourceClusterer
Provides an implementation of a feature clusterer built around a knowledge source. Variants of the same word will be grouped together into clusters. (Adapted from LiteMorphClusterer.)
Field Summary | |
---|---|
protected java.util.Map<java.lang.String,FeatureCluster> |
clusterMap
A map to hold the clusters keyed on roots |
Fields inherited from class com.sun.labs.minion.classification.ContingencyFeatureClusterer |
---|
clusters, field, logTag, type |
Constructor Summary | |
---|---|
KnowledgeSourceClusterer()
Default constructor |
|
KnowledgeSourceClusterer(int type)
Create a new instance of me |
Method Summary | |
---|---|
protected void |
addFeature(ContingencyFeature feat)
Adds a feature to this feature clusterer. |
FeatureClusterSet |
cluster(ResultSetImpl s)
Creates a set of clusters based on all of the terms in the documents contained in the ResultSet. |
protected FeatureClusterSet |
getClusters()
Returns a set of feature clusters. |
FeatureClusterer |
newInstance()
A non-static factory method to create a feature clusterer |
Methods inherited from class com.sun.labs.minion.classification.ContingencyFeatureClusterer |
---|
collectFeatures, newCluster, newFeature, setDocCache, setField |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Map<java.lang.String,FeatureCluster> clusterMap
Constructor Detail |
---|
public KnowledgeSourceClusterer(int type)
type
- public KnowledgeSourceClusterer()
Method Detail |
---|
public FeatureClusterSet cluster(ResultSetImpl s)
ContingencyFeatureClusterer
cluster
in interface FeatureClusterer
cluster
in class ContingencyFeatureClusterer
s
- the set of documents from which features are gathered
public FeatureClusterer newInstance()
FeatureClusterer
newInstance
in interface FeatureClusterer
newInstance
in class ContingencyFeatureClusterer
protected FeatureClusterSet getClusters()
ContingencyFeatureClusterer
getClusters
in class ContingencyFeatureClusterer
protected void addFeature(ContingencyFeature feat)
ContingencyFeatureClusterer
addFeature
in class ContingencyFeatureClusterer
feat
- the feature to add
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |