public class AnnotationUtils extends Object
| Constructor and Description |
|---|
AnnotationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
allHaveAnnotation(List<? extends TextPipeAnnotation> toBeChecked,
Class<? extends TextPipeAnnotation> check)
Check if a
TextPipeAnnotation has been added to all members in a list of TextPipeAnnotation. |
static List<String> |
getStringPOSsFromTokenAnnotationList(List<TokenAnnotation> tokens)
Returns a list of String represented Parts of Speech given a list of
TokenAnnotation (These should have POSAnnotation) |
static List<String> |
getStringTokensFromTokenAnnotationList(List<TokenAnnotation> tokens)
Get the string tokens from a list of
TokenAnnotations |
static String[] |
ListToArray(List<String> convert)
Converst a list of strings to an array of strings
|
public AnnotationUtils()
public static List<String> getStringTokensFromTokenAnnotationList(List<TokenAnnotation> tokens)
TokenAnnotationstokens - public static List<String> getStringPOSsFromTokenAnnotationList(List<TokenAnnotation> tokens)
TokenAnnotation (These should have POSAnnotation)tokens - public static String[] ListToArray(List<String> convert)
convert - public static boolean allHaveAnnotation(List<? extends TextPipeAnnotation> toBeChecked, Class<? extends TextPipeAnnotation> check)
TextPipeAnnotation has been added to all members in a list of TextPipeAnnotation.toBeChecked - check -