org.cleartk.clearnlp
Class PosTagger

java.lang.Object
  extended by org.apache.uima.analysis_component.AnalysisComponent_ImplBase
      extended by org.apache.uima.analysis_component.Annotator_ImplBase
          extended by org.apache.uima.analysis_component.JCasAnnotator_ImplBase
              extended by org.uimafit.component.JCasAnnotator_ImplBase
                  extended by org.cleartk.clearnlp.PosTagger
All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent

public class PosTagger
extends org.uimafit.component.JCasAnnotator_ImplBase


Copyright (c) 2012, Regents of the University of Colorado
All rights reserved.

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. This tagger is available here:

http://clearnlp.googlecode.com

Author:
Lee Becker

Field Summary
static String DEFAULT_MODEL_FILE_NAME
           
static String PARAM_LANGUAGE_CODE
           
static String PARAM_MODEL_URI
           
 
Constructor Summary
PosTagger()
           
 
Method Summary
static org.apache.uima.analysis_engine.AnalysisEngineDescription getDescription()
          Convenience method to create Analysis Engine for ClearNLP's POSTagger + Lemmatizer using default English models and dictionaries.
 void initialize(org.apache.uima.UimaContext context)
           
 void process(org.apache.uima.jcas.JCas jCas)
           
 
Methods inherited from class org.uimafit.component.JCasAnnotator_ImplBase
getLogger
 
Methods inherited from class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
getRequiredCasInterface, process
 
Methods inherited from class org.apache.uima.analysis_component.Annotator_ImplBase
getCasInstancesRequired, hasNext, next
 
Methods inherited from class org.apache.uima.analysis_component.AnalysisComponent_ImplBase
batchProcessComplete, collectionProcessComplete, destroy, getContext, getResultSpecification, reconfigure, setResultSpecification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MODEL_FILE_NAME

public static final String DEFAULT_MODEL_FILE_NAME
See Also:
Constant Field Values

PARAM_MODEL_URI

public static final String PARAM_MODEL_URI

PARAM_LANGUAGE_CODE

public static final String PARAM_LANGUAGE_CODE
Constructor Detail

PosTagger

public PosTagger()
Method Detail

getDescription

public static org.apache.uima.analysis_engine.AnalysisEngineDescription getDescription()
                                                                                throws org.apache.uima.resource.ResourceInitializationException
Convenience method to create Analysis Engine for ClearNLP's POSTagger + Lemmatizer using default English models and dictionaries.

Throws:
org.apache.uima.resource.ResourceInitializationException

initialize

public void initialize(org.apache.uima.UimaContext context)
                throws org.apache.uima.resource.ResourceInitializationException
Specified by:
initialize in interface org.apache.uima.analysis_component.AnalysisComponent
Overrides:
initialize in class org.uimafit.component.JCasAnnotator_ImplBase
Throws:
org.apache.uima.resource.ResourceInitializationException

process

public void process(org.apache.uima.jcas.JCas jCas)
             throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
Specified by:
process in class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException


Copyright © 2013. All Rights Reserved.