Package opennlp.uima.util
Class UimaUtil
java.lang.Object
opennlp.uima.util.UimaUtil
Defines constants and provides utility methods for uima operations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final StringThe beam size parameter.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringThe model parameter.static final StringThe pos feature parameter.static final Stringstatic final StringThe sentence type parameter.static final StringThe token type parameter.static final String -
Method Summary
Modifier and TypeMethodDescriptionstatic voidremoveAnnotations(org.apache.uima.cas.CAS cas, org.apache.uima.cas.text.AnnotationFS containerAnnotation, org.apache.uima.cas.Type type) 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 type) Removes all annotations of type removeAnnotationType which are contained by annotations of type containerAnnotationType.- Parameters:
cas- TheCASto use.containerAnnotation- TheAnnotationFSof the container.type- Thetypeto remove annotations for.- Throws:
IllegalArgumentException- Thrown if parameters were invalid.
-