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
a6938c47
"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "f4ff44a6d9a4646ccd88388efeba7c9d673f4290"
Unverified
Commit
a6938c47
authored
Jul 13, 2021
by
Lysandre Debut
Committed by
GitHub
Jul 13, 2021
Browse files
Patch BigBird tokenization test (#12653)
parent
c523b241
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/test_tokenization_big_bird.py
tests/test_tokenization_big_bird.py
+1
-1
No files found.
tests/test_tokenization_big_bird.py
View file @
a6938c47
...
@@ -220,7 +220,7 @@ class BigBirdTokenizationTest(TokenizerTesterMixin, unittest.TestCase):
...
@@ -220,7 +220,7 @@ class BigBirdTokenizationTest(TokenizerTesterMixin, unittest.TestCase):
tokenizer
=
BigBirdTokenizer
.
from_pretrained
(
"google/bigbird-roberta-base"
)
tokenizer
=
BigBirdTokenizer
.
from_pretrained
(
"google/bigbird-roberta-base"
)
decoded_text
=
tokenizer
.
decode
(
tokenizer
(
"Paris is the [MASK]."
).
input_ids
)
decoded_text
=
tokenizer
.
decode
(
tokenizer
(
"Paris is the [MASK]."
).
input_ids
)
self
.
assertTrue
(
decoded_text
==
"[CLS] Paris is the
[MASK].[SEP]"
)
self
.
assertTrue
(
decoded_text
==
"[CLS] Paris is the[MASK].[SEP]"
)
@
slow
@
slow
def
test_tokenizer_integration
(
self
):
def
test_tokenizer_integration
(
self
):
...
...
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