Examples of addToIndexes()


Examples of org.apache.ctakes.drugner.type.FrequencyAnnotation.addToIndexes()

        FrequencyToken ft = (FrequencyToken) frequencyTokenItr.next();
        begSegFT = ft.getStartOffset();
        endSegFT = ft.getEndOffset();
        FrequencyAnnotation ma = new FrequencyAnnotation(jcas, begSegFT,
            endSegFT);
        ma.addToIndexes();

      }

      /* Check again if confidence was found during frequency check */

 
View Full Code Here

Examples of org.apache.ctakes.drugner.type.FrequencyUnitAnnotation.addToIndexes()

        begSegFUT = fut.getStartOffset();
        endSegFUT = fut.getEndOffset();
        FrequencyUnitAnnotation ma = new FrequencyUnitAnnotation(jcas,
            begSegFUT, endSegFUT);
        ma.setPeriod(new Float(fut.getFrequencyUnitQuantity()).floatValue());
        ma.addToIndexes();

      }
      // The frequencyFSM can take advantage of the frequencyUnit to
      // establish conditions via the override
      Set frequencyTokenSet = iv_frequencyFSM.execute(baseTokenList,
View Full Code Here

Examples of org.apache.ctakes.drugner.type.RouteAnnotation.addToIndexes()

        RouteToken mt = (RouteToken) routeTokenItr.next();
        begSegRT = mt.getStartOffset();
        endSegRT = mt.getEndOffset();
        RouteAnnotation ma = new RouteAnnotation(jcas, begSegRT, endSegRT);
        ma.setIntakeMethod(new Integer(mt.getFormMethod()).toString());
        ma.addToIndexes();

      }

      Set frequencyUnitTokenSet = iv_frequencyUnitFSM.execute(baseTokenList);
      boolean foundFrequencyUnit = false;
View Full Code Here

Examples of org.apache.ctakes.drugner.type.StrengthAnnotation.addToIndexes()

          int endOff = mt.getEndOffset();
          StrengthAnnotation ma = new StrengthAnnotation(jcas, begOff, endOff);
          Iterator subStrengthItr = FSUtil.getAnnotationsIteratorInSpan(jcas, StrengthUnitAnnotation.type, begOff, endOff);
          if (subStrengthItr.hasNext() )
                ma.setEnd(((StrengthUnitAnnotation)subStrengthItr.next()).getBegin());
          ma.addToIndexes();
          // loadandAppend("./strengthTable.csv", ma.getCoveredText(),
          // true);

        }
//      }
View Full Code Here

Examples of org.apache.ctakes.drugner.type.StrengthUnitAnnotation.addToIndexes()

        Object mt = (ObjectmeasurementTokenItr.next();
        if (mt instanceof  StrengthUnitToken) {
          // StrengthUnitToken mt = (StrengthUnitToken) measurementTokenItr.next();
          int begSeg = ((StrengthUnitToken) mt).getStartOffset(), endSeg = ((StrengthUnitToken) mt).getEndOffset();
          StrengthUnitAnnotation ma = new StrengthUnitAnnotation(jcas, begSeg, endSeg);
          ma.addToIndexes();
        } else {
          int begSeg = ((StrengthUnitCombinedToken) mt).getStartOffset(), endSeg = ((StrengthUnitCombinedToken) mt).getEndOffset();
          StrengthUnitAnnotation ma = new StrengthUnitAnnotation(jcas, begSeg, endSeg);
          ma.setBegin(findTextualStringOffset(ma.getCoveredText()) + begSeg);
          ma.addToIndexes();
View Full Code Here

Examples of org.apache.ctakes.drugner.type.SubSectionAnnotation.addToIndexes()

      {
        endBodyOffset = getSubSectionAnnotationBodyEnd(segment, null);
      }
      ssa.setSubSectionBodyEnd(endBodyOffset);
      ssa.setEnd(endBodyOffset);
      ssa.addToIndexes();
    }
      }

  /**
   * Decides where the SubSectionAnnotation should end. This is based on the
View Full Code Here

Examples of org.apache.ctakes.drugner.type.SuffixStrengthAnnotation.addToIndexes()

      Iterator suffixTokenItr = suffixTokenSet.iterator();
      while (suffixTokenItr.hasNext())
      {
        SuffixStrengthToken mt = (SuffixStrengthToken) suffixTokenItr.next();
        SuffixStrengthAnnotation ma = new SuffixStrengthAnnotation(jcas, mt.getStartOffset(), mt.getEndOffset());
        ma.addToIndexes();
      }
      // This needs to be handled differently. But since I'm not sure if this feature will be utilized
      // I am going to leave 'as is' for now.

      Set routeTokenSet = iv_routeFSM.execute(baseTokenList);
View Full Code Here

Examples of org.apache.ctakes.padtermspotter.type.PADHit.addToIndexes()

  {
    if( JCasUtil.isInstanceOf(annotationPartOneOfPair, ann)&& ((PADTerm)ann).getIsStandAlone() == 1)
    {
      PADHit uah = new PADHit(cas);
      uah.setUaTerm((PADTerm)ann);
      uah.addToIndexes();
      return true;
    }
   
    if(JCasUtil.isInstanceOf(annotationPartTwoOfPair, ann )&& ((PADLocation)ann).getIsStandAlone() == 1)
    {
View Full Code Here

Examples of org.apache.ctakes.padtermspotter.type.PADLocation.addToIndexes()

      locationTerm.setRelatedTokens(fsArr);
      String segId = getSegmentIdContaining(locationTerm, jcas);
      locationTerm.setSegmentID(segId);
   
    //fsArr.addToIndexes();
      locationTerm.addToIndexes();
    }
  }
}
View Full Code Here

Examples of org.apache.ctakes.padtermspotter.type.PADTerm.addToIndexes()

    if (segStatus.compareTo("-1")==0 || segStatus.compareTo("1")!=0) {
      String segId = getSegmentIdContaining(uaTerm, jcas);
      uaTerm.setSegmentID(segId);
   
    //fsArr.addToIndexes();
      uaTerm.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.