From d4a39f57c7d2dc715340e0c6cfd73f577ce5a7fa Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Thu, 11 Apr 2013 11:21:17 +0800 Subject: add lambda parameter --- tests/lookup/test_pinyin_lookup.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tests/lookup/test_pinyin_lookup.cpp') diff --git a/tests/lookup/test_pinyin_lookup.cpp b/tests/lookup/test_pinyin_lookup.cpp index 446d8fd..3175db0 100644 --- a/tests/lookup/test_pinyin_lookup.cpp +++ b/tests/lookup/test_pinyin_lookup.cpp @@ -55,9 +55,12 @@ int main( int argc, char * argv[]){ system_bigram.attach("../../data/bigram.db", ATTACH_READONLY); Bigram user_bigram; user_bigram.attach(NULL, ATTACH_CREATE|ATTACH_READWRITE); + + gfloat lambda = system_table_info.get_lambda(); - PinyinLookup2 pinyin_lookup(options, &largetable, &phrase_index, - &system_bigram, &user_bigram); + PinyinLookup2 pinyin_lookup(lambda, options, + &largetable, &phrase_index, + &system_bigram, &user_bigram); /* prepare the prefixes for get_best_match. */ TokenVector prefixes = g_array_new -- cgit