Package org.apache.uima.jcas.cas

Examples of org.apache.uima.jcas.cas.FSArray.toArray()


      AnnotationFS fs = iterator.get();
      if (fs.getType().equals(blockApplyType)) {
        FeatureStructure featureValue = fs.getFeatureValue(innerApplyFeature);
        FSArray array = (FSArray) featureValue;

        FeatureStructure[] fsArray = array.toArray();
        for (FeatureStructure featureStructure : fsArray) {
          AnnotationFS ruleApply = (AnnotationFS) featureStructure;
          if (ruleApply.getType().equals(ruleApplyType)) {
            applyAmount = ruleApply.getIntValue(appliedFeature);
            triedAmount = ruleApply.getIntValue(triedFeature);
View Full Code Here


    FSArray fsArray = identifiedAnnotation.getOntologyConceptArr();
    if(fsArray == null) {
      return codes;
    }
   
    for(FeatureStructure featureStructure : fsArray.toArray()) {
      OntologyConcept ontologyConcept = (OntologyConcept) featureStructure;
     
      if(ontologyConcept instanceof UmlsConcept) {
        UmlsConcept umlsConcept = (UmlsConcept) ontologyConcept;
        String code = umlsConcept.getCui();
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.