diff options
author | Peng Wu <alexepico@gmail.com> | 2018-01-29 15:00:42 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2018-01-29 15:00:42 +0800 |
commit | f4461b1f7687eba6ac95e8c995d0e3509adbb30d (patch) | |
tree | 67a97f9898f824d2139b1b1053882c6f35fe4280 /utils | |
parent | 813cedc202276fa6d4127446c4688d8a706c5ff5 (diff) | |
download | libpinyin-f4461b1f7687eba6ac95e8c995d0e3509adbb30d.tar.gz libpinyin-f4461b1f7687eba6ac95e8c995d0e3509adbb30d.tar.xz libpinyin-f4461b1f7687eba6ac95e8c995d0e3509adbb30d.zip |
fixes compile
Diffstat (limited to 'utils')
-rw-r--r-- | utils/training/eval_correction_rate.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/training/eval_correction_rate.cpp b/utils/training/eval_correction_rate.cpp index 5983cca..aa33e6b 100644 --- a/utils/training/eval_correction_rate.cpp +++ b/utils/training/eval_correction_rate.cpp @@ -61,7 +61,7 @@ bool get_possible_pinyin(FacadePhraseIndex * phrase_index, } bool get_best_match(FacadePhraseIndex * phrase_index, - PhoneticLookup<1> * pinyin_lookup, + PhoneticLookup<1, 1> * pinyin_lookup, PhoneticKeyMatrix * matrix, NBestMatchResults * results) { /* prepare the prefixes for get_nbest_match. */ @@ -79,7 +79,7 @@ bool get_best_match(FacadePhraseIndex * phrase_index, return retval; } -bool do_one_test(PhoneticLookup<1> * pinyin_lookup, +bool do_one_test(PhoneticLookup<1, 1> * pinyin_lookup, FacadePhraseIndex * phrase_index, TokenVector tokens){ bool retval = false; @@ -156,7 +156,7 @@ int main(int argc, char * argv[]){ gfloat lambda = system_table_info.get_lambda(); - PhoneticLookup<1> pinyin_lookup(lambda, + PhoneticLookup<1, 1> pinyin_lookup(lambda, &largetable, &phrase_index, &system_bigram, &user_bigram); |