public class Parser
extends org.apache.uima.analysis_component.CasAnnotator_ImplBase
Mandatory parameters
Type | Name | Description |
---|---|---|
String | opennlp.uima.ModelName | The name of the model file |
String | opennlp.uima.SentenceType | The full name of the sentence type |
String | opennlp.uima.TokenType | The full name of the token type |
String | opennlp.uima.ParseType | The full name of the parse type |
String | opennlp.uima.TypeFeature | The name of the type feature |
Optional parameters
Type | Name | Description |
---|---|---|
Integer | opennlp.uima.BeamSize |
Modifier and Type | Field and Description |
---|---|
static String |
CHILDREN_FEATURE_PARAMETER |
static String |
PARSE_TYPE_PARAMETER |
static String |
PROBABILITY_FEATURE_PARAMETER |
static String |
TYPE_FEATURE_PARAMETER |
Constructor and Description |
---|
Parser() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Releases allocated resources.
|
void |
initialize(org.apache.uima.UimaContext context)
Initializes the current instance with the given context.
|
void |
process(org.apache.uima.cas.CAS cas)
Performs parsing on the given
CAS object. |
void |
typeSystemInit(org.apache.uima.cas.TypeSystem typeSystem)
Initializes the type system.
|
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static final String PARSE_TYPE_PARAMETER
public static final String TYPE_FEATURE_PARAMETER
public static final String CHILDREN_FEATURE_PARAMETER
public static final String PROBABILITY_FEATURE_PARAMETER
public void initialize(org.apache.uima.UimaContext context) throws org.apache.uima.resource.ResourceInitializationException
initialize
in interface org.apache.uima.analysis_component.AnalysisComponent
initialize
in class org.apache.uima.analysis_component.AnalysisComponent_ImplBase
org.apache.uima.resource.ResourceInitializationException
public void typeSystemInit(org.apache.uima.cas.TypeSystem typeSystem) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
typeSystemInit
in class org.apache.uima.analysis_component.CasAnnotator_ImplBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
public void process(org.apache.uima.cas.CAS cas)
CAS
object.process
in class org.apache.uima.analysis_component.CasAnnotator_ImplBase
public void destroy()
destroy
in interface org.apache.uima.analysis_component.AnalysisComponent
destroy
in class org.apache.uima.analysis_component.AnalysisComponent_ImplBase
Copyright © 2018 The Apache Software Foundation. All rights reserved.