Class UimaUtil

java.lang.Object
opennlp.uima.util.UimaUtil

public final class UimaUtil extends Object
This is a util class for uima operations.
  • Field Details

  • Method Details

    • removeAnnotations

      public static void removeAnnotations(org.apache.uima.cas.CAS cas, org.apache.uima.cas.text.AnnotationFS containerAnnotation, org.apache.uima.cas.Type removeAnnotationType)
      Removes all annotations of type removeAnnotationType which are contained by annotations of type containerAnnotationType.
      Parameters:
      cas - The CAS to use.
      containerAnnotation - The AnnotationFS of the container.
      removeAnnotationType - The type to remove annotations for.