if (options.containsKey("categories") && options.containsKey("features")) {
categories = Lists.newArrayList(onSpaces.split(options.get("categories")));
if (categories.size() < 2) {
throw new BadClassifierSpecException("Must have more than one target category. Remember that categories is a space separated list");
}
model = new OnlineLogisticRegression(categories.size(), Integer.parseInt(options.get("features")), new L1());
options.remove("categories");
options.remove("features");
} else {
throw new BadClassifierSpecException("Must specify previous model location using \"file\" or supply \"categories\" and \"features\"");
}