



from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_sentencepiece_available,
    is_tokenizers_available,
    is_torch_available,
    is_vision_available,
)


SCREAMING_SNAKE_CASE__   			=   {'''processing_layoutxlm''': ['''LayoutXLMProcessor''']}

try:
							if not is_sentencepiece_available():
														raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
							pass
else:
							SCREAMING_SNAKE_CASE__   			=   ['''LayoutXLMTokenizer''']

try:
							if not is_tokenizers_available():
														raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
							pass
else:
							SCREAMING_SNAKE_CASE__   			=   ['''LayoutXLMTokenizerFast''']

if TYPE_CHECKING:
							from .processing_layoutxlm import LayoutXLMProcessor

							try:
														if not is_sentencepiece_available():
																					raise OptionalDependencyNotAvailable()
							except OptionalDependencyNotAvailable:
														pass
							else:
														from .tokenization_layoutxlm import LayoutXLMTokenizer

							try:
														if not is_tokenizers_available():
																					raise OptionalDependencyNotAvailable()
							except OptionalDependencyNotAvailable:
														pass
							else:
														from .tokenization_layoutxlm_fast import LayoutXLMTokenizerFast

else:
							import sys

							SCREAMING_SNAKE_CASE__   			=   _LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)









import warnings

from ...utils import logging
from .image_processing_clip import CLIPImageProcessor


SCREAMING_SNAKE_CASE__   			=   logging.get_logger(__name__)


class   __lowerCAmelCase  (		UpperCAmelCase_   ):
					"""simple docstring"""






					def __init__(  self       :							Dict					,       *_snake_case       :							int					,       **_snake_case       :							Optional[int]       ):






								"""simple docstring"""


								warnings.warn(
								    'The class CLIPFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'
								    ' use CLIPImageProcessor instead.'					,       _snake_case					,       )
								super().__init__(*_snake_case					,       **_snake_case       )




