|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISplitCorpus
ISplitCorpus allows a corpus to resize and split a cross validation data set.
Method Summary | |
---|---|
int[][] |
getOrigDocIds()
get the original ids of documents |
ICorpus |
getTestCorpus()
called after split() |
ICorpus |
getTrainCorpus()
called after split() |
void |
split(int order,
int split,
java.util.Random rand)
splits two child corpora of size 1/nsplit off the original corpus, which itself is left unchanged (except storing the splits). |
Method Detail |
---|
void split(int order, int split, java.util.Random rand)
order
- number of partitionssplit
- 0-based split of corpus returnedrand
- random source (null for reusing existing splits)ICorpus getTrainCorpus()
ICorpus getTestCorpus()
int[][] getOrigDocIds()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |