public class Nlp4JDependencyParser
extends org.apache.uima.fit.component.JCasAnnotator_ImplBase
Modifier and Type | Field and Description |
---|---|
protected boolean |
ignoreMissingFeatures |
protected boolean |
mappingEnabled |
protected String |
modelArtifactUri |
static String |
PARAM_DEPENDENCY_MAPPING_LOCATION
Location of the mapping file for part-of-speech tags to UIMA types.
|
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 and tag set mapping.
|
static String |
PARAM_MAPPING_ENABLED
Enable/disable type mapping.
|
static String |
PARAM_MODEL_ARTIFACT_URI
URI of the model artifact.
|
static String |
PARAM_MODEL_LOCATION
Location from which the model is read.
|
static String |
PARAM_PRINT_TAGSET
Log the tag set(s) when a model is loaded.
|
static String |
PARAM_VARIANT
Variant of a model the model.
|
Constructor and Description |
---|
Nlp4JDependencyParser() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(org.apache.uima.UimaContext aContext) |
void |
process(org.apache.uima.jcas.JCas aJCas) |
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static final String PARAM_PRINT_TAGSET
public static final String PARAM_LANGUAGE
public static final String PARAM_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
public static final String PARAM_MAPPING_ENABLED
protected boolean mappingEnabled
public static final String PARAM_DEPENDENCY_MAPPING_LOCATION
public static final String PARAM_IGNORE_MISSING_FEATURES
protected boolean ignoreMissingFeatures
public void initialize(org.apache.uima.UimaContext aContext) throws org.apache.uima.resource.ResourceInitializationException
initialize
in interface org.apache.uima.analysis_component.AnalysisComponent
initialize
in class org.apache.uima.fit.component.JCasAnnotator_ImplBase
org.apache.uima.resource.ResourceInitializationException
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_ImplBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
Copyright © 2007–2019 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.