mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-08-17 15:30:26 +03:00
Added normalization of temporary directory path
This commit is contained in:
parent
fcf75fae18
commit
d87c7c4d34
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user