From 2c6cdb5889103caaa921923b079c379d5cf3597e Mon Sep 17 00:00:00 2001 From: Hieu Hoang Date: Fri, 13 Jun 2014 09:48:32 +0100 Subject: bjam for ProbingPT --- misc/CreateProbingPT.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 misc/CreateProbingPT.cpp (limited to 'misc/CreateProbingPT.cpp') diff --git a/misc/CreateProbingPT.cpp b/misc/CreateProbingPT.cpp new file mode 100644 index 000000000..96ae797f8 --- /dev/null +++ b/misc/CreateProbingPT.cpp @@ -0,0 +1,20 @@ +#include "util/usage.hh" +#include "storing.hh" + + + +int main(int argc, char* argv[]){ + + if (argc != 3) { + // Tell the user how to run the program + std::cerr << "Provided " << argc << " arguments, needed 3." << std::endl; + std::cerr << "Usage: " << argv[0] << " path_to_phrasetable output_dir" << std::endl; + return 1; + } + + createProbingPT(argv[1], argv[2]); + + util::PrintUsage(std::cout); + return 0; +} + -- cgit v1.2.3