Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
9da1acae
Unverified
Commit
9da1acae
authored
Jul 13, 2021
by
Lysandre Debut
Committed by
GitHub
Jul 13, 2021
Browse files
**encode_plus() shouldn't run for W2V2CTC (#12655)
* **encode_plus() shouldn't run for W2V2CTC * Typo
parent
a6938c47
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
tests/test_tokenization_wav2vec2.py
tests/test_tokenization_wav2vec2.py
+8
-0
No files found.
tests/test_tokenization_wav2vec2.py
View file @
9da1acae
...
@@ -554,3 +554,11 @@ class Wav2Vec2CTCTokenizerTest(TokenizerTesterMixin, unittest.TestCase):
...
@@ -554,3 +554,11 @@ class Wav2Vec2CTCTokenizerTest(TokenizerTesterMixin, unittest.TestCase):
self
.
assertGreater
(
tokens
[
-
3
],
tokens
[
-
4
])
self
.
assertGreater
(
tokens
[
-
3
],
tokens
[
-
4
])
self
.
assertEqual
(
tokens
[
0
],
tokenizer
.
eos_token_id
)
self
.
assertEqual
(
tokens
[
0
],
tokenizer
.
eos_token_id
)
self
.
assertEqual
(
tokens
[
-
3
],
tokenizer
.
pad_token_id
)
self
.
assertEqual
(
tokens
[
-
3
],
tokenizer
.
pad_token_id
)
@
unittest
.
skip
(
"The tokenizer shouldn't be used to encode input IDs (except for labels), only to decode."
)
def
test_tf_encode_plus_sent_to_model
(
self
):
pass
@
unittest
.
skip
(
"The tokenizer shouldn't be used to encode input IDs (except for labels), only to decode."
)
def
test_torch_encode_plus_sent_to_model
(
self
):
pass
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