- 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
}
private void processFactuality(final Factuality factuality) throws RDFHandlerException { // TODO: factuality should be better handled // Retrieve term and corresponding annotation final Term term = factuality.getWord(); final Annotation ann = this.annotations.get(term.getId()); // Abort if the annotation is missing or does not refer to a predicate if (ann == null || ann.predicateURI == null) { return; } // Emit a mention for the predicate extent final URI mentionURI = emitMention(ann.extent); // Emit a triple associating the factuality value to the predicate final String value = factuality.getMaxPart().getPrediction(); emitFact(ann.predicateURI, KS.FACTUALITY, value, mentionURI, null); }
if (this.sentenceIDs[factuality.getWord().getSent()]) { try { processFactuality(factuality);
} 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();