|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICorpus
corpus interface. a corpus consists of several sentences
Method Summary | |
---|---|
void |
clear()
clear the corpus |
int |
getIndexInSentence(int p_Index)
get the index of an instance in sentence |
int |
getLength(int p_Index)
get number of words of instance p_Index |
int |
getLowerBoundary(int p_SentenceID)
get lower boundary |
ISentence |
getSentence(int p_SentenceID)
get the sentence |
int |
getSentenceID(int p_Index)
get the id of sentence which contains the instance |
java.lang.String[] |
getTag(int p_Index)
get the class of an instance |
int |
getUpperBoundary(int p_SentenceID)
get upper boundary |
java.lang.String |
getValue(int p_Index,
java.lang.String p_Key)
get special value of key of instance index |
boolean |
load(java.io.Reader p_XmlReader)
load data into corpus |
int |
numOfSentences()
get the number of sentences |
int |
size()
get the number of instances |
Method Detail |
---|
void clear()
int size()
int numOfSentences()
java.lang.String getValue(int p_Index, java.lang.String p_Key)
p_Index
- instance indexp_Key
- value key
int getIndexInSentence(int p_Index)
p_Index
- instance index
int getLength(int p_Index)
p_Index
- instance index
int getSentenceID(int p_Index)
p_Index
- instance index
java.lang.String[] getTag(int p_Index)
p_Index
- instance index
ISentence getSentence(int p_SentenceID)
p_SentenceID
- sentence number
int getUpperBoundary(int p_SentenceID)
p_SentenceID
- sentence number
int getLowerBoundary(int p_SentenceID)
p_SentenceID
- sentence number
boolean load(java.io.Reader p_XmlReader) throws java.lang.Exception
p_XmlReader
- reader of the input stream
java.lang.Exception
- exception while loading file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |