2014-06-11 14:47:00 +04:00
|
|
|
#include "util/usage.hh"
|
2014-06-13 13:20:30 +04:00
|
|
|
#include "moses/TranslationModel/ProbingPT/storing.hh"
|
2014-06-11 14:47:00 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
2015-01-14 14:07:42 +03:00
|
|
|
int main(int argc, char* argv[])
|
|
|
|
{
|
2014-06-11 14:47:00 +04:00
|
|
|
|
2015-01-14 14:07:42 +03:00
|
|
|
const char * is_reordering = "false";
|
2014-12-23 18:21:06 +03:00
|
|
|
|
2015-01-14 14:07:42 +03:00
|
|
|
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;
|
|
|
|
}
|
2014-06-11 14:47:00 +04:00
|
|
|
|
2015-01-14 14:07:42 +03:00
|
|
|
if (argc == 5) {
|
|
|
|
is_reordering = argv[4];
|
|
|
|
}
|
2014-12-23 18:21:06 +03:00
|
|
|
|
2015-01-14 14:07:42 +03:00
|
|
|
createProbingPT(argv[1], argv[2], argv[3], is_reordering);
|
2014-06-11 14:47:00 +04:00
|
|
|
|
2015-01-14 14:07:42 +03:00
|
|
|
util::PrintUsage(std::cout);
|
|
|
|
return 0;
|
2014-06-11 14:47:00 +04:00
|
|
|
}
|
|
|
|
|