Iterator<?> neItr= jcas.getJFSIndexRepository().getAnnotationIndex(
SmokerNamedEntityAnnotation.type).iterator();
while (neItr.hasNext())
{
SmokerNamedEntityAnnotation neAnn = (SmokerNamedEntityAnnotation) neItr.next();
int certainty = neAnn.getPolarity();
//TODO: need to re-define this in TypeSystemConst.java and re-release core
// if (certainty == TypeSystemConst.NE_CERTAINTY_NEGATED)
if (certainty == -1)
negCnt++;
iv_logger.info("***SmokerNameEntity***" + neAnn.getCoveredText() + " " + negCnt);
}
return negCnt;
}