|
Joshua
open source statistical hierarchical phrase-based machine translation system
|
Public Member Functions | |
| Grammar | getGrammarForSentence (Sentence sentence) |
Factory capable of getting a grammar for use in translating a sentence.
Developers interested in implementing a new type of grammar must:
GrammarFactory Grammar TrieGrammar RuleCollection Also, attention should be directed to the Rule class.
Returns a grammar which is adapted to the specified sentence. Depending on the implementation this grammar may be generated online, partially loaded from disk, remain unchanged etc.
| sentence | A sentence to be translated |
Implemented in joshua.decoder.ff.tm.BatchGrammar.