Package opennlp.uima.util
Class UimaUtil
java.lang.Object
opennlp.uima.util.UimaUtil
This is a util class for uima operations.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
The beam size parameter.static final String
static final String
static final String
static final String
static final String
static final String
The model parameter.static final String
The pos feature parameter.static final String
static final String
The sentence type parameter.static final String
The token type parameter.static final String
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Field Details
-
TOKEN_TYPE_PARAMETER
The token type parameter.- See Also:
-
POS_FEATURE_PARAMETER
The pos feature parameter.- See Also:
-
MODEL_PARAMETER
The model parameter.- See Also:
-
SENTENCE_TYPE_PARAMETER
The sentence type parameter.- See Also:
-
BEAM_SIZE_PARAMETER
The beam size parameter.- See Also:
-
LANGUAGE_PARAMETER
- See Also:
-
DICTIONARY_PARAMETER
- See Also:
-
TRAINING_PARAMS_FILE_PARAMETER
- See Also:
-
CUTOFF_PARAMETER
- See Also:
-
ITERATIONS_PARAMETER
- See Also:
-
PROBABILITY_FEATURE_PARAMETER
- See Also:
-
IS_REMOVE_EXISTINGS_ANNOTAIONS
- See Also:
-
ADDITIONAL_TRAINING_DATA_FILE
- See Also:
-
ADDITIONAL_TRAINING_DATA_ENCODING
- See Also:
-
-
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
- TheCAS
to use.containerAnnotation
- TheAnnotationFS
of the container.removeAnnotationType
- Thetype
to remove annotations for.
-