org.cleartk.clearnlp
Class DependencyParser
java.lang.Object
org.apache.uima.analysis_component.AnalysisComponent_ImplBase
org.apache.uima.analysis_component.Annotator_ImplBase
org.apache.uima.analysis_component.JCasAnnotator_ImplBase
org.uimafit.component.JCasAnnotator_ImplBase
org.cleartk.clearnlp.DependencyParser
- All Implemented Interfaces:
- org.apache.uima.analysis_component.AnalysisComponent
public class DependencyParser
- 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 dependency parser. A typical
pipeline preceding this analysis engine would consist of a tokenizer, sentence segmenter,
POS tagger, and lemmatizer (mp analyzer).
This parser is available here:
http://clearnlp.googlecode.com
- Author:
- Lee Becker
|
Method Summary |
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
getDescription()
Convenience method for creating Analysis Engine for ClearNLP's dependency parser using default English model files |
void |
initialize(org.apache.uima.UimaContext aContext)
|
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 |
DEFAULT_MODEL_FILE_NAME
public static final String DEFAULT_MODEL_FILE_NAME
- See Also:
- Constant Field Values
PARAM_PARSER_MODEL_URI
public static final String PARAM_PARSER_MODEL_URI
PARAM_LANGUAGE_CODE
public static final String PARAM_LANGUAGE_CODE
DependencyParser
public DependencyParser()
initialize
public void initialize(org.apache.uima.UimaContext aContext)
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
getDescription
public static org.apache.uima.analysis_engine.AnalysisEngineDescription getDescription()
throws org.apache.uima.resource.ResourceInitializationException
- Convenience method for creating Analysis Engine for ClearNLP's dependency parser using default English model files
- 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.