Package org.apache.ctakes.smokingstatus.type

Examples of org.apache.ctakes.smokingstatus.type.NonSmokerNamedEntityAnnotation


    Iterator<?> neItr= jcas.getJFSIndexRepository().getAnnotationIndex(
        NonSmokerNamedEntityAnnotation.type).iterator();

    while (neItr.hasNext())
    {
      NonSmokerNamedEntityAnnotation neAnn = (NonSmokerNamedEntityAnnotation) neItr.next();
      nonSmokerCnt++;
      iv_logger.info("***NonSmokerNameEntity***" + neAnn.getCoveredText() + " " + nonSmokerCnt + " " + neAnn.getPolarity());
    }

    return nonSmokerCnt;
  }
View Full Code Here


        ocArr.set(ocArrIdx, oc);
        ocArrIdx++;
      }

      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();
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.ctakes.smokingstatus.type.NonSmokerNamedEntityAnnotation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.