Package org.apache.uima.ruta.rule

Examples of org.apache.uima.ruta.rule.AnnotationComparator


            destinationAnnotationSpans.size());
    for (int i = 0; i < size; i++) {
      AnnotationFS eachMatched = annotationsMatchedByRuleElementofAction.get(i);
      AnnotationFS eachDestination = destinationAnnotationSpans.get(i);
      Set<AnnotationFS> allAnchoredAnnotations = new TreeSet<AnnotationFS>(
              new AnnotationComparator());
      Collection<AnnotationFS> beginAnchors = stream.getBeginAnchor(eachMatched.getBegin())
              .getBeginAnchors(targetType);
      Collection<AnnotationFS> endAnchors = stream.getEndAnchor(eachMatched.getEnd()).getEndAnchors(
              targetType);
      allAnchoredAnnotations.addAll(beginAnchors);
View Full Code Here


    List<AnnotationFS> annotationsMatchedByRuleElementofAction = match.getMatchedAnnotationsOf(element, stream);
    int size = Math.min(annotationsMatchedByRuleElementofAction.size(), destinationAnnotationSpans.size());
    for (int i = 0; i < size; i++) {
      AnnotationFS eachMatched = annotationsMatchedByRuleElementofAction.get(i);
      AnnotationFS eachDestination = destinationAnnotationSpans.get(i);
      Set<AnnotationFS> allAnchoredAnnotations = new TreeSet<AnnotationFS>(new AnnotationComparator());
      Set<AnnotationFS> beginAnchors = stream.getBeginAnchor(eachMatched.getBegin()).getBeginAnchors(targetType);
      Set<AnnotationFS> endAnchors = stream.getEndAnchor(eachMatched.getEnd()).getEndAnchors(targetType);
      allAnchoredAnnotations.addAll(beginAnchors);
      allAnchoredAnnotations.addAll(endAnchors);
      for (AnnotationFS eachAnchored : allAnchoredAnnotations) {
View Full Code Here

            destinationAnnotationSpans.size());
    for (int i = 0; i < size; i++) {
      AnnotationFS eachMatched = annotationsMatchedByRuleElementofAction.get(i);
      AnnotationFS eachDestination = destinationAnnotationSpans.get(i);
      Set<AnnotationFS> allAnchoredAnnotations = new TreeSet<AnnotationFS>(
              new AnnotationComparator());
      Set<AnnotationFS> beginAnchors = stream.getBeginAnchor(eachMatched.getBegin())
              .getBeginAnchors(targetType);
      Set<AnnotationFS> endAnchors = stream.getEndAnchor(eachMatched.getEnd()).getEndAnchors(
              targetType);
      allAnchoredAnnotations.addAll(beginAnchors);
View Full Code Here

TOP

Related Classes of org.apache.uima.ruta.rule.AnnotationComparator

Copyright © 2018 www.massapicom. 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.