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
"examples/git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "cd98c48fdedd7a6ce01a58f096a960de6f85946e"
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):
...
@@ -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 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
[]
...
...
pytorch_pretrained_bert/tokenization_transfo_xl.py
View file @
f50b82af
...
@@ -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