opennlp.uima.util
Class UimaUtil

java.lang.Object
  extended by opennlp.uima.util.UimaUtil

public final class UimaUtil
extends java.lang.Object

This is a util class for uima operations.


Field Summary
static java.lang.String BEAM_SIZE_PARAMETER
          The beam size parameter.
static java.lang.String CUTOFF_PARAMETER
           
static java.lang.String DICTIONARY_PARAMETER
           
static java.lang.String IS_REMOVE_EXISTINGS_ANNOTAIONS
           
static java.lang.String ITERATIONS_PARAMETER
           
static java.lang.String LANGUAGE_PARAMETER
           
static java.lang.String MODEL_PARAMETER
          The model parameter.
static java.lang.String POS_FEATURE_PARAMETER
          The pos feature parameter.
static java.lang.String PROBABILITY_FEATURE_PARAMETER
           
static java.lang.String SENTENCE_TYPE_PARAMETER
          The sentence type parameter.
static java.lang.String TOKEN_TYPE_PARAMETER
          The token type parameter.
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOKEN_TYPE_PARAMETER

public static final java.lang.String TOKEN_TYPE_PARAMETER
The token type parameter.

See Also:
Constant Field Values

POS_FEATURE_PARAMETER

public static final java.lang.String POS_FEATURE_PARAMETER
The pos feature parameter.

See Also:
Constant Field Values

MODEL_PARAMETER

public static java.lang.String MODEL_PARAMETER
The model parameter.


SENTENCE_TYPE_PARAMETER

public static java.lang.String SENTENCE_TYPE_PARAMETER
The sentence type parameter.


BEAM_SIZE_PARAMETER

public static final java.lang.String BEAM_SIZE_PARAMETER
The beam size parameter.

See Also:
Constant Field Values

LANGUAGE_PARAMETER

public static final java.lang.String LANGUAGE_PARAMETER
See Also:
Constant Field Values

DICTIONARY_PARAMETER

public static final java.lang.String DICTIONARY_PARAMETER
See Also:
Constant Field Values

CUTOFF_PARAMETER

public static final java.lang.String CUTOFF_PARAMETER
See Also:
Constant Field Values

ITERATIONS_PARAMETER

public static final java.lang.String ITERATIONS_PARAMETER
See Also:
Constant Field Values

PROBABILITY_FEATURE_PARAMETER

public static final java.lang.String PROBABILITY_FEATURE_PARAMETER
See Also:
Constant Field Values

IS_REMOVE_EXISTINGS_ANNOTAIONS

public static final java.lang.String IS_REMOVE_EXISTINGS_ANNOTAIONS
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 -
containerAnnotationType -
removeAnnotationType -


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.