org.cleartk.clearnlp
Class MPAnalyzer

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.MPAnalyzer
All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent

public class MPAnalyzer
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 morphological analyzer. This engine requires POS-tagged tokens and produces lemmatized forms of said tokens. This analyzer is available here:

http://clearnlp.googlecode.com

Author:
Lee Becker

Field Summary
static String DEFAULT_DICTIONARY_FILE_NAME
           
static String PARAM_DICTIONARY_URI
           
static String PARAM_LANGUAGE_CODE
           
 
Constructor Summary
MPAnalyzer()
           
 
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.
static org.apache.uima.analysis_engine.AnalysisEngineDescription getDescription(String langCode, URI dictionaryUri)
           
 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_DICTIONARY_FILE_NAME

public static final String DEFAULT_DICTIONARY_FILE_NAME
See Also:
Constant Field Values

PARAM_LANGUAGE_CODE

public static final String PARAM_LANGUAGE_CODE

PARAM_DICTIONARY_URI

public static final String PARAM_DICTIONARY_URI
Constructor Detail

MPAnalyzer

public MPAnalyzer()
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

getDescription

public static org.apache.uima.analysis_engine.AnalysisEngineDescription getDescription(String langCode,
                                                                                       URI dictionaryUri)
                                                                                throws org.apache.uima.resource.ResourceInitializationException
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.