use of edu.illinois.cs.cogcomp.edison.annotators.SimpleGazetteerAnnotator in project cogcomp-nlp by CogComp.
the class CreateTestFeaturesResource method addGazetteerFeatures.
private void addGazetteerFeatures() throws Exception {
logger.info("\tadding gazetteer features");
WordFeatureExtractor fex = WordFeatureExtractorFactory.getGazetteerFeatureExtractor("gazetteer", new SimpleGazetteerAnnotator());
for (TextAnnotation ta : tas) {
addFeatures(ta, fex);
}
}
Aggregations