






from ..utils import DummyObject, requires_backends







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : int									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				Any:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : int									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				int:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Any									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				int:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Union[str, Any]									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				Tuple:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : str									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				str:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : List[Any]									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				List[Any]:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Any									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				List[str]:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : int									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				List[Any]:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Optional[int]									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				int:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Any									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				str:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Tuple									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				Optional[int]:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : List[Any]									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				Tuple:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : str									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				Optional[int]:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Optional[Any]									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				str:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Any									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				List[str]:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Dict									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				str:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Optional[Any]									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				Tuple:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Optional[Any]									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				int:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : List[Any]									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				str:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Any									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				Optional[Any]:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Dict									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				List[Any]:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : List[str]									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				Tuple:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : int									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				Union[str, Any]:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Optional[int]									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				Tuple:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Dict									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				Union[str, Any]:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Dict									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				int:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Union[str, Any]									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				List[str]:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Any									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				int:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Any									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				Tuple:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : int									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				List[str]:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Optional[Any]									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				List[str]:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Any									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				Any:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Dict									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				Any:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Optional[int]									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				Any:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : str									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				str:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Union[str, Any]									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				Optional[Any]:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : str									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				str:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Optional[int]									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				Optional[Any]:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : List[Any]									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				Optional[int]:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Optional[int]									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				Union[str, Any]:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : int									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				Union[str, Any]:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : int									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				Dict:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Optional[int]									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				str:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : List[str]									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				Any:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Any									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				str:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : str									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				Dict:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Optional[Any]									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				Tuple:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : int									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				Tuple:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : List[Any]									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				Optional[Any]:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Optional[int]									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				List[Any]:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Tuple									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				List[str]:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Tuple									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				Dict:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Tuple									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				Union[str, Any]:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Any									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				List[str]:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Tuple									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				Optional[Any]:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Any									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				int:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Union[str, Any]									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				Any:
          requires_backends(self   ,    ['''tokenizers''']			)







class       UpperCAmelCase_						( metaclass=lowercase			):



      """simple docstring"""
      UpperCamelCase_    : str									=['tokenizers']
      def __init__(    self   ,    *SCREAMING_SNAKE_CASE_   ,    **SCREAMING_SNAKE_CASE_			)    ->				int:
          requires_backends(self   ,    ['''tokenizers''']			)













from transformers import (
    DPRContextEncoderTokenizer,
    DPRContextEncoderTokenizerFast,
    DPRQuestionEncoderTokenizer,
    DPRQuestionEncoderTokenizerFast,
    DPRReaderOutput,
    DPRReaderTokenizer,
    DPRReaderTokenizerFast,
)
from transformers.testing_utils import require_tokenizers, slow
from transformers.tokenization_utils_base import BatchEncoding

from ..bert.test_tokenization_bert import BertTokenizationTest







@require_tokenizers
class       UpperCAmelCase_						( lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Optional[int]									=DPRContextEncoderTokenizer
      UpperCamelCase_    : Any									=DPRContextEncoderTokenizerFast
      UpperCamelCase_    : Optional[int]									=True







@require_tokenizers
class       UpperCAmelCase_						( lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Tuple									=DPRQuestionEncoderTokenizer
      UpperCamelCase_    : Union[str, Any]									=DPRQuestionEncoderTokenizerFast
      UpperCamelCase_    : Any									=True







@require_tokenizers
class       UpperCAmelCase_						( lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Tuple									=DPRReaderTokenizer
      UpperCamelCase_    : List[Any]									=DPRReaderTokenizerFast
      UpperCamelCase_    : Union[str, Any]									=True
      @slow
      def    UpperCAmelCase						(    self			)    ->				Dict:
          UpperCamelCase	:Optional[int]     							=       self.tokenizer_class.from_pretrained('''bert-base-uncased'''			)

          UpperCamelCase	:Optional[Any]     							=       tokenizer.encode('''question sequence'''   ,    add_special_tokens=SCREAMING_SNAKE_CASE_			)
          UpperCamelCase	:Optional[Any]     							=       tokenizer.encode('''title sequence'''   ,    add_special_tokens=SCREAMING_SNAKE_CASE_			)
          UpperCamelCase	:List[str]     							=       tokenizer.encode('''text sequence ''' * 4   ,    add_special_tokens=SCREAMING_SNAKE_CASE_			)
          UpperCamelCase	:Optional[int]     							=       [[101] + text_a + [102] + text_a + [102] + text_a]
          UpperCamelCase	:Tuple     							=       BatchEncoding({'''input_ids''': input_ids}			)

          UpperCamelCase	:Dict     							=       [[0] * len(input_ids[0]			)]
          UpperCamelCase	:List[Any]     							=       [[0] * len(input_ids[0]			)]
          UpperCamelCase	:Tuple     							=       [0]
          UpperCamelCase	:Union[str, Any]     							=       DPRReaderOutput(SCREAMING_SNAKE_CASE_   ,    SCREAMING_SNAKE_CASE_   ,    SCREAMING_SNAKE_CASE_			)

          UpperCamelCase							,       UpperCamelCase	:Union[str, Any]     							=       8, 9
          UpperCamelCase	:Any     							=       10
          UpperCamelCase	:Optional[Any]     							=       10
          UpperCamelCase	:Optional[int]     							=       tokenizer.decode_best_spans(SCREAMING_SNAKE_CASE_   ,    SCREAMING_SNAKE_CASE_			)
          self.assertEqual(predicted_spans[0].start_index   ,    SCREAMING_SNAKE_CASE_			)
          self.assertEqual(predicted_spans[0].end_index   ,    SCREAMING_SNAKE_CASE_			)
          self.assertEqual(predicted_spans[0].doc_id   ,    0			)




      @slow
      def    UpperCAmelCase						(    self			)    ->				Any:
          UpperCamelCase	:List[str]     							=       self.tokenizer_class.from_pretrained('''bert-base-uncased'''			)

          UpperCamelCase	:Any     							=       tokenizer.encode('''question sequence'''   ,    add_special_tokens=SCREAMING_SNAKE_CASE_			)
          UpperCamelCase	:str     							=       tokenizer.encode('''title sequence'''   ,    add_special_tokens=SCREAMING_SNAKE_CASE_			)
          UpperCamelCase	:Union[str, Any]     							=       tokenizer.encode('''text sequence'''   ,    add_special_tokens=SCREAMING_SNAKE_CASE_			)
          UpperCamelCase	:List[Any]     							=       [101] + text_a + [102] + text_a + [102] + text_a
          UpperCamelCase	:Any     							=       tokenizer(questions=['''question sequence''']   ,    titles=['''title sequence''']   ,    texts=['''text sequence''']			)
          self.assertIn('''input_ids'''   ,    SCREAMING_SNAKE_CASE_			)
          self.assertIn('''attention_mask'''   ,    SCREAMING_SNAKE_CASE_			)
          self.assertListEqual(encoded_input['''input_ids'''][0]   ,    SCREAMING_SNAKE_CASE_			)





