public class GazetteerViewGenerator extends Object implements ViewGenerator
Modifier and Type | Field and Description |
---|---|
static GazetteerViewGenerator |
cbcInstance |
static GazetteerViewGenerator |
gazetteersInstance |
static String |
GazetterView |
Constructor and Description |
---|
GazetteerViewGenerator(String directory,
boolean gzip,
String viewName) |
GazetteerViewGenerator(String directory,
String viewName) |
Modifier and Type | Method and Description |
---|---|
void |
addFilter(edu.illinois.cs.cogcomp.core.transformers.Predicate<edu.illinois.cs.cogcomp.core.datastructures.Pair<Constituent,SpanLabelView>> filter)
Add a filter for the labels.
|
static void |
addGazetteerFilters(GazetteerViewGenerator gazetteers) |
List<String> |
getGazetteerNames()
Returns the names of all the gazetteers known to this view generator.
|
View |
getView(TextAnnotation ta) |
String |
getViewName() |
void |
ignoreGazetteer(String label)
Adds a label to the set of gazetteers to be ignored.
|
static void |
main(String[] args) |
public static final GazetteerViewGenerator gazetteersInstance
public static final GazetteerViewGenerator cbcInstance
public static final String GazetterView
public GazetteerViewGenerator(String directory, String viewName) throws Exception
Exception
public void addFilter(edu.illinois.cs.cogcomp.core.transformers.Predicate<edu.illinois.cs.cogcomp.core.datastructures.Pair<Constituent,SpanLabelView>> filter)
label
- filter
- public void ignoreGazetteer(String label)
label
- public List<String> getGazetteerNames()
public String getViewName()
getViewName
in interface ViewGenerator
public View getView(TextAnnotation ta)
getView
in interface ViewGenerator
public static void addGazetteerFilters(GazetteerViewGenerator gazetteers)
public static void main(String[] args) throws EdisonException
EdisonException
Copyright © 2015. All rights reserved.