diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2014-06-13 12:48:32 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2014-06-13 12:48:32 +0400 |
commit | 2c6cdb5889103caaa921923b079c379d5cf3597e (patch) | |
tree | 5a8bf774e1f8c775b0ec70a6995f990e96321dbc /misc/CreateProbingPT.cpp | |
parent | 4ebcfc2142a033c47e2a4e131c83416ecbe00b65 (diff) |
bjam for ProbingPT
Diffstat (limited to 'misc/CreateProbingPT.cpp')
-rw-r--r-- | misc/CreateProbingPT.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
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; +} + |