public class FSUtil extends Object
Constructor and Description |
---|
FSUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
countAnnotationsInSpan(org.apache.uima.jcas.JCas jcas,
int type,
int beginSpan,
int endSpan)
returns the number of annotations of specified type in the
|
static int |
countAnnotationsInSpan(org.apache.uima.jcas.JCas jcas,
int type,
int beginSpan,
int endSpan,
int[] validNeTypes)
Does not use
getAnnotationsInSpan(JCas, int, int, int, int[]) so we don't create a collection
unnecessarily. |
static List |
getAnnotationsInSpan(org.apache.uima.jcas.JCas jcas,
int type,
int beginSpan,
int endSpan,
int[] validNeTypes) |
static org.apache.uima.cas.FSIterator |
getAnnotationsInSpanIterator(org.apache.uima.jcas.JCas jcas,
int type,
int beginSpan,
int endSpan)
Deprecated.
|
static org.apache.uima.cas.FSIterator |
getAnnotationsIteratorInSpan(org.apache.uima.jcas.JCas jcas,
int type,
int beginSpan,
int endSpan)
For correct behavior, requires types to be listed in TypePriorities so that the subiterator works as expected
|
static boolean |
isAnnotationPresentInSpan(org.apache.uima.jcas.JCas jcas,
int type,
int beginSpan,
int endSpan)
returns a true if the annotation type is present in the span
|
@Deprecated public static org.apache.uima.cas.FSIterator getAnnotationsInSpanIterator(org.apache.uima.jcas.JCas jcas, int type, int beginSpan, int endSpan)
public static org.apache.uima.cas.FSIterator getAnnotationsIteratorInSpan(org.apache.uima.jcas.JCas jcas, int type, int beginSpan, int endSpan)
public static int countAnnotationsInSpan(org.apache.uima.jcas.JCas jcas, int type, int beginSpan, int endSpan, int[] validNeTypes)
getAnnotationsInSpan(JCas, int, int, int, int[])
so we don't create a collection
unnecessarily.public static List getAnnotationsInSpan(org.apache.uima.jcas.JCas jcas, int type, int beginSpan, int endSpan, int[] validNeTypes)
public static int countAnnotationsInSpan(org.apache.uima.jcas.JCas jcas, int type, int beginSpan, int endSpan)
public static boolean isAnnotationPresentInSpan(org.apache.uima.jcas.JCas jcas, int type, int beginSpan, int endSpan)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.