public class XMLOutputter extends AnnotationOutputter
AnnotationSerializer; e.g.,
ProtobufAnnotationSerializer.AnnotationOutputter.Options| Constructor and Description |
|---|
XMLOutputter() |
| Modifier and Type | Method and Description |
|---|---|
static nu.xom.Document |
annotationToDoc(Annotation annotation,
AnnotationOutputter.Options options)
Converts the given annotation to an XML document using the specified options
|
static nu.xom.Document |
annotationToDoc(Annotation annotation,
StanfordCoreNLP pipeline)
Converts the given annotation to an XML document using options taken from the StanfordCoreNLP pipeline
|
void |
print(Annotation annotation,
java.io.OutputStream os,
AnnotationOutputter.Options options) |
static void |
xmlPrint(Annotation annotation,
java.io.OutputStream os) |
static void |
xmlPrint(Annotation annotation,
java.io.OutputStream os,
AnnotationOutputter.Options options) |
static void |
xmlPrint(Annotation annotation,
java.io.OutputStream os,
StanfordCoreNLP pipeline) |
getOptions, print, print, print, print, printpublic void print(Annotation annotation, java.io.OutputStream os, AnnotationOutputter.Options options) throws java.io.IOException
print in class AnnotationOutputterjava.io.IOExceptionpublic static void xmlPrint(Annotation annotation, java.io.OutputStream os) throws java.io.IOException
java.io.IOExceptionpublic static void xmlPrint(Annotation annotation, java.io.OutputStream os, StanfordCoreNLP pipeline) throws java.io.IOException
java.io.IOExceptionpublic static void xmlPrint(Annotation annotation, java.io.OutputStream os, AnnotationOutputter.Options options) throws java.io.IOException
java.io.IOExceptionpublic static nu.xom.Document annotationToDoc(Annotation annotation, StanfordCoreNLP pipeline)
public static nu.xom.Document annotationToDoc(Annotation annotation, AnnotationOutputter.Options options)