diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-01-14 14:07:42 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-01-14 14:07:42 +0300 |
commit | 05ead45e71916c5763c5c4b6375e2ca6838f3995 (patch) | |
tree | c279bd4aacfb31758720ffbaf5aaf62022574a52 /misc/CreateProbingPT.cpp | |
parent | 91cb549ccf09fc33122f3d531f47c38ad0e99b3d (diff) |
beautify
Diffstat (limited to 'misc/CreateProbingPT.cpp')
-rw-r--r-- | misc/CreateProbingPT.cpp | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/misc/CreateProbingPT.cpp b/misc/CreateProbingPT.cpp index 2b0e8cd8a..b23427f30 100644 --- a/misc/CreateProbingPT.cpp +++ b/misc/CreateProbingPT.cpp @@ -3,26 +3,27 @@ -int main(int argc, char* argv[]){ +int main(int argc, char* argv[]) +{ - const char * is_reordering = "false"; + const char * is_reordering = "false"; - if (!(argc == 5 || argc == 4)) { - // Tell the user how to run the program - std::cerr << "Provided " << argc << " arguments, needed 4 or 5." << std::endl; - std::cerr << "Usage: " << argv[0] << " path_to_phrasetable output_dir num_scores is_reordering" << std::endl; - std::cerr << "is_reordering should be either true or false, but it is currently a stub feature." << std::endl; - //std::cerr << "Usage: " << argv[0] << " path_to_phrasetable number_of_uniq_lines output_bin_file output_hash_table output_vocab_id" << std::endl; - return 1; - } + if (!(argc == 5 || argc == 4)) { + // Tell the user how to run the program + std::cerr << "Provided " << argc << " arguments, needed 4 or 5." << std::endl; + std::cerr << "Usage: " << argv[0] << " path_to_phrasetable output_dir num_scores is_reordering" << std::endl; + std::cerr << "is_reordering should be either true or false, but it is currently a stub feature." << std::endl; + //std::cerr << "Usage: " << argv[0] << " path_to_phrasetable number_of_uniq_lines output_bin_file output_hash_table output_vocab_id" << std::endl; + return 1; + } - if (argc == 5) { - is_reordering = argv[4]; - } + if (argc == 5) { + is_reordering = argv[4]; + } - createProbingPT(argv[1], argv[2], argv[3], is_reordering); + createProbingPT(argv[1], argv[2], argv[3], is_reordering); - util::PrintUsage(std::cout); - return 0; + util::PrintUsage(std::cout); + return 0; } |