






'''simple docstring'''

from transformers import DistilBertTokenizer, DistilBertTokenizerFast
from transformers.testing_utils import require_tokenizers, slow

from ..bert.test_tokenization_bert import BertTokenizationTest




@require_tokenizers
class      A     (   SCREAMING_SNAKE_CASE__    ):






 """simple docstring"""





 __a      :    Optional[int]			  =    DistilBertTokenizer
 __a      :    Union[str, Any]			  =    DistilBertTokenizerFast
 __a      :    Any			  =    True
 @slow
 def 	_UpperCAmelCase							(				self			):
       UpperCamelCase_					: List[Any]            =				DistilBertTokenizer.from_pretrained("""distilbert-base-uncased"""			)

       UpperCamelCase_					: Dict            =				tokenizer.encode("""sequence builders"""      ,  add_special_tokens=__lowerCAmelCase			)
       UpperCamelCase_					: int            =				tokenizer.encode("""multi-sequence build"""      ,  add_special_tokens=__lowerCAmelCase			)

       UpperCamelCase_					: Union[str, Any]            =				tokenizer.build_inputs_with_special_tokens(__lowerCAmelCase			)
       UpperCamelCase_					: Dict            =				tokenizer.build_inputs_with_special_tokens(__lowerCAmelCase      ,  __lowerCAmelCase			)

       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 transformers import DistilBertTokenizer, DistilBertTokenizerFast
from transformers.testing_utils import require_tokenizers, slow

from ..bert.test_tokenization_bert import BertTokenizationTest




@require_tokenizers
class      A     (   SCREAMING_SNAKE_CASE__    ):






 """simple docstring"""





 __a      :    Optional[int]			  =    DistilBertTokenizer
 __a      :    Union[str, Any]			  =    DistilBertTokenizerFast
 __a      :    Any			  =    True
 @slow
 def 	_UpperCAmelCase							(				self			):
       UpperCamelCase_					: List[Any]            =				DistilBertTokenizer.from_pretrained("""distilbert-base-uncased"""			)

       UpperCamelCase_					: Dict            =				tokenizer.encode("""sequence builders"""      ,  add_special_tokens=__lowerCAmelCase			)
       UpperCamelCase_					: int            =				tokenizer.encode("""multi-sequence build"""      ,  add_special_tokens=__lowerCAmelCase			)

       UpperCamelCase_					: Union[str, Any]            =				tokenizer.build_inputs_with_special_tokens(__lowerCAmelCase			)
       UpperCamelCase_					: Dict            =				tokenizer.build_inputs_with_special_tokens(__lowerCAmelCase      ,  __lowerCAmelCase			)

       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
       ]






