public class Splitter extends Object
Modifier and Type | Field and Description |
---|---|
String |
ALLFILELOC |
String |
DEVLOC |
String |
TESTLOC |
String |
TRAINLOC |
Constructor and Description |
---|
Splitter(double trainProportion,
double devProportion)
Specify percentages of the split.
|
Splitter(int trainSize,
int devSize,
int testSize)
Specify the size of each set.
|
Modifier and Type | Method and Description |
---|---|
void |
createDirectories() |
static void |
main(String[] args) |
void |
split() |
public final String ALLFILELOC
public final String TRAINLOC
public final String DEVLOC
public final String TESTLOC
public Splitter(double trainProportion, double devProportion)
public Splitter(int trainSize, int devSize, int testSize)
public void createDirectories() throws IOException
IOException
public void split() throws IOException
IOException
public static void main(String[] args) throws IOException
IOException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.