public final class AnnotatorUtil extends Object
Modifier and Type | Method and Description |
---|---|
static opennlp.tools.dictionary.Dictionary |
createOptionalDictionary(org.apache.uima.UimaContext context,
String dictionaryParameter) |
static Boolean |
getOptionalBooleanParameter(org.apache.uima.UimaContext context,
String parameter)
Retrieves an optional parameter from the given context.
|
static org.apache.uima.cas.Feature |
getOptionalFeature(org.apache.uima.cas.Type type,
String featureName,
String rangeType) |
static org.apache.uima.cas.Feature |
getOptionalFeatureParameter(org.apache.uima.UimaContext context,
org.apache.uima.cas.Type nameType,
String featureNameParameter,
String rangeTypeName) |
static Float |
getOptionalFloatParameter(org.apache.uima.UimaContext context,
String parameter)
Retrieves an optional parameter from the given context.
|
static Integer |
getOptionalIntegerParameter(org.apache.uima.UimaContext context,
String parameter)
Retrieves an optional parameter from the given context.
|
static InputStream |
getOptionalResourceAsStream(org.apache.uima.UimaContext context,
String name) |
static String[] |
getOptionalStringArrayParameter(org.apache.uima.UimaContext context,
String parameter) |
static String |
getOptionalStringParameter(org.apache.uima.UimaContext context,
String parameter)
Retrieves an optional parameter from the given context.
|
static org.apache.uima.cas.Type |
getOptionalTypeParameter(org.apache.uima.UimaContext context,
org.apache.uima.cas.TypeSystem typeSystem,
String parameter) |
static Boolean |
getRequiredBooleanParameter(org.apache.uima.UimaContext context,
String parameter)
Retrieves a required parameter from the given context.
|
static org.apache.uima.cas.Feature |
getRequiredFeature(org.apache.uima.cas.Type type,
String featureName) |
static org.apache.uima.cas.Feature |
getRequiredFeature(org.apache.uima.cas.Type type,
String featureName,
String rangeType)
Retrieves a required feature from the given type.
|
static org.apache.uima.cas.Feature |
getRequiredFeatureParameter(org.apache.uima.UimaContext context,
org.apache.uima.cas.Type type,
String featureNameParameter) |
static org.apache.uima.cas.Feature |
getRequiredFeatureParameter(org.apache.uima.UimaContext context,
org.apache.uima.cas.Type type,
String featureNameParameter,
String rangeTypeName) |
static Float |
getRequiredFloatParameter(org.apache.uima.UimaContext context,
String parameter)
Retrieves a required parameter from the given context.
|
static Integer |
getRequiredIntegerParameter(org.apache.uima.UimaContext context,
String parameter)
Retrieves a required parameter from the given context.
|
static String |
getRequiredStringParameter(org.apache.uima.UimaContext context,
String parameter)
Retrieves a required parameter from the given context.
|
static org.apache.uima.cas.Type |
getRequiredTypeParameter(org.apache.uima.UimaContext context,
org.apache.uima.cas.TypeSystem typeSystem,
String parameter) |
static InputStream |
getResourceAsStream(org.apache.uima.UimaContext context,
String name)
Retrieves a resource as stream from the given context.
|
static org.apache.uima.cas.Type |
getType(org.apache.uima.cas.TypeSystem typeSystem,
String name)
Retrieves a type of the given name from the given type system.
|
public static org.apache.uima.cas.Type getType(org.apache.uima.cas.TypeSystem typeSystem, String name) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
typeSystem
- name
- org.apache.uima.analysis_engine.AnalysisEngineProcessException
public static org.apache.uima.cas.Feature getRequiredFeature(org.apache.uima.cas.Type type, String featureName) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
org.apache.uima.analysis_engine.AnalysisEngineProcessException
public static org.apache.uima.cas.Feature getRequiredFeature(org.apache.uima.cas.Type type, String featureName, String rangeType) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
type
- the typefeatureName
- the name of the featurerangeType
- the expected range typeorg.apache.uima.analysis_engine.AnalysisEngineProcessException
public static org.apache.uima.cas.Feature getRequiredFeatureParameter(org.apache.uima.UimaContext context, org.apache.uima.cas.Type type, String featureNameParameter) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
org.apache.uima.analysis_engine.AnalysisEngineProcessException
public static org.apache.uima.cas.Feature getRequiredFeatureParameter(org.apache.uima.UimaContext context, org.apache.uima.cas.Type type, String featureNameParameter, String rangeTypeName) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
org.apache.uima.analysis_engine.AnalysisEngineProcessException
public static org.apache.uima.cas.Type getRequiredTypeParameter(org.apache.uima.UimaContext context, org.apache.uima.cas.TypeSystem typeSystem, String parameter) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
org.apache.uima.analysis_engine.AnalysisEngineProcessException
public static String getRequiredStringParameter(org.apache.uima.UimaContext context, String parameter) throws org.apache.uima.resource.ResourceInitializationException
context
- parameter
- org.apache.uima.resource.ResourceInitializationException
public static Integer getRequiredIntegerParameter(org.apache.uima.UimaContext context, String parameter) throws org.apache.uima.resource.ResourceInitializationException
context
- parameter
- org.apache.uima.resource.ResourceInitializationException
public static Float getRequiredFloatParameter(org.apache.uima.UimaContext context, String parameter) throws org.apache.uima.resource.ResourceInitializationException
context
- parameter
- org.apache.uima.resource.ResourceInitializationException
public static Boolean getRequiredBooleanParameter(org.apache.uima.UimaContext context, String parameter) throws org.apache.uima.resource.ResourceInitializationException
context
- parameter
- org.apache.uima.resource.ResourceInitializationException
public static org.apache.uima.cas.Feature getOptionalFeatureParameter(org.apache.uima.UimaContext context, org.apache.uima.cas.Type nameType, String featureNameParameter, String rangeTypeName) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
org.apache.uima.analysis_engine.AnalysisEngineProcessException
public static org.apache.uima.cas.Feature getOptionalFeature(org.apache.uima.cas.Type type, String featureName, String rangeType) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
org.apache.uima.analysis_engine.AnalysisEngineProcessException
public static org.apache.uima.cas.Type getOptionalTypeParameter(org.apache.uima.UimaContext context, org.apache.uima.cas.TypeSystem typeSystem, String parameter) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
org.apache.uima.analysis_engine.AnalysisEngineProcessException
public static String getOptionalStringParameter(org.apache.uima.UimaContext context, String parameter) throws org.apache.uima.resource.ResourceInitializationException
context
- parameter
- org.apache.uima.resource.ResourceInitializationException
public static String[] getOptionalStringArrayParameter(org.apache.uima.UimaContext context, String parameter) throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationException
public static Integer getOptionalIntegerParameter(org.apache.uima.UimaContext context, String parameter) throws org.apache.uima.resource.ResourceInitializationException
context
- parameter
- org.apache.uima.resource.ResourceInitializationException
public static Float getOptionalFloatParameter(org.apache.uima.UimaContext context, String parameter) throws org.apache.uima.resource.ResourceInitializationException
context
- parameter
- org.apache.uima.resource.ResourceInitializationException
public static Boolean getOptionalBooleanParameter(org.apache.uima.UimaContext context, String parameter) throws org.apache.uima.resource.ResourceInitializationException
context
- parameter
- org.apache.uima.resource.ResourceInitializationException
public static InputStream getResourceAsStream(org.apache.uima.UimaContext context, String name) throws org.apache.uima.resource.ResourceInitializationException
context
- name
- org.apache.uima.resource.ResourceInitializationException
public static InputStream getOptionalResourceAsStream(org.apache.uima.UimaContext context, String name) throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationException
public static opennlp.tools.dictionary.Dictionary createOptionalDictionary(org.apache.uima.UimaContext context, String dictionaryParameter) throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationException
Copyright © 2017 The Apache Software Foundation. All rights reserved.