public class CommaLabeler extends Annotator
PredicateArgumentView
Modifier and Type | Field and Description |
---|---|
static String |
viewName |
config, isInitialized, requiredViews
Constructor and Description |
---|
CommaLabeler() |
CommaLabeler(boolean lazilyInitialize) |
Modifier and Type | Method and Description |
---|---|
void |
addView(TextAnnotation ta)
create and add the view named by getViewName() to the TextAnnotation argument.
|
void |
annotate(String inFileName,
String outFileName) |
static String |
commaViewToString(TextAnnotation ta) |
void |
initialize(ResourceManager resourceManager)
Derived classes use this to load memory- or time-consuming resources.
|
static void |
main(String[] args) |
doInitialize, getRequiredViews, getTagValues, getView, getViewName, isInitialized, isSentenceLevel
public static final String viewName
public CommaLabeler()
public CommaLabeler(boolean lazilyInitialize)
public void initialize(ResourceManager resourceManager)
Annotator
initialize
in class Annotator
resourceManager
- configuration parameterspublic void addView(TextAnnotation ta) throws AnnotatorException
Annotator
addView
in class Annotator
ta
- the TextAnnotation to modify.AnnotatorException
public void annotate(String inFileName, String outFileName) throws Exception
Exception
public static String commaViewToString(TextAnnotation ta)
Copyright © 2017. All rights reserved.