/** * allows user to force sentences field to be (re-)populated based on Sentence {@link View}, possibly after modifying sentence View. * WARNING: if you */ public void setSentences() { synchronized (this) { View sentenceView = getView(ViewNames.SENTENCE); sentences = new ArrayList<>(); for (Constituent c : sentenceView.getConstituents()) { Sentence sentence = new Sentence(c); sentences.add(sentence); } Collections.sort(sentences, TextAnnotationUtilities.sentenceStartComparator); } }
/** * allows user to force sentences field to be (re-)populated based on Sentence {@link View}, possibly after modifying sentence View. * WARNING: if you */ public void setSentences() { synchronized (this) { View sentenceView = getView(ViewNames.SENTENCE); sentences = new ArrayList<>(); for (Constituent c : sentenceView.getConstituents()) { Sentence sentence = new Sentence(c); sentences.add(sentence); } Collections.sort(sentences, TextAnnotationUtilities.sentenceStartComparator); } }