public class MENameTagger extends Object implements NameTagger
| Constructor and Description |
|---|
MENameTagger()
creates a new MENameTagger.
|
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(String tagTableFile,
String featureFile)
initialize the tagger for training by loading from file
tagTableFile
the list of valid annotations. |
void |
load(String fileName)
load the data associated with this tagger from file 'fileName'.
|
static void |
main(String[] args) |
void |
newDocument() |
void |
store(String fileName)
store the data associated with this tagger to file 'fileName'.
|
void |
tag(Document doc,
Span span)
tag span 'span' of Document 'doc' with Named Entity annotations.
|
void |
tagDocument(Document doc)
tag document
doc for named entities. |
void |
train(ExternalDocument doc) |
void |
train(String trainingCollection)
train the tagger using the collection of Documents 'trainingCollection'.
|
void |
train(String directory,
String fileList) |
public MaxEntNE mene
public void initialize(String tagTableFile, String featureFile)
tagTableFile
the list of valid annotations.public void train(String trainingCollection) throws IOException
IOExceptionpublic void train(ExternalDocument doc)
public void train(String directory, String fileList) throws IOException
IOExceptionpublic void store(String fileName) throws IOException
IOExceptionpublic void load(String fileName) throws IOException
load in interface NameTaggerIOExceptionpublic void tagDocument(Document doc)
doc for named entities.tagDocument in interface NameTaggerpublic void newDocument()
newDocument in interface NameTaggerpublic void tag(Document doc, Span span)
tag in interface NameTaggerpublic static void main(String[] args) throws IOException
IOExceptionCopyright © 2016 New York University. All rights reserved.