diff options
Diffstat (limited to 'src/lookup/phrase_lookup.h')
-rw-r--r-- | src/lookup/phrase_lookup.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lookup/phrase_lookup.h b/src/lookup/phrase_lookup.h index 3d3948c..cf65692 100644 --- a/src/lookup/phrase_lookup.h +++ b/src/lookup/phrase_lookup.h @@ -43,8 +43,8 @@ namespace pinyin{ */ class PhraseLookup{ private: - static const gfloat bigram_lambda; - static const gfloat unigram_lambda; + const gfloat bigram_lambda; + const gfloat unigram_lambda; PhraseItem m_cache_phrase_item; SingleGram m_merged_single_gram; @@ -81,6 +81,7 @@ protected: public: /** * PhraseLookup::PhraseLookup: + * @lambda: the lambda parameter for interpolation model. * @phrase_table: the phrase table. * @phrase_index: the phrase index. * @system_bigram: the system bi-gram. @@ -89,7 +90,8 @@ public: * The constructor of the PhraseLookup. * */ - PhraseLookup(FacadePhraseTable2 * phrase_table, + PhraseLookup(const gfloat lambda, + FacadePhraseTable2 * phrase_table, FacadePhraseIndex * phrase_index, Bigram * system_bigram, Bigram * user_bigram); |