sg.edu.nus.comp.nlp.ims.lexelt
Class AListFeatureSelector

java.lang.Object
  extended by sg.edu.nus.comp.nlp.ims.lexelt.AListFeatureSelector
All Implemented Interfaces:
IFeatureSelector
Direct Known Subclasses:
CCollocationFeatureSelector, CPOSFeatureSelector

public abstract class AListFeatureSelector
extends java.lang.Object
implements IFeatureSelector

abstract list feature selector

Author:
zhongzhi

Nested Class Summary
 
Nested classes/interfaces inherited from interface sg.edu.nus.comp.nlp.ims.lexelt.IFeatureSelector
IFeatureSelector.Type
 
Field Summary
protected  java.util.ArrayList<IFeatureSelector.Type> m_FeatureFilterInfo
           
protected  java.lang.String m_FeatureName
           
protected  java.util.ArrayList<java.util.Hashtable<java.lang.String,java.lang.Boolean>> m_FeatureValueFilterInfo
           
protected  int m_M2
           
protected  boolean m_Status
           
 
Constructor Summary
AListFeatureSelector()
           
 
Method Summary
 void filter(IStatistic p_Stat)
          filter statistic
 IFeatureSelector.Type isFiltered(int p_FeatureIndex)
          check whether p_FeatureIndex is filtered
 IFeatureSelector.Type isFiltered(int p_FeatureIndex, java.lang.String p_Value)
          check whether p_FeatureIndex's p_Value is filtered
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_M2

protected int m_M2

m_Status

protected boolean m_Status

m_FeatureFilterInfo

protected java.util.ArrayList<IFeatureSelector.Type> m_FeatureFilterInfo

m_FeatureValueFilterInfo

protected java.util.ArrayList<java.util.Hashtable<java.lang.String,java.lang.Boolean>> m_FeatureValueFilterInfo

m_FeatureName

protected java.lang.String m_FeatureName
Constructor Detail

AListFeatureSelector

public AListFeatureSelector()
Method Detail

filter

public void filter(IStatistic p_Stat)
Description copied from interface: IFeatureSelector
filter statistic

Specified by:
filter in interface IFeatureSelector
Parameters:
p_Stat - input statistic

isFiltered

public IFeatureSelector.Type isFiltered(int p_FeatureIndex)
Description copied from interface: IFeatureSelector
check whether p_FeatureIndex is filtered

Specified by:
isFiltered in interface IFeatureSelector
Parameters:
p_FeatureIndex - feature index
Returns:
filter type

isFiltered

public IFeatureSelector.Type isFiltered(int p_FeatureIndex,
                                        java.lang.String p_Value)
Description copied from interface: IFeatureSelector
check whether p_FeatureIndex's p_Value is filtered

Specified by:
isFiltered in interface IFeatureSelector
Parameters:
p_FeatureIndex - feature index
p_Value - feature value
Returns:
filter type