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
6730ecdd
"vscode:/vscode.git/clone" did not exist on "13936a962102ed20424838fe5d445a28b5225d08"
Unverified
Commit
6730ecdd
authored
Aug 04, 2020
by
Sam Shleifer
Committed by
GitHub
Aug 04, 2020
Browse files
Remove redundant coverage (#6224)
parent
5deed37f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
tests/test_tokenization_common.py
tests/test_tokenization_common.py
+0
-4
No files found.
tests/test_tokenization_common.py
View file @
6730ecdd
...
...
@@ -1065,10 +1065,6 @@ class TokenizerTesterMixin:
self
.
assertIsInstance
(
vocab
,
dict
)
self
.
assertEqual
(
len
(
vocab
),
len
(
tokenizer
))
for
word
,
ind
in
vocab
.
items
():
self
.
assertEqual
(
tokenizer
.
convert_tokens_to_ids
(
word
),
ind
)
self
.
assertEqual
(
tokenizer
.
convert_ids_to_tokens
(
ind
),
word
)
tokenizer
.
add_tokens
([
"asdfasdfasdfasdf"
])
vocab
=
tokenizer
.
get_vocab
()
self
.
assertIsInstance
(
vocab
,
dict
)
...
...
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