Examples of addToIndexes()


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

  }

  private Predicate createPredicate(JCas jCas, String rolesetId, BaseToken token) {
    Predicate pred = new Predicate(jCas, token.getBegin(), token.getEnd());
    pred.setFrameSet(rolesetId);
    pred.addToIndexes();
    return pred;
  }

  private SemanticArgument createArgument(JCas jCas, SRLHead head, BaseToken token) {
    SemanticArgument argument = new SemanticArgument(jCas, token.getBegin(), token.getEnd());
View Full Code Here

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

        String code = stringSlots.remove("associatedCode");
        ProcedureDevice attribute = new ProcedureDevice(jCas);
        attribute.setValue(code);
        ProcedureDeviceModifier modifier = new ProcedureDeviceModifier(jCas, coveringSpan.begin, coveringSpan.end);
        modifier.setNormalizedForm(attribute);
        modifier.addToIndexes();
        idAnnotationMap.put(annotation.id, modifier);

      } else if ("method_class".equals(annotation.type)) {
        String code = stringSlots.remove("associatedCode");
        ProcedureMethod attribute = new ProcedureMethod(jCas);
View Full Code Here

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

        date.setMonth(month);
        date.setDay(day);
        date.addToIndexes();
        TimeMention mention = new TimeMention(jCas, coveringSpan.begin, coveringSpan.end);
        mention.setDate(date);
        mention.addToIndexes();
        idAnnotationMap.put(annotation.id, mention);

      } else if (eventRelationTypes.contains(annotation.type)) {
        // store the ALINK information for later, once all annotations are in the CAS
        DelayedRelation relation = new DelayedRelation();
View Full Code Here

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

        String code = stringSlots.remove("associatedCode");
        ProcedureMethod attribute = new ProcedureMethod(jCas);
        attribute.setValue(code);
        ProcedureMethodModifier modifier = new ProcedureMethodModifier(jCas, coveringSpan.begin, coveringSpan.end);
        modifier.setNormalizedForm(attribute);
        modifier.addToIndexes();
        idAnnotationMap.put(annotation.id, modifier);

      } else if ("severity_class".equals(annotation.type)) {
        Severity attribute = new Severity(jCas);
        attribute.setValue(stringSlots.remove("severity_normalization"));
View Full Code Here

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

      Set<RangeToken> rangeTokenSet = iv_rangeFSM.execute(baseTokenList, romanNumeralTokenSet);
      Iterator<RangeToken> rangeTokenItr = rangeTokenSet.iterator();
      while (rangeTokenItr.hasNext()) {
        RangeToken rt = rangeTokenItr.next();
        RangeAnnotation ra = new RangeAnnotation(jcas, rt.getStartOffset(), rt.getEndOffset());
        ra.addToIndexes();
      }

      Set<MeasurementToken> measurementTokenSet = iv_measurementFSM.execute(baseTokenList, rangeTokenSet);
      Iterator<MeasurementToken> measurementTokenItr = measurementTokenSet.iterator();
      while (measurementTokenItr.hasNext()) {
View Full Code Here

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

      Set<RomanNumeralToken> romanNumeralTokenSet = iv_romanNumeralFSM.execute(baseTokenList);
      Iterator<RomanNumeralToken> romanNumeralTokenItr = romanNumeralTokenSet.iterator();
      while (romanNumeralTokenItr.hasNext()) {
        RomanNumeralToken rnt = romanNumeralTokenItr.next();
        RomanNumeralAnnotation rna = new RomanNumeralAnnotation(jcas, rnt.getStartOffset(), rnt.getEndOffset());
        rna.addToIndexes();
      }

      Set<FractionToken> fractionTokenSet = iv_fractionFSM.execute(baseTokenList);
      Iterator<FractionToken> fractionTokenItr = fractionTokenSet.iterator();
      while (fractionTokenItr.hasNext()) {
View Full Code Here

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

  }

  private SemanticArgument createArgument(JCas jCas, SRLHead head, BaseToken token) {
    SemanticArgument argument = new SemanticArgument(jCas, token.getBegin(), token.getEnd());
    argument.setLabel(head.label);
    argument.addToIndexes();
    return argument;
  }

}
View Full Code Here

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

      for (SemanticArgument argument : entry.getValue()) {
        SemanticRoleRelation relation = new SemanticRoleRelation(jCas);
        relation.setArgument(argument);
        relation.setPredicate(predicate);
        relation.setCategory(argument.getLabel());
        relation.addToIndexes();
        relations.add(relation);
        argument.setRelation(relation);
      }
     
      FSList relationsList = ListFactory.buildList(jCas, relations.toArray(new TOP[relations.size()]));
View Full Code Here

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

        attribute.setValue(stringSlots.remove("severity_normalization"));
        attribute.addToIndexes();
        SeverityModifier modifier = new SeverityModifier(jCas, coveringSpan.begin, coveringSpan.end);
        modifier.setTypeID(CONST.MODIFIER_TYPE_ID_SEVERITY_CLASS);
        modifier.setNormalizedForm(attribute);
        modifier.addToIndexes();
        idAnnotationMap.put(annotation.id, modifier);

      } else if ("Date".equals(annotation.type)) {
        String month = stringSlots.remove("month");
        String day = stringSlots.remove("day");
View Full Code Here

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

        date.setMonth(month);
        date.setDay(day);
        date.addToIndexes();
        TimeMention mention = new TimeMention(jCas, coveringSpan.begin, coveringSpan.end);
        mention.setDate(date);
        mention.addToIndexes();
        idAnnotationMap.put(annotation.id, mention);

      } else if (eventRelationTypes.contains(annotation.type)) {
        // store the ALINK information for later, once all annotations are in the CAS
        DelayedRelation relation = new DelayedRelation();
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.