public class ArktweetPosTagger
extends org.apache.uima.fit.component.CasAnnotator_ImplBase
Modifier and Type | Class and Description |
---|---|
static class |
ArktweetPosTagger.TaggedToken
One token and its tag.
|
class |
ArktweetPosTagger.TweetTagger
Loads a model from a file.
|
Modifier and Type | Field and Description |
---|---|
protected String |
language |
protected String |
modelLocation |
static String |
PARAM_LANGUAGE
Use this language instead of the document language to resolve the model and tag set mapping.
|
static String |
PARAM_MODEL_LOCATION
Location from which the model is read.
|
static String |
PARAM_POS_MAPPING_LOCATION
Location of the mapping file for part-of-speech tags to UIMA types.
|
static String |
PARAM_VARIANT
Variant of a model the model.
|
protected String |
posMappingLocation |
protected String |
variant |
Constructor and Description |
---|
ArktweetPosTagger() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(org.apache.uima.UimaContext context) |
void |
process(org.apache.uima.cas.CAS cas) |
void |
typeSystemInit(org.apache.uima.cas.TypeSystem aTypeSystem) |
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_LOCATION
protected String modelLocation
public static final String PARAM_POS_MAPPING_LOCATION
protected String posMappingLocation
public void initialize(org.apache.uima.UimaContext context) throws org.apache.uima.resource.ResourceInitializationException
initialize
in interface org.apache.uima.analysis_component.AnalysisComponent
initialize
in class org.apache.uima.fit.component.CasAnnotator_ImplBase
org.apache.uima.resource.ResourceInitializationException
public void typeSystemInit(org.apache.uima.cas.TypeSystem aTypeSystem) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
typeSystemInit
in class org.apache.uima.analysis_component.CasAnnotator_ImplBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
public void process(org.apache.uima.cas.CAS cas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process
in class org.apache.uima.analysis_component.CasAnnotator_ImplBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.