public class POSFromParse extends Annotator
config, isInitialized, requiredViews, viewName
Constructor and Description |
---|
POSFromParse(String parseViewName)
Creates a new POSFromParse that uses the specified parse tree to create a POS tag view.
|
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 . |
String |
getViewName()
return the name of the View created by this Annotator
|
void |
initialize(ResourceManager rm)
Derived classes use this to load memory- or time-consuming resources.
|
doInitialize, getTagValues, getView, isInitialized, isSentenceLevel
public POSFromParse(String parseViewName)
parseViewName
- The name of the parse view to use in order to get the POS labels.public void initialize(ResourceManager rm)
initialize
in class Annotator
rm
- configuration parameterspublic void addView(TextAnnotation ta)
Annotator
public String[] getRequiredViews()
BasicAnnotatorService
to check for pre-requisites before
calling any single (external) Annotator
.getRequiredViews
in class Annotator
ViewNames
required by
this ViewGeneratorpublic String getViewName()
Annotator
getViewName
in class Annotator
Copyright © 2017. All rights reserved.