public String print(Annotation ann) throws IOException { return print(ann, DEFAULT_OPTIONS); }
public void print(Annotation annotation, OutputStream os) throws IOException { print(annotation, os, DEFAULT_OPTIONS); }
public String print(Annotation ann, Options options) throws IOException { ByteArrayOutputStream os = new ByteArrayOutputStream(); print(ann, os, options); os.close(); return new String(os.toByteArray()); }
public String print(Annotation ann, StanfordCoreNLP pipeline) throws IOException { return print(ann, getOptions(pipeline.getProperties())); }
public void print(Annotation annotation, OutputStream os, StanfordCoreNLP pipeline) throws IOException { print(annotation, os, getOptions(pipeline.getProperties())); }
case XML: AnnotationOutputter outputter = MetaClass.create("edu.stanford.nlp.pipeline.XMLOutputter").createInstance(); outputter.print(annotation, fos, outputOptions); break; case JSON: case CUSTOM: AnnotationOutputter customOutputter = ReflectionLoading.loadByReflection(properties.getProperty("customOutputter")); customOutputter.print(annotation, fos, outputOptions); break; default:
public String print(Annotation ann) throws IOException { return print(ann, DEFAULT_OPTIONS); }
public void print(Annotation annotation, OutputStream os) throws IOException { print(annotation, os, DEFAULT_OPTIONS); }
public String print(Annotation ann, Options options) throws IOException { ByteArrayOutputStream os = new ByteArrayOutputStream(); print(ann, os, options); os.close(); return new String(os.toByteArray()); }
public void print(Annotation annotation, OutputStream os, StanfordCoreNLP pipeline) throws IOException { print(annotation, os, getOptions(pipeline.getProperties())); }
public String print(Annotation ann, StanfordCoreNLP pipeline) throws IOException { return print(ann, getOptions(pipeline.getProperties())); }
case XML: AnnotationOutputter outputter = MetaClass.create("edu.stanford.nlp.pipeline.XMLOutputter").createInstance(); outputter.print(annotation, fos, outputOptions); break; case JSON: case CUSTOM: AnnotationOutputter customOutputter = ReflectionLoading.loadByReflection(properties.getProperty("customOutputter")); customOutputter.print(annotation, fos, outputOptions); break; default: