summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-09-03 17:37:18 +0800
committerPeng Wu <alexepico@gmail.com>2012-09-03 17:37:56 +0800
commit116a784d59af74b3a3305a1e6f82a23c9c5d5828 (patch)
tree0d78897998047097ae7d843b06d240ff3700a7e0
parentf3f161f020bc847055486ad84bc103ecf21e4f49 (diff)
downloadlibpinyin-116a784d59af74b3a3305a1e6f82a23c9c5d5828.tar.gz
libpinyin-116a784d59af74b3a3305a1e6f82a23c9c5d5828.tar.xz
libpinyin-116a784d59af74b3a3305a1e6f82a23c9c5d5828.zip
update gen_ngram.cpp
-rw-r--r--utils/training/gen_ngram.cpp6
1 files 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;