public class DictionaryTagger extends Object
| Constructor and Description |
|---|
DictionaryTagger() |
| Modifier and Type | Method and Description |
|---|---|
void |
annotate(Document doc)
look up all the tokens in 'doc' in the ENE dictionary.
|
void |
annotate(Document doc,
Span span)
look up the tokens in
span in the ENE dictionary and
record the results on the NE_INTERNAL annotations for these tokens. |
void |
setDictionary(Dictionary dict)
Set dictionary.
|
public void setDictionary(Dictionary dict)
dict - the ENE dictionarypublic void annotate(Document doc, Span span)
span in the ENE dictionary and
record the results on the NE_INTERNAL annotations for these tokens.
The dictionary information is recorded on the 'categories' feature
of these annotations.public void annotate(Document doc)
Copyright © 2016 New York University. All rights reserved.