/** * Get the {@link edu.illinois.cs.cogcomp.core.datastructures.trees.Tree} representation of the * tree for the given sentence. */ public Tree<String> getTree(int sentenceId) { if (this.trees == null) { makeTrees(); } return this.trees.get(sentenceId); }
/** * Get the {@link edu.illinois.cs.cogcomp.core.datastructures.trees.Tree} representation of the * tree for the given sentence. */ public Tree<String> getTree(int sentenceId) { if (this.trees == null) { makeTrees(); } return this.trees.get(sentenceId); }
@Override public String toString() { if (trees == null) makeTrees(); StringBuilder sb = new StringBuilder(); for (int i = 0; i < this.getTextAnnotation().getNumberOfSentences(); i++) { if (this.trees.get(i) != null) sb.append(this.getTree(i).toString()).append("\n"); } return sb.toString(); }
@Override public String toString() { if (trees == null) makeTrees(); StringBuilder sb = new StringBuilder(); for (int i = 0; i < this.getTextAnnotation().getNumberOfSentences(); i++) { if (this.trees.get(i) != null) sb.append(this.getTree(i).toString()).append("\n"); } return sb.toString(); }
((TreeView) newVu).makeTrees();
((TreeView) newVu).makeTrees();
((TreeView) newVu).makeTrees();
((TreeView) newVu).makeTrees();