From 116a784d59af74b3a3305a1e6f82a23c9c5d5828 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Mon, 3 Sep 2012 17:37:18 +0800 Subject: update gen_ngram.cpp --- utils/training/gen_ngram.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/training/gen_ngram.cpp b/utils/training/gen_ngram.cpp index af2311f..20448b1 100644 --- a/utils/training/gen_ngram.cpp +++ b/utils/training/gen_ngram.cpp @@ -57,11 +57,11 @@ int main(int argc, char * argv[]){ ++i; } - PhraseLargeTable2 phrases; + PhraseLargeTable2 phrase_table; /* init phrase table */ MemoryChunk * chunk = new MemoryChunk; chunk->load("phrase_index.bin"); - phrases.load(chunk); + phrase_table.load(chunk); FacadePhraseIndex phrase_index; if (!load_phrase_index(&phrase_index)) @@ -87,7 +87,7 @@ int main(int argc, char * argv[]){ phrase_token_t token = null_token; if ( 0 != phrase_len ) { - int result = phrases.search( phrase_len, phrase, tokens); + int result = phrase_table.search(phrase_len, phrase, tokens); int num = get_first_token(tokens, token); if ( !(result & SEARCH_OK) ) token = null_token; -- cgit