Note: This class is not thread-safe. @author Lane Schwartz
252253254255256257258259260261
*/ public Iterable<Integer> getTerminals() { return new Iterable<Integer>() { public Iterator<Integer> iterator() { return new TerminalIterator(vocab,words); } }; }