Package opennlp.uima.util
Class UimaUtil
java.lang.Object
opennlp.uima.util.UimaUtil
This is a util class for uima operations.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final StringThe beam size parameter.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic StringThe model parameter.static final StringThe pos feature parameter.static final Stringstatic StringThe sentence type parameter.static final StringThe token type parameter.static final String
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidremoveAnnotations(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_PARAMETERThe token type parameter.- See Also:
 
- 
POS_FEATURE_PARAMETERThe pos feature parameter.- See Also:
 
- 
MODEL_PARAMETERThe model parameter.
- 
SENTENCE_TYPE_PARAMETERThe sentence type parameter.
- 
BEAM_SIZE_PARAMETERThe 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- 
removeAnnotationspublic 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- The- CASto use.
- containerAnnotation- The- AnnotationFSof the container.
- removeAnnotationType- The- typeto remove annotations for.
 
 
-