diff options
author | Peng Wu <alexepico@gmail.com> | 2017-08-18 13:22:05 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2017-08-18 13:22:05 +0800 |
commit | d1bdd53619b3eba505a7e8dc6806fb7721944606 (patch) | |
tree | 9f6f2d1d5442a7b92869e992291f626cc928d396 | |
parent | bc600e1d24e543c82bb6acf35d2195d50dbf5495 (diff) | |
download | libpinyin-d1bdd53619b3eba505a7e8dc6806fb7721944606.tar.gz libpinyin-d1bdd53619b3eba505a7e8dc6806fb7721944606.tar.xz libpinyin-d1bdd53619b3eba505a7e8dc6806fb7721944606.zip |
update test_pinyin.cpp
-rw-r--r-- | tests/test_pinyin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_pinyin.cpp b/tests/test_pinyin.cpp index 1f8c5fc..8eadf89 100644 --- a/tests/test_pinyin.cpp +++ b/tests/test_pinyin.cpp @@ -69,7 +69,8 @@ int main(int argc, char * argv[]){ size_t len = pinyin_parse_more_full_pinyins(instance, linebuf); pinyin_guess_sentence_with_prefix(instance, prefixbuf); - pinyin_guess_candidates(instance, 0); + pinyin_guess_candidates(instance, 0, + SORT_BY_PHRASE_LENGTH_AND_FREQUENCY); size_t i = 0; for (i = 0; i <= len; ++i) { |