Examples of SmokerNamedEntityAnnotation


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

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

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

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

      SmokerNamedEntityAnnotation neAnnot = new SmokerNamedEntityAnnotation(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
Copyright © 2018 www.massapi.com. 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.