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

List of all members.

Public Member Functions

Grammar getGrammarForSentence (Sentence sentence)

Detailed Description

This class provides an abstract factory that will return itself as a batch grammar.

This means that the grammar produced by this class will be constant over any test set, and will not be specific to any provided sentence.

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

Member Function Documentation

Returns a grammar which is not adapted to the specified sentence.

This method always ignores the provided parameter.

The grammar returned will always be the same, regardless of the value of the sentence parameter.

Parameters:
sentencethe next sentence to be translated
Returns:
a grammar that represents a set of translation rules

Implements joshua.decoder.ff.tm.GrammarFactory.