public final class SofaMappingFactory extends Object
Modifier and Type | Method and Description |
---|---|
static org.apache.uima.analysis_engine.metadata.SofaMapping |
createSofaMapping(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass,
String componentSofaName,
String aggregateSofaName)
Create a sofa mapping using the component class rather than the component name.
|
static org.apache.uima.analysis_engine.metadata.SofaMapping |
createSofaMapping(String componentKey,
String componentSofaName,
String aggregateSofaName)
This method creates a sofa mapping which is useful for mapping view names in individual
components used in aggregate analysis engines to the view names used by the aggregate.
|
public static org.apache.uima.analysis_engine.metadata.SofaMapping createSofaMapping(String componentKey, String componentSofaName, String aggregateSofaName)
WARNING: in version 0.9.12 the ordering of the parameters was changed! The order used to be aggregateSofaName, componentKey, componentSofaName. This was changed because it seemed an unnatural ordering.
componentKey
- the key/name used by the aggregate analysis engine for the component whose view is
being mapped.componentSofaName
- the sofa name used by the the componentaggregateSofaName
- the view name that the component name is mapped to and used by the aggregate analysis
enginepublic static org.apache.uima.analysis_engine.metadata.SofaMapping createSofaMapping(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass, String componentSofaName, String aggregateSofaName)
componentClass
- the component clascomponentSofaName
- the sofa name used by the the componentaggregateSofaName
- the view name that the component name is mapped to and used by the aggregate analysis
engineCopyright © 2012–2022 The Apache Software Foundation. All rights reserved.