
"""simple docstring"""
from transformers import SqueezeBertTokenizer, SqueezeBertTokenizerFast
from transformers.testing_utils import require_tokenizers, slow

from ..bert.test_tokenization_bert import BertTokenizationTest






@require_tokenizers
class   _UpperCAmelCase					(       _snake_case):
    __lowercase				:			Union[str, Any]	=       SqueezeBertTokenizer
    __lowercase				:			List[Any]	=       SqueezeBertTokenizerFast
    __lowercase				:			Any	=       True
    def        lowerCamelCase__						(     self    ,     **snake_case_  ):
      return SqueezeBertTokenizerFast.from_pretrained(self.tmpdirname    ,     **snake_case_  )


    @slow
    def        lowerCamelCase__						(     self  ):
      _snake_case  :    List[Any]            = SqueezeBertTokenizer.from_pretrained("squeezebert/squeezebert-mnli-headless"  )

      _snake_case  :    Tuple            = tokenizer.encode("sequence builders"    ,     add_special_tokens=snake_case_  )
      _snake_case  :    int            = tokenizer.encode("multi-sequence build"    ,     add_special_tokens=snake_case_  )

      _snake_case  :    List[str]            = tokenizer.build_inputs_with_special_tokens(snake_case_  )
      _snake_case  :    Union[str, Any]            = tokenizer.build_inputs_with_special_tokens(snake_case_    ,     snake_case_  )

      assert encoded_sentence == [tokenizer.cls_token_id] + text + [tokenizer.sep_token_id]
      assert encoded_pair == [tokenizer.cls_token_id] + text + [tokenizer.sep_token_id] + text_a + [
          tokenizer.sep_token_id
      ]



"""simple docstring"""
from ..utils import requires_backends


_a   :      List[str]       =				None






class   _UpperCAmelCase					:
    def __init__(     self    ,     *snake_case_    ,     **snake_case_  ):
      requires_backends(self    ,     ["detectron2"]  )


    @classmethod
    def        lowerCamelCase__						(     cls    ,     *snake_case_    ,     **snake_case_  ):
      requires_backends(cls    ,     ["detectron2"]  )

