public class ClearNlpSemanticRoleLabeler
extends org.apache.uima.fit.component.JCasAnnotator_ImplBase
Modifier and Type | Field and Description |
---|---|
protected boolean |
expandArguments |
protected String |
language |
static String |
PARAM_EXPAND_ARGUMENTS
Normally the arguments point only to the head words of arguments in the dependency tree.
|
static String |
PARAM_LANGUAGE
Use this language instead of the document language to resolve the model.
|
static String |
PARAM_PRED_MODEL_LOCATION
Location from which the predicate identifier model is read.
|
static String |
PARAM_PRINT_TAGSET
Write the tag set(s) to the log when a model is loaded.
|
static String |
PARAM_ROLE_MODEL_LOCATION
Location from which the roleset classification model is read.
|
static String |
PARAM_SRL_MODEL_LOCATION
Location from which the semantic role labeling model is read.
|
static String |
PARAM_VARIANT
Variant of a model the model.
|
protected String |
predModelLocation |
protected boolean |
printTagSet |
protected String |
roleModelLocation |
protected String |
srlModelLocation |
protected String |
variant |
Constructor and Description |
---|
ClearNlpSemanticRoleLabeler() |
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
protected boolean printTagSet
public static final String PARAM_LANGUAGE
protected String language
public static final String PARAM_VARIANT
protected String variant
public static final String PARAM_PRED_MODEL_LOCATION
protected String predModelLocation
public static final String PARAM_ROLE_MODEL_LOCATION
protected String roleModelLocation
public static final String PARAM_SRL_MODEL_LOCATION
protected String srlModelLocation
public static final String PARAM_EXPAND_ARGUMENTS
Normally the arguments point only to the head words of arguments in the dependency tree. With this option enabled, they are expanded to the text covered by the minimal and maximal token offsets of all descendants (or self) of the head word.
Warning: this parameter should be used with caution! For one, if the descentants of a head word cover a non-continuous region of the text, this information is lost. The arguments will appear to be spanning a continuous region. For another, the arguments may overlap with each other. E.g. if a sentence contains a relative clause with a verb, the subject of the main clause may be recognized as a dependent of the verb and may cause the whole main clause to be recorded in the argument.
protected boolean expandArguments
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–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.