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, processgetCasInstancesRequired, hasNext, nextpublic 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.AnalysisComponentinitialize in class org.apache.uima.analysis_component.AnalysisComponent_ImplBaseorg.apache.uima.resource.ResourceInitializationExceptionpublic void typeSystemInit(org.apache.uima.cas.TypeSystem typeSystem)
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
typeSystemInit in class org.apache.uima.analysis_component.CasAnnotator_ImplBaseorg.apache.uima.analysis_engine.AnalysisEngineProcessExceptionpublic void process(org.apache.uima.cas.CAS cas)
CAS object.process in class org.apache.uima.analysis_component.CasAnnotator_ImplBasepublic void destroy()
destroy in interface org.apache.uima.analysis_component.AnalysisComponentdestroy in class org.apache.uima.analysis_component.AnalysisComponent_ImplBaseCopyright © 2015 The Apache Software Foundation. All rights reserved.