Skip to content

Commit a0dfc2d

Browse files
authored
1 parent 9a7e637 commit a0dfc2d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/transformers/tokenization_utils_base.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3054,12 +3054,13 @@ def _pad(
30543054

30553055
def convert_tokens_to_string(self, tokens: List[str]) -> str:
30563056
"""
3057-
Converts a sequence of token ids in a single string. The most simple way to do it is ``" ".join(tokens)`` but
3058-
we often want to remove sub-word tokenization artifacts at the same time
3057+
Converts a sequence of tokens in a single string. The most simple way to do it is ``" ".join(tokens)`` but
3058+
we often want to remove sub-word tokenization artifacts at the same time.
30593059
30603060
Args:
30613061
tokens (:obj:`List[str]`): The token to join in a string.
3062-
Return: The joined tokens.
3062+
Returns:
3063+
:obj:`str`: The joined tokens.
30633064
"""
30643065
raise NotImplementedError
30653066

0 commit comments

Comments
 (0)