public class TokenMerger
extends org.apache.uima.fit.component.JCasAnnotator_ImplBase
Modifier and Type | Class and Description |
---|---|
static class |
TokenMerger.LemmaMode |
Modifier and Type | Field and Description |
---|---|
protected String |
language |
static String |
PARAM_ANNOTATION_TYPE
Annotation type for which tokens should be merged.
|
static String |
PARAM_CONSTRAINT
A constraint on the annotations that should be considered in form of a JXPath statement.
|
static String |
PARAM_CPOS_VALUE
Set a new coarse POS value for the new merged token.
|
static String |
PARAM_LANGUAGE
Use this language instead of the document language to resolve the model and tag set mapping.
|
static String |
PARAM_LEMMA_MODE
Configure what should happen to the lemma of the merged tokens.
|
static String |
PARAM_POS_MAPPING_LOCATION
Override the tagset mapping.
|
static String |
PARAM_POS_TYPE
Set a new POS tag for the new merged token.
|
static String |
PARAM_POS_VALUE
Set a new POS value for the new merged token.
|
protected String |
posMappingLocation |
Constructor and Description |
---|
TokenMerger() |
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_ANNOTATION_TYPE
public static final String PARAM_CONSTRAINT
PARAM_ANNOTATION_TYPE
to a NamedEntity
type and set the
PARAM_CONSTRAINT
to ".[value = 'LOCATION']"
to merge only tokens that are
part of a location named entity.public static final String PARAM_LEMMA_MODE
public static final String PARAM_POS_VALUE
public static final String PARAM_CPOS_VALUE
public static final String PARAM_POS_TYPE
public static final String PARAM_LANGUAGE
protected String language
public static final String PARAM_POS_MAPPING_LOCATION
protected String posMappingLocation
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.