Skip to content

Commit

Permalink
fixes #10303 (#10304)
Browse files Browse the repository at this point in the history
  • Loading branch information
cronoik committed Feb 20, 2021
1 parent 9a7e637 commit a0dfc2d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/transformers/tokenization_utils_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3054,12 +3054,13 @@ def _pad(

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

Expand Down

0 comments on commit a0dfc2d

Please sign in to comment.