From 931df7d5a0924cde0c5b249b5f82a8d5bf9039b5 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Mon, 21 May 2012 12:07:13 +0800 Subject: rename init_phrase_index to load_phrase_index --- tests/lookup/test_phrase_lookup.cpp | 2 +- tests/lookup/test_pinyin_lookup.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/lookup') 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; -- cgit