// Pull in general dependency-based features -- externalize to another extractor?
ConllDependencyNode node = DependencyUtility.getNominalHeadNode(jCas, arg);
if (node!= null) {
// features.add(new Feature("DEPENDENCY_HEAD", node));
features.add(new Feature("DEPENDENCY_HEAD_word", node.getCoveredText()));
// features.add(new Feature("DEPENDENCY_HEAD_pos", node.getPostag()));
features.add(new Feature("DEPENDENCY_HEAD_deprel", node.getDeprel()));
// features.add(new Feature("DEPENDENCY_HEAD_lemma", node.getLemma()));
}
HashMap<String, Boolean> featsMap = HistoryAttributeClassifier.extract(jCas, arg);
// Pull in all the features that were used for the rule-based module
features.addAll( hashToFeatureList(featsMap) );
// Pull in the result of the rule-based module as well
features.add(new Feature("HISTORY_CLASSIFIER_LOGIC", HistoryAttributeClassifier.classifyWithLogic(featsMap)));
return features;
}