Properties props = new Properties();
props.setProperty("annotators", "tokenize,ssplit,pos,lemma,depparse");
String text = "Barack Obama, a Yale professor, is president.";
Annotation document = new Annotation(text);
StanfordCoreNLP pipeline = new StanfordCoreNLP(props);
pipeline.annotate(document);
// Serialization should not bork.
File tempfile = IOUtils.writeObjectToTempFile(document.get(CoreAnnotations.SentencesAnnotation.class), "temp");
// Deserialization should not bork.