diff options
author | Peng Wu <alexepico@gmail.com> | 2012-05-21 12:07:13 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2012-05-21 12:07:13 +0800 |
commit | 931df7d5a0924cde0c5b249b5f82a8d5bf9039b5 (patch) | |
tree | 4e0eb8b3dd48255c010efaaa7f8292726b95551d /tests/lookup | |
parent | ad922c4b6f8a6f2062a980e7b15b4fa17428b182 (diff) | |
download | libpinyin-931df7d5a0924cde0c5b249b5f82a8d5bf9039b5.tar.gz libpinyin-931df7d5a0924cde0c5b249b5f82a8d5bf9039b5.tar.xz libpinyin-931df7d5a0924cde0c5b249b5f82a8d5bf9039b5.zip |
rename init_phrase_index to load_phrase_index
Diffstat (limited to 'tests/lookup')
-rw-r--r-- | tests/lookup/test_phrase_lookup.cpp | 2 | ||||
-rw-r--r-- | tests/lookup/test_pinyin_lookup.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/lookup/test_phrase_lookup.cpp b/tests/lookup/test_phrase_lookup.cpp index 42a715f..3a5470f 100644 --- a/tests/lookup/test_phrase_lookup.cpp +++ b/tests/lookup/test_phrase_lookup.cpp @@ -78,7 +78,7 @@ int main(int argc, char * argv[]){ /* init phrase index */ FacadePhraseIndex phrase_index; - if (!init_phrase_index(&phrase_index)) + if (!load_phrase_index(&phrase_index)) exit(ENOENT); /* init bi-gram */ diff --git a/tests/lookup/test_pinyin_lookup.cpp b/tests/lookup/test_pinyin_lookup.cpp index 6aa34a9..25f7a2b 100644 --- a/tests/lookup/test_pinyin_lookup.cpp +++ b/tests/lookup/test_pinyin_lookup.cpp @@ -38,7 +38,7 @@ int main( int argc, char * argv[]){ largetable.load(options, chunk, NULL); FacadePhraseIndex phrase_index; - if (!init_phrase_index(&phrase_index)) + if (!load_phrase_index(&phrase_index)) exit(ENOENT); Bigram system_bigram; |