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
a2e37974
Commit
a2e37974
authored
Feb 20, 2021
by
Sylvain Gugger
Browse files
Fix style
parent
a0dfc2d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/transformers/tokenization_utils_base.py
src/transformers/tokenization_utils_base.py
+3
-2
No files found.
src/transformers/tokenization_utils_base.py
View file @
a2e37974
...
@@ -3054,11 +3054,12 @@ class PreTrainedTokenizerBase(SpecialTokensMixin):
...
@@ -3054,11 +3054,12 @@ class PreTrainedTokenizerBase(SpecialTokensMixin):
def
convert_tokens_to_string
(
self
,
tokens
:
List
[
str
])
->
str
:
def
convert_tokens_to_string
(
self
,
tokens
:
List
[
str
])
->
str
:
"""
"""
Converts a sequence of tokens in a single string. The most simple way to do it is ``" ".join(tokens)`` but
Converts a sequence of tokens in a single string. The most simple way to do it is ``" ".join(tokens)`` but
we
we
often want to remove sub-word tokenization artifacts at the same time.
often want to remove sub-word tokenization artifacts at the same time.
Args:
Args:
tokens (:obj:`List[str]`): The token to join in a string.
tokens (:obj:`List[str]`): The token to join in a string.
Returns:
Returns:
:obj:`str`: The joined tokens.
:obj:`str`: The joined 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