if (options instanceof TrainOptionsImpl) {
TrainOptionsImpl trainOpts = (TrainOptionsImpl) options;
//Read the emoticons
List<String> termList = loadTermList(trainOpts.emoticonFile);
//return new FeatureGenerationImpl(termList);
return new BigramFeatureGenerationImpl(termList);
} else {
throw new IllegalArgumentException("Options not for Training");
}
}