public class SemanticRoleLabeler extends SemanticRoleLabeler_ImplBase<Sentence,Token,DependencyNode,TopDependencyNode,DependencyRelation,SemanticArgument,Predicate>
This class provides a UIMA/ClearTK wrapper for the ClearNLP semantic role labeler. A typical pipeline preceding this analysis engine would consist of a tokenizer, sentence segmenter, POS tagger, lemmatizer (mp analyzer), and dependency parser.
The ClearNLP labeler is available here:
http://clearnlp.googlecode.com
DEFAULT_PRED_ID_MODEL_PATH, DEFAULT_ROLESET_MODEL_PATH, DEFAULT_SRL_MODEL_PATH, PARAM_LANGUAGE_CODE, PARAM_PRED_ID_MODEL_PATH, PARAM_ROLESET_MODEL_PATH, PARAM_SRL_MODEL_PATH, PARAM_WINDOW_CLASS| Constructor and Description |
|---|
SemanticRoleLabeler() |
| Modifier and Type | Method and Description |
|---|---|
static AnalysisEngineDescription |
getDescription() |
static AnalysisEngineDescription |
getDescription(String languageCode,
String predIdModelPath,
String rolesetModelPath,
String srlModelPath) |
initialize, processgetLoggergetRequiredCasInterface, processgetCasInstancesRequired, hasNext, nextbatchProcessComplete, collectionProcessComplete, destroy, getContext, getResultSpecification, reconfigure, setResultSpecificationpublic SemanticRoleLabeler()
public static AnalysisEngineDescription getDescription() throws ResourceInitializationException
ResourceInitializationExceptionpublic static AnalysisEngineDescription getDescription(String languageCode, String predIdModelPath, String rolesetModelPath, String srlModelPath) throws ResourceInitializationException
ResourceInitializationExceptionCopyright © 2014. All rights reserved.