Skip to content

Commit 8a1079e

Browse files
authored
fix typos
1 parent 26a9f84 commit 8a1079e

39 files changed

+40
-40
lines changed

src/transformers/models/align/processing_align.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def __call__(
8383
arguments to BertTokenizerFast's [`~BertTokenizerFast.__call__`] if `text` is not `None` to encode
8484
the text. To prepare the image(s), this method forwards the `images` arguments to
8585
EfficientNetImageProcessor's [`~EfficientNetImageProcessor.__call__`] if `images` is not `None`. Please refer
86-
to the doctsring of the above two methods for more information.
86+
to the docstring of the above two methods for more information.
8787
8888
Args:
8989
images (`PIL.Image.Image`, `np.ndarray`, `torch.Tensor`, `List[PIL.Image.Image]`, `List[np.ndarray]`, `List[torch.Tensor]`):

src/transformers/models/altclip/processing_altclip.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def __call__(
6868
Main method to prepare for the model one or several sequences(s) and image(s). This method forwards the `text`
6969
and `kwargs` arguments to XLMRobertaTokenizerFast's [`~XLMRobertaTokenizerFast.__call__`] if `text` is not
7070
`None` to encode the text. To prepare the image(s), this method forwards the `images` and `kwrags` arguments to
71-
CLIPImageProcessor's [`~CLIPImageProcessor.__call__`] if `images` is not `None`. Please refer to the doctsring
71+
CLIPImageProcessor's [`~CLIPImageProcessor.__call__`] if `images` is not `None`. Please refer to the docstring
7272
of the above two methods for more information.
7373
7474
Args:

src/transformers/models/chameleon/processing_chameleon.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def __call__(
8787
Main method to prepare for the model one or several sequences(s) and image(s). This method forwards the `text`
8888
and `kwargs` arguments to LlamaTokenizerFast's [`~LlamaTokenizerFast.__call__`] if `text` is not `None` to encode
8989
the text. To prepare the image(s), this method forwards the `images` and `kwrags` arguments to
90-
CLIPImageProcessor's [`~CLIPImageProcessor.__call__`] if `images` is not `None`. Please refer to the doctsring
90+
CLIPImageProcessor's [`~CLIPImageProcessor.__call__`] if `images` is not `None`. Please refer to the docstring
9191
of the above two methods for more information.
9292
9393
Args:

src/transformers/models/chinese_clip/processing_chinese_clip.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def __call__(
7878
Main method to prepare for the model one or several sequences(s) and image(s). This method forwards the `text`
7979
and `kwargs` arguments to BertTokenizerFast's [`~BertTokenizerFast.__call__`] if `text` is not `None` to encode
8080
the text. To prepare the image(s), this method forwards the `images` and `kwrags` arguments to
81-
CLIPImageProcessor's [`~CLIPImageProcessor.__call__`] if `images` is not `None`. Please refer to the doctsring
81+
CLIPImageProcessor's [`~CLIPImageProcessor.__call__`] if `images` is not `None`. Please refer to the docstring
8282
of the above two methods for more information.
8383
8484
Args:

src/transformers/models/clap/processing_clap.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def __call__(self, text=None, audios=None, return_tensors=None, **kwargs):
4646
and `kwargs` arguments to RobertaTokenizerFast's [`~RobertaTokenizerFast.__call__`] if `text` is not `None` to
4747
encode the text. To prepare the audio(s), this method forwards the `audios` and `kwrags` arguments to
4848
ClapFeatureExtractor's [`~ClapFeatureExtractor.__call__`] if `audios` is not `None`. Please refer to the
49-
doctsring of the above two methods for more information.
49+
docstring of the above two methods for more information.
5050
5151
Args:
5252
text (`str`, `List[str]`, `List[List[str]]`):

src/transformers/models/clip/processing_clip.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def __call__(self, text=None, images=None, return_tensors=None, **kwargs):
6363
Main method to prepare for the model one or several sequences(s) and image(s). This method forwards the `text`
6464
and `kwargs` arguments to CLIPTokenizerFast's [`~CLIPTokenizerFast.__call__`] if `text` is not `None` to encode
6565
the text. To prepare the image(s), this method forwards the `images` and `kwrags` arguments to
66-
CLIPImageProcessor's [`~CLIPImageProcessor.__call__`] if `images` is not `None`. Please refer to the doctsring
66+
CLIPImageProcessor's [`~CLIPImageProcessor.__call__`] if `images` is not `None`. Please refer to the docstring
6767
of the above two methods for more information.
6868
6969
Args:

src/transformers/models/clipseg/processing_clipseg.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def __call__(self, text=None, images=None, visual_prompt=None, return_tensors=No
6363
Main method to prepare for the model one or several sequences(s) and image(s). This method forwards the `text`
6464
and `kwargs` arguments to CLIPTokenizerFast's [`~CLIPTokenizerFast.__call__`] if `text` is not `None` to encode
6565
the text. To prepare the image(s), this method forwards the `images` and `kwrags` arguments to
66-
ViTImageProcessor's [`~ViTImageProcessor.__call__`] if `images` is not `None`. Please refer to the doctsring of
66+
ViTImageProcessor's [`~ViTImageProcessor.__call__`] if `images` is not `None`. Please refer to the docstring of
6767
the above two methods for more information.
6868
6969
Args:

src/transformers/models/clvp/processing_clvp.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(self, feature_extractor, tokenizer):
4848
def __call__(self, *args, **kwargs):
4949
"""
5050
Forwards the `audio` and `sampling_rate` arguments to [`~ClvpFeatureExtractor.__call__`] and the `text`
51-
argument to [`~ClvpTokenizer.__call__`]. Please refer to the doctsring of the above two methods for more
51+
argument to [`~ClvpTokenizer.__call__`]. Please refer to the docstring of the above two methods for more
5252
information.
5353
"""
5454

src/transformers/models/colpali/processing_colpali.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def __call__(
144144
[`~LlamaTokenizerFast.__call__`].
145145
When preparing the image(s), this method forwards the `images` and `kwargs` arguments to SiglipImageProcessor's
146146
[`~SiglipImageProcessor.__call__`].
147-
Please refer to the doctsring of the above two methods for more information.
147+
Please refer to the docstring of the above two methods for more information.
148148
149149
Args:
150150
images (`PIL.Image.Image`, `np.ndarray`, `torch.Tensor`, `List[PIL.Image.Image]`, `List[np.ndarray]`, `List[torch.Tensor]`):

src/transformers/models/deprecated/mctct/processing_mctct.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def __call__(self, *args, **kwargs):
4949
When used in normal mode, this method forwards all its arguments to MCTCTFeatureExtractor's
5050
[`~MCTCTFeatureExtractor.__call__`] and returns its output. If used in the context
5151
[`~MCTCTProcessor.as_target_processor`] this method forwards all its arguments to AutoTokenizer's
52-
[`~AutoTokenizer.__call__`]. Please refer to the doctsring of the above two methods for more information.
52+
[`~AutoTokenizer.__call__`]. Please refer to the docstring of the above two methods for more information.
5353
"""
5454
# For backward compatibility
5555
if self._in_target_context_manager:

src/transformers/models/deprecated/speech_to_text_2/processing_speech_to_text_2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def __call__(self, *args, **kwargs):
5050
When used in normal mode, this method forwards all its arguments to AutoFeatureExtractor's
5151
[`~AutoFeatureExtractor.__call__`] and returns its output. If used in the context
5252
[`~Speech2Text2Processor.as_target_processor`] this method forwards all its arguments to
53-
Speech2Text2Tokenizer's [`~Speech2Text2Tokenizer.__call__`]. Please refer to the doctsring of the above two
53+
Speech2Text2Tokenizer's [`~Speech2Text2Tokenizer.__call__`]. Please refer to the docstring of the above two
5454
methods for more information.
5555
"""
5656
# For backward compatibility

src/transformers/models/donut/processing_donut.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def __call__(
8686
When used in normal mode, this method forwards all its arguments to AutoImageProcessor's
8787
[`~AutoImageProcessor.__call__`] and returns its output. If used in the context
8888
[`~DonutProcessor.as_target_processor`] this method forwards all its arguments to DonutTokenizer's
89-
[`~DonutTokenizer.__call__`]. Please refer to the doctsring of the above two methods for more information.
89+
[`~DonutTokenizer.__call__`]. Please refer to the docstring of the above two methods for more information.
9090
"""
9191
# For backward compatibility
9292
legacy = kwargs.pop("legacy", True)

src/transformers/models/emu3/processing_emu3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def __call__(
9595
Main method to prepare for the model one or several sequences(s) and image(s). This method forwards the `text`
9696
and `kwargs` arguments to Emu3TokenizerFast's [`~Emu3TokenizerFast.__call__`] if `text` is not `None` to encode
9797
the text. To prepare the image(s), this method forwards the `images` and `kwrags` arguments to
98-
CLIPImageProcessor's [`~CLIPImageProcessor.__call__`] if `images` is not `None`. Please refer to the doctsring
98+
CLIPImageProcessor's [`~CLIPImageProcessor.__call__`] if `images` is not `None`. Please refer to the docstring
9999
of the above two methods for more information.
100100
101101
Args:

src/transformers/models/fuyu/processing_fuyu.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ def __call__(
481481
Main method to prepare for the model one or several sequences(s) and image(s). This method forwards the `text`
482482
and `kwargs` arguments to LlamaTokenizerFast's [`~LlamaTokenizerFast.__call__`] if `text` is not `None` to
483483
encode the text. To prepare the image(s), this method forwards the `images` and `kwargs` arguments to
484-
FuyuImageProcessor's [`~FuyuImageProcessor.__call__`] if `images` is not `None`. Please refer to the doctsring
484+
FuyuImageProcessor's [`~FuyuImageProcessor.__call__`] if `images` is not `None`. Please refer to the docstring
485485
of the above two methods for more information.
486486
487487
Args:

src/transformers/models/git/processing_git.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def __call__(
6666
Main method to prepare for the model one or several sequences(s) and image(s). This method forwards the `text`
6767
and `kwargs` arguments to BertTokenizerFast's [`~BertTokenizerFast.__call__`] if `text` is not `None` to encode
6868
the text. To prepare the image(s), this method forwards the `images` and `kwrags` arguments to
69-
CLIPImageProcessor's [`~CLIPImageProcessor.__call__`] if `images` is not `None`. Please refer to the doctsring
69+
CLIPImageProcessor's [`~CLIPImageProcessor.__call__`] if `images` is not `None`. Please refer to the docstring
7070
of the above two methods for more information.
7171
7272
Args:

src/transformers/models/llava/processing_llava.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def __call__(
103103
Main method to prepare for the model one or several sequences(s) and image(s). This method forwards the `text`
104104
and `kwargs` arguments to LlamaTokenizerFast's [`~LlamaTokenizerFast.__call__`] if `text` is not `None` to encode
105105
the text. To prepare the image(s), this method forwards the `images` and `kwrags` arguments to
106-
CLIPImageProcessor's [`~CLIPImageProcessor.__call__`] if `images` is not `None`. Please refer to the doctsring
106+
CLIPImageProcessor's [`~CLIPImageProcessor.__call__`] if `images` is not `None`. Please refer to the docstring
107107
of the above two methods for more information.
108108
109109
Args:

src/transformers/models/llava_next/processing_llava_next.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def __call__(
106106
Main method to prepare for the model one or several sequences(s) and image(s). This method forwards the `text`
107107
and `kwargs` arguments to LlamaTokenizerFast's [`~LlamaTokenizerFast.__call__`] if `text` is not `None` to encode
108108
the text. To prepare the image(s), this method forwards the `images` and `kwrags` arguments to
109-
LlavaNextImageProcessor's [`~LlavaNextImageProcessor.__call__`] if `images` is not `None`. Please refer to the doctsring
109+
LlavaNextImageProcessor's [`~LlavaNextImageProcessor.__call__`] if `images` is not `None`. Please refer to the docstring
110110
of the above two methods for more information.
111111
112112
Args:

src/transformers/models/llava_next_video/processing_llava_next_video.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def __call__(
123123
the text. To prepare the image(s), this method forwards the `images` and `kwrags` arguments to
124124
LlavaNextImageProcessor's [`~LlavaNextImageProcessor.__call__`] if `images` is not `None`. To prepare the video(s),
125125
this method forwards the `videos` and `kwrags` arguments to LlavaNextVideoImageProcessor's
126-
[`~LlavaNextVideoImageProcessor.__call__`] if `videos` is not `None`. Please refer to the doctsring
126+
[`~LlavaNextVideoImageProcessor.__call__`] if `videos` is not `None`. Please refer to the docstring
127127
of the above two methods for more information.
128128
129129
Args:

src/transformers/models/llava_onevision/processing_llava_onevision.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def __call__(
114114
Main method to prepare for the model one or several sequences(s) and image(s). This method forwards the `text`
115115
and `kwargs` arguments to LlamaTokenizerFast's [`~LlamaTokenizerFast.__call__`] if `text` is not `None` to encode
116116
the text. To prepare the image(s), this method forwards the `images` and `kwrags` arguments to
117-
LlavaNextImageProcessor's [`~LlavaNextImageProcessor.__call__`] if `images` is not `None`. Please refer to the doctsring
117+
LlavaNextImageProcessor's [`~LlavaNextImageProcessor.__call__`] if `images` is not `None`. Please refer to the docstring
118118
of the above two methods for more information.
119119
120120
Args:

src/transformers/models/mgp_str/processing_mgp_str.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def __call__(self, text=None, images=None, return_tensors=None, **kwargs):
8181
When used in normal mode, this method forwards all its arguments to ViTImageProcessor's
8282
[`~ViTImageProcessor.__call__`] and returns its output. This method also forwards the `text` and `kwargs`
8383
arguments to MgpstrTokenizer's [`~MgpstrTokenizer.__call__`] if `text` is not `None` to encode the text. Please
84-
refer to the doctsring of the above methods for more information.
84+
refer to the docstring of the above methods for more information.
8585
"""
8686
if images is None and text is None:
8787
raise ValueError("You need to specify either an `images` or `text` input to process.")

src/transformers/models/musicgen/processing_musicgen.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def get_decoder_prompt_ids(self, task=None, language=None, no_timestamps=True):
5353
def __call__(self, *args, **kwargs):
5454
"""
5555
Forwards the `audio` argument to EncodecFeatureExtractor's [`~EncodecFeatureExtractor.__call__`] and the `text`
56-
argument to [`~T5Tokenizer.__call__`]. Please refer to the doctsring of the above two methods for more
56+
argument to [`~T5Tokenizer.__call__`]. Please refer to the docstring of the above two methods for more
5757
information.
5858
"""
5959
# For backward compatibility

src/transformers/models/musicgen_melody/processing_musicgen_melody.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def __call__(self, audio=None, text=None, **kwargs):
5454
Main method to prepare for the model one or several sequences(s) and audio(s). This method forwards the `audio`
5555
and `kwargs` arguments to MusicgenMelodyFeatureExtractor's [`~MusicgenMelodyFeatureExtractor.__call__`] if `audio` is not
5656
`None` to pre-process the audio. It also forwards the `text` and `kwargs` arguments to
57-
PreTrainedTokenizer's [`~PreTrainedTokenizer.__call__`] if `text` is not `None`. Please refer to the doctsring of the above two methods for more information.
57+
PreTrainedTokenizer's [`~PreTrainedTokenizer.__call__`] if `text` is not `None`. Please refer to the docstring of the above two methods for more information.
5858
5959
Args:
6060
audio (`np.ndarray`, `torch.Tensor`, `List[np.ndarray]`, `List[torch.Tensor]`):

src/transformers/models/oneformer/processing_oneformer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def __call__(self, images=None, task_inputs=None, segmentation_maps=None, **kwar
8282
`task_inputs` and `kwargs` arguments to CLIPTokenizer's [`~CLIPTokenizer.__call__`] if `task_inputs` is not
8383
`None` to encode. To prepare the image(s), this method forwards the `images` and `kwargs` arguments to
8484
OneFormerImageProcessor's [`~OneFormerImageProcessor.__call__`] if `images` is not `None`. Please refer to the
85-
doctsring of the above two methods for more information.
85+
docstring of the above two methods for more information.
8686
8787
Args:
8888
task_inputs (`str`, `List[str]`):

src/transformers/models/owlv2/processing_owlv2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def __call__(
9696
Main method to prepare for the model one or several text(s) and image(s). This method forwards the `text` and
9797
`kwargs` arguments to CLIPTokenizerFast's [`~CLIPTokenizerFast.__call__`] if `text` is not `None` to encode:
9898
the text. To prepare the image(s), this method forwards the `images` and `kwrags` arguments to
99-
CLIPImageProcessor's [`~CLIPImageProcessor.__call__`] if `images` is not `None`. Please refer to the doctsring
99+
CLIPImageProcessor's [`~CLIPImageProcessor.__call__`] if `images` is not `None`. Please refer to the docstring
100100
of the above two methods for more information.
101101
102102
Args:

src/transformers/models/owlvit/processing_owlvit.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def __call__(
110110
Main method to prepare for the model one or several text(s) and image(s). This method forwards the `text` and
111111
`kwargs` arguments to CLIPTokenizerFast's [`~CLIPTokenizerFast.__call__`] if `text` is not `None` to encode:
112112
the text. To prepare the image(s), this method forwards the `images` and `kwrags` arguments to
113-
CLIPImageProcessor's [`~CLIPImageProcessor.__call__`] if `images` is not `None`. Please refer to the doctsring
113+
CLIPImageProcessor's [`~CLIPImageProcessor.__call__`] if `images` is not `None`. Please refer to the docstring
114114
of the above two methods for more information.
115115
116116
Args:

src/transformers/models/paligemma/processing_paligemma.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def __call__(
162162
Main method to prepare for the model one or several sequences(s) and image(s). This method forwards the `text`
163163
and `kwargs` arguments to GemmaTokenizerFast's [`~GemmaTokenizerFast.__call__`] if `text` is not `None` to encode
164164
the text. To prepare the image(s), this method forwards the `images` and `kwrags` arguments to
165-
SiglipImageProcessor's [`~SiglipImageProcessor.__call__`] if `images` is not `None`. Please refer to the doctsring
165+
SiglipImageProcessor's [`~SiglipImageProcessor.__call__`] if `images` is not `None`. Please refer to the docstring
166166
of the above two methods for more information.
167167
168168
The usage for PaliGemma fine-tuning preparation is slightly different than usual. suffix passed are suffixes to

src/transformers/models/pixtral/processing_pixtral.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def __call__(
119119
Main method to prepare for the model one or several sequences(s) and image(s). This method forwards the `text`
120120
and `kwargs` arguments to LlamaTokenizerFast's [`~LlamaTokenizerFast.__call__`] if `text` is not `None` to encode
121121
the text. To prepare the image(s), this method forwards the `images` and `kwrags` arguments to
122-
CLIPImageProcessor's [`~CLIPImageProcessor.__call__`] if `images` is not `None`. Please refer to the doctsring
122+
CLIPImageProcessor's [`~CLIPImageProcessor.__call__`] if `images` is not `None`. Please refer to the docstring
123123
of the above two methods for more information.
124124
125125
Args:

src/transformers/models/qwen2_audio/processing_qwen2_audio.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def __call__(
8080
Main method to prepare for the model one or several sequences(s) and audio(s). This method forwards the `text`
8181
and `kwargs` arguments to Qwen2TokenizerFast's [`~Qwen2TokenizerFast.__call__`] if `text` is not `None` to encode
8282
the text. To prepare the audio(s), this method forwards the `audios` and `kwrags` arguments to
83-
WhisperFeatureExtractor's [`~WhisperFeatureExtractor.__call__`] if `audios` is not `None`. Please refer to the doctsring
83+
WhisperFeatureExtractor's [`~WhisperFeatureExtractor.__call__`] if `audios` is not `None`. Please refer to the docstring
8484
of the above two methods for more information.
8585
8686
Args:

src/transformers/models/seamless_m4t/processing_seamless_m4t.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __call__(self, text=None, audios=None, src_lang=None, tgt_lang=None, **kwarg
4747
and `kwargs` arguments to SeamlessM4TTokenizerFast's [`~SeamlessM4TTokenizerFast.__call__`] if `text` is not
4848
`None` to encode the text. To prepare the audio(s), this method forwards the `audios` and `kwrags` arguments to
4949
SeamlessM4TFeatureExtractor's [`~SeamlessM4TFeatureExtractor.__call__`] if `audios` is not `None`. Please refer
50-
to the doctsring of the above two methods for more information.
50+
to the docstring of the above two methods for more information.
5151
5252
Args:
5353
text (`str`, `List[str]`, `List[List[str]]`):

0 commit comments

Comments
 (0)