diff options
author | Peng Wu <alexepico@gmail.com> | 2016-05-13 15:05:54 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2016-05-13 15:05:54 +0800 |
commit | 5bfc05a8e0223a95c10f688043dbecc444ae7cfa (patch) | |
tree | f48e21fb092ecf771b40aee62b1f16dec068a8cd /tests | |
parent | ed191f413f2739982fc737022713cb5226f721de (diff) | |
download | libpinyin-5bfc05a8e0223a95c10f688043dbecc444ae7cfa.tar.gz libpinyin-5bfc05a8e0223a95c10f688043dbecc444ae7cfa.tar.xz libpinyin-5bfc05a8e0223a95c10f688043dbecc444ae7cfa.zip |
update test_matrix.cpp
Diffstat (limited to 'tests')
-rw-r--r-- | tests/storage/test_matrix.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/storage/test_matrix.cpp b/tests/storage/test_matrix.cpp index fd965b8..3bf787d 100644 --- a/tests/storage/test_matrix.cpp +++ b/tests/storage/test_matrix.cpp @@ -29,6 +29,7 @@ using namespace pinyin; int main(int argc, char * argv[]) { pinyin_option_t options = PINYIN_CORRECT_ALL; + options |= PINYIN_AMB_ALL; options |= PINYIN_INCOMPLETE; PhoneticParser2 * parser = new FullPinyinParser2(); @@ -57,6 +58,8 @@ int main(int argc, char * argv[]) { fill_phonetic_key_matrix_from_chewing_keys (&matrix, keys, key_rests); + + fuzzy_syllable_step(options, &matrix); } print_time(start_time, bench_times); |