@PipeBitInfo(name="ClearNLP Semantic Role Labeler", description="Adds Semantic Roles Relations.", role=ANNOTATOR, dependencies={SENTENCE,BASE_TOKEN,DEPENDENCY_NODE}, products=SEMANTIC_RELATION) public class ClearNLPSemanticRoleLabelerAE extends org.apache.uima.fit.component.JCasAnnotator_ImplBase
http://code.google.com/p/clearnlp
Before using this AnalysisEngine, you should run a Tokenizer, POS-tagger, Lemmatizer, and the CLEAR parser dependency parser.
Please see /ClearNLP-wrapper/resources/dependency/clear/README for important information pertaining to the models provided for this parser.
Modifier and Type | Field and Description |
---|---|
protected com.googlecode.clearnlp.component.AbstractComponent |
classifier |
static String |
DEFAULT_PRED_MODEL_FILE_NAME |
static String |
DEFAULT_ROLE_MODEL_FILE_NAME |
static String |
DEFAULT_SRL_MODEL_FILE_NAME |
protected com.googlecode.clearnlp.component.AbstractComponent |
identifier |
org.apache.log4j.Logger |
logger |
static String |
PARAM_LEMMATIZER_DATA_FILE |
static String |
PARAM_PARSER_MODEL_FILE_NAME |
static String |
PARAM_PRED_MODEL_FILE_NAME |
static String |
PARAM_ROLE_MODEL_FILE_NAME |
protected com.googlecode.clearnlp.component.AbstractComponent |
srlabeler |
protected URI |
srlModelUri |
protected URI |
srlPredUri |
protected URI |
srlRoleUri |
Constructor and Description |
---|
ClearNLPSemanticRoleLabelerAE() |
Modifier and Type | Method and Description |
---|---|
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_SRL_MODEL_FILE_NAME
public static final String DEFAULT_PRED_MODEL_FILE_NAME
public static final String DEFAULT_ROLE_MODEL_FILE_NAME
public static final String PARAM_PARSER_MODEL_FILE_NAME
public static final String PARAM_PRED_MODEL_FILE_NAME
public static final String PARAM_ROLE_MODEL_FILE_NAME
protected URI srlModelUri
protected URI srlPredUri
protected URI srlRoleUri
public static final String PARAM_LEMMATIZER_DATA_FILE
protected com.googlecode.clearnlp.component.AbstractComponent srlabeler
protected com.googlecode.clearnlp.component.AbstractComponent identifier
protected com.googlecode.clearnlp.component.AbstractComponent classifier
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
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.