|
Joshua
open source statistical hierarchical phrase-based machine translation system
|
Public Member Functions | |
| Grammar | getGrammarForSentence (Sentence sentence) |
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.
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.
| sentence | the next sentence to be translated |
Implements joshua.decoder.ff.tm.GrammarFactory.