NonSmokerNamedEntityAnnotation neAnnot = new NonSmokerNamedEntityAnnotation(jcas); //modification
neAnnot.setBegin(neBegin);
neAnnot.setEnd(neEnd);
neAnnot.setDiscoveryTechnique(CONST.NE_DISCOVERY_TECH_DICT_LOOKUP);
neAnnot.setOntologyConceptArr(ocArr);
neAnnot.addToIndexes();
}
}
}