public class NameAnnotator extends Object
| Constructor and Description |
|---|
NameAnnotator()
create a new NameAnnotator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
annotate(Document doc)
annotate document
doc with named entity (ENAMEX)
annotations using the dictionary and rules of the ENE tagger. |
void |
annotate(Document doc,
Span span)
annotate the text in
span with named entity (ENAMEX)
annotations using the dictionary and rules of the ENE tagger. |
void |
loadClassDictionary(File file)
load the the dictionary to be used by word class tagger.
|
void |
loadClassDictionary(Reader in)
load the the dictionary to be used by word class tagger.
|
void |
loadClassHierarchy(File file) |
void |
loadRules(File file)
load the rules to be used by the ENE tagger using Reader 'in'.
|
void |
loadRules(Reader in)
load the rules to be used by the ENE tagger using Reader 'in'.
|
void |
setAliasMap(Map<String,String> map)
specify a mapping to be used to translate the TYPE feature of ENAMEX
annotations as a final step in tagging.
|
void |
setDictionary(Dictionary dict)
specify the dictionary to be used by the ENE tagger.
|
public void setDictionary(Dictionary dict)
public void loadClassDictionary(Reader in) throws IOException
IOExceptionpublic void loadClassDictionary(File file) throws IOException
IOExceptionpublic void loadRules(Reader in) throws IOException, RuleFormatException
IOExceptionRuleFormatExceptionpublic void loadRules(File file) throws IOException, RuleFormatException
IOExceptionRuleFormatExceptionpublic void annotate(Document doc, Span span)
span with named entity (ENAMEX)
annotations using the dictionary and rules of the ENE tagger. If
an alias map has been specified by 'setAliasMap', the tags are
translated using this map.public void annotate(Document doc)
doc with named entity (ENAMEX)
annotations using the dictionary and rules of the ENE tagger. If
an alias map has been specified by 'setAliasMap', the tags are
translated using this map.public void setAliasMap(Map<String,String> map)
public void loadClassHierarchy(File file) throws IOException
IOExceptionCopyright © 2016 New York University. All rights reserved.