|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.labs.minion.classification.ContingencyFeatureClusterer
com.sun.labs.minion.classification.MorphClusterer
public class MorphClusterer
Provides an implementation of a feature clusterer built around the full morphology engine. Words with the same root will be grouped together into clusters.
| 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 | |
|---|---|
MorphClusterer()
Default constructor |
|
MorphClusterer(int type)
Create a new instance of me |
|
| Method Summary | |
|---|---|
protected void |
addFeature(ContingencyFeature cf)
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 MorphClusterer(int type)
type - public MorphClusterer()
| Method Detail |
|---|
public FeatureClusterSet cluster(ResultSetImpl s)
ContingencyFeatureClusterer
cluster in interface FeatureClusterercluster in class ContingencyFeatureClusterers - the set of documents from which features are gathered
protected void addFeature(ContingencyFeature cf)
ContingencyFeatureClusterer
addFeature in class ContingencyFeatureClusterercf - the feature to addpublic FeatureClusterer newInstance()
FeatureClusterer
newInstance in interface FeatureClusterernewInstance in class ContingencyFeatureClustererprotected FeatureClusterSet getClusters()
ContingencyFeatureClusterer
getClusters in class ContingencyFeatureClusterer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||