public class JSONOutputter extends AnnotationOutputter
AnnotationSerializer; e.g.,
ProtobufAnnotationSerializer.| Modifier and Type | Class and Description |
|---|---|
static class |
JSONOutputter.JSONWriter
Our very own little JSON writing class.
|
static interface |
JSONOutputter.Writer
A tiny little functional interface for writing a (key, value) pair.
|
AnnotationOutputter.Options| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
INDENT_CHAR |
| Constructor and Description |
|---|
JSONOutputter() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
jsonPrint(Annotation annotation) |
static void |
jsonPrint(Annotation annotation,
java.io.OutputStream os) |
static void |
jsonPrint(Annotation annotation,
java.io.OutputStream os,
AnnotationOutputter.Options options) |
static void |
jsonPrint(Annotation annotation,
java.io.OutputStream os,
StanfordCoreNLP pipeline) |
void |
print(Annotation doc,
java.io.OutputStream target,
AnnotationOutputter.Options options) |
getOptions, print, print, print, print, printprotected static final java.lang.String INDENT_CHAR
public void print(Annotation doc, java.io.OutputStream target, AnnotationOutputter.Options options) throws java.io.IOException
print in class AnnotationOutputterjava.io.IOExceptionpublic static java.lang.String jsonPrint(Annotation annotation) throws java.io.IOException
java.io.IOExceptionpublic static void jsonPrint(Annotation annotation, java.io.OutputStream os) throws java.io.IOException
java.io.IOExceptionpublic static void jsonPrint(Annotation annotation, java.io.OutputStream os, StanfordCoreNLP pipeline) throws java.io.IOException
java.io.IOExceptionpublic static void jsonPrint(Annotation annotation, java.io.OutputStream os, AnnotationOutputter.Options options) throws java.io.IOException
java.io.IOException