From fabe3b1fd6b6ccab4f9f8b606a8503aee08c738d Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 10 Jan 2012 12:55:25 +0800 Subject: use facade * table --- tests/lookup/test_phrase_lookup.cpp | 4 ++-- tests/lookup/test_pinyin_lookup.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/lookup') diff --git a/tests/lookup/test_phrase_lookup.cpp b/tests/lookup/test_phrase_lookup.cpp index 63ebf8f..cf08dff 100644 --- a/tests/lookup/test_phrase_lookup.cpp +++ b/tests/lookup/test_phrase_lookup.cpp @@ -70,10 +70,10 @@ int main(int argc, char * argv[]){ //init phrase table - PhraseLargeTable phrase_table; + FacadePhraseTable phrase_table; MemoryChunk * chunk = new MemoryChunk; chunk->load("../../data/phrase_index.bin"); - phrase_table.load(chunk); + phrase_table.load(chunk, NULL); //init phrase index FacadePhraseIndex phrase_index; 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; -- cgit