List of usage examples for weka.datagenerators DataGenerator makeData
public static void makeData(DataGenerator generator, String[] options) throws Exception
From source file:NLP.GenerateFile.java
License:Open Source License
/** * Generates the data. First parameter the ARFF file to write to. If omitted, * the data is written to stdout.//w w w . j a v a 2s . c o m * * @param args the command-line parameters */ public static void main(String[] args) throws Exception { PrintWriter output; if (args.length == 0) output = new PrintWriter(System.out); else output = new PrintWriter(new BufferedWriter(new FileWriter(args[0]))); RDG1 generator = new RDG1(); generator.setMaxRuleSize(5); generator.setOutput(output); DataGenerator.makeData(generator, generator.getOptions()); output.flush(); output.close(); }