mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-02 03:01:07 +06:00
typo
This commit is contained in:
parent
8337740754
commit
813e4d18ba
@ -63,7 +63,7 @@ def load_vocab(vocab_file):
|
|||||||
|
|
||||||
|
|
||||||
def whitespace_tokenize(text):
|
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()
|
text = text.strip()
|
||||||
if not text:
|
if not text:
|
||||||
return []
|
return []
|
||||||
|
Loading…
Reference in New Issue
Block a user