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, wait
getName, run, run, runFromScratch
public 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 CorefDocumentProcessor
public void finish() throws java.lang.Exception
finish
in interface CorefDocumentProcessor
java.lang.Exception
public static void exportData(java.lang.String outputPath, CorefProperties.Dataset dataset, java.util.Properties props, Dictionaries dictionaries) throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception