nltk.PhraseTable

class nltk.PhraseTable[source]

In-memory store of translations for a given phrase, and the log probability of the those translations

Methods

__init__()
add(src_phrase, trg_phrase, log_prob)
type src_phrase:
 tuple(str)
translations_for(src_phrase) Get the translations for a source language phrase