Package org.apache.uima.cas

Examples of org.apache.uima.cas.FSIntConstraint.gt()


  @Deprecated
  public static FSIterator getAnnotationsInSpanIterator(JCas jcas, int type, int beginSpan, int endSpan)
  {
    ConstraintFactory constraintFactory = jcas.getConstraintFactory();
      FSIntConstraint windowConstraint = constraintFactory.createIntConstraint();
      windowConstraint.gt(beginSpan-1);
      windowConstraint.lt(endSpan);
     
      Type annotType = jcas.getCasType(type);
      Feature beginSpanFeature = annotType.getFeatureByBaseName("begin");
      Feature endSpanFeature = annotType.getFeatureByBaseName("end");
View Full Code Here


            FSIntConstraint ecUpper = cf.createIntConstraint();
            ecUpper.leq(end_upper);        
            FSMatchConstraint mcEnd = cf.embedConstraint(end_fp, ecUpper);
            if (end_upper > end_lower) {
                FSIntConstraint ecLower = cf.createIntConstraint();
                ecLower.gt(end_lower);
                mcEnd = cf.and(mcEnd, cf.embedConstraint(end_fp, ecLower));
            }
           
            FSMatchConstraint mcBounds = cf.and(mcBegin, mcEnd);
            return mcBounds;
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.