Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
f50b82af
Unverified
Commit
f50b82af
authored
Feb 20, 2019
by
Thomas Wolf
Committed by
GitHub
Feb 20, 2019
Browse files
Merge pull request #302 from yongbowin/master
typo
parents
83377407
2fdab323
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
pytorch_pretrained_bert/tokenization.py
pytorch_pretrained_bert/tokenization.py
+1
-1
pytorch_pretrained_bert/tokenization_transfo_xl.py
pytorch_pretrained_bert/tokenization_transfo_xl.py
+1
-1
No files found.
pytorch_pretrained_bert/tokenization.py
View file @
f50b82af
...
...
@@ -63,7 +63,7 @@ def load_vocab(vocab_file):
def
whitespace_tokenize
(
text
):
"""Runs basic whitespace cleaning and splitting on a p
e
ice of text."""
"""Runs basic whitespace cleaning and splitting on a pi
e
ce of text."""
text
=
text
.
strip
()
if
not
text
:
return
[]
...
...
pytorch_pretrained_bert/tokenization_transfo_xl.py
View file @
f50b82af
...
...
@@ -292,7 +292,7 @@ class TransfoXLTokenizer(object):
return
""
.
join
(
output
)
def
whitespace_tokenize
(
self
,
text
):
"""Runs basic whitespace cleaning and splitting on a p
e
ice of text."""
"""Runs basic whitespace cleaning and splitting on a pi
e
ce of text."""
text
=
text
.
strip
()
if
not
text
:
return
[]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment