public class SemanticRoleLabeler extends SemanticRoleLabeler_ImplBase<org.cleartk.token.type.Sentence,org.cleartk.token.type.Token,org.cleartk.syntax.dependency.type.DependencyNode,org.cleartk.syntax.dependency.type.TopDependencyNode,org.cleartk.syntax.dependency.type.DependencyRelation,org.cleartk.srl.type.SemanticArgument,org.cleartk.srl.type.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_FILE_NAME, DEFAULT_ROLESET_MODEL_FILE_NAME, DEFAULT_SRL_MODEL_FILE_NAME, PARAM_LANGUAGE_CODE, PARAM_PRED_ID_MODEL_URI, PARAM_ROLESET_MODEL_URI, PARAM_SRL_MODEL_URI, PARAM_WINDOW_CLASS| Constructor and Description |
|---|
SemanticRoleLabeler() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
getDescription() |
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
getDescription(String languageCode,
URI predIdModelUri,
URI rolesetModelUri,
URI srlModelUri) |
initialize, processgetRequiredCasInterface, processgetCasInstancesRequired, hasNext, nextpublic static org.apache.uima.analysis_engine.AnalysisEngineDescription getDescription()
throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationExceptionpublic static org.apache.uima.analysis_engine.AnalysisEngineDescription getDescription(String languageCode, URI predIdModelUri, URI rolesetModelUri, URI srlModelUri) throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationExceptionCopyright © 2013. All Rights Reserved.