Joshua
open source statistical hierarchical phrase-based machine translation system
|
Public Member Functions | |
MemoryBasedRuleBin (int arity, int[] sourceTokens) | |
void | addRule (Rule rule) |
Stores a collection of all rules with the same french side (and thus same arity).
joshua.decoder.ff.tm.hash_based.MemoryBasedRuleBin.MemoryBasedRuleBin | ( | int | arity, |
int[] | sourceTokens | ||
) |
Constructs an initially empty rule collection.
arity | Number of nonterminals in the source pattern |
sourceTokens | Sequence of terminals and nonterminals in the source pattern |
Adds a rule to this collection.
rule | Rule to add to this collection. |