Skip to content

Commit 2ee5de3

Browse files
committed
up
1 parent 19d1f5f commit 2ee5de3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bindings/python/py_src/tokenizers/processors/__init__.pyi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,11 @@ class ByteLevel(PostProcessor):
138138
Args:
139139
trim_offsets (:obj:`bool`):
140140
Whether to trim the whitespaces from the produced offsets.
141+
142+
add_prefix_space (:obj:`bool`, `optional`, defaults to :obj:`True`):
143+
If :obj:`True`, keeps the first token's offset as is. If :obj:`False`, increments
144+
the start of the first token's offset by 1. Only has an effect if :obj:`trim_offsets`
145+
is set to :obj:`True`.
141146
"""
142147
def __init__(self, add_prefix_space=None, trim_offsets=None, use_regex=None):
143148
pass

0 commit comments

Comments
 (0)