@PipeBitInfo(name="ClearNLP Dependency Parser", description="Analyses Sentence Structure, storing information in nodes.", role=SPECIAL, dependencies={SENTENCE,BASE_TOKEN}, products=DEPENDENCY_NODE) public class ClearNLPDependencyParserAE extends org.apache.uima.fit.component.JCasAnnotator_ImplBase
http://code.google.com/p/clearnlp
Please see /ClearNLP-wrapper/resources/dependency/README for important information pertaining to the models provided for this parser. In particular, note that the output of the CLEAR parser is different than that of the Malt parser and so these two parsers may not be interchangeable (without some effort) for most use cases.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_MODEL_FILE_NAME |
static String |
ENG_LEMMATIZER_DATA_FILE |
protected com.googlecode.clearnlp.morphology.AbstractMPAnalyzer |
lemmatizer |
protected URI |
lemmatizerDataFile |
org.apache.log4j.Logger |
logger |
static String |
PARAM_LEMMATIZER_DATA_FILE |
static String |
PARAM_PARSER_MODEL_FILE_NAME |
static String |
PARAM_USE_LEMMATIZER |
protected com.googlecode.clearnlp.component.AbstractComponent |
parser |
protected URI |
parserModelUri |
protected boolean |
useLemmatizer |
Constructor and Description |
---|
ClearNLPDependencyParserAE() |
Modifier and Type | Method and Description |
---|---|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createAnnotatorDescription() |
void |
initialize(org.apache.uima.UimaContext context) |
void |
process(org.apache.uima.jcas.JCas jCas) |
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public org.apache.log4j.Logger logger
public static final String DEFAULT_MODEL_FILE_NAME
public static final String ENG_LEMMATIZER_DATA_FILE
public static final String PARAM_PARSER_MODEL_FILE_NAME
protected URI parserModelUri
public static final String PARAM_LEMMATIZER_DATA_FILE
protected URI lemmatizerDataFile
public static final String PARAM_USE_LEMMATIZER
protected boolean useLemmatizer
protected com.googlecode.clearnlp.component.AbstractComponent parser
protected com.googlecode.clearnlp.morphology.AbstractMPAnalyzer lemmatizer
public void initialize(org.apache.uima.UimaContext context) 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 jCas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process
in class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
public static org.apache.uima.analysis_engine.AnalysisEngineDescription createAnnotatorDescription() throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.