|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.labs.minion.classification.WeightedFeatureSelector
public class WeightedFeatureSelector
Selects the highest weighted features.
Field Summary | |
---|---|
protected StopWords |
stopWords
Words to ignore during selection. |
Constructor Summary | |
---|---|
WeightedFeatureSelector()
|
Method Summary | |
---|---|
FeatureClusterSet |
select(FeatureClusterSet set,
WeightingComponents wc,
int numTrainingDocs,
int numFeatures,
SearchEngine engine)
Selects the features from the documents in the training set. |
void |
setHumanSelected(HumanSelected hs)
Provides a set of human selected terms that should be included or excluded from consideration during the feature selection process. |
void |
setStopWords(StopWords stopWords)
Sets a stopword list: words that should be ignored when selecting features. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected StopWords stopWords
Constructor Detail |
---|
public WeightedFeatureSelector()
Method Detail |
---|
public void setHumanSelected(HumanSelected hs)
FeatureSelector
setHumanSelected
in interface FeatureSelector
public FeatureClusterSet select(FeatureClusterSet set, WeightingComponents wc, int numTrainingDocs, int numFeatures, SearchEngine engine)
FeatureSelector
select
in interface FeatureSelector
set
- the set of feature clusters from the training set.numFeatures
- the number of features to select.
public void setStopWords(StopWords stopWords)
FeatureSelector
setStopWords
in interface FeatureSelector
stopWords
- the set of words to ignore when performing feature
selection.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |