Skip to content

Commit

Permalink
get rid of trailing newline from sentiment tree
Browse files Browse the repository at this point in the history
  • Loading branch information
J38 authored and Stanford NLP committed Nov 1, 2017
1 parent 1ce3a3f commit b74d6bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/edu/stanford/nlp/pipeline/JSONOutputter.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public void print(Annotation doc, OutputStream target, Options options) throws I
(label.value() + "|sentiment=" + RNNCoreAnnotations.getPredictedClass(label) + "|prob=" +
(String.format("%.3f", RNNCoreAnnotations.getPredictedClassProb(label)))) : label.value());
String treeString = sentimentTreeStringWriter.toString();
l2.set("sentimentTree", treeString);
l2.set("sentimentTree", treeString.trim());
}
// (openie)
Collection<RelationTriple> openIETriples = sentence.get(NaturalLogicAnnotations.RelationTriplesAnnotation.class);
Expand Down

0 comments on commit b74d6bb

Please sign in to comment.