|
Joshua
open source statistical hierarchical phrase-based machine translation system
|
Public Member Functions | |
| TerminalIterator (int[] words) | |
| boolean | hasNext () |
| Integer | next () |
| void | remove () |
Private Attributes | |
| final int[] | words |
| int | nextIndex = -1 |
| int | next = Integer.MIN_VALUE |
| boolean | dirty = true |
Iterator capable of iterating over those word identifiers in a phrase which represent terminals.
Note: This class is not thread-safe.
| joshua.corpus.TerminalIterator.TerminalIterator | ( | int[] | words | ) |
Constructs an iterator for the terminals in the given list of words.
| vocab | |
| words |
| boolean joshua.corpus.TerminalIterator.hasNext | ( | ) |
| Integer joshua.corpus.TerminalIterator.next | ( | ) |
Unsupported operation, guaranteed to throw an UnsupportedOperationException.
| UnsupportedOperationException |
boolean joshua.corpus.TerminalIterator.dirty = true [private] |
int joshua.corpus.TerminalIterator.next = Integer.MIN_VALUE [private] |
int joshua.corpus.TerminalIterator.nextIndex = -1 [private] |
final int [] joshua.corpus.TerminalIterator.words [private] |