Package opennlp.uima.util
Klasse UimaUtil
java.lang.Object
opennlp.uima.util.UimaUtil
This is a util class for uima operations.
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic 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 -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic 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.
-
Felddetails
-
TOKEN_TYPE_PARAMETER
The token type parameter.- Siehe auch:
-
POS_FEATURE_PARAMETER
The pos feature parameter.- Siehe auch:
-
MODEL_PARAMETER
The model parameter.- Siehe auch:
-
SENTENCE_TYPE_PARAMETER
The sentence type parameter.- Siehe auch:
-
BEAM_SIZE_PARAMETER
The beam size parameter.- Siehe auch:
-
LANGUAGE_PARAMETER
- Siehe auch:
-
DICTIONARY_PARAMETER
- Siehe auch:
-
TRAINING_PARAMS_FILE_PARAMETER
- Siehe auch:
-
CUTOFF_PARAMETER
- Siehe auch:
-
ITERATIONS_PARAMETER
- Siehe auch:
-
PROBABILITY_FEATURE_PARAMETER
- Siehe auch:
-
IS_REMOVE_EXISTINGS_ANNOTAIONS
- Siehe auch:
-
ADDITIONAL_TRAINING_DATA_FILE
- Siehe auch:
-
ADDITIONAL_TRAINING_DATA_ENCODING
- Siehe auch:
-
-
Methodendetails
-
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.- Parameter:
cas- TheCASto use.containerAnnotation- TheAnnotationFSof the container.removeAnnotationType- Thetypeto remove annotations for.
-