String sentenceText = document.sentences().get(0).text(); System.out.println("Example: sentence"); System.out.println(sentenceText); CoreSentence sentence = document.sentences().get(1); document.sentences().get(4).relations(); System.out.println("Example: relation"); System.out.println(relations.get(0)); CoreEntityMention originalEntityMention = document.sentences().get(3).entityMentions().get(1); System.out.println("Example: original entity mention"); System.out.println(originalEntityMention);
int lastSentenceIndex = this.quoteCoreMap.get(CoreAnnotations.SentenceEndAnnotation.class); for (int currSentIndex = firstSentenceIndex ; currSentIndex <= lastSentenceIndex ; currSentIndex++) { this.sentences.add(this.document.sentences().get(currSentIndex));
int lastSentenceIndex = this.quoteCoreMap.get(CoreAnnotations.SentenceEndAnnotation.class); for (int currSentIndex = firstSentenceIndex ; currSentIndex <= lastSentenceIndex ; currSentIndex++) { this.sentences.add(this.document.sentences().get(currSentIndex));