public class ClauseViewGenerator extends Annotator
SpanLabelView with clause information using the parse tree. This view generator
follows the specification in "Tjong Kim Sang, E. F., & D'ejean, H. (2001):
Introduction to the CoNLL-2001 Shared Task: Clause Identification" and picks out all parse tree
nodes that starts with an S to be a clause. In particular, FRAG and RRC are ignored.| Modifier and Type | Field and Description |
|---|---|
static ClauseViewGenerator |
BERKELEY |
static ClauseViewGenerator |
CHARNIAK |
static ClauseViewGenerator |
STANFORD |
config, isInitialized, requiredViews, viewName| Constructor and Description |
|---|
ClauseViewGenerator(String parseViewName,
String clauseViewName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addView(TextAnnotation ta)
create and add the view named by getViewName() to the TextAnnotation argument.
|
String[] |
getRequiredViews()
Can be used internally by
BasicAnnotatorService to check for pre-requisites before
calling any single (external) Annotator. |
void |
initialize(ResourceManager rm)
noop.
|
doInitialize, getTagValues, getView, getViewName, isInitialized, isSentenceLevelpublic static ClauseViewGenerator CHARNIAK
public static ClauseViewGenerator STANFORD
public static ClauseViewGenerator BERKELEY
public void initialize(ResourceManager rm)
initialize in class Annotatorrm - configuration parameterspublic void addView(TextAnnotation ta)
Annotatorpublic String[] getRequiredViews()
AnnotatorBasicAnnotatorService to check for pre-requisites before
calling any single (external) Annotator.getRequiredViews in class AnnotatorViewNames required by
this ViewGeneratorCopyright © 2017. All rights reserved.