org.apache.uima.annotator.regex
Interface Feature

All Known Implementing Classes:
Feature_impl

public interface Feature

The Feature interface provides access to a Regex Feature definition


Field Summary
static int CONFIDENCE_FEATURE
           
static int CUSTOM_NORMALIZATION
           
static int FLOAT_FEATURE
           
static int INTEGER_FEATURE
           
static int REFERENCE_FEATURE
           
static int RULEID_FEATURE
           
static int STRING_FEATURE
           
static int TO_LOWER_NORMALIZATION
           
static int TO_UPPER_NORMALIZATION
           
static int TRIM_NORMALIZATION
           
 
Method Summary
 org.apache.uima.cas.Feature getFeature()
          Get the UIMA feature value of this feature object
 java.lang.String getName()
          Get the feature name of this feature
 int getType()
          Get the feature type.
 java.lang.String getValue()
          Get the feature value of this feature.
 java.lang.String normalize(java.lang.String input, java.lang.String ruleId)
          Get the normalization of the input string based on the specified normalization for this feature.
 

Field Detail

STRING_FEATURE

static final int STRING_FEATURE
See Also:
Constant Field Values

INTEGER_FEATURE

static final int INTEGER_FEATURE
See Also:
Constant Field Values

FLOAT_FEATURE

static final int FLOAT_FEATURE
See Also:
Constant Field Values

REFERENCE_FEATURE

static final int REFERENCE_FEATURE
See Also:
Constant Field Values

CONFIDENCE_FEATURE

static final int CONFIDENCE_FEATURE
See Also:
Constant Field Values

RULEID_FEATURE

static final int RULEID_FEATURE
See Also:
Constant Field Values

CUSTOM_NORMALIZATION

static final int CUSTOM_NORMALIZATION
See Also:
Constant Field Values

TO_LOWER_NORMALIZATION

static final int TO_LOWER_NORMALIZATION
See Also:
Constant Field Values

TO_UPPER_NORMALIZATION

static final int TO_UPPER_NORMALIZATION
See Also:
Constant Field Values

TRIM_NORMALIZATION

static final int TRIM_NORMALIZATION
See Also:
Constant Field Values
Method Detail

getName

java.lang.String getName()
Get the feature name of this feature

Returns:
returns the feature name

getType

int getType()
Get the feature type.

Returns:
returns the feature type.

getValue

java.lang.String getValue()
Get the feature value of this feature.

Returns:
returns the feature value of this feature.

getFeature

org.apache.uima.cas.Feature getFeature()
Get the UIMA feature value of this feature object

Returns:
returns the UIMA feature object.

normalize

java.lang.String normalize(java.lang.String input,
                           java.lang.String ruleId)
                           throws java.lang.Exception
Get the normalization of the input string based on the specified normalization for this feature. If no normalization was specified, the input string is returned.

Returns:
returns the normalization type for this feature.
Throws:
java.lang.Exception


Copyright © 2011. All Rights Reserved.