|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cvut.felk.newsgroup.preprocess.Main
public class Main
Field Summary | |
---|---|
(package private) static String |
testArff
Default path to the newsgroup training dataset |
(package private) static String |
testPath
Default path to the newsgroup training dataset |
(package private) static String |
trainArff
Default path to the newsgroup training dataset |
(package private) static String |
trainPath
Default path to the newsgroup training dataset |
Constructor Summary | |
---|---|
Main()
|
Method Summary | |
---|---|
private static String |
getArffHeader(Model model)
Produces a header for an ARFF file. |
private static void |
initFromCommandLine(String[] args)
Parse command-line parameters. |
static void |
main(String[] args)
Runs the whole programme |
private static Map<File,String> |
readInputDataset(File root)
Finds all examples in a dataset + their target class |
private static void |
writeOutputDataset(Map<File,String> data,
Model model,
String outputFileName)
Writes the while dataset into an ARFF file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static String trainPath
static String testPath
static String trainArff
static String testArff
Constructor Detail |
---|
public Main()
Method Detail |
---|
public static void main(String[] args)
args
- the command line argumentsprivate static void writeOutputDataset(Map<File,String> data, Model model, String outputFileName)
data
- model
- outputFileName
- private static Map<File,String> readInputDataset(File root) throws IOException
root
- the path to the dataset
IOException
- the root does not existprivate static void initFromCommandLine(String[] args)
args
- array of command-line parametersprivate static String getArffHeader(Model model)
model
- the model containing column definitions
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |