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