diff options
author | Peng Wu <alexepico@gmail.com> | 2013-04-16 11:39:08 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2013-04-16 11:39:08 +0800 |
commit | edead27671841073511ba6ba521a8b5a261a9499 (patch) | |
tree | 10c825cbdd1ccc63141addf5c669cccca30a921c /utils/training/gen_deleted_ngram.cpp | |
parent | eacd9bb91f34141ea7564d35d4bea1c1c5f6682d (diff) | |
download | libpinyin-edead27671841073511ba6ba521a8b5a261a9499.tar.gz libpinyin-edead27671841073511ba6ba521a8b5a261a9499.tar.xz libpinyin-edead27671841073511ba6ba521a8b5a261a9499.zip |
update utils/training
Diffstat (limited to 'utils/training/gen_deleted_ngram.cpp')
-rw-r--r-- | utils/training/gen_deleted_ngram.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/training/gen_deleted_ngram.cpp b/utils/training/gen_deleted_ngram.cpp index 5044d92..b6f96fa 100644 --- a/utils/training/gen_deleted_ngram.cpp +++ b/utils/training/gen_deleted_ngram.cpp @@ -28,7 +28,7 @@ #include "utils_helper.h" static gboolean train_pi_gram = TRUE; -static const gchar * bigram_filename = "deleted_bigram.db"; +static const gchar * bigram_filename = DELETED_BIGRAM; static GOptionEntry entries[] = { @@ -53,7 +53,7 @@ int main(int argc, char * argv[]){ SystemTableInfo system_table_info; - bool retval = system_table_info.load("table.conf"); + bool retval = system_table_info.load(SYSTEM_TABLE_INFO); if (!retval) { fprintf(stderr, "load table.conf failed.\n"); exit(ENOENT); @@ -62,7 +62,7 @@ int main(int argc, char * argv[]){ /* load phrase table. */ PhraseLargeTable2 phrase_table; MemoryChunk * new_chunk = new MemoryChunk; - new_chunk->load("phrase_index.bin"); + new_chunk->load(SYSTEM_PHRASE_INDEX); phrase_table.load(new_chunk); FacadePhraseIndex phrase_index; |