mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 19:27:11 +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 "moses/TranslationModel/CompactPT/LexicalReorderingTableCreator.h"
|
||||||
|
|
||||||
|
#include "util/file.hh"
|
||||||
|
|
||||||
using namespace Moses;
|
using namespace Moses;
|
||||||
|
|
||||||
void printHelp(char **argv)
|
void printHelp(char **argv)
|
||||||
@ -77,6 +79,7 @@ int main(int argc, char** argv)
|
|||||||
else if("-T" == arg && i+1 < argc) {
|
else if("-T" == arg && i+1 < argc) {
|
||||||
++i;
|
++i;
|
||||||
tempfilePath = argv[i];
|
tempfilePath = argv[i];
|
||||||
|
util::NormalizeTempPrefix(tempfilePath);
|
||||||
}
|
}
|
||||||
else if("-landmark" == arg && i+1 < argc)
|
else if("-landmark" == arg && i+1 < argc)
|
||||||
{
|
{
|
||||||
|
@ -7,6 +7,8 @@
|
|||||||
#include "moses/TypeDef.h"
|
#include "moses/TypeDef.h"
|
||||||
#include "moses/TranslationModel/CompactPT/PhraseTableCreator.h"
|
#include "moses/TranslationModel/CompactPT/PhraseTableCreator.h"
|
||||||
|
|
||||||
|
#include "util/file.hh"
|
||||||
|
|
||||||
using namespace Moses;
|
using namespace Moses;
|
||||||
|
|
||||||
void printHelp(char **argv) {
|
void printHelp(char **argv) {
|
||||||
@ -82,6 +84,7 @@ int main(int argc, char **argv) {
|
|||||||
else if("-T" == arg && i+1 < argc) {
|
else if("-T" == arg && i+1 < argc) {
|
||||||
++i;
|
++i;
|
||||||
tempfilePath = argv[i];
|
tempfilePath = argv[i];
|
||||||
|
util::NormalizeTempPrefix(tempfilePath);
|
||||||
}
|
}
|
||||||
else if("-encoding" == arg && i+1 < argc) {
|
else if("-encoding" == arg && i+1 < argc) {
|
||||||
++i;
|
++i;
|
||||||
|
Loading…
Reference in New Issue
Block a user