




from typing import Callable, Optional

from .. import Features
from ..packaged_modules.generator.generator import Generator
from .abc import AbstractDatasetInputStream
class     a__					(      snake_case__   ):






						def __init__(     self	,    _A	,    _A = None	,    _A = None	,    _A = False	,    _A = False	,    _A = None	,    _A = None	,    **_A	,    ):




											"""simple docstring"""



											super().__init__(
											    features=_A	,    cache_dir=_A	,    keep_in_memory=_A	,    streaming=_A	,    num_proc=_A	,    **_A	,    )
											__lowerCAmelCase            = Generator(
											    cache_dir=_A	,    features=_A	,    generator=_A	,    gen_kwargs=_A	,    **_A	,    )






						def        __SCREAMING_SNAKE_CASE(     self    ):




											"""simple docstring"""



											if self.streaming:
																__lowerCAmelCase            = self.builder.as_streaming_dataset(split="train"    )
											# Build regular (map-style) dataset
											else:
																__lowerCAmelCase            = None
																__lowerCAmelCase            = None
																__lowerCAmelCase            = None
																__lowerCAmelCase            = None

																self.builder.download_and_prepare(
																    download_config=_A	,    download_mode=_A	,    verification_mode=_A	,    base_path=_A	,    num_proc=self.num_proc	,    )
																__lowerCAmelCase            = self.builder.as_dataset(
																    split="train"	,    verification_mode=_A	,    in_memory=self.keep_in_memory    )
											return dataset










from typing import TYPE_CHECKING

from ....utils import _LazyModule


UpperCamelCase__					    =    {"""tokenization_tapex""": ["""TapexTokenizer"""]}


if TYPE_CHECKING:
					from .tokenization_tapex import TapexTokenizer


else:
					import sys

					UpperCamelCase__					    =    _LazyModule(__name__, globals()["""__file__"""], _import_structure)




