public abstract class PosTagger_ImplBase<TOKEN_TYPE extends org.apache.uima.jcas.tcas.Annotation>
extends org.uimafit.component.JCasAnnotator_ImplBase
This class provides a UIMA/ClearTK wrapper for the ClearNLP part of speech (POS) tagger. This engine requires tokenize input and produces POS tags on the tokens. Subclasses should override the abstract methods to produce the annotations relevant for the target type system. This tagger is available here:
http://clearnlp.googlecode.com
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_MODEL_FILE_NAME |
static String |
PARAM_LANGUAGE_CODE |
static String |
PARAM_MODEL_URI |
static String |
PARAM_WINDOW_CLASS |
| Constructor and Description |
|---|
PosTagger_ImplBase(TokenOps<TOKEN_TYPE> tokenOps) |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(org.apache.uima.UimaContext context) |
void |
process(org.apache.uima.jcas.JCas jCas) |
getRequiredCasInterface, processgetCasInstancesRequired, hasNext, nextpublic static final String DEFAULT_MODEL_FILE_NAME
public static final String PARAM_MODEL_URI
public static final String PARAM_LANGUAGE_CODE
public static final String PARAM_WINDOW_CLASS
public PosTagger_ImplBase(TokenOps<TOKEN_TYPE> tokenOps)
public void initialize(org.apache.uima.UimaContext context)
throws org.apache.uima.resource.ResourceInitializationException
initialize in interface org.apache.uima.analysis_component.AnalysisComponentinitialize in class org.uimafit.component.JCasAnnotator_ImplBaseorg.apache.uima.resource.ResourceInitializationExceptionpublic void process(org.apache.uima.jcas.JCas jCas)
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process in class org.apache.uima.analysis_component.JCasAnnotator_ImplBaseorg.apache.uima.analysis_engine.AnalysisEngineProcessExceptionCopyright © 2013. All Rights Reserved.