public class Newsgroups {
public static void main(String[] args) throws IOException {
// read in the data.
ArrayList<ClassificationInstance> allData = (new NewsgroupsReader(
new Alphabet(), new Alphabet())).readFile(args[0]);
StaticUtils.shuffle(allData, 0);
// randomly split data into training and testing part
ArrayList<ClassificationInstance>[] tmp = StaticUtils.split(allData,
(10));