From d87c7c4d34a329e6c7126f339238b5a7ed318f12 Mon Sep 17 00:00:00 2001 From: Marcin Junczys-Dowmunt Date: Tue, 22 Jan 2013 22:12:08 +0100 Subject: [PATCH] Added normalization of temporary directory path --- misc/processLexicalTableMin.cpp | 3 +++ misc/processPhraseTableMin.cpp | 3 +++ 2 files changed, 6 insertions(+) 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;