Skip to content

Commit e5c9d44

Browse files
committed
Remove another use of yield, this time from CountTrees
1 parent b084233 commit e5c9d44

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/edu/stanford/nlp/parser/tools/CountTrees.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ public static void main(String[] args) {
100100
pw.println(SentenceUtils.listToString(tree.preTerminalYield()));
101101

102102
} else if (printTnT) {
103-
List<CoreLabel> yield = tree.taggedLabeledYield();
104-
for (CoreLabel label : yield) {
103+
for (CoreLabel label : tree.taggedLabeledYield()) {
105104
pw.printf("%s\t%s%n", label.word(), label.tag());
106105
}
107106
pw.println();

0 commit comments

Comments
 (0)