From 70571740ae2b8a71cfec139d674c8f3b3fd1c232 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Wed, 17 Aug 2011 12:01:22 +0800 Subject: pinyin apis WIP --- tests/lookup/test_simple_lookup.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/lookup') diff --git a/tests/lookup/test_simple_lookup.cpp b/tests/lookup/test_simple_lookup.cpp index 7e4d256..96c512a 100644 --- a/tests/lookup/test_simple_lookup.cpp +++ b/tests/lookup/test_simple_lookup.cpp @@ -29,12 +29,12 @@ int main( int argc, char * argv[]){ PinyinCustomSettings custom; PinyinLargeTable largetable(&custom); - BitmapPinyinValidator validator; - validator.initialize(&largetable); - MemoryChunk * new_chunk = new MemoryChunk; new_chunk->load("../../data/pinyin_index.bin"); largetable.load(new_chunk); + + BitmapPinyinValidator validator; + validator.initialize(&largetable); FacadePhraseIndex phrase_index; new_chunk = new MemoryChunk; -- cgit