public class NeuralCorefDataExporter extends java.lang.Object implements CorefDocumentProcessor
| Constructor and Description |
|---|
NeuralCorefDataExporter(java.util.Properties props,
Dictionaries dictionaries,
java.lang.String dataPath,
java.lang.String goldClusterPath) |
| Modifier and Type | Method and Description |
|---|---|
static void |
exportData(java.lang.String outputPath,
CorefProperties.Dataset dataset,
java.util.Properties props,
Dictionaries dictionaries) |
void |
finish() |
static void |
main(java.lang.String[] args)
Can be run in one of two ways:
java edu.stanford.nlp.coref.neural.NeuralCorefDataExporter coref.properties output.path java edu.stanford.nlp.coref.neural.NeuralCorefDataExporter -props coref.properties -outputPath output.path otherargs... |
void |
process(int id,
Document document) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, run, run, runFromScratchpublic NeuralCorefDataExporter(java.util.Properties props,
Dictionaries dictionaries,
java.lang.String dataPath,
java.lang.String goldClusterPath)
public void process(int id,
Document document)
process in interface CorefDocumentProcessorpublic void finish()
throws java.lang.Exception
finish in interface CorefDocumentProcessorjava.lang.Exceptionpublic static void exportData(java.lang.String outputPath,
CorefProperties.Dataset dataset,
java.util.Properties props,
Dictionaries dictionaries)
throws java.lang.Exception
java.lang.Exceptionpublic static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception