Fix style
This commit is contained in:
@@ -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.
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user