- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {LocalDateTime l =
new LocalDateTime()
LocalDateTime.now()
DateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
- Smart code suggestions by Codota
}
} else if (annotation instanceof Factuality) { final Factuality fact = (Factuality) annotation; return "factuality " + fact.getId() + " '" + fact.getWord().getStr() + "'"; } else if (annotation instanceof Coref) { return "coref " + ((Coref) annotation).getId();
try { Element fact = new Element("factvalue"); fact.setAttribute("id", f.getId()); fact.setAttribute("prediction", f.getMaxPart().getPrediction()); fact.setAttribute("confidence", Double.toString(f.getMaxPart().getConfidence()));
for (Factuality f : factualities) { Element factElem = new Element("factuality"); factElem.setAttribute("id", f.getId()); Span<Term> span = f.getSpan(); Comment spanComment = new Comment(StringEscapeUtils.escapeXml11(f.getSpanStr(span)));