CONFIDENCE_FEATURE, CUSTOM_NORMALIZATION, FLOAT_FEATURE, INTEGER_FEATURE, REFERENCE_FEATURE, RULEID_FEATURE, STRING_FEATURE, TO_LOWER_NORMALIZATION, TO_UPPER_NORMALIZATION, TRIM_NORMALIZATION
Constructor and Description |
---|
Feature_impl(int type,
java.lang.String name,
java.lang.String value,
int normalizationType,
java.lang.String implClass) |
Modifier and Type | Method and Description |
---|---|
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.
|
void |
initialize()
Initialize the feature definition.
|
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.
|
java.lang.String |
toString() |
void |
typeInit(org.apache.uima.cas.Type annotationType) |
public Feature_impl(int type, java.lang.String name, java.lang.String value, int normalizationType, java.lang.String implClass)
public int getType()
Feature
public java.lang.String getName()
Feature
public java.lang.String getValue()
Feature
public org.apache.uima.cas.Feature getFeature()
Feature
getFeature
in interface Feature
public java.lang.String normalize(java.lang.String input, java.lang.String ruleId) throws java.lang.Exception
Feature
public void typeInit(org.apache.uima.cas.Type annotationType) throws org.apache.uima.resource.ResourceInitializationException
annotationType
- org.apache.uima.resource.ResourceInitializationException
public void initialize() throws RegexAnnotatorConfigException
RegexAnnotatorConfigException
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2013. All Rights Reserved.