|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsg.edu.nus.comp.nlp.ims.feature.CMixedFeatureExtractor
public class CMixedFeatureExtractor
Mixed feature extractor.
Field Summary | |
---|---|
protected ICorpus |
m_Corpus
|
protected IFeature |
m_CurrentFeature
|
protected java.util.ArrayList<IFeatureExtractor> |
m_FeatureExtractors
|
protected int |
m_Index
|
protected int |
m_InstanceIndex
|
Constructor Summary | |
---|---|
CMixedFeatureExtractor()
constructor |
|
CMixedFeatureExtractor(java.util.ArrayList<IFeatureExtractor> p_FeatureExtractors)
constructor |
Method Summary | |
---|---|
java.lang.String |
getCurrentInstanceID()
get the ID of current instance to be extracted |
boolean |
hasNext()
whether has at least one more feature |
IFeature |
next()
get the next feature |
boolean |
restart()
restart the iterator |
boolean |
setCorpus(ICorpus p_Corpus)
set corpus to be extracted |
boolean |
setCurrentInstance(int p_InstanceIndex)
set the index of instance which to be extracted from corpus |
protected boolean |
validIndex(int p_Index)
check the validity of index |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.ArrayList<IFeatureExtractor> m_FeatureExtractors
protected int m_Index
protected int m_InstanceIndex
protected ICorpus m_Corpus
protected IFeature m_CurrentFeature
Constructor Detail |
---|
public CMixedFeatureExtractor()
public CMixedFeatureExtractor(java.util.ArrayList<IFeatureExtractor> p_FeatureExtractors)
p_FeatureExtractors
- feature extractor listMethod Detail |
---|
protected boolean validIndex(int p_Index)
p_Index
- index
public java.lang.String getCurrentInstanceID()
IFeatureExtractor
getCurrentInstanceID
in interface IFeatureExtractor
public boolean hasNext()
IFeatureExtractor
hasNext
in interface IFeatureExtractor
public IFeature next()
IFeatureExtractor
next
in interface IFeatureExtractor
public boolean restart()
IFeatureExtractor
restart
in interface IFeatureExtractor
public boolean setCorpus(ICorpus p_Corpus)
IFeatureExtractor
setCorpus
in interface IFeatureExtractor
p_Corpus
- corpus to be extracted
public boolean setCurrentInstance(int p_InstanceIndex)
IFeatureExtractor
setCurrentInstance
in interface IFeatureExtractor
p_InstanceIndex
- instance index
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |