Joshua
open source statistical hierarchical phrase-based machine translation system
|
Public Member Functions | |
MemoryBasedTrie () | |
Trie | match (int wordID) |
boolean | hasExtensions () |
HashMap< Integer, MemoryBasedTrie > | getChildren () |
void | setExtensions (HashMap< Integer, MemoryBasedTrie > tbl_children_) |
boolean | hasRules () |
void | setRuleBin (MemoryBasedRuleBin rb) |
RuleCollection | getRuleCollection () |
Collection< MemoryBasedTrie > | getExtensions () |
Iterator< Integer > | getTerminalExtensionIterator () |
Iterator< Integer > | getNonterminalExtensionIterator () |
Package Attributes | |
MemoryBasedRuleBin | ruleBin = null |
HashMap< Integer, MemoryBasedTrie > | childrenTbl = null |
HashMap<Integer, MemoryBasedTrie> joshua.decoder.ff.tm.hash_based.MemoryBasedTrie.getChildren | ( | ) |
If the trie node has extensions, get a list of their labels.
Implements joshua.decoder.ff.tm.Trie.
If the trie node has extensions, then return a list of extended trie nodes, otherwise return null.
Trie
nodes if this node has extensions, null otherwise
Implements joshua.decoder.ff.tm.Trie.
Iterator<Integer> joshua.decoder.ff.tm.hash_based.MemoryBasedTrie.getNonterminalExtensionIterator | ( | ) |
Returns an iterator over the trie node's extensions with nonterminal labels.
Implements joshua.decoder.ff.tm.Trie.
Retrieve the rules at the current node/state. The implementation of this method must adhere to the following laws:
Implements joshua.decoder.ff.tm.Trie.
Iterator<Integer> joshua.decoder.ff.tm.hash_based.MemoryBasedTrie.getTerminalExtensionIterator | ( | ) |
Returns an iterator over the trie node's extensions with terminal labels.
Implements joshua.decoder.ff.tm.Trie.
Returns whether matchOne(Symbol) could succeed for any symbol.
true
if match(int) could succeed for some symbol, false
otherwise Implements joshua.decoder.ff.tm.Trie.
Gets whether the current node/state is a "final state" that has matching rules.
true
if the current node/state is a "final state" that has matching rules, false
otherwise Implements joshua.decoder.ff.tm.Trie.
Trie joshua.decoder.ff.tm.hash_based.MemoryBasedTrie.match | ( | int | wordID | ) |
Traverse one ply further down the trie. If there is no match, the result is null.
wordID |
Implements joshua.decoder.ff.tm.Trie.
void joshua.decoder.ff.tm.hash_based.MemoryBasedTrie.setExtensions | ( | HashMap< Integer, MemoryBasedTrie > | tbl_children_ | ) |
HashMap<Integer, MemoryBasedTrie> joshua.decoder.ff.tm.hash_based.MemoryBasedTrie.childrenTbl = null [package] |