From 9f1c534806b7391c0c9b96277a75708b1b07c04c Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 11 Sep 2012 14:58:55 +0800 Subject: use pinyin lookup2 --- utils/training/eval_correction_rate.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'utils') diff --git a/utils/training/eval_correction_rate.cpp b/utils/training/eval_correction_rate.cpp index d70e487..dd36750 100644 --- a/utils/training/eval_correction_rate.cpp +++ b/utils/training/eval_correction_rate.cpp @@ -57,7 +57,7 @@ bool get_possible_pinyin(FacadePhraseIndex * phrase_index, return true; } -bool get_best_match(PinyinLookup * pinyin_lookup, +bool get_best_match(PinyinLookup2 * pinyin_lookup, ChewingKeyVector keys, TokenVector tokens){ /* prepare the prefixes for get_best_match. */ TokenVector prefixes = g_array_new @@ -81,7 +81,7 @@ bool get_best_match(PinyinLookup * pinyin_lookup, return retval; } -bool do_one_test(PinyinLookup * pinyin_lookup, +bool do_one_test(PinyinLookup2 * pinyin_lookup, FacadePhraseIndex * phrase_index, TokenVector tokens){ bool retval = false; @@ -137,7 +137,7 @@ int main(int argc, char * argv[]){ Bigram user_bigram; user_bigram.attach(NULL, ATTACH_CREATE|ATTACH_READWRITE); - PinyinLookup pinyin_lookup(options, &largetable, &phrase_index, + PinyinLookup2 pinyin_lookup(options, &largetable, &phrase_index, &system_bigram, &user_bigram); /* open evals.text. */ -- cgit