void splitTrees(String[] args)
{
CTReader reader = new CTReader(UTInput.createBufferedFileReader(args[0]));
PrintStream[] fout = new PrintStream[4];
CTTree tree;
int i, j;
fout[0] = UTOutput.createPrintBufferedFileStream(args[0]+".trn.parse");
fout[1] = UTOutput.createPrintBufferedFileStream(args[0]+".trn.raw");
fout[2] = UTOutput.createPrintBufferedFileStream(args[0]+".tst.parse");
fout[3] = UTOutput.createPrintBufferedFileStream(args[0]+".tst.raw");
for (i=0; (tree = reader.nextTree()) != null; i++)
{
j = (i%6 == 0) ? 2 : 0;
fout[j] .println(tree.toString()+"\n");
fout[j+1].println(tree.toForms());
}
for (PrintStream f : fout) f.close();
}