system_bigram.attach("../../data/bigram.db", ATTACH_READONLY);
Bigram user_bigram;
+ gfloat lambda = system_table_info.get_lambda();
+
/* init phrase lookup */
- PhraseLookup phrase_lookup(&phrase_table, &phrase_index,
+ PhraseLookup phrase_lookup(lambda,
+ &phrase_table, &phrase_index,
&system_bigram, &user_bigram);
/* try one sentence */
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
system_bigram.attach("bigram.db", ATTACH_READONLY);
Bigram user_bigram;
+ gfloat lambda = system_table_info.get_lambda();
+
/* init phrase lookup */
- PhraseLookup phrase_lookup(&phrase_table, &phrase_index,
+ PhraseLookup phrase_lookup(lambda,
+ &phrase_table, &phrase_index,
&system_bigram, &user_bigram);
Bigram user_bigram;
user_bigram.attach(NULL, ATTACH_CREATE|ATTACH_READWRITE);
- PinyinLookup2 pinyin_lookup(options, &largetable, &phrase_index,
- &system_bigram, &user_bigram);
+ gfloat lambda = system_table_info.get_lambda();
+
+ PinyinLookup2 pinyin_lookup(lambda, options,
+ &largetable, &phrase_index,
+ &system_bigram, &user_bigram);
/* open evals text. */
FILE * evals_file = fopen(evals_text, "r");