This commit is contained in:
Yongbo Wang 2019-02-20 21:10:07 +08:00 committed by GitHub
parent 8337740754
commit 813e4d18ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,7 +63,7 @@ def load_vocab(vocab_file):
def whitespace_tokenize(text):
"""Runs basic whitespace cleaning and splitting on a peice of text."""
"""Runs basic whitespace cleaning and splitting on a piece of text."""
text = text.strip()
if not text:
return []