mirror of
https://github.com/mii443/tokenizers.git
synced 2025-12-12 05:18:39 +00:00
Fix BaseTokenizer enable_truncation docstring
This commit is contained in:
@@ -117,7 +117,7 @@ class BaseTokenizer:
|
|||||||
The length of the previous first sequence to be included
|
The length of the previous first sequence to be included
|
||||||
in the overflowing sequence
|
in the overflowing sequence
|
||||||
|
|
||||||
strategy: (`optional) str:
|
strategy: (`optional`) str:
|
||||||
Can be one of `longest_first`, `only_first` or `only_second`
|
Can be one of `longest_first`, `only_first` or `only_second`
|
||||||
"""
|
"""
|
||||||
return self._tokenizer.enable_truncation(max_length, stride=stride, strategy=strategy)
|
return self._tokenizer.enable_truncation(max_length, stride=stride, strategy=strategy)
|
||||||
|
|||||||
Reference in New Issue
Block a user