diff --git a/seq2seq/data/vocab.py b/seq2seq/data/vocab.py index e4d672ec..7d4034c7 100644 --- a/seq2seq/data/vocab.py +++ b/seq2seq/data/vocab.py @@ -64,7 +64,7 @@ def create_vocabulary_lookup_table(filename, default_value=None): """Creates a lookup table for a vocabulary file. Args: - filename: Path to a vocabulary file containg one word per line. + filename: Path to a vocabulary file containing one word per line. Each word is mapped to its line number. default_value: UNK tokens will be mapped to this id. If None, UNK tokens will be mapped to [vocab_size]