Fix simple typo: vocabuary -> vocabulary (#797)

Closes #796
This commit is contained in:
Tim Gates 2020-01-02 13:26:00 +11:00 committed by Sun Junyi
parent 30ea8f929e
commit 0489a6979e

View File

@ -64,7 +64,7 @@ class Dataset(object):
@property @property
def vocab_size(self): def vocab_size(self):
"""vocabuary size""" """vocabulary size"""
return max(self.word2id_dict.values()) + 1 return max(self.word2id_dict.values()) + 1
@property @property
@ -97,4 +97,4 @@ class Dataset(object):
word_ids = self.word_to_ids(words) word_ids = self.word_to_ids(words)
return word_ids return word_ids