return;
}
while(lookupIter.hasNext()) {
Lookup currentLookup = lookupIter.next();
FeatureMap fm = Factory.newFeatureMap();
gazStore.addLookupListFeatures(fm, currentLookup);
fm.put("_listnr",gazStore.getListInfoIndex(currentLookup));
gazStore.addLookupEntryFeatures(fm, currentLookup);
// added features for ExtendedGazetteer
fm.put("_firstcharCategory", Character.getType(chunk.getCharAt(matchedRegionStart)));
if (Character.isUpperCase(chunk.getCharAt(matchedRegionStart))) {
fm.put("_firstcharUpper", true);
} else {
fm.put("_firstcharUpper", false);
}
fm.put("_string", chunk.getTextString(matchedRegionStart, matchedRegionEnd));
// addEntryFeatures(fm,currentLookup.entryFeatures);
Integer lookupid =
addAnAnnotation(
chunk.getStartOffset(matchedRegionStart),