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
-
POS_FEATURE_PARAMETER
-
MODEL_PARAMETER
-
SENTENCE_TYPE_PARAMETER
-
BEAM_SIZE_PARAMETER
-
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.
-