Skip to content
This repository has been archived by the owner on Jul 7, 2023. It is now read-only.

Commit

Permalink
fix #252 encoded vocab filepath for wmt17.zh-en (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
twairball authored and rsepassi committed Sep 21, 2017
1 parent c3dedef commit 1b6905f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tensor2tensor/data_generators/wmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,9 +510,9 @@ def target_space_id(self):
def feature_encoders(self, data_dir):
vocab_size = self.targeted_vocab_size
source_vocab_filename = os.path.join(data_dir,
"vocab.zh.%d" % vocab_size)
"vocab.zhen-zh.%d" % vocab_size)
target_vocab_filename = os.path.join(data_dir,
"vocab.en.%d" % vocab_size)
"vocab.zhen-en.%d" % vocab_size)
source_token = text_encoder.SubwordTextEncoder(source_vocab_filename)
target_token = text_encoder.SubwordTextEncoder(target_vocab_filename)
return {
Expand Down

0 comments on commit 1b6905f

Please sign in to comment.