public class BerkeleyParser
extends org.apache.uima.fit.component.JCasAnnotator_ImplBase
Sentence
s to be annotated before.CoarseToFineMaxRuleParser
Modifier and Type | Field and Description |
---|---|
protected String |
constituentMappingLocation |
protected String |
language |
protected boolean |
mappingEnabled |
protected String |
modelArtifactUri |
protected String |
modelLocation |
static String |
PARAM_ACCURATE
Set thresholds for accuracy instead of efficiency.
|
static String |
PARAM_BINARIZE
Output binarized trees.
|
static String |
PARAM_CONSTITUENT_MAPPING_LOCATION
Location of the mapping file for constituent tags to UIMA types.
|
static String |
PARAM_KEEP_FUNCTION_LABELS
Retain predicted function labels.
|
static String |
PARAM_LANGUAGE
Use this language instead of the language set in the CAS to locate the model.
|
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
Load the model from this location instead of locating the model automatically.
|
static String |
PARAM_POS_MAPPING_LOCATION
Location of the mapping file for part-of-speech tags to UIMA types.
|
static String |
PARAM_PRINT_TAGSET
Log the tag set(s) when a model is loaded.
|
static String |
PARAM_READ_POS
Sets whether to use or not to use already existing POS tags from another annotator for the
parsing process.
|
static String |
PARAM_SCORES
Output inside scores (only for binarized viterbi trees).
|
static String |
PARAM_SUBSTATES
Output sub-categories (only for binarized Viterbi trees).
|
static String |
PARAM_VARIANT
Override the default variant used to locate the model.
|
static String |
PARAM_VARIATIONAL
Use variational rule score approximation instead of max-rule
|
static String |
PARAM_VITERBI
Compute Viterbi derivation instead of max-rule tree.
|
static String |
PARAM_WRITE_PENN_TREE
If this parameter is set to true, each sentence is annotated with a PennTree-Annotation,
containing the whole parse tree in Penn Treebank style format.
|
static String |
PARAM_WRITE_POS
Sets whether to create or not to create POS tags.
|
protected String |
posMappingLocation |
protected boolean |
printTagSet |
protected String |
variant |
Constructor and Description |
---|
BerkeleyParser() |
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_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_MAPPING_ENABLED
protected boolean mappingEnabled
public static final String PARAM_POS_MAPPING_LOCATION
protected String posMappingLocation
public static final String PARAM_CONSTITUENT_MAPPING_LOCATION
protected String constituentMappingLocation
public static final String PARAM_PRINT_TAGSET
protected boolean printTagSet
public static final String PARAM_READ_POS
public static final String PARAM_WRITE_POS
public static final String PARAM_WRITE_PENN_TREE
public static final String PARAM_VITERBI
public static final String PARAM_SUBSTATES
public static final String PARAM_SCORES
public static final String PARAM_ACCURATE
public static final String PARAM_VARIATIONAL
public static final String PARAM_KEEP_FUNCTION_LABELS
public static final String PARAM_BINARIZE
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.