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
2fdab323
Unverified
Commit
2fdab323
authored
Feb 20, 2019
by
Yongbo Wang
Committed by
GitHub
Feb 20, 2019
Browse files
typo
parent
813e4d18
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+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_transfo_xl.py
View file @
2fdab323
...
@@ -292,7 +292,7 @@ class TransfoXLTokenizer(object):
...
@@ -292,7 +292,7 @@ class TransfoXLTokenizer(object):
return
""
.
join
(
output
)
return
""
.
join
(
output
)
def
whitespace_tokenize
(
self
,
text
):
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
()
text
=
text
.
strip
()
if
not
text
:
if
not
text
:
return
[]
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