Package opennlp.uima.util
Class UimaUtil
- java.lang.Object
-
- opennlp.uima.util.UimaUtil
-
public final class UimaUtil extends Object
This is a util class for uima operations.
-
-
Field Summary
Fields Modifier and Type Field Description static StringADDITIONAL_TRAINING_DATA_ENCODINGstatic StringADDITIONAL_TRAINING_DATA_FILEstatic StringBEAM_SIZE_PARAMETERThe beam size parameter.static StringCUTOFF_PARAMETERstatic StringDICTIONARY_PARAMETERstatic StringIS_REMOVE_EXISTINGS_ANNOTAIONSstatic StringITERATIONS_PARAMETERstatic StringLANGUAGE_PARAMETERstatic StringMODEL_PARAMETERThe model parameter.static StringPOS_FEATURE_PARAMETERThe pos feature parameter.static StringPROBABILITY_FEATURE_PARAMETERstatic StringSENTENCE_TYPE_PARAMETERThe sentence type parameter.static StringTOKEN_TYPE_PARAMETERThe token type parameter.static StringTRAINING_PARAMS_FILE_PARAMETER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
TOKEN_TYPE_PARAMETER
public static final String TOKEN_TYPE_PARAMETER
The token type parameter.- See Also:
- Constant Field Values
-
POS_FEATURE_PARAMETER
public static final String POS_FEATURE_PARAMETER
The pos feature parameter.- See Also:
- Constant Field Values
-
MODEL_PARAMETER
public static String MODEL_PARAMETER
The model parameter.
-
SENTENCE_TYPE_PARAMETER
public static String SENTENCE_TYPE_PARAMETER
The sentence type parameter.
-
BEAM_SIZE_PARAMETER
public static final String BEAM_SIZE_PARAMETER
The beam size parameter.- See Also:
- Constant Field Values
-
LANGUAGE_PARAMETER
public static final String LANGUAGE_PARAMETER
- See Also:
- Constant Field Values
-
DICTIONARY_PARAMETER
public static final String DICTIONARY_PARAMETER
- See Also:
- Constant Field Values
-
TRAINING_PARAMS_FILE_PARAMETER
public static final String TRAINING_PARAMS_FILE_PARAMETER
- See Also:
- Constant Field Values
-
CUTOFF_PARAMETER
public static final String CUTOFF_PARAMETER
- See Also:
- Constant Field Values
-
ITERATIONS_PARAMETER
public static final String ITERATIONS_PARAMETER
- See Also:
- Constant Field Values
-
PROBABILITY_FEATURE_PARAMETER
public static final String PROBABILITY_FEATURE_PARAMETER
- See Also:
- Constant Field Values
-
IS_REMOVE_EXISTINGS_ANNOTAIONS
public static final String IS_REMOVE_EXISTINGS_ANNOTAIONS
- See Also:
- Constant Field Values
-
ADDITIONAL_TRAINING_DATA_FILE
public static final String ADDITIONAL_TRAINING_DATA_FILE
- See Also:
- Constant Field Values
-
ADDITIONAL_TRAINING_DATA_ENCODING
public static final String ADDITIONAL_TRAINING_DATA_ENCODING
- See Also:
- Constant Field Values
-
-
Method Detail
-
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- TheCASto use.containerAnnotation- TheAnnotationFSof the container.removeAnnotationType- Thetypeto remove annotations for.
-
-