public class XMLOutputter extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
XMLOutputter.Options |
| Constructor and Description |
|---|
XMLOutputter() |
| Modifier and Type | Method and Description |
|---|---|
static nu.xom.Document |
annotationToDoc(Annotation annotation,
StanfordCoreNLP pipeline)
Converts the given annotation to an XML document using options taken from the StanfordCoreNLP pipeline
|
static nu.xom.Document |
annotationToDoc(Annotation annotation,
XMLOutputter.Options options)
Converts the given annotation to an XML document using the specified options
|
static XMLOutputter.Options |
getOptions(StanfordCoreNLP pipeline)
Populates options from StanfordCoreNLP pipeline
|
static void |
xmlPrint(Annotation annotation,
OutputStream os) |
static void |
xmlPrint(Annotation annotation,
OutputStream os,
StanfordCoreNLP pipeline) |
static void |
xmlPrint(Annotation annotation,
OutputStream os,
XMLOutputter.Options options) |
public static XMLOutputter.Options getOptions(StanfordCoreNLP pipeline)
public static void xmlPrint(Annotation annotation, OutputStream os) throws IOException
IOExceptionpublic static void xmlPrint(Annotation annotation, OutputStream os, StanfordCoreNLP pipeline) throws IOException
IOExceptionpublic static void xmlPrint(Annotation annotation, OutputStream os, XMLOutputter.Options options) throws IOException
IOExceptionpublic static nu.xom.Document annotationToDoc(Annotation annotation, StanfordCoreNLP pipeline)
public static nu.xom.Document annotationToDoc(Annotation annotation, XMLOutputter.Options options)