|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--dragon.ir.clustering.featurefilter.AbstractFeatureFilter
Title:
Description:
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Field Summary | |
protected int[] |
featureMap
|
protected int |
selectedFeatureNum
|
| Constructor Summary | |
AbstractFeatureFilter()
|
|
| Method Summary | |
int |
getSelectedFeatureNum()
|
protected abstract int[] |
getSelectedFeatures(IndexReader indexReader,
IRDoc[] docSet)
|
void |
initialize(IndexReader indexReader,
IRDoc[] docSet)
This method chooses a subset of features for text clustering |
boolean |
isSelected(int originalFeatureIndex)
|
int |
map(int originalFeatureIndex)
Map the old feature index to the index in the new feature space. |
protected void |
setSelectedFeatures(int[] selectedFeatures)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int[] featureMap
protected int selectedFeatureNum
| Constructor Detail |
public AbstractFeatureFilter()
| Method Detail |
protected abstract int[] getSelectedFeatures(IndexReader indexReader,
IRDoc[] docSet)
public void initialize(IndexReader indexReader,
IRDoc[] docSet)
FeatureFilter
initialize in interface FeatureFilterindexReader - the index reader for a collectiondocSet - the document set for clusteringprotected void setSelectedFeatures(int[] selectedFeatures)
public boolean isSelected(int originalFeatureIndex)
isSelected in interface FeatureFilteroriginalFeatureIndex - the index of the feature in the old feature space
public int map(int originalFeatureIndex)
FeatureFilter
map in interface FeatureFilteroriginalFeatureIndex - the index of the feature before feature selection
public int getSelectedFeatureNum()
getSelectedFeatureNum in interface FeatureFilter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||