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
7833b21a
Unverified
Commit
7833b21a
authored
Jul 06, 2020
by
Sylvain Gugger
Committed by
GitHub
Jul 06, 2020
Browse files
Fix #5544 (#5551)
parent
c4734840
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/tokenization_utils.py
src/transformers/tokenization_utils.py
+1
-1
No files found.
src/transformers/tokenization_utils.py
View file @
7833b21a
...
@@ -649,7 +649,7 @@ class PreTrainedTokenizer(PreTrainedTokenizerBase):
...
@@ -649,7 +649,7 @@ class PreTrainedTokenizer(PreTrainedTokenizerBase):
def
convert_ids_to_tokens
(
def
convert_ids_to_tokens
(
self
,
ids
:
Union
[
int
,
List
[
int
]],
skip_special_tokens
:
bool
=
False
self
,
ids
:
Union
[
int
,
List
[
int
]],
skip_special_tokens
:
bool
=
False
)
->
Union
[
int
,
List
[
int
]]:
)
->
Union
[
str
,
List
[
str
]]:
""" Converts a single index or a sequence of indices (integers) in a token "
""" Converts a single index or a sequence of indices (integers) in a token "
(resp.) a sequence of tokens (str), using the vocabulary and added tokens.
(resp.) a sequence of tokens (str), using the vocabulary and added tokens.
...
...
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