Examples of addToIndexes()


Examples of org.apache.ctakes.typesystem.type.textsem.MedicationEventMention.addToIndexes()

        neAnnot.setTypeID(CONST.NE_TYPE_ID_DRUG);
        neAnnot.setBegin(neBegin);
        neAnnot.setEnd(neEnd);
        neAnnot.setDiscoveryTechnique(CONST.NE_DISCOVERY_TECH_DICT_LOOKUP);
        neAnnot.setOntologyConceptArr(ocArr);
        neAnnot.addToIndexes();
      }
    }
  }

  /**
 
View Full Code Here

Examples of org.apache.ctakes.typesystem.type.textsem.MedicationFormModifier.addToIndexes()

        MedicationForm attribute = new MedicationForm(jCas);
        attribute.setValue(value);
        attribute.addToIndexes();
        MedicationFormModifier modifier = new MedicationFormModifier(jCas, coveringSpan.begin, coveringSpan.end);
        modifier.setNormalizedForm(attribute);
        modifier.addToIndexes();
        idAnnotationMap.put(annotation.id, modifier);
       
      } else if ("Frequency".equals(annotation.type)) {
        KnowtatorAnnotation unit = annotationSlots.remove("frequency_unit");
        KnowtatorAnnotation number = annotationSlots.remove("frequency_number");
View Full Code Here

Examples of org.apache.ctakes.typesystem.type.textsem.MedicationFrequencyModifier.addToIndexes()

          attribute.setNumber(numberString);
        }
        attribute.addToIndexes();
        MedicationFrequencyModifier modifier = new MedicationFrequencyModifier(jCas, coveringSpan.begin, coveringSpan.end);
        modifier.setNormalizedForm(attribute);
        modifier.addToIndexes();
        idAnnotationMap.put(annotation.id, modifier);

      } else if ("Frequency number".equals(annotation.type)) {
        // already handled in "Frequency" above
        stringSlots.remove("frequency_number_normalization");
View Full Code Here

Examples of org.apache.ctakes.typesystem.type.textsem.MedicationMention.addToIndexes()

            addMedicationSpecificAttributes(jcas, globalDrugNER.get(i), tokenAnt);
          }
          else if (gotChangeStatus){
            MedicationMention mem = new MedicationMention(jcas, globalDrugNER.get(i).getBegin(), globalDrugNER.get(i).getEnd());
            addMedicationSpecificAttributes(jcas, globalDrugNER.get(i), mem);
            mem.addToIndexes(jcas);
          }
        }
      }
     
    }
View Full Code Here

Examples of org.apache.ctakes.typesystem.type.textsem.MedicationRouteModifier.addToIndexes()

        MedicationRoute attribute = new MedicationRoute(jCas);
        attribute.setValue(value);
        attribute.addToIndexes();
        MedicationRouteModifier modifier = new MedicationRouteModifier(jCas, coveringSpan.begin, coveringSpan.end);
        modifier.setNormalizedForm(attribute);
        modifier.addToIndexes();
        idAnnotationMap.put(annotation.id, modifier);
       
      } else if ("Status change".equals(annotation.type)) {
        String value = stringSlots.remove("change_status_value");
        MedicationStatusChange attribute = new MedicationStatusChange(jCas);
View Full Code Here

Examples of org.apache.ctakes.typesystem.type.textsem.MedicationStatusChangeModifier.addToIndexes()

        MedicationStatusChange attribute = new MedicationStatusChange(jCas);
        attribute.setValue(value);
        attribute.addToIndexes();
        MedicationStatusChangeModifier modifier = new MedicationStatusChangeModifier(jCas, coveringSpan.begin, coveringSpan.end);
        modifier.setNormalizedForm(attribute);
        modifier.addToIndexes();
        idAnnotationMap.put(annotation.id, modifier);

      } else if ("Strength".equals(annotation.type)) {
        KnowtatorAnnotation unit = annotationSlots.remove("strength_unit");
        KnowtatorAnnotation number = annotationSlots.remove("strength_number");
View Full Code Here

Examples of org.apache.ctakes.typesystem.type.textsem.MedicationStrengthModifier.addToIndexes()

          attribute.setNumber(numberString);
        }
        attribute.addToIndexes();
        MedicationStrengthModifier modifier = new MedicationStrengthModifier(jCas, coveringSpan.begin, coveringSpan.end);
        modifier.setNormalizedForm(attribute);
        modifier.addToIndexes();
        idAnnotationMap.put(annotation.id, modifier);

      } else if ("Strength number".equals(annotation.type)) {
        // already handled in "Strength" above
View Full Code Here

Examples of org.apache.ctakes.typesystem.type.textsem.Modifier.addToIndexes()

        modifier = new Modifier(jCas, modifierSpan.start, modifierSpan.end);
        modifier.setTypeID(modifierType);
        modifier.setId(identifiedAnnotationId++);
        modifier.setDiscoveryTechnique(CONST.NE_DISCOVERY_TECH_GOLD_ANNOTATION);
        modifier.setConfidence(1);
        modifier.addToIndexes();
        spanToModifier.put(modifierSpan, modifier);
      }
     
      // create an entity mention object and add it to the cas
      EntityMention entityMention = null;
View Full Code Here

Examples of org.apache.ctakes.typesystem.type.textsem.PersonTitleAnnotation.addToIndexes()

      Set<PersonTitleToken> personTitleTokenSet = iv_personTitleFSM.execute(baseTokenList);
      Iterator<PersonTitleToken> personTitleTokenItr = personTitleTokenSet.iterator();
      while (personTitleTokenItr.hasNext()) {
        PersonTitleToken ptt = personTitleTokenItr.next();
        PersonTitleAnnotation pta = new PersonTitleAnnotation(jcas, ptt.getStartOffset(), ptt.getEndOffset());
        pta.addToIndexes();
      }
    } catch (Exception e) {
      throw new AnalysisEngineProcessException(e);
    }
  }
View Full Code Here

Examples of org.apache.ctakes.typesystem.type.textsem.PolarityModifier.addToIndexes()

          LOGGER.error(String.format(
              "unrecognized allergy-indicator value \"%s\" on annotation with id \"%s\"",
              value,
              annotation.id));
        }
        modifier.addToIndexes();
        idAnnotationMap.put(annotation.id, modifier);

      } else if ("Dosage".equals(annotation.type)) {
        String value = stringSlots.remove("dosage_values");
        MedicationDosage attribute = new MedicationDosage(jCas);
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.