






from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_sentencepiece_available, is_tokenizers_available


__a :    Union[str, Any]								=				{}

try:
  if not is_sentencepiece_available():
    raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
  pass
else:
  __a :    int								=				["""BarthezTokenizer"""]

try:
  if not is_tokenizers_available():
    raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
  pass
else:
  __a :    int								=				["""BarthezTokenizerFast"""]


if TYPE_CHECKING:
  try:
    if not is_sentencepiece_available():
      raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
    pass
  else:
    from .tokenization_barthez import BarthezTokenizer

  try:
    if not is_tokenizers_available():
      raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
    pass
  else:
    from .tokenization_barthez_fast import BarthezTokenizerFast

else:
  import sys

  __a :    int								=				_LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)












from ..utils import DummyObject, requires_backends


__a :    int								=				None



def      _SCREAMING_SNAKE_CASE  (	*__lowercase				:     Any     ,			**__lowercase				:     Optional[int]      )  -> Tuple:





    """simple docstring"""

    requires_backends(__lowercase     ,			["""sentencepiece""", """tokenizers"""]      )




