From 4dc7adae7c978ddf70ffdbc1eb33fb2166931f55 Mon Sep 17 00:00:00 2001 From: yonigozlan Date: Wed, 4 Sep 2024 17:44:12 +0000 Subject: [PATCH] fix processing and test_processing --- src/transformers/processing_utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/transformers/processing_utils.py b/src/transformers/processing_utils.py index ef7911217727fd..ee28c01189b439 100644 --- a/src/transformers/processing_utils.py +++ b/src/transformers/processing_utils.py @@ -102,6 +102,8 @@ class TextKwargs(TypedDict, total=False): Whether or not to return the lengths of the encoded inputs. verbose (`bool`, *optional*): Whether or not to print more information and warnings. + padding_side (`str`, *optional*): + The side on which padding will be applied. """ add_special_tokens: Optional[bool] @@ -118,6 +120,7 @@ class TextKwargs(TypedDict, total=False): return_offsets_mapping: Optional[bool] return_length: Optional[bool] verbose: Optional[bool] + padding_side: Optional[str] class ImagesKwargs(TypedDict, total=False):