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
7604557e
Unverified
Commit
7604557e
authored
Oct 14, 2021
by
Lysandre Debut
Committed by
GitHub
Oct 14, 2021
Browse files
Fix FNet tokenizer tests (#13995)
parent
f2002fea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tests/test_tokenization_fnet.py
tests/test_tokenization_fnet.py
+3
-3
No files found.
tests/test_tokenization_fnet.py
View file @
7604557e
...
...
@@ -17,7 +17,7 @@ import os
import
unittest
from
transformers
import
FNetTokenizer
,
FNetTokenizerFast
from
transformers.testing_utils
import
require_sentencepiece
,
require_tokenizers
,
slow
from
transformers.testing_utils
import
require_sentencepiece
,
require_tokenizers
,
slow
,
tooslow
from
transformers.tokenization_utils
import
AddedToken
from
.test_tokenization_common
import
TokenizerTesterMixin
...
...
@@ -172,7 +172,7 @@ class FNetTokenizationTest(TokenizerTesterMixin, unittest.TestCase):
self
.
assertTrue
(
special_token_id
in
p_output
)
self
.
assertTrue
(
special_token_id
in
cr_output
)
@
slow
@
too
slow
def
test_special_tokens_initialization_from_slow
(
self
):
for
tokenizer
,
pretrained_name
,
kwargs
in
self
.
tokenizers_list
:
with
self
.
subTest
(
f
"
{
tokenizer
.
__class__
.
__name__
}
(
{
pretrained_name
}
)"
):
...
...
@@ -439,5 +439,5 @@ class FNetTokenizationTest(TokenizerTesterMixin, unittest.TestCase):
self
.
tokenizer_integration_test_util
(
expected_encoding
=
expected_encoding
,
model_name
=
"google/fnet-base"
,
revision
=
"
58e0d1f96af163dc8d0a84a2fddf4bd403e4e802
"
,
revision
=
"
34219a71ca20e280cc6000b89673a169c65d605c
"
,
)
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