Fix special token doc (#4292)

This commit is contained in:
Lysandre Debut
2020-05-11 15:05:36 -04:00
committed by GitHub
parent 82601f4c1a
commit cd40cb8879
7 changed files with 7 additions and 7 deletions

View File

@@ -269,7 +269,7 @@ class BertTokenizer(PreTrainedTokenizer):
Set to True if the token list is already formatted with special tokens for the model
Returns:
:obj:`List[int]`: A list of integers in the range [0, 1]: 0 for a special token, 1 for a sequence token.
:obj:`List[int]`: A list of integers in the range [0, 1]: 1 for a special token, 0 for a sequence token.
"""
if already_has_special_tokens: