if (dict || all) {
System.err.println("Building dictionary");
ObjectStream<Parse> data = new ParseSampleStream(new PlainTextByLineStream(new FileReader(inFile)));
Dictionary mdict = buildDictionary(data, rules, cutoff);
System.out.println("Saving the dictionary");
mdict.serialize(new FileOutputStream(dictFile));
}
if (tag || all) {
System.err.println("Training tagger");
ObjectStream<POSSample> tes = new PosSampleStream(new ParseSampleStream(new PlainTextByLineStream(new java.io.FileReader(inFile))));