File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -3054,12 +3054,13 @@ def _pad(
3054
3054
3055
3055
def convert_tokens_to_string (self , tokens : List [str ]) -> str :
3056
3056
"""
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.
3059
3059
3060
3060
Args:
3061
3061
tokens (:obj:`List[str]`): The token to join in a string.
3062
- Return: The joined tokens.
3062
+ Returns:
3063
+ :obj:`str`: The joined tokens.
3063
3064
"""
3064
3065
raise NotImplementedError
3065
3066
You can’t perform that action at this time.
0 commit comments