diff options
author | Peng Wu <alexepico@gmail.com> | 2011-05-06 10:31:28 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-05-06 10:31:28 +0800 |
commit | 7e2d45c46aeb95ce64113d1f2dfab09142430c95 (patch) | |
tree | 6bbde3a602cad288b9b2a49af6482f35346fbb90 /utils | |
parent | 5b972580775a1eeb1683b73d5ee6a9126e8271a5 (diff) | |
download | libpinyin-7e2d45c46aeb95ce64113d1f2dfab09142430c95.tar.gz libpinyin-7e2d45c46aeb95ce64113d1f2dfab09142430c95.tar.xz libpinyin-7e2d45c46aeb95ce64113d1f2dfab09142430c95.zip |
fixes cmd line options for gen_deleted_ngram
Diffstat (limited to 'utils')
-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 229eb73..a061136 100644 --- a/utils/training/gen_deleted_ngram.cpp +++ b/utils/training/gen_deleted_ngram.cpp @@ -30,13 +30,13 @@ static PhraseLargeTable * g_phrases = NULL; void print_help(){ printf("gen_deleted_ngram [--skip-pi-gram-training]\n"); - printf(" [--bigram-file <FILENAME>]\n"); + printf(" [--deleted-bigram-file <FILENAME>]\n"); } int main(int argc, char * argv[]){ int i = 1; bool train_pi_gram = true; - const char * bigram_filename = "../../data/bigram.db"; + const char * bigram_filename = "../../data/deleted_bigram.db"; setlocale(LC_ALL, ""); while ( i < argc ){ @@ -45,7 +45,7 @@ int main(int argc, char * argv[]){ exit(0); }else if ( strcmp("--skip-pi-gram-training", argv[i]) == 0 ){ train_pi_gram = false; - }else if ( strcmp("--bigram-file", argv[i]) == 0){ + }else if ( strcmp("--deleted-bigram-file", argv[i]) == 0){ if ( ++i >= argc ) { print_help(); exit(EINVAL); |