mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
bugfixes - working directory
This commit is contained in:
parent
7031992caa
commit
425118aa5d
@ -187,12 +187,14 @@ def main(options):
|
||||
ret = subprocess.call(extraction_cmd)
|
||||
if ret:
|
||||
raise Exception("preparing neural LM failed")
|
||||
options.validation_file = os.path.join(
|
||||
options.working_dir, os.path.basename(options.validation_corpus))
|
||||
|
||||
else:
|
||||
options.validation_file = None
|
||||
|
||||
options.input_words_file = options.words_file
|
||||
options.output_words_file = options.words_file
|
||||
options.input_words_file = os.path.join(options.working_dir, options.words_file)
|
||||
options.output_words_file = os.path.join(options.working_dir, options.words_file)
|
||||
options.input_vocab_size = options.vocab_size
|
||||
options.output_vocab_size = options.vocab_size
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user