public class MaltParser
extends org.apache.uima.fit.component.JCasAnnotator_ImplBase
Required annotations:
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
ignoreMissingFeatures |
protected String |
language |
protected String |
modelArtifactUri |
protected String |
modelLocation |
static String |
PARAM_IGNORE_MISSING_FEATURES
Process anyway, even if the model relies on features that are not supported by this
component.
|
static String |
PARAM_LANGUAGE
Use this language instead of the document language to resolve the model.
|
static String |
PARAM_MODEL_ARTIFACT_URI
URI of the model artifact.
|
static String |
PARAM_MODEL_LOCATION
Load the model from this location instead of locating the model automatically.
|
static String |
PARAM_PRINT_TAGSET
Log the tag set(s) when a model is loaded.
|
static String |
PARAM_VARIANT
Override the default variant used to locate the model.
|
protected boolean |
printTagSet |
protected String |
variant |
| Constructor and Description |
|---|
MaltParser() |
| Modifier and Type | Method and Description |
|---|---|
void |
collectionProcessComplete() |
void |
initialize(org.apache.uima.UimaContext context) |
void |
process(org.apache.uima.jcas.JCas aJCas) |
getRequiredCasInterface, processgetCasInstancesRequired, hasNext, nextpublic static final String PARAM_LANGUAGE
protected String language
public static final String PARAM_VARIANT
protected String variant
public static final String PARAM_MODEL_ARTIFACT_URI
The URI format is mvn:${groupId}:${artifactId}:${version}. Remember to set
the variant parameter to match the artifact. If the artifact contains the model in
a non-default location, you also have to specify the model location parameter, e.g.
classpath:/model/path/in/artifact/model.bin.
protected String modelArtifactUri
public static final String PARAM_MODEL_LOCATION
protected String modelLocation
public static final String PARAM_PRINT_TAGSET
protected boolean printTagSet
public static final String PARAM_IGNORE_MISSING_FEATURES
protected boolean ignoreMissingFeatures
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.fit.component.JCasAnnotator_ImplBaseorg.apache.uima.resource.ResourceInitializationExceptionpublic void collectionProcessComplete()
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
collectionProcessComplete in interface org.apache.uima.analysis_component.AnalysisComponentcollectionProcessComplete in class org.apache.uima.analysis_component.AnalysisComponent_ImplBaseorg.apache.uima.analysis_engine.AnalysisEngineProcessExceptionAnalysisComponent.collectionProcessComplete()public void process(org.apache.uima.jcas.JCas aJCas)
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process in class org.apache.uima.analysis_component.JCasAnnotator_ImplBaseorg.apache.uima.analysis_engine.AnalysisEngineProcessExceptionCopyright © 2007–2019 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.