|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.labs.minion.classification.WeightedFeatureClusterer
public class WeightedFeatureClusterer
| Field Summary | |
|---|---|
protected PorterStemmer |
stemmer
|
| Constructor Summary | |
|---|---|
WeightedFeatureClusterer()
|
|
| Method Summary | |
|---|---|
void |
add(WeightedFeature[] v)
|
FeatureClusterSet |
cluster(ResultSetImpl s)
Creates a set of clusters based on all of the terms in the documents contained in the ResultSet. |
FeatureCluster |
newCluster()
A non-static factory method to create a feature cluster |
Feature |
newFeature()
A non-static factory method to create a feature of the type used by this clusterer |
FeatureClusterer |
newInstance()
A non-static factory method to create a feature clusterer |
void |
setDocCache(DocCache dc)
Sets the cache of document vectors that we can use to fetch the words in a given document. |
void |
setField(java.lang.String field)
Sets the field from which features should be drawn. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected PorterStemmer stemmer
| Constructor Detail |
|---|
public WeightedFeatureClusterer()
| Method Detail |
|---|
public FeatureClusterer newInstance()
FeatureClusterer
newInstance in interface FeatureClustererpublic FeatureCluster newCluster()
FeatureClusterer
newCluster in interface FeatureClustererpublic Feature newFeature()
FeatureClusterer
newFeature in interface FeatureClustererpublic void setField(java.lang.String field)
FeatureClusterer
setField in interface FeatureClustererfield - the name of a vectored field upon which the clustering
should be based. A value of null indicates that all vectored
fields should be considered, while an empty string indicates that data
in no explicit field should be considered.public void setDocCache(DocCache dc)
FeatureClusterer
setDocCache in interface FeatureClustererpublic void add(WeightedFeature[] v)
public FeatureClusterSet cluster(ResultSetImpl s)
FeatureClusterer
cluster in interface FeatureClusterers - the set of documents from which features are gathered
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||