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, isSentenceLevelpublic static final String viewName
public CommaLabeler()
public CommaLabeler(boolean lazilyInitialize)
public void initialize(ResourceManager resourceManager)
Annotatorinitialize in class AnnotatorresourceManager - configuration parameterspublic void addView(TextAnnotation ta) throws AnnotatorException
AnnotatoraddView in class Annotatorta - the TextAnnotation to modify.AnnotatorExceptionpublic void annotate(String inFileName, String outFileName) throws Exception
Exceptionpublic static String commaViewToString(TextAnnotation ta)
Copyright © 2017. All rights reserved.