diff --git a/misc/processLexicalTableMin.cpp b/misc/processLexicalTableMin.cpp index 32373154b..3f2887e55 100644 --- a/misc/processLexicalTableMin.cpp +++ b/misc/processLexicalTableMin.cpp @@ -7,6 +7,8 @@ #include "moses/TranslationModel/CompactPT/LexicalReorderingTableCreator.h" +#include "util/file.hh" + using namespace Moses; void printHelp(char **argv) @@ -77,6 +79,7 @@ int main(int argc, char** argv) else if("-T" == arg && i+1 < argc) { ++i; tempfilePath = argv[i]; + util::NormalizeTempPrefix(tempfilePath); } else if("-landmark" == arg && i+1 < argc) { diff --git a/misc/processPhraseTableMin.cpp b/misc/processPhraseTableMin.cpp index ecbe81186..5c25262b8 100644 --- a/misc/processPhraseTableMin.cpp +++ b/misc/processPhraseTableMin.cpp @@ -7,6 +7,8 @@ #include "moses/TypeDef.h" #include "moses/TranslationModel/CompactPT/PhraseTableCreator.h" +#include "util/file.hh" + using namespace Moses; void printHelp(char **argv) { @@ -82,6 +84,7 @@ int main(int argc, char **argv) { else if("-T" == arg && i+1 < argc) { ++i; tempfilePath = argv[i]; + util::NormalizeTempPrefix(tempfilePath); } else if("-encoding" == arg && i+1 < argc) { ++i;