|
Joshua
open source statistical hierarchical phrase-based machine translation system
|
Public Member Functions | |
| Trie | match (int wordID) |
| boolean | hasExtensions () |
| Collection<?extends Trie > | getExtensions () |
| boolean | hasRules () |
| RuleCollection | getRuleCollection () |
An interface for trie-like data structures.
| Collection<? extends Trie> joshua.decoder.ff.tm.Trie.getExtensions | ( | ) |
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 Implemented in joshua.decoder.ff.tm.packed.PackedGrammar.PackedRoot, joshua.decoder.ff.tm.packed.PackedGrammar.PackedTrie, and joshua.decoder.ff.tm.hash_based.MemoryBasedTrie.
Retrieve the rules at the current node/state. The implementation of this method must adhere to the following laws:
Implemented in joshua.decoder.ff.tm.packed.PackedGrammar.PackedRoot, joshua.decoder.ff.tm.packed.PackedGrammar.PackedTrie, and joshua.decoder.ff.tm.hash_based.MemoryBasedTrie.
| boolean joshua.decoder.ff.tm.Trie.hasExtensions | ( | ) |
Returns whether matchOne(Symbol) could succeed for any symbol.
true if match(int) could succeed for some symbol, false otherwise Implemented in joshua.decoder.ff.tm.packed.PackedGrammar.PackedRoot, joshua.decoder.ff.tm.packed.PackedGrammar.PackedTrie, and joshua.decoder.ff.tm.hash_based.MemoryBasedTrie.
| boolean joshua.decoder.ff.tm.Trie.hasRules | ( | ) |
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 Implemented in joshua.decoder.ff.tm.packed.PackedGrammar.PackedRoot, joshua.decoder.ff.tm.packed.PackedGrammar.PackedTrie, and joshua.decoder.ff.tm.hash_based.MemoryBasedTrie.
| Trie joshua.decoder.ff.tm.Trie.match | ( | int | wordID | ) |
Traverse one ply further down the trie. If there is no match, the result is null.
| wordID |
Implemented in joshua.decoder.ff.tm.packed.PackedGrammar.PackedRoot, joshua.decoder.ff.tm.packed.PackedGrammar.PackedTrie, and joshua.decoder.ff.tm.hash_based.MemoryBasedTrie.