TextAnalysisEngine
in terms of the required input and output types and features and the supported languages.
A TextAnalysisEngine
can be described by more than one Capability
, for example, if the input and output types/features differ, depending on the language. The Capability is expressed in terms of input and output type, feature and Sofa names.
Public Types | |
typedef std::vector< icu::UnicodeString > | TyVecCapabilityTofs |
typedef std::vector< icu::UnicodeString > | TyVecCapabilityLanguages |
typedef std::vector< icu::UnicodeString > | TyVecCapabilitySofas |
enum | EnTypeStyle { INPUT, OUTPUT, INPUTSOFA, OUTPUTSOFA } |
Public Member Functions | |
Capability () | |
TyErrorId | addCapabilityType (const icu::UnicodeString &type, EnTypeStyle typeStyle) |
TyErrorId | addCapabilityFeature (const icu::UnicodeString &feature, EnTypeStyle typeStyle) |
TyErrorId | addCapabilitySofa (const icu::UnicodeString &sofa, EnTypeStyle typeStyle) |
Set the input or output Sofa name. | |
const TyVecCapabilityTofs & | getCapabilityTypes (EnTypeStyle typeStyle) const |
Get input/output Types. | |
const TyVecCapabilityTofs & | getCapabilityFeatures (EnTypeStyle typeStyle) const |
Get the input/output features. | |
const TyVecCapabilitySofas & | getCapabilitySofas (EnTypeStyle typeStyle) const |
Get the input/output Sofas. | |
TyErrorId | addSupportedLanguage (const icu::UnicodeString &language) |
const TyVecCapabilityLanguages & | getSupportedLanguages () const |
bool | isModifiable () const |
virtual void | commit () |
When this method is called on a MetaDataObject# that must not be reconfigured after the engine is created, isModifiable()# will return false and all subsequent calls to setter methods will return #UIMA_ERR_CONFIG_OBJECT_COMMITED#. | |
Protected Attributes | |
bool | iv_bIsModifiable |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Set the input or output Sofa name.
|
|
Get input/output Types.
|
|
Get the input/output features.
|
|
Get the input/output Sofas.
|
|
|
|
|
|
|
|
When this method is called on a MetaDataObject# that must not be reconfigured after the engine is created, isModifiable()# will return false and all subsequent calls to setter methods will return #UIMA_ERR_CONFIG_OBJECT_COMMITED#. Subclasses of such MetaDataObjects must override this method to ensure that commit is propagated to its members. Note that configuration parameter values can be reconfigured after the engine is created. Hence, the #extractValue# methods of the #AnnotatorContext# can be called anytime. Reimplemented in uima::NameValuePair, uima::ConfigurationGroup, uima::SettingsForGroup, uima::FSIndexDescription, uima::AnalysisEngineMetaData, uima::AnalysisEngineDescription, uima::TypeDescription, and uima::TypeSystemDescription. |
|
|