diff options
author | Peng Wu <alexepico@gmail.com> | 2013-04-11 11:11:26 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2013-04-11 11:11:26 +0800 |
commit | 9ca38247ddc9dfaa5f5d193a3727c4edbd18a799 (patch) | |
tree | ad6acbc364434037f6e70585cbd71a60ec833283 /src/pinyin.cpp | |
parent | 669090ae1dfca2fa3ac1cbd1612648891b53353f (diff) | |
download | libpinyin-9ca38247ddc9dfaa5f5d193a3727c4edbd18a799.tar.gz libpinyin-9ca38247ddc9dfaa5f5d193a3727c4edbd18a799.tar.xz libpinyin-9ca38247ddc9dfaa5f5d193a3727c4edbd18a799.zip |
update src/pinyin.cpp
Diffstat (limited to 'src/pinyin.cpp')
-rw-r--r-- | src/pinyin.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/pinyin.cpp b/src/pinyin.cpp index 1d8500b..1415876 100644 --- a/src/pinyin.cpp +++ b/src/pinyin.cpp @@ -250,13 +250,16 @@ pinyin_context_t * pinyin_init(const char * systemdir, const char * userdir){ context->m_user_bigram->load_db(filename); g_free(filename); + gfloat lambda = context->m_system_table_info.get_lambda(); + context->m_pinyin_lookup = new PinyinLookup2 - ( context->m_options, context->m_pinyin_table, - context->m_phrase_index, context->m_system_bigram, - context->m_user_bigram); + ( lambda, context->m_options, + context->m_pinyin_table, context->m_phrase_index, + context->m_system_bigram, context->m_user_bigram); context->m_phrase_lookup = new PhraseLookup - (context->m_phrase_table, context->m_phrase_index, + (lambda, + context->m_phrase_table, context->m_phrase_index, context->m_system_bigram, context->m_user_bigram); return context; |