Unverified Commit 3e3529e5 authored by Myle Ott's avatar Myle Ott Committed by GitHub
Browse files

Remove Python3.6 format string from preprocess.py (fixes #60) (#61)

parent 15dccfbf
......@@ -81,7 +81,7 @@ def main():
make_binary_dataset(input_prefix, output_prefix, lang)
elif output_format == 'raw':
# Copy original text file to destination folder
output_text_file = os.path.join(args.destdir, f'{output_prefix}.{lang}')
output_text_file = os.path.join(args.destdir, '{}.{}'.format(output_prefix, lang))
shutil.copyfile('{}.{}'.format(input_prefix, lang), output_text_file)
make_dataset(args.trainpref, 'train', args.source_lang, args.output_format)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment