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,
OutputStream os,
AnnotationOutputter.Options options) |
static void |
xmlPrint(Annotation annotation,
OutputStream os) |
static void |
xmlPrint(Annotation annotation,
OutputStream os,
AnnotationOutputter.Options options) |
static void |
xmlPrint(Annotation annotation,
OutputStream os,
StanfordCoreNLP pipeline) |
getOptions, print, print, print, print, print
public void print(Annotation annotation, OutputStream os, AnnotationOutputter.Options options) throws IOException
print
in class AnnotationOutputter
IOException
public static void xmlPrint(Annotation annotation, OutputStream os) throws IOException
IOException
public static void xmlPrint(Annotation annotation, OutputStream os, StanfordCoreNLP pipeline) throws IOException
IOException
public static void xmlPrint(Annotation annotation, OutputStream os, AnnotationOutputter.Options options) throws IOException
IOException
public static nu.xom.Document annotationToDoc(Annotation annotation, StanfordCoreNLP pipeline)
public static nu.xom.Document annotationToDoc(Annotation annotation, AnnotationOutputter.Options options)