|
||||||||||
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.CCollocationExtractor
public class CCollocationExtractor
collocation extractor.
Field Summary | |
---|---|
protected static int |
g_TIDX
|
protected java.util.ArrayList<java.lang.Integer> |
m_Begins
|
protected int |
m_CollocationIndex
|
protected ICorpus |
m_Corpus
|
protected IFeature |
m_CurrentFeature
|
protected java.util.ArrayList<java.lang.Integer> |
m_Ends
|
protected int |
m_Index
|
protected int |
m_IndexInSentence
|
protected int |
m_InstanceLength
|
protected ISentence |
m_Sentence
|
Constructor Summary | |
---|---|
CCollocationExtractor()
default constructor |
|
CCollocationExtractor(java.util.ArrayList<java.lang.Integer> p_Begins,
java.util.ArrayList<java.lang.Integer> p_Ends)
constructor |
Method Summary | |
---|---|
protected java.lang.String |
formCollocationName(int p_Begin,
int p_End)
form collocation name |
protected java.lang.String |
getCollocation(int p_Begin,
int p_End)
get collocation |
java.lang.String |
getCurrentInstanceID()
get the ID of current instance to be extracted |
protected IFeature |
getNext()
get the next feature of current instance |
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_Index)
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<java.lang.Integer> m_Begins
protected java.util.ArrayList<java.lang.Integer> m_Ends
protected ICorpus m_Corpus
protected IFeature m_CurrentFeature
protected int m_CollocationIndex
protected int m_Index
protected ISentence m_Sentence
protected int m_IndexInSentence
protected int m_InstanceLength
protected static int g_TIDX
Constructor Detail |
---|
public CCollocationExtractor()
public CCollocationExtractor(java.util.ArrayList<java.lang.Integer> p_Begins, java.util.ArrayList<java.lang.Integer> p_Ends)
p_Begins
- collocation beginsp_Ends
- collocation endsMethod 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
protected java.lang.String formCollocationName(int p_Begin, int p_End)
p_Begin
- collocation beginning indexp_End
- collocation ending index
protected java.lang.String getCollocation(int p_Begin, int p_End)
p_Begin
- collocation beginning indexp_End
- collocation ending index
protected IFeature getNext()
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_Index)
IFeatureExtractor
setCurrentInstance
in interface IFeatureExtractor
p_Index
- instance index
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |