@Deprecated public class GazetteerViewGenerator extends Annotator
Modifier and Type | Field and Description |
---|---|
static GazetteerViewGenerator |
cbcInstance
Deprecated.
|
static GazetteerViewGenerator |
gazetteersInstance
Deprecated.
|
config, isInitialized, requiredViews
Constructor and Description |
---|
GazetteerViewGenerator(String directory,
boolean gzip,
String viewName,
boolean loadFromClasspath)
Deprecated.
|
GazetteerViewGenerator(String directory,
String viewName,
boolean loadFromClasspath)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addFilter(Predicate<Pair<Constituent,SpanLabelView>> filter)
Deprecated.
Add a filter for the labels.
|
static void |
addGazetteerFilters(GazetteerViewGenerator gazetteers)
Deprecated.
|
void |
addView(TextAnnotation ta)
Deprecated.
create and add the view named by getViewName() to the TextAnnotation argument.
|
List<String> |
getGazetteerNames()
Deprecated.
Returns the names of all the gazetteers known to this view generator.
|
String[] |
getRequiredViews()
Deprecated.
Can be used internally by
BasicAnnotatorService to check for pre-requisites before
calling any single (external) Annotator . |
void |
ignoreGazetteer(String label)
Deprecated.
Adds a label to the set of gazetteers to be ignored.
|
void |
initialize(ResourceManager rm)
Deprecated.
noop.
|
static void |
main(String[] args)
Deprecated.
|
doInitialize, getTagValues, getView, getViewName, isInitialized, isSentenceLevel
public static final GazetteerViewGenerator gazetteersInstance
public static final GazetteerViewGenerator cbcInstance
public GazetteerViewGenerator(String directory, String viewName, boolean loadFromClasspath) throws Exception
Exception
public static void addGazetteerFilters(GazetteerViewGenerator gazetteers)
public static void main(String[] args) throws EdisonException, AnnotatorException
EdisonException
AnnotatorException
public void addFilter(Predicate<Pair<Constituent,SpanLabelView>> filter)
public void ignoreGazetteer(String label)
public List<String> getGazetteerNames()
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.