public class ClearNlpPosTagger
extends org.apache.uima.fit.component.JCasAnnotator_ImplBase
Sentence
s to be annotated before.Modifier and Type | Field and Description |
---|---|
protected String |
dictLocation |
protected String |
dictVariant |
protected String |
language |
static String |
PARAM_DICT_LOCATION
Load the dictionary from this location instead of locating the dictionary automatically.
|
static String |
PARAM_DICT_VARIANT
Override the default variant used to locate the dictionary.
|
static String |
PARAM_INTERN_TAGS
Use the
String.intern() method on tags. |
static String |
PARAM_LANGUAGE
Use this language instead of the document language to resolve the model.
|
static String |
PARAM_MODEL_LOCATION
Load the model from this location instead of locating the pos-tagging model automatically.
|
static String |
PARAM_POS_MAPPING_LOCATION
Load the part-of-speech tag to UIMA type mapping from this location instead of locating the
mapping automatically.
|
static String |
PARAM_PRINT_TAGSET
Log the tag set(s) when a model is loaded.
|
static String |
PARAM_VARIANT
Override the default variant used to locate the pos-tagging model.
|
protected String |
posMappingLocation |
protected String |
posModelLocation |
protected String |
posVariant |
protected boolean |
printTagSet |
Constructor and Description |
---|
ClearNlpPosTagger() |
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_DICT_VARIANT
protected String dictVariant
public static final String PARAM_DICT_LOCATION
protected String dictLocation
public static final String PARAM_VARIANT
protected String posVariant
public static final String PARAM_MODEL_LOCATION
protected String posModelLocation
public static final String PARAM_POS_MAPPING_LOCATION
protected String posMappingLocation
public static final String PARAM_INTERN_TAGS
String.intern()
method on tags. This is usually a good idea to avoid spaming
the heap with thousands of strings representing only a few different tags.public static final String PARAM_PRINT_TAGSET
protected boolean printTagSet
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.