diff options
author | Peng Wu <alexepico@gmail.com> | 2011-05-16 15:15:22 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-05-16 15:15:22 +0800 |
commit | e53a3eb2c3e3cf3f0929a8671c6d79ac193f5858 (patch) | |
tree | 0b0fad602963847073fece0263b98acca3ebc726 | |
parent | 2b3ff42b8795a2b4644c3983568a33d63baf984b (diff) | |
download | libpinyin-e53a3eb2c3e3cf3f0929a8671c6d79ac193f5858.tar.gz libpinyin-e53a3eb2c3e3cf3f0929a8671c6d79ac193f5858.tar.xz libpinyin-e53a3eb2c3e3cf3f0929a8671c6d79ac193f5858.zip |
fixes print_help
-rw-r--r-- | utils/training/estimate_k_mixture_model.cpp | 4 | ||||
-rw-r--r-- | utils/training/export_k_mixture_model.cpp | 2 | ||||
-rw-r--r-- | utils/training/gen_deleted_ngram.cpp | 4 | ||||
-rw-r--r-- | utils/training/gen_k_mixture_model.cpp | 10 | ||||
-rw-r--r-- | utils/training/gen_ngram.cpp | 4 | ||||
-rw-r--r-- | utils/training/merge_k_mixture_model.cpp | 4 | ||||
-rw-r--r-- | utils/training/prune_k_mixture_model.cpp | 2 |
7 files changed, 15 insertions, 15 deletions
diff --git a/utils/training/estimate_k_mixture_model.cpp b/utils/training/estimate_k_mixture_model.cpp index 58d6b70..66c57f6 100644 --- a/utils/training/estimate_k_mixture_model.cpp +++ b/utils/training/estimate_k_mixture_model.cpp @@ -24,8 +24,8 @@ #include "k_mixture_model.h" void print_help(){ - printf("estimate_k_mixture_model [--bigram-file <FILENAME>]\n"); - printf(" [--deleted-bigram-file <FILENAME]\n"); + printf("Usage: estimate_k_mixture_model [--bigram-file <FILENAME>]\n"); + printf(" [--deleted-bigram-file <FILENAME]\n"); } parameter_t compute_interpolation(KMixtureModelSingleGram * deleted_bigram, diff --git a/utils/training/export_k_mixture_model.cpp b/utils/training/export_k_mixture_model.cpp index 7802e4d..8645586 100644 --- a/utils/training/export_k_mixture_model.cpp +++ b/utils/training/export_k_mixture_model.cpp @@ -24,7 +24,7 @@ #include "k_mixture_model.h" void print_help(){ - printf("export_k_mixture_model [--k-mixture-model-file <FILENAME>]\n"); + printf("Usage: export_k_mixture_model [--k-mixture-model-file <FILENAME>]\n"); } bool print_k_mixture_model_magic_header(FILE * output, diff --git a/utils/training/gen_deleted_ngram.cpp b/utils/training/gen_deleted_ngram.cpp index 1f098c8..1db0cf1 100644 --- a/utils/training/gen_deleted_ngram.cpp +++ b/utils/training/gen_deleted_ngram.cpp @@ -29,8 +29,8 @@ static PhraseLargeTable * g_phrases = NULL; void print_help(){ - printf("gen_deleted_ngram [--skip-pi-gram-training]\n"); - printf(" [--deleted-bigram-file <FILENAME>]\n"); + printf("Usage: gen_deleted_ngram [--skip-pi-gram-training]\n"); + printf(" [--deleted-bigram-file <FILENAME>]\n"); } int main(int argc, char * argv[]){ diff --git a/utils/training/gen_k_mixture_model.cpp b/utils/training/gen_k_mixture_model.cpp index a720a66..e9fb51e 100644 --- a/utils/training/gen_k_mixture_model.cpp +++ b/utils/training/gen_k_mixture_model.cpp @@ -38,11 +38,11 @@ static bool g_train_pi_gram = true; void print_help(){ - printf("gen_k_mixture_model [--skip-pi-gram-training]\n"); - printf(" [--maximum-ocurrs-allowed <INT>]\n"); - printf(" [--maximum-increase-rates-allowed <FLOAT>]\n"); - printf(" [--k-mixture-model-file <FILENAME>]\n"); - printf(" {<FILENAME>}+\n"); + printf("Usage: gen_k_mixture_model [--skip-pi-gram-training]\n"); + printf(" [--maximum-ocurrs-allowed <INT>]\n"); + printf(" [--maximum-increase-rates-allowed <FLOAT>]\n"); + printf(" [--k-mixture-model-file <FILENAME>]\n"); + printf(" {<FILENAME>}+\n"); } diff --git a/utils/training/gen_ngram.cpp b/utils/training/gen_ngram.cpp index 228abca..071f8ab 100644 --- a/utils/training/gen_ngram.cpp +++ b/utils/training/gen_ngram.cpp @@ -29,8 +29,8 @@ static PhraseLargeTable * g_phrases = NULL; void print_help(){ - printf("gen_ngram [--skip-pi-gram-training]\n"); - printf(" [--bigram-file <FILENAME>]\n"); + printf("Usage: gen_ngram [--skip-pi-gram-training]\n"); + printf(" [--bigram-file <FILENAME>]\n"); } int main(int argc, char * argv[]){ diff --git a/utils/training/merge_k_mixture_model.cpp b/utils/training/merge_k_mixture_model.cpp index d91c03f..0e67fc0 100644 --- a/utils/training/merge_k_mixture_model.cpp +++ b/utils/training/merge_k_mixture_model.cpp @@ -24,8 +24,8 @@ #include "k_mixture_model.h" void print_help(){ - printf("merge_k_mixture_model [--result-file <RESULT_FILENAME>]\n"); - printf(" {<SOURCE_FILENAME>}+\n"); + printf("Usage: merge_k_mixture_model [--result-file <RESULT_FILENAME>]\n"); + printf(" {<SOURCE_FILENAME>}+\n"); } diff --git a/utils/training/prune_k_mixture_model.cpp b/utils/training/prune_k_mixture_model.cpp index 64c7f65..0dbd9a6 100644 --- a/utils/training/prune_k_mixture_model.cpp +++ b/utils/training/prune_k_mixture_model.cpp @@ -30,7 +30,7 @@ static guint32 g_prune_k = 3; static parameter_t g_prune_poss = 0.99; void print_help(){ - printf("prune_k_mixture_model -k <INT> --CDF <FLOAT> <FILENAME>\n"); + printf("Usage: prune_k_mixture_model -k <INT> --CDF <FLOAT> <FILENAME>\n"); } bool prune_k_mixture_model(KMixtureModelMagicHeader * magic_header, |