public class CRFNameTagger extends Object
| Constructor and Description |
|---|
CRFNameTagger() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFeature(edu.umass.cs.mallet.base.pipe.Pipe feature) |
protected void |
addFeatures() |
void |
annotate(Document doc,
Span span) |
protected edu.umass.cs.mallet.base.pipe.Pipe |
createFeaturePipe() |
protected edu.umass.cs.mallet.base.pipe.Pipe |
createPipe() |
static void |
main(String[] args) |
void |
readModel(File file) |
void |
readModel(InputStream in) |
void |
setProperty(String key,
Object value) |
static void |
test(File modelFile,
File list,
File outDir) |
void |
train(Collection<Document> docs) |
void |
writeModel(File file) |
void |
writeModel(OutputStream out) |
public void train(Collection<Document> docs)
protected edu.umass.cs.mallet.base.pipe.Pipe createPipe()
protected edu.umass.cs.mallet.base.pipe.Pipe createFeaturePipe()
protected void addFeatures()
public void addFeature(edu.umass.cs.mallet.base.pipe.Pipe feature)
public void writeModel(OutputStream out) throws IOException
IOExceptionpublic void writeModel(File file) throws IOException
IOExceptionpublic void readModel(InputStream in) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic void readModel(File file) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic static void test(File modelFile, File list, File outDir) throws IOException, ParserConfigurationException, SAXException, ClassNotFoundException
Copyright © 2016 New York University. All rights reserved.