using namespace pinyin;
-const gfloat PhraseLookup::bigram_lambda;
-const gfloat PhraseLookup::unigram_lambda;
+const gfloat PhraseLookup::bigram_lambda = LAMBDA_PARAMETER;
+const gfloat PhraseLookup::unigram_lambda = 1 - LAMBDA_PARAMETER;
PhraseLookup::PhraseLookup(PhraseLargeTable * phrase_table,
FacadePhraseIndex * phrase_index,
class PhraseLookup{
private:
- static const gfloat bigram_lambda = LAMBDA_PARAMETER;
- static const gfloat unigram_lambda = 1 - LAMBDA_PARAMETER;
+ static const gfloat bigram_lambda;
+ static const gfloat unigram_lambda;
PhraseItem m_cache_phrase_item;
protected:
using namespace pinyin;
-const gfloat PinyinLookup::bigram_lambda;
-const gfloat PinyinLookup::unigram_lambda;
+const gfloat PinyinLookup::bigram_lambda = LAMBDA_PARAMETER;
+const gfloat PinyinLookup::unigram_lambda = 1 - LAMBDA_PARAMETER;
PinyinLookup::PinyinLookup(PinyinCustomSettings * custom,
PinyinLargeTable * pinyin_table,
class PinyinLookup{
private:
- static const gfloat bigram_lambda = LAMBDA_PARAMETER;
- static const gfloat unigram_lambda = 1 - LAMBDA_PARAMETER;
+ static const gfloat bigram_lambda;
+ static const gfloat unigram_lambda;
PhraseItem m_cache_phrase_item;
protected: