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
ModelZoo
ResNet50_tensorflow
Commits
efa4a6cf
Commit
efa4a6cf
authored
Jan 24, 2017
by
Justas Zemgulys
Committed by
drpngx
Jan 24, 2017
Browse files
Fix vocabulary naming (input/output vocabulary no longer has same name) (#946)
parent
5723fcca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tutorials/rnn/translate/data_utils.py
tutorials/rnn/translate/data_utils.py
+2
-2
No files found.
tutorials/rnn/translate/data_utils.py
View file @
efa4a6cf
...
...
@@ -300,8 +300,8 @@ def prepare_data(data_dir, from_train_path, to_train_path, from_dev_path, to_dev
(6) path to the "to language" vocabulary file.
"""
# Create vocabularies of the appropriate sizes.
to_vocab_path
=
os
.
path
.
join
(
data_dir
,
"vocab%d"
%
to_vocabulary_size
)
from_vocab_path
=
os
.
path
.
join
(
data_dir
,
"vocab%d"
%
from_vocabulary_size
)
to_vocab_path
=
os
.
path
.
join
(
data_dir
,
"vocab%d
.to
"
%
to_vocabulary_size
)
from_vocab_path
=
os
.
path
.
join
(
data_dir
,
"vocab%d
.from
"
%
from_vocabulary_size
)
create_vocabulary
(
to_vocab_path
,
to_train_path
,
to_vocabulary_size
,
tokenizer
)
create_vocabulary
(
from_vocab_path
,
from_train_path
,
from_vocabulary_size
,
tokenizer
)
...
...
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