class documentation
class PhraseTable(object): (source)
In-memory store of translations for a given phrase, and the log probability of the those translations
| Method | __contains__ |
Undocumented |
| Method | __init__ |
Undocumented |
| Method | add |
No summary |
| Method | translations |
Get the translations for a source language phrase |
| Instance Variable | src |
Undocumented |
| Parameters | |
| src | Undocumented |
| trg | Undocumented |
| log | Log probability that given src_phrase, trg_phrase is its translation |
Get the translations for a source language phrase
| Parameters | |
| src | Source language phrase of interest |
| Returns | |
| list(PhraseTableEntry) | A list of target language phrases that are translations of src_phrase, ordered in decreasing order of likelihood. Each list element is a tuple of the target phrase and its log probability. |