// First we check if we have fixed priors or not
// If we have fixed priors, we have a TAB character
// after the name of each category, followed by the prior value
String[] l = line.split("\t");
if (l.length == 1) {
Category c = new Category(line);
categories.add(c);
} else if (l.length == 2) {
String name = l[0];
Double prior = new Double(l[1]);
Category c = new Category(name);
c.setPrior(prior);
categories.add(c);
}
}
return categories;
}