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

Commit 9d6dce3

Browse files
authored
Merge pull request #389 from Mistobaan/master
fix mispells
2 parents 9bdc801 + 91d4e1c commit 9d6dce3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

tensor2tensor/data_generators/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ for an example of usage.
4242

4343
The generators should yield dictionaries with string keys and values being lists
4444
of {int, float, str}. Here is a very simple generator for a data-set where
45-
inputs are lists of 2s with length upto 100 and targets are lists of length 1
45+
inputs are lists of 2s with length up to 100 and targets are lists of length 1
4646
with an integer denoting the length of the input list.
4747

4848
```

tensor2tensor/data_generators/generator_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def maybe_download(directory, filename, url):
190190
print()
191191
tf.gfile.Rename(inprogress_filepath, filepath)
192192
statinfo = os.stat(filepath)
193-
tf.logging.info("Succesfully downloaded %s, %s bytes." % (filename,
193+
tf.logging.info("Successfully downloaded %s, %s bytes." % (filename,
194194
statinfo.st_size))
195195
else:
196196
tf.logging.info("Not downloading, file already found: %s" % filepath)
@@ -242,7 +242,7 @@ def maybe_download_from_drive(directory, filename, url):
242242
# Print newline to clear the carriage return from the download progress
243243
print()
244244
statinfo = os.stat(filepath)
245-
tf.logging.info("Succesfully downloaded %s, %s bytes." % (filename,
245+
tf.logging.info("Successfully downloaded %s, %s bytes." % (filename,
246246
statinfo.st_size))
247247
return filepath
248248

tensor2tensor/data_generators/problem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class Problem(object):
130130
Data generation:
131131
* generate_data(data_dir, tmp_dir)
132132
- Generate training and dev datasets into data_dir.
133-
- Additonal files, e.g. vocabulary files, should also be written to
133+
- Additional files, e.g. vocabulary files, should also be written to
134134
data_dir. Vocab files are newline-separated files with each line
135135
containing a token. The standard convention for the filename is to
136136
set it to be
@@ -515,7 +515,7 @@ def _default_hparams():
515515
return tf.contrib.training.HParams(
516516
# Use this parameter to get comparable perplexity numbers with different
517517
# tokenizations. This value should be set to the ratio of the number of
518-
# tokens in the test set according to the tokeization used to the number
518+
# tokens in the test set according to the tokenization used to the number
519519
# of tokens in the test set in the "official" tokenization. For
520520
# example, if we are using a word-piece based model and we want to
521521
# compute per-word perplexity, then we set loss_multiplier to the number

0 commit comments

Comments
 (0)