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

List of all members.

Public Member Functions

 MemoryBasedRuleBin (int arity, int[] sourceTokens)
void addRule (Rule rule)

Detailed Description

Stores a collection of all rules with the same french side (and thus same arity).

Author:
Zhifei Li, zhife.nosp@m.i.wo.nosp@m.rk@gm.nosp@m.ail..nosp@m.com

Constructor & Destructor Documentation

Constructs an initially empty rule collection.

Parameters:
arityNumber of nonterminals in the source pattern
sourceTokensSequence of terminals and nonterminals in the source pattern

Member Function Documentation

Adds a rule to this collection.

Parameters:
ruleRule to add to this collection.

Here is the call graph for this function:

Here is the caller graph for this function: