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, isSentenceLevel
public static ClauseViewGenerator CHARNIAK
public static ClauseViewGenerator STANFORD
public static ClauseViewGenerator BERKELEY
public void initialize(ResourceManager rm)
initialize
in class Annotator
rm
- configuration parameterspublic void addView(TextAnnotation ta)
Annotator
public String[] getRequiredViews()
Annotator
BasicAnnotatorService
to check for pre-requisites before
calling any single (external) Annotator
.getRequiredViews
in class Annotator
ViewNames
required by
this ViewGeneratorCopyright © 2017. All rights reserved.