Joshua
open source statistical hierarchical phrase-based machine translation system
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
joshua.corpus.TerminalIterator Class Reference
Inheritance diagram for joshua.corpus.TerminalIterator:
[legend]
Collaboration diagram for joshua.corpus.TerminalIterator:
[legend]

List of all members.

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

Detailed Description

Iterator capable of iterating over those word identifiers in a phrase which represent terminals.

Note: This class is not thread-safe.

Author:
Lane Schwartz

Constructor & Destructor Documentation

Constructs an iterator for the terminals in the given list of words.

Parameters:
vocab
words

Member Function Documentation

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Unsupported operation, guaranteed to throw an UnsupportedOperationException.

Exceptions:
UnsupportedOperationException

Member Data Documentation

boolean joshua.corpus.TerminalIterator.dirty = true [private]
int joshua.corpus.TerminalIterator.next = Integer.MIN_VALUE [private]
final int [] joshua.corpus.TerminalIterator.words [private]