Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Fairseq
Commits
3e3529e5
Unverified
Commit
3e3529e5
authored
Nov 13, 2017
by
Myle Ott
Committed by
GitHub
Nov 13, 2017
Browse files
Remove Python3.6 format string from preprocess.py (fixes #60) (#61)
parent
15dccfbf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
preprocess.py
preprocess.py
+1
-1
No files found.
preprocess.py
View file @
3e3529e5
...
@@ -81,7 +81,7 @@ def main():
...
@@ -81,7 +81,7 @@ def main():
make_binary_dataset
(
input_prefix
,
output_prefix
,
lang
)
make_binary_dataset
(
input_prefix
,
output_prefix
,
lang
)
elif
output_format
==
'raw'
:
elif
output_format
==
'raw'
:
# Copy original text file to destination folder
# 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
)
shutil
.
copyfile
(
'{}.{}'
.
format
(
input_prefix
,
lang
),
output_text_file
)
make_dataset
(
args
.
trainpref
,
'train'
,
args
.
source_lang
,
args
.
output_format
)
make_dataset
(
args
.
trainpref
,
'train'
,
args
.
source_lang
,
args
.
output_format
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment