diff options
author | Peng Wu <alexepico@gmail.com> | 2012-01-10 12:55:25 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2012-01-10 12:55:31 +0800 |
commit | fabe3b1fd6b6ccab4f9f8b606a8503aee08c738d (patch) | |
tree | c9de43cc1ee49d1f4c91a5290e2f40783adb3266 /tests/lookup/test_pinyin_lookup.cpp | |
parent | 742de0a367e511388ff197f6c21d586877698dda (diff) | |
download | libpinyin-fabe3b1fd6b6ccab4f9f8b606a8503aee08c738d.tar.gz libpinyin-fabe3b1fd6b6ccab4f9f8b606a8503aee08c738d.tar.xz libpinyin-fabe3b1fd6b6ccab4f9f8b606a8503aee08c738d.zip |
use facade * table
Diffstat (limited to 'tests/lookup/test_pinyin_lookup.cpp')
-rw-r--r-- | tests/lookup/test_pinyin_lookup.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lookup/test_pinyin_lookup.cpp b/tests/lookup/test_pinyin_lookup.cpp index e8722af..4607b5b 100644 --- a/tests/lookup/test_pinyin_lookup.cpp +++ b/tests/lookup/test_pinyin_lookup.cpp @@ -7,11 +7,11 @@ size_t bench_times = 100; int main( int argc, char * argv[]){ pinyin_option_t options = USE_TONE | PINYIN_CORRECT_ALL | PINYIN_AMB_ALL; - ChewingLargeTable largetable(options); + FacadeChewingTable largetable; MemoryChunk * new_chunk = new MemoryChunk; new_chunk->load("../../data/pinyin_index.bin"); - largetable.load(new_chunk); + largetable.load(options, new_chunk, NULL); FacadePhraseIndex phrase_index; new_chunk = new MemoryChunk; |