Added normalization of temporary directory path

This commit is contained in:
Marcin Junczys-Dowmunt 2013-01-22 22:12:08 +01:00
parent fcf75fae18
commit d87c7c4d34
2 changed files with 6 additions and 0 deletions

View File

@ -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)
{

View File

@ -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;