+
    œ°³jX ã                   ó<  € R t ^ RIt^ RIt^ RIt^ RIHt ^ RIt^ RIH	t	H
t
HtHt ^ RIHt ^RIHtHtHtHtHtHtHtHtHtHt ^RIHt ^RIHtHtHt ]P@                  ! ]!4      t"]#]$]$3,          t%]&]%,          t'](t)]&]),          t*Rt+R	R
RR/t,Rt- ! R R]4      t.R.t/R# )zTokenization classes for mLUKE.N)ÚMapping)Ú	TokenizerÚdecodersÚnormalizersÚpre_tokenizers)ÚUnigram)
ÚENCODE_KWARGS_DOCSTRINGÚ
AddedTokenÚBatchEncodingÚEncodedInputÚPaddingStrategyÚ
TensorTypeÚ	TextInputÚTextInputPairÚTruncationStrategyÚ	to_py_obj)ÚTokenizersBackend)Úadd_end_docstringsÚis_torch_tensorÚloggingõ   â–�Ú
vocab_filezsentencepiece.bpe.modelÚentity_vocab_filezentity_vocab.jsonav  
            return_token_type_ids (`bool`, *optional*):
                Whether to return token type IDs. If left to the default, will return the token type IDs according to
                the specific tokenizer's default, defined by the `return_outputs` attribute.

                [What are token type IDs?](../glossary#token-type-ids)
            return_attention_mask (`bool`, *optional*):
                Whether to return the attention mask. If left to the default, will return the attention mask according
                to the specific tokenizer's default, defined by the `return_outputs` attribute.

                [What are attention masks?](../glossary#attention-mask)
            return_overflowing_tokens (`bool`, *optional*, defaults to `False`):
                Whether or not to return overflowing token sequences. If a pair of sequences of input ids (or a batch
                of pairs) is provided with `truncation_strategy = longest_first` or `True`, an error is raised instead
                of returning overflowing tokens.
            return_special_tokens_mask (`bool`, *optional*, defaults to `False`):
                Whether or not to return special tokens mask information.
            return_offsets_mapping (`bool`, *optional*, defaults to `False`):
                Whether or not to return `(char_start, char_end)` for each token.

                This is only available on fast tokenizers inheriting from [`PreTrainedTokenizerFast`], if using
                Python's tokenizer, this method will raise `NotImplementedError`.
            return_length  (`bool`, *optional*, defaults to `False`):
                Whether or not to return the lengths of the encoded inputs.
            verbose (`bool`, *optional*, defaults to `True`):
                Whether or not to print more information and warnings.
            **kwargs: passed to the `self.tokenize()` method

        Return:
            [`BatchEncoding`]: A [`BatchEncoding`] with the following fields:

            - **input_ids** -- List of token ids to be fed to a model.

              [What are input IDs?](../glossary#input-ids)

            - **token_type_ids** -- List of token type ids to be fed to a model (when `return_token_type_ids=True` or
              if *"token_type_ids"* is in `self.model_input_names`).

              [What are token type IDs?](../glossary#token-type-ids)

            - **attention_mask** -- List of indices specifying which tokens should be attended to by the model (when
              `return_attention_mask=True` or if *"attention_mask"* is in `self.model_input_names`).

              [What are attention masks?](../glossary#attention-mask)

            - **entity_ids** -- List of entity ids to be fed to a model.

              [What are input IDs?](../glossary#input-ids)

            - **entity_position_ids** -- List of entity positions in the input sequence to be fed to a model.

            - **entity_token_type_ids** -- List of entity token type ids to be fed to a model (when
              `return_token_type_ids=True` or if *"entity_token_type_ids"* is in `self.model_input_names`).

              [What are token type IDs?](../glossary#token-type-ids)

            - **entity_attention_mask** -- List of indices specifying which entities should be attended to by the model
              (when `return_attention_mask=True` or if *"entity_attention_mask"* is in `self.model_input_names`).

              [What are attention masks?](../glossary#attention-mask)

            - **entity_start_positions** -- List of the start positions of entities in the word token sequence (when
              `task="entity_span_classification"`).
            - **entity_end_positions** -- List of the end positions of entities in the word token sequence (when
              `task="entity_span_classification"`).
            - **overflowing_tokens** -- List of overflowing tokens sequences (when a `max_length` is specified and
              `return_overflowing_tokens=True`).
            - **num_truncated_tokens** -- Number of tokens truncated (when a `max_length` is specified and
              `return_overflowing_tokens=True`).
            - **special_tokens_mask** -- List of 0s and 1s, with 1 specifying added special tokens and 0 specifying
              regular sequence tokens (when `add_special_tokens=True` and `return_special_tokens_mask=True`).
            - **length** -- The length of the inputs (when `return_length=True`)

c                   ó  a a€ ] tR t^�t oRt]tRR.tR,V3R lV 3R llltV 3R lt	]
R 4       tR	 tR
 tR tR tR-V3R lR llt]! ]]4      R.V3R lV 3R lll4       tRRRRRR]P,                  ]P0                  RR^ RRRRRRRRRRR3V3R lV 3R llltRRR]P,                  ]P0                  RR^ RRRRRRRRRRR3V3R lV 3R llltV3R lR ltR/V3R lR llt]! ]]4      R]P,                  ]P0                  RR^ RRRRRRRRR3V3R lR ll4       t]! ]]4      R0V3R lR ll4       tR1V3R lR  lltRR]P,                  RRR3V3R! lR" llt R2V3R# lR$ llt!R2V3R% lR& llt"R3V3R' lV 3R( lllt#R2V3R) lR* llt$R+t%Vt&V ;t'# )4ÚMLukeTokenizera©  
Adapted from [`XLMRobertaTokenizer`] and [`LukeTokenizer`]. Based on
[SentencePiece](https://github.com/google/sentencepiece).

This tokenizer inherits from [`PreTrainedTokenizer`] which contains most of the main methods. Users should refer to
this superclass for more information regarding those methods.

Args:
    vocab_file (`str`):
        Path to the vocabulary file.
    entity_vocab_file (`str`):
        Path to the entity vocabulary file.
    bos_token (`str`, *optional*, defaults to `"<s>"`):
        The beginning of sequence token that was used during pretraining. Can be used a sequence classifier token.

        <Tip>

        When building a sequence using special tokens, this is not the token that is used for the beginning of
        sequence. The token used is the `cls_token`.

        </Tip>

    eos_token (`str`, *optional*, defaults to `"</s>"`):
        The end of sequence token.

        <Tip>

        When building a sequence using special tokens, this is not the token that is used for the end of sequence.
        The token used is the `sep_token`.

        </Tip>

    sep_token (`str`, *optional*, defaults to `"</s>"`):
        The separator token, which is used when building a sequence from multiple sequences, e.g. two sequences for
        sequence classification or for a text and a question for question answering. It is also used as the last
        token of a sequence built with special tokens.
    cls_token (`str`, *optional*, defaults to `"<s>"`):
        The classifier token which is used when doing sequence classification (classification of the whole sequence
        instead of per-token classification). It is the first token of the sequence when built with special tokens.
    unk_token (`str`, *optional*, defaults to `"<unk>"`):
        The unknown token. A token that is not in the vocabulary cannot be converted to an ID and is set to be this
        token instead.
    pad_token (`str`, *optional*, defaults to `"<pad>"`):
        The token used for padding, for example when batching sequences of different lengths.
    mask_token (`str`, *optional*, defaults to `"<mask>"`):
        The token used for masking values. This is the token used when training this model with masked language
        modeling. This is the token which the model will try to predict.
    task (`str`, *optional*):
        Task for which you want to prepare sequences. One of `"entity_classification"`,
        `"entity_pair_classification"`, or `"entity_span_classification"`. If you specify this argument, the entity
        sequence is automatically created based on the given entity span(s).
    max_entity_length (`int`, *optional*, defaults to 32):
        The maximum length of `entity_ids`.
    max_mention_length (`int`, *optional*, defaults to 30):
        The maximum number of tokens inside an entity span.
    entity_token_1 (`str`, *optional*, defaults to `<ent>`):
        The special token used to represent an entity span in a word token sequence. This token is only used when
        `task` is set to `"entity_classification"` or `"entity_pair_classification"`.
    entity_token_2 (`str`, *optional*, defaults to `<ent2>`):
        The special token used to represent an entity span in a word token sequence. This token is only used when
        `task` is set to `"entity_pair_classification"`.
    additional_special_tokens (`list[str]`, *optional*, defaults to `["<s>NOTUSED", "</s>NOTUSED"]`):
        Additional special tokens used by the tokenizer.
    sp_model_kwargs (`dict`, *optional*):
        Will be passed to the `SentencePieceProcessor.__init__()` method. The [Python wrapper for
        SentencePiece](https://github.com/google/sentencepiece/tree/master/python) can be used, among other things,
        to set:

        - `enable_sampling`: Enable subword regularization.
        - `nbest_size`: Sampling parameters for unigram. Invalid for BPE-Dropout.

          - `nbest_size = {0,1}`: No sampling is performed.
          - `nbest_size > 1`: samples from the nbest_size results.
          - `nbest_size < 0`: assuming that nbest_size is infinite and samples from the all hypothesis (lattice)
            using forward-filtering-and-backward-sampling algorithm.

        - `alpha`: Smoothing parameter for unigram sampling, and dropout probability of merge operations for
          BPE-dropout.

Attributes:
    sp_model (`SentencePieceProcessor`):
        The *SentencePiece* processor that is used for every conversion (string, tokens and IDs).
Ú	input_idsÚattention_maskNc                ó†   <€ V ^8„  d   QhRS[ S[,          S[,          R,          RS[ S[,          S[,          R,          RR/# )é   ÚvocabNÚentity_vocabÚreturn)ÚstrÚdictÚlist)ÚformatÚ__classdict__s   "€Úm/home/luca/screen-checking/.venv/lib/python3.14/site-packages/transformers/models/mluke/tokenization_mluke.pyÚ__annotate__ÚMLukeTokenizer.__annotate__Ù   sL   ø€ ÷ nñ nñ$ ‘T�z™DÕ  4Õ'ð%nñ& ™D•j¡4Õ'¨$Õ.ð'nð* 
ñ+nó    c                óš
  <€ \        V\        4      '       d   \        VR RR7      MTp\        V\        4      '       d   \        VRRR7      MTp\        V\        4      '       d   \        VRRR7      MTpVP                  RR4      pVf   RV9   d   VP                  R4      pVf   RV9   d   VP                  R4      p\        V\        4      '       dC   V UUu. uF  w  ppV\        V4      3NK  	  uppV n        \        V P                  4      V n        M"Ve   VV n        ^ V n        MR..V n        ^ V n        \        \        V P                  ^ R7      4      V n        \        P                  ! \        P                  ! R	R
4      \        P                  ! RR
4      .4      V P                  n        \         P"                  ! RRR7      V P                  n        \&        P"                  ! RRR7      V P                  n        R^ R^R^R^/V n        ^V n        V P                  V P,                  ,           V P*                  R&   V P*                  P/                  4        UUu/ uF	  w  ppVVbK  	  uppV n        Ve	   VV n        MMVe;   \5        VRR7      ;_uu_ 4       p\6        P8                  ! V4      V n        RRR4       MV^ V^V^V^/V n        WÞVV3 F#  pVV P2                  9  g   K  \;        RV R24      h	  V P2                  V,          V n        V P2                  V,          V n        V P2                  V,          V n         V P2                  V,          V n!        W€n"        Ve   VR8X  d   W�n#        M-VR8X  d	   ^V n#        MVR8X  d	   ^V n#        M\;        RV R24      hW n$        . pR/ Fn  pVP                  VR4      p\        V\        \J        34      '       g   K3  V F5  pTPM                  \        V\N        4      '       d   \        R0/ VB MT4       K7  	  Kp  	  V Uu0 uF  p\        V4      kK  	  ppW¼3 F9  p\        V4      pVV9  g   K  VPM                  V4       VPQ                  V4       K;  	  WÞVV3 F<  pVV9  g   K  VPM                  \        VRRRR R7      4       VPQ                  V4       K>  	  VVR&   \R        S V `¨  ! R0/ RVbRVbR VbR!VbR"VbR#VbR$VbR%VbR&V	bR'V
bR(\        V4      bR)\        V4      bR*VbR+VbR,VbR-VbRVf   TMRbVB  V PW                  4        R# u uppi u uppi   + '       g   i     EL{; iu upi )1TF)ÚlstripÚrstripr   Nr   r    ú<unk>)Úunk_idz``Ú"z''r   Úalways)ÚreplacementÚprepend_schemeú<s>ú<pad>ú</s>ú<mask>úutf-8©Úencodingz!Specified entity special token ``z `` is not found in entity_vocab.Úentity_span_classificationÚentity_classificationÚentity_pair_classificationúTask z| not supported. Select task from ['entity_classification', 'entity_pair_classification', 'entity_span_classification'] only.Úextra_special_tokens)r,   r-   Ú
normalizedÚspecialÚ	bos_tokenÚ	eos_tokenÚ	unk_tokenÚ	sep_tokenÚ	cls_tokenÚ	pad_tokenÚ
mask_tokenÚtaskÚmax_entity_lengthÚmax_mention_lengthÚentity_token_1Úentity_token_2Úentity_unk_tokenÚentity_pad_tokenÚentity_mask_tokenÚentity_mask2_token)r.   g        )r?   Úadditional_special_tokens© ),Ú
isinstancer"   r	   Úpopr$   ÚfloatÚ_vocabÚlenÚ_vocab_sizer   r   Ú
_tokenizerr   ÚSequenceÚReplaceÚ
normalizerr   Ú	MetaspaceÚpre_tokenizerr   ÚdecoderÚfairseq_tokens_to_idsÚfairseq_offsetÚitemsÚfairseq_ids_to_tokensr    ÚopenÚjsonÚloadÚ
ValueErrorÚentity_unk_token_idÚentity_pad_token_idÚentity_mask_token_idÚentity_mask2_token_idrI   rJ   rK   ÚtupleÚappendr#   ÚaddÚsuperÚ__init__Ú
_post_init)!ÚselfrB   rC   rE   rF   rD   rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   r   r    Úkwargsr   ÚtokenÚscoreÚkÚvÚentity_vocab_handleÚentity_special_tokenÚextra_tokensÚkeyÚtokensÚseenÚ	token_strÚ	__class__s!   &&&&&&&&&&&&&&&&&&&,            €r'   rq   ÚMLukeTokenizer.__init__Ù   sz  ø€ ô. KUÐU_Ôad×JeÒJe”Z 
°4ÀÕFÐkuˆ
ô
 ˜.¬#×.Ò.ô �~¨e¸EÕBàð 	ô ˜.¬#×.Ò.ô �~¨e¸EÕBàð 	ð #ŸJ™JÐ':¸DÓAÐð Š=˜W¨Ô.Ø—J‘J˜wÓ'ˆEØÒ N°fÔ$<Ø!Ÿ:™: nÓ5ˆLô �eœT×"Ò"áEJÔKÁU±\°U¸E˜E¤5¨£<Ó0ÁUÒKˆDŒKÜ" 4§;¡;Ó/ˆDÕØÒØˆDŒKØ ˆDÕð *Ð*ˆDŒKØ ˆDÔô $¤G¨D¯K©KÀÔ$BÓCˆŒô &1×%9Ò%9ä×#Ò# D¨#Ó.Ü×#Ò# D¨#Ó.ðó&
ˆ�‰Ô"ô )7×(@Ò(@ÈUÐckÔ(lˆ�‰Ô%Ü"*×"4Ò"4ÀÐW_Ô"`ˆ�‰Ôð ',¨Q°¸¸FÀAÀwÐPQÐ%RˆÔ"ð  ˆÔà/3×/?Ñ/?À$×BUÑBUÕ/Uˆ×"Ñ" 8Ñ,Ø7;×7QÑ7Q×7WÑ7WÔ7YÔ%ZÑ7Y©t¨q°! a¨¢dÑ7YÒ%ZˆÔ"ð Ò#Ø ,ˆDÕØÒ*ÜÐ'°'×:Õ:Ð>QÜ$(§I¢IÐ.AÓ$B�Ô!÷ ;Ð:ð
 ! !Ø  !Ø! 1Ø" Að	!ˆDÔð &6ÐIZÐ\nÓ$oÐ Ø#¨4×+<Ñ+<Ö<Ü Ø7Ð8LÐ7MÐMmÐnóð ñ %pð
 $(×#4Ñ#4Ð5EÕ#FˆÔ Ø#'×#4Ñ#4Ð5EÕ#FˆÔ Ø$(×$5Ñ$5Ð6GÕ$HˆÔ!Ø%)×%6Ñ%6Ð7IÕ%JˆÔ"àŒ	ØŠ<˜4Ð#?Ô?Ø%6Õ"ØÐ,Ô,Ø%&ˆDÕ"ØÐ1Ô1Ø%&ˆDÕ"äØ˜�vð 7ð 7óð ð
 #5Ôð 02ˆÛHˆCØ—Z‘Z  TÓ*ˆFÜ˜&¤4¬ -×0Ô0Û#�EØ ×'Ñ'¼zÈ%ÔQU×?VÒ?V¬
Ñ(;°UÒ(;Ð\aÖbó $ñ Iñ )5Ó5©˜u”�E–
©ˆÐ5Ø$Ó5ˆEÜ˜E›
ˆIØ Ö$Ø×#Ñ# EÔ*Ø—‘˜Ö#ñ	 6ð 'Ð:KÐM_Ó`ˆEØ˜DÖ Ø×#Ñ#¤J¨u¸UÈ5Ð]bÐlpÔ$qÔrØ—‘˜–ñ að
 *6ˆÐ%Ñ&ä‰Òò 	
Ùð	
áð	
ñ  ð	
ñ  ð		
ñ
  ð	
ñ  ð	
ñ "ð	
ñ ð	
ñ 0ð	
ñ  2ð	
ô ˜~Ô.ð	
ô ˜~Ô.ð	
ñ .ð	
ñ .ð	
ñ 0ð	
ñ   2ð!	
ð" *;Ò)B™ÈøØò%	
ð, 	�‰Öùó{ LùóH &[÷ ;×:Ð:üò\ 6s   ÃT(ÉT.ÊT4ÐUÔ4U	c                óv  <€ \         SV `  4        V P                  P                  RR7      V n        V P                  V P
                  ,           V P                  R&   V P                  P                  4        UUu/ uF  w  rW!bK	  	  uppV n        ^ RI	H
p VP                  V P                   RV P                   R2V P                   RV P                   RV P                   RV P                   R	2V P                  V P                  3V P                  V P                  3.R
7      V P                  n        R# u uppi )zW
Post-initialization to configure the post-processor for MLuke's special token format.
F)Úwith_added_tokensr7   )Ú
processorsz:0 $A:0 z:0z:0 z:0 $B:1 z:1)ÚsingleÚpairÚspecial_tokensN)rp   rr   rZ   Úget_vocab_sizerY   rb   ra   rc   rd   Ú
tokenizersr„   ÚTemplateProcessingrF   rE   Úcls_token_idÚsep_token_idÚpost_processor)rs   rw   rx   r„   r€   s   &   €r'   rr   ÚMLukeTokenizer._post_init‰  s  ø€ ô 	‰ÑÔàŸ?™?×9Ñ9ÈEÐ9ÓRˆÔØ/3×/?Ñ/?À$×BUÑBUÕ/Uˆ×"Ñ" 8Ñ,Ø7;×7QÑ7Q×7WÑ7WÔ7YÔ%ZÑ7Y©t¨q a¢dÑ7YÒ%ZˆÔ"õ
 	*à)3×)FÑ)FØ—n‘nÐ% X¨d¯n©nÐ-=¸RÐ@Ø—N‘NÐ# 8¨D¯N©NÐ+;¸3¸t¿~¹~Ð>NÈhÐW[×WeÑWeÐVfÐfhÐià—‘ ×!2Ñ!2Ð3Ø—‘ ×!2Ñ!2Ð3ðð *Gó *
ˆ�‰Ö&ùó &[s   Á8D5c                óJ   € V P                   V P                  ,           ^,           # )é   )rY   rb   )rs   s   &r'   Ú
vocab_sizeÚMLukeTokenizer.vocab_size¡  s   € à×Ñ $×"5Ñ"5Õ5¸Õ9Ð9r*   c                ó¬   € \        V P                  4       Uu/ uF  qP                  V4      VbK  	  ppVP                  V P                  4       V# u upi ©N)Úranger‘   Úconvert_ids_to_tokensÚupdateÚadded_tokens_encoder)rs   Úir   s   &  r'   Ú	get_vocabÚMLukeTokenizer.get_vocab¥  sL   € Ü;@ÀÇÁÔ;QÓRÑ;Q°a×+Ñ+¨AÓ.°Ò1Ñ;QˆÐRØ�‰�T×.Ñ.Ô/Øˆùò Ss   ˜Ac                óÂ   € WP                   9   d   V P                   V,          # V P                  P                  V4      pVe   W P                  ,           # V P                  # )z0Converts a token (str) in an id using the vocab.)ra   rZ   Útoken_to_idrb   Úunk_token_id)rs   ru   Útoken_ids   && r'   Ú_convert_token_to_idÚ#MLukeTokenizer._convert_token_to_idª  sV   € à×.Ñ.Ô.Ø×-Ñ-¨eÕ4Ð4ð —?‘?×.Ñ.¨uÓ5ˆð 2:Ò1Eˆx×-Ñ-Õ-Ð\È4×K\ÑK\Ð\r*   c                óÂ   € WP                   9   d   V P                   V,          # V P                  P                  WP                  ,
          4      pVe   V# V P                  # )z=Converts an index (integer) in a token (str) using the vocab.)rd   rZ   Úid_to_tokenrb   rD   )rs   Úindexru   s   && r'   Ú_convert_id_to_tokenÚ#MLukeTokenizer._convert_id_to_tokenµ  sP   € à×.Ñ.Ô.Ø×-Ñ-¨eÕ4Ð4Ø—‘×+Ñ+¨E×4GÑ4GÕ,GÓHˆØÒ)ˆuÐ=¨t¯~©~Ð=r*   c                ól   € RP                  V4      P                  \        R4      P                  4       pV# )zIConverts a sequence of tokens (strings for sub-words) in a single string.Ú Ú )ÚjoinÚreplaceÚSPIECE_UNDERLINEÚstrip)rs   r}   Ú
out_strings   && r'   Úconvert_tokens_to_stringÚ'MLukeTokenizer.convert_tokens_to_string¼  s,   € à—W‘W˜V“_×,Ñ,Ô-=¸sÓC×IÑIÓKˆ
ØÐr*   Fc                ó&   <€ V ^8„  d   QhRS[ RS[/# )r   r†   r!   )ÚboolÚint)r%   r&   s   "€r'   r(   r)   Á  s   ø€ ÷  ñ  ©dð  ¹sñ  r*   c                ó   € V'       d   ^# ^# )aJ  
Returns the number of added tokens when encoding a sequence with special tokens.

Args:
    pair (`bool`, *optional*, defaults to `False`):
        Whether the number of added tokens should be computed in the case of a sequence pair or a single
        sequence.

Returns:
    `int`: Number of special tokens added to sequences.
rS   )rs   r†   s   &&r'   Únum_special_tokens_to_addÚ(MLukeTokenizer.num_special_tokens_to_addÁ  s   € ÷ ˆqÐ˜aÐr*   Tc          0      ó~  <€ V ^8„  d   QhRS[ S[S[ ,          ,          RS[ S[S[ ,          ,          R,          RS[S[S[,          ,          R,          RS[S[S[,          ,          R,          RS[S[S[,          ,          R,          RS[S[S[,          ,          R,          RS[R	S[S[,          S[,          R
S[S[,          S[,          R,          RS[R,          RS[R,          RS[RS[R,          RS[R,          RS[R,          RS[S[	,          R,          RS[R,          RS[R,          RS[RS[RS[RS[RS[RS[
/# )r   ÚtextÚ	text_pairNÚentity_spansÚentity_spans_pairÚentitiesÚentities_pairÚadd_special_tokensÚpaddingÚ
truncationÚ
max_lengthrJ   ÚstrideÚis_split_into_wordsÚpad_to_multiple_ofÚpadding_sideÚreturn_tensorsÚreturn_token_type_idsÚreturn_attention_maskÚreturn_overflowing_tokensÚreturn_special_tokens_maskÚreturn_offsets_mappingÚreturn_lengthÚverboser!   )r   r$   ÚEntitySpanInputÚEntityInputr²   r"   r   r   r³   r   r
   )r%   r&   s   "€r'   r(   r)   Ð  s¦  ø€ ÷ |ñ |á™$™y�/Õ)ð|ñ ™t¡I�Õ.°Õ5ð|ñ &©©_Õ(=Õ=ÀÕDð	|ñ
 +©T±/Õ-BÕBÀTÕIð|ñ ¡¡[Õ 1Õ1°DÕ8ð|ñ #¡T©+Õ%6Õ6¸Õ=ð|ñ !ð|ñ ™•™oÕ-ð|ñ ™3•JÑ!3Õ3°dÕ:ð|ñ ˜$•Jð|ñ  �:ð|ñ ð|ñ " D�[ð|ñ   $�Jð|ñ  ˜D•jð!|ñ" ™jÕ(¨4Õ/ð#|ñ$  $ d�{ð%|ñ&  $ d�{ð'|ñ( $(ð)|ñ* %)ð+|ñ, !%ð-|ñ. ð/|ñ0 ð1|ñ4 
ñ5|r*   c                ó¨  <€ VP                  R 4      f   VP                  R4      eh   Vf   Vf   V P                  e   \        R4      h\        S#V `  ! R"/ RVbRVbRVbRVbRV	bR	V
bR
VbRVbRVbRVbRVbRVbRVbRVbRVbRVbRVbRVbVB #  \        V\        4      p\        V\        \        34      ;'       d9    \        V4      ^ 8H  ;'       g#    \        V^ ,          \        \        \        34      pV'       g   V'       g   \        R4      h\        V\        4      p\        V\        \        34      ;'       d.    \        V4      ^ 8H  ;'       g    \        V^ ,          \        4      pVe   V'       g   V'       g   \        R4      h\        \        V\        \        34      4      pV P                  ! R"RVRV	R	V
RVRV/VB w  ppp
pV'       d«   Ve   \        \        W4      4      MTp Vf   Rp!MVe   \        \        WV4      4      MTp!Vf   Rp"MVe   \        \        W44      4      MTp"V P                  ! R"/ RV bRV"bRV!bRVbRVbRVbR	V
bRVbR
VbRVbRVbRVbRVbRVbRVbRVbRVbRVbRVbRVbVB # V P                  ! R"/ RVbRVbRVbRVbR VbR!VbRVbRVbRVbR	V
bRVbR
VbRVbRVbRVbRVbRVbRVbRVbRVbRVbRVbRVbVB # )#Útext_targetNÚtext_pair_targetz‘text_target and text_pair_target are not supported when using entity-aware encoding. Please use the tokenizer without entities for seq2seq tasks.r¸   r¹   r¾   r¿   rÀ   rÁ   rÂ   rÃ   rÄ   rÅ   rÆ   rÇ   rÈ   rÉ   rÊ   rË   rÌ   rÍ   zItext input must be of type `str` (single example) or `list[str]` (batch).zNtext_pair input must be of type `str` (single example) or `list[str]` (batch).Úbatch_text_or_text_pairsÚ(batch_entity_spans_or_entity_spans_pairsÚ batch_entities_or_entities_pairsÚpadding_strategyÚtruncation_strategyrJ   rº   r»   r¼   r½   rS   )ÚgetrI   ÚNotImplementedErrorrp   Ú__call__rT   r"   r$   rm   rX   rh   r²   Ú"_get_padding_truncation_strategiesÚzipÚ_batch_encode_plusÚ_encode_plus)$rs   r¸   r¹   rº   r»   r¼   r½   r¾   r¿   rÀ   rÁ   rJ   rÂ   rÃ   rÄ   rÅ   rÆ   rÇ   rÈ   rÉ   rÊ   rË   rÌ   rÍ   rt   Úis_valid_single_textÚis_valid_batch_textÚis_valid_single_text_pairÚis_valid_batch_text_pairÚ
is_batchedrÖ   r×   rÓ   rÕ   rÔ   r€   s$   &&&&&&&&&&&&&&&&&&&&&&&&,          €r'   rÚ   ÚMLukeTokenizer.__call__Ï  s¡  ø€ ð: �:‰:�mÓ$Ò0°F·J±JÐ?QÓ4RÒ4^ØÒ'¨8Ò+?À4Ç9Á9ÒCXÜ)ðSóð ô
 ‘7Ò#ò Ùðá#ðñ $6ðñ  ð	ñ
 &ðñ &ðñ ðñ %8ðñ $6ðñ *ðñ  .ðñ '<ðñ '<ðñ +Dðñ ,Fðñ  (>ð!ñ" ,ð#ñ$  Øñ'ð ð,&	ôP  *¨$´Ó4ÐÜ(¨´´e¨}Ó=÷ 
ð 
Ü�‹I˜‰N×EÐEœj¨¨a­´3¼¼eÐ2DÓEð 	÷ %×(;ÜÐhÓiÐiä$.¨y¼#Ó$>Ð!Ü#-¨i¼$Ä¸Ó#G÷ $
ð $
Ü�	‹N˜aÑ×@Ð@¤:¨i¸­l¼CÓ#@ð 	!ð Ò!×%>×BZÜÐmÓnÐnäœ* T¬D´%¨=Ó9Ó:ˆ
ð EI×DkÒDkñ E
ØðE
à!ðE
ð "ðE
ð  2ð	E
ð
 ðE
ð ñE
ÑAÐÐ-¨z¸6÷ ØENÒEZ¤t¬C°Ó,@Ô'AÐ`dÐ$ØÒØ37Ñ0ð ;HÒ:S”Dœ˜XÓ5Ô6ÐYað 1ð Ò#Ø;?Ñ8ð CTÒB_”Dœ˜\Ó=Ô>Ðeqð 9ð ×*Ò*ò Ù)Aðá9aðñ 2Rðñ $6ð	ñ
 "2ðñ %8ðñ &ðñ #4ðñ ðñ %8ðñ $6ðñ *ðñ  .ðñ '<ðñ '<ðñ  +Dð!ñ" ,Fð#ñ$ (>ð%ñ& ,ð'ñ(  Øñ+ð ð0 ×$Ò$ò Ùðá#ðñ *ðñ #4ð	ñ
 "ðñ ,ðñ $6ðñ "2ðñ %8ðñ &ðñ #4ðñ ðñ %8ðñ $6ðñ *ðñ   .ð!ñ" '<ð#ñ$ '<ð%ñ& +Dð'ñ( ,Fð)ñ* (>ð+ñ, ,ð-ñ.  Øñ1ð r*   c          0      óp  <€ V ^8„  d   QhRS[ RS[ R,          RS[R,          RS[R,          RS[R,          RS[R,          RS[R	S[R
S[RS[R,          RS[R,          RS[RS[R,          RS[R,          RS[R,          RS[S[,          R,          RS[R,          RS[R,          RS[RS[RS[RS[RS[RS[	/# )r   r¸   r¹   Nrº   r»   r¼   r½   r¾   rÖ   r×   rÁ   rJ   rÂ   rÃ   rÄ   rÅ   rÆ   rÇ   rÈ   rÉ   rÊ   rË   rÌ   rÍ   r!   )
r   rÎ   rÏ   r²   r   r   r³   r"   r   r
   )r%   r&   s   "€r'   r(   r)   Ž  sT  ø€ ÷ m
ñ m
áðm
ñ ˜tÕ#ðm
ñ &¨Õ,ð	m
ñ
 +¨TÕ1ðm
ñ  Õ$ðm
ñ # TÕ)ðm
ñ !ðm
ñ *ðm
ñ 0ðm
ñ ˜$•Jðm
ñ  �:ðm
ñ ðm
ñ " D�[ðm
ñ   $�Jðm
ñ  ˜D•jð!m
ñ" ™jÕ(¨4Õ/ð#m
ñ$  $ d�{ð%m
ñ&  $ d�{ð'm
ñ( $(ð)m
ñ* %)ð+m
ñ, !%ð-m
ñ. ð/m
ñ0 ð1m
ñ4 
ñ5m
r*   c                óØ  <€ Vfa   Vf]   VfY   VfU   V P                   fG   \        SV `  ! R/ RVbRVbRVbRVbRV	bRV
bRVbRVbR	VbR
VbRVbRVbRVbRVbRVbRVbRVbRVbVB # V'       d   \        R4      hV'       d   \        R4      hV P                  ! RRVRVRVRVRVRV/VB w  ppppppV P                  VVVVVVVVP                  V	P                  V
VVVVVRVVVVVVR7      # )Nr¸   r¹   r¾   rÖ   r×   rÁ   rÂ   rÃ   rÄ   rÅ   rÆ   rÇ   rÈ   rÉ   rÊ   rË   rÌ   rÍ   a  return_offset_mapping is not available when using Python tokenizers. To use this feature, change your tokenizer to one deriving from transformers.PreTrainedTokenizerFast. More information on available tokenizers at https://github.com/huggingface/transformers/pull/2674ú7is_split_into_words is not supported in this tokenizer.r¼   r½   rº   r»   T)Úpair_idsÚ
entity_idsÚpair_entity_idsÚentity_token_spansÚpair_entity_token_spansr¾   r¿   rÀ   rÁ   rJ   rÂ   rÄ   rÅ   rÆ   Úprepend_batch_axisrÈ   rÇ   rÉ   rÊ   rÌ   rÍ   rS   )rI   rp   rÞ   rÙ   Ú_create_input_sequenceÚprepare_for_modelÚvalue) rs   r¸   r¹   rº   r»   r¼   r½   r¾   rÖ   r×   rÁ   rJ   rÂ   rÃ   rÄ   rÅ   rÆ   rÇ   rÈ   rÉ   rÊ   rË   rÌ   rÍ   rt   Ú	first_idsÚ
second_idsÚfirst_entity_idsÚsecond_entity_idsÚfirst_entity_token_spansÚsecond_entity_token_spansr€   s    &&&&&&&&&&&&&&&&&&&&&&&&,      €r'   rÞ   ÚMLukeTokenizer._encode_plusŽ  sè  ø€ ð8 Ò Ø!Ò)ØÒ ØÒ%Ø—	‘	Ò!ä‘7Ò'ò Ùðá#ðñ $6ðñ "2ð	ñ
 %8ðñ &ðñ ðñ %8ðñ $6ðñ *ðñ  .ðñ '<ðñ '<ðñ +Dðñ ,Fðñ  (>ð!ñ" ,ð#ñ$  Øñ'ð ÷, "Ü%ðHóð ÷ Ü%Ð&_Ó`Ð`ð ×'Ò'ñ 
Øð
àð
ð ð
ð (ð	
ð
 &ð
ð 0ð
ð ñ
ñ	
ØØØØØ$Ø%ð ×%Ñ%ØØØ'Ø-Ø7Ø$=Ø1Ø$×*Ñ*Ø*×0Ñ0Ø!Ø/ØØ1Ø%Ø)Ø#Ø"7Ø"7Ø&?Ø'AØ'Øð- &ó 
ð 	
r*   c          *      óð  <€ V ^8„  d   QhRS[ S[,          S[ S[,          ,          RS[ S[,          S[ S[S[S[3,          ,          ,          R,          RS[ S[,          S[ S[S[S[3,          ,          ,          R,          RS[RS[RS[RS[	R,          R	S[	R,          R
S[	RS[R,          RS[	R,          RS[
R,          RS[
S[,          R,          RS[R,          RS[R,          RS[RS[RS[RS[RS[RS[/# )r   rÓ   rÔ   NrÕ   r¾   rÖ   r×   rÁ   rJ   rÂ   rÃ   rÄ   rÅ   rÆ   rÇ   rÈ   rÉ   rÊ   rË   rÌ   rÍ   r!   )r$   r   r   rÎ   rm   rÏ   r²   r   r   r³   r"   r   r
   )r%   r&   s   "€r'   r(   r)   ý  sl  ø€ ÷ M,ñ M,á"&¡y¥/±D¹Õ4GÕ"GðM,ñ 37±Õ2GÙ
‰u‘_¡oÐ5Õ6Õ
7õ38à
õ3ðM,ñ +/©{Õ*;¹dÁ5ÉÑVaÐIaÕCbÕ>cÕ*cÐfjÕ*jðM,ñ !ðM,ñ *ðM,ñ 0ðM,ñ ˜$•JðM,ñ  �:ðM,ñ ðM,ñ " D�[ðM,ñ   $�JðM,ñ ˜D•jðM,ñ  ™jÕ(¨4Õ/ð!M,ñ"  $ d�{ð#M,ñ$  $ d�{ð%M,ñ& $(ð'M,ñ( %)ð)M,ñ* !%ð+M,ñ, ð-M,ñ. ð/M,ñ2 
ñ3M,r*   c                óZ  <€ Vf«   Vf§   V P                   f™   V'       dG   \        V^ ,          \        \        34      '       d$   \	        V!  w  pp\        V4      p\        V4      pMTpR p\
        S,V `  ! R/ RVbRVbRVbRVbRVbRVbRV	bRV
bR	VbR
VbRVbRVbRVbRVbRVbRVbRVbRVbVB # V'       d   \        R4      hV
'       d   \        R4      h. p. p. p\        V4       EF  w  pp\        V\        \        34      '       g   TR ppMVw  ppR R p pVe9   VV,          p!V!'       d(   \        V!^ ,          \        4      '       d   T!R p pMV!w  pp R R p#p"VeA   VV,          p$\        V$4      ^ 8”  d$   \        V$^ ,          \        4      '       d   V$w  p"p#MT$R p#p"V P                  ! RRVRVRVRV RV"RV#/VB w  p%p&p'p(p)p*VP                  V%V&34       VP                  V'V(34       VP                  V)V*34       EK  	  V P                  VVVVVVVVV	VVVVVVVVVR7      p+\        V+4      # )Nr¸   r¹   r¾   rÖ   r×   rÁ   rÂ   rÃ   rÄ   rÅ   rÆ   rÇ   rÈ   rÉ   rÊ   rË   rÌ   rÍ   zªreturn_offset_mapping is not available when using Python tokenizers. To use this feature, change your tokenizer to one deriving from transformers.PreTrainedTokenizerFast.rç   r¼   r½   rº   r»   )Úbatch_entity_ids_pairsÚbatch_entity_token_spans_pairsr¾   rÖ   r×   rÁ   rJ   rÂ   rÄ   rÅ   rÈ   rÇ   rÉ   rÊ   rÌ   rÆ   rÍ   rS   )rI   rT   rm   r$   rÜ   rp   rÞ   rÙ   Ú	enumerater"   rX   rî   rn   Ú_batch_prepare_for_modelr
   )-rs   rÓ   rÔ   rÕ   r¾   rÖ   r×   rÁ   rJ   rÂ   rÃ   rÄ   rÅ   rÆ   rÇ   rÈ   rÉ   rÊ   rË   rÌ   rÍ   rt   ÚtextsÚ
text_pairsr   ré   rë   r¤   Útext_or_text_pairr¸   r¹   r¼   r½   Úentities_or_entities_pairsrº   r»   Ú"entity_spans_or_entity_spans_pairsrñ   rò   ró   rô   rõ   rö   Úbatch_outputsr€   s-   &&&&&&&&&&&&&&&&&&&&&,                      €r'   rÝ   Ú!MLukeTokenizer._batch_encode_plusý  sG  ø€ ð6 5Ò<Ø0Ò8Ø—	‘	Ò!ç'¬JÐ7OÐPQÕ7RÔUZÔ\`ÐTa×,bÒ,bÜ$'Ð)AÑ$BÑ!��zÜ˜U›�Ü! *Ó-‘
à0�Ø!�
ä‘7Ò'ò Ùðá$ðñ $6ðñ "2ð	ñ
 %8ðñ &ðñ ðñ %8ðñ $6ðñ *ðñ  .ðñ '<ðñ '<ðñ +Dðñ ,Fðñ  (>ð!ñ" ,ð#ñ$  Øñ'ð ÷, "Ü%ð8óð ÷ Ü%Ð&_Ó`Ð`ð ˆ	Øˆ
ØÐÜ(1Ð2J×(KÑ$ˆEÐ$ÜÐ/´$¼°×?Ò?Ø"3°T�i��ià"3‘��ià&*¨D�mˆHØ/Ò;Ø-MÈeÕ-TÐ*ß-Ü!Ð"<¸QÕ"?Ä×EÒEØ2LÈd -˜ -à2LÑ/˜ -à.2°DÐ+ˆLØ7ÒCØ5]Ð^cÕ5dÐ2ÜÐ9Ó:¸QÔ>Ä:Ø6°qÕ9¼4÷Dò Dð 7YÑ3�LÑ"3à6XÐZ^Ð"3�Lð ×+Ò+ñ Øðà#ðð "ðð ,ð	ð
 *ðð #4ðð ññØØØ Ø!Ø(Ø)ð ×Ñ˜i¨Ð4Ô5Ø×ÑÐ/Ð1BÐCÔDØ×%Ñ%Ð'?ÐAZÐ&[×\ñW )LðZ ×5Ñ5ØØ#-Ø+=Ø1Ø-Ø 3Ø!Ø/ØØ1Ø%Ø"7Ø"7Ø&?Ø'AØ'Ø)Øð% 6ó 
ˆô* ˜]Ó+Ð+r*   c                óB   <€ V ^8„  d   QhRS[ R,          RS[R,          /# )r   r¼   Nrº   )rÏ   rÎ   )r%   r&   s   "€r'   r(   r)   Œ  s+   ø€ ÷ oñ o±;ÀÕ3Eð oÑUdÐgkÕUkñ or*   c                ó¾  € \        V\        4      '       g   \        R 4      h\        V4      ^ 8”  d)   \        V^ ,          \        4      '       g   \        R4      hVe€   \        V\        4      '       g   \        R4      h\        V4      ^ 8”  d)   \        V^ ,          \        4      '       g   \        R4      h\        V4      \        V4      8w  d   \        R4      hR# R# )z&entity_spans should be given as a listz_entity_spans should be given as a list of tuples containing the start and end character indicesNz7If you specify entities, they should be given as a listzGIf you specify entities, they should be given as a list of entity nameszJIf you specify entities, entities and entity_spans must be the same length)rT   r$   Ú	TypeErrorrX   rm   rh   r"   )rs   r¼   rº   s   &&&r'   Ú_check_entity_input_formatÚ)MLukeTokenizer._check_entity_input_formatŒ  s¸   € Ü˜,¬×-Ò-ÜÐDÓEÐEÜ�Ó Ô"¬:°lÀ1µoÄu×+MÒ+MÜØqóð ð ÒÜ˜h¬×-Ò-Ü Ð!ZÓ[Ð[ä�8‹}˜qÔ ¬°H¸QµKÄ×)EÒ)EÜ Ð!jÓkÐkä�8‹}¤ LÓ 1Ô1Ü Ð!mÓnÐnñ 2ñ  r*   c                ó°   <€ V ^8„  d   QhRS[ RS[ R,          RS[R,          RS[R,          RS[R,          RS[R,          RS[S[S[S[S[S[S[3,          /# )	r   r¸   r¹   Nr¼   r½   rº   r»   r!   )r   rÏ   rÎ   rm   r$   )r%   r&   s   "€r'   r(   r)   ž  s…   ø€ ÷ V
ñ V
áðV
ñ ˜tÕ#ðV
ñ  Õ$ð	V
ñ
 # TÕ)ðV
ñ &¨Õ,ðV
ñ +¨TÕ1ðV
ñ 
‰t‘T™4¡¡t©TÐ1Õ	2ñV
r*   c                óè  a a€ V 3R  loV3R lpRRr©RRrËRRríS P                   Ef   Vf
   S! V4      p	MrS P                  W54       V! W4      w  r�Vf   S P                  .\        V4      ,          pM5V Uu. uF)  pS P                  P                  VS P                  4      NK+  	  ppVe‚   Vf   S! V4      p
EMªS P                  WF4       V! W&4      w  r®Vf    S P                  .\        V4      ,          pEMlV Uu. uF)  pS P                  P                  VS P                  4      NK+  	  ppEM5S P                   R8X  dÐ   \        V\        4      '       d.   \        V4      ^8X  d   \        V^ ,          \        4      '       g   \        R4      hS P                  .pV! W4      w  r�V^ ,          w  ppV	RV S P                  ^ ,          .,           V	VR ,           p	V	RV S P                  ^ ,          .,           V	VR ,           p	VV^,           3.pEMUS P                   R8X  Ed¤   \        V\        4      '       dK   \        V4      ^8X  d;   \        V^ ,          \        4      '       d   \        V^,          \        4      '       g   \        R4      hVw  ppS P                  S P                  .pV! W4      w  r�Vw  ppVS P                  ^ ,          3VS P                  ^,          3.pV^ ,          V^ ,          8  dQ   V^ ,          V^,          ^,           3V^ &   V^ ,          ^,           V^,          ^,           3V^&   VP                  4        M?V^ ,          ^,           V^,          ^,           3V^ &   V^ ,          V^,          ^,           3V^&   V F7  w  w  pppV	RV V.,           V	VR ,           p	V	RV V.,           V	VR ,           p	K9  	  M S P                   R8X  dw   \        V\        4      '       d.   \        V4      ^ 8”  d   \        V^ ,          \        4      '       g   \        R4      hV! W4      w  r�S P                  .\        V4      ,          pM\        R	S P                    R
24      hV	V
VVVV3# u upi u upi )c                 ót   <€ SP                   P                  V R R7      P                  pSP                  V4      # )F)r¾   )rZ   Úencoder}   Úconvert_tokens_to_ids)r¸   r}   rs   s   & €r'   Úget_input_idsÚ<MLukeTokenizer._create_input_sequence.<locals>.get_input_ids¨  s5   ø€ ð —_‘_×+Ñ+¨DÀUÐ+ÓK×RÑRˆFØ×-Ñ-¨fÓ5Ð5r*   c                 óÂ  <€ Vf   S! V 4      R 3# ^ p. pR .\        V4      ,          p\        \        \        P                  ! V!  4      4      p/ pV FO  pTpV^ 8”  d   W^,
          ,          R8X  d
   V^,          pW'8w  d   VS! WV 4      ,          pTp\        V4      Wh&   KQ  	  VS! WR  4      ,          pV U	U
u. uF  w  ršWi,          Wj,          3NK  	  pp	p
W43# u up
p	i )Nr©   )rX   ÚsortedÚ	frozensetÚ	itertoolsÚchain)r¸   rº   Úcurr   rë   Úsplit_char_positionsÚchar_pos2token_posÚsplit_char_positionÚorig_split_char_positionÚ
char_startÚchar_endr  s   &&         €r'   Ú$get_input_ids_and_entity_token_spansÚSMLukeTokenizer._create_input_sequence.<locals>.get_input_ids_and_entity_token_spans®  s  ø€ ØÒ#Ù$ TÓ*¨DÐ0Ð0àˆCØˆIØ"& ¬#¨lÓ*;Õ!;Ðä#)¬)´I·O²OÀ\Ñ4RÓ*SÓ#TÐ Ø!#Ðã';Ð#Ø+>Ð(à'¨!Ô+°È1Õ5LÕ0MÐQTÔ0Tà'¨1Õ,Ð'ØÔ-Ø¡¨tÐ8KÐ/LÓ!MÕM�IØ-�CÜ?BÀ9»~Ð"Ó<ñ (<ð ™ t¨D zÓ2Õ2ˆIñ lxô"ÙkwÑSgÐS]Ð#Õ/Ð1CÕ1MÓNÑkwð ñ "ð Ð0Ð0ùó	"s   Â:CNr<   zsEntity spans should be a list containing a single tuple containing the start and end character indices of an entityr=   zEntity spans should be provided as a list of two tuples, each tuple containing the start and end character indices of an entityr;   z{Entity spans should be provided as a list of tuples, each tuple containing the start and end character indices of an entityr>   z not supported)rI   r  rk   rX   r    rØ   ri   rT   r$   rm   rh   Úextra_special_tokens_idsrl   Úreverse)rs   r¸   r¹   r¼   r½   rº   r»   rt   r  rñ   rò   ró   rô   rõ   rö   ÚentityÚentity_token_startÚentity_token_endÚ	head_spanÚ	tail_spanÚhead_token_spanÚtail_token_spanÚ!token_span_with_special_token_idsÚspecial_token_idr  s   f&&&&&&,                @r'   rî   Ú%MLukeTokenizer._create_input_sequencež  s×  ù€ õ	6õ	1ð< !% d�:Ø.2°DÐ+Ø>BÀDÐ";à�9‰9ÓØÒ#Ù)¨$Ó/‘	à×/Ñ/°ÔGá6ZÐ[_Ó6nÑ3�	ØÒ#Ø(,×(AÑ(AÐ'BÄSÈÓEVÕ'VÑ$ánvÓ'wÑnvÐdj¨×(9Ñ(9×(=Ñ(=¸fÀd×F^ÑF^Ö(_ÑnvÐ$Ð'wàÒ$Ø$Ò,Ù!.¨yÓ!9’Jà×3Ñ3°MÔUá<`Ø!ó=Ñ9�Jð %Ò,Ø-1×-FÑ-FÐ,GÌ#ÐN_ÓJ`Õ,`Ò)ñ cpó-ÙboÐX^˜D×-Ñ-×1Ñ1°&¸$×:RÑ:RÖSÑboð *ð -ùð �Y‰YÐ1Ô1Ü˜|¬T×2Ò2´s¸<Ó7HÈAÔ7MÔR\Ð]iÐjkÕ]lÔns×RtÒRtÜ ðRóð ð !%× 9Ñ 9Ð:ÐÙ2VÐW[Ó2jÑ/ˆIð 4LÈAÕ3NÑ0ÐÐ 0àÐ+Ð+Ð,°×0MÑ0MÈaÕ0PÐ/QÕQÐT]Ð^nÐ^oÐTpÕpð ð Ð-Ð-Ð.°$×2OÑ2OÐPQÕ2RÐ1SÕSÐV_Ð`rÐ`sÐVtÕtð ð *<Ð=MÐPQÕ=QÐ(RÐ'SÒ$à�Y‰YÐ6Õ6ä˜<¬×.Ò.Ü˜Ó%¨Ô*Ü˜|¨A�´×6Ò6Ü˜|¨A�´×6Ò6ä ð]óð ð
 $0Ñ ˆI�yØ $× 9Ñ 9¸4×;UÑ;UÐVÐÙ2VÐW[Ó2jÑ/ˆIà/GÑ,ˆO˜_à  $×"?Ñ"?ÀÕ"BÐCØ  $×"?Ñ"?ÀÕ"BÐCð1Ð-ð ˜qÕ! O°AÕ$6Ô6Ø/>¸qÕ/AÀ?ÐSTÕCUÐXYÕCYÐ.ZÐ(¨Ñ+Ø/>¸qÕ/AÀAÕ/EÀÐWXÕGYÐ\]ÕG]Ð.^Ð(¨Ñ+Ø1×9Ñ9Õ;à/>¸qÕ/AÀAÕ/EÀÐWXÕGYÐ\]ÕG]Ð.^Ð(¨Ñ+Ø/>¸qÕ/AÀ?ÐSTÕCUÐXYÕCYÐ.ZÐ(¨Ñ+ãLmÑHÑ6Ð#Ð%5Ð8HØ%Ð&7Ð'7Ð8Ð<LÐ;MÕMÐPYÐZjÐZkÐPlÕl�	Ø%Ð&9Ð'9Ð:Ð>NÐ=OÕOÐR[Ð\nÐ\oÐRpÕp’	ò Mnð �Y‰YÐ6Ô6Ü˜|¬T×2Ò2´s¸<Ó7HÈ1Ô7LÔQ[Ð\hÐijÕ\kÔmr×QsÒQsÜ ð]óð ñ
 3WÐW[Ó2jÑ/ˆIØ $× 9Ñ 9Ð:¼SÀÓ=NÕNÑô ˜u T§Y¡Y K¨~Ð>Ó?Ð?ð ØØØØ$Ø%ð
ð 	
ùòg (xùò-s   Á5/Q*Ã:/Q/c          &      ó  <€ V ^8„  d   QhRS[ S[S[ S[,          R3,          ,          RS[ S[S[ S[,          R,          S[ S[,          R,          3,          ,          RS[ S[S[ S[S[S[3,          ,          R,          S[ S[S[S[3,          ,          R,          3,          ,          RS[RS[RS[RS[R,          R	S[R,          R
S[RS[R,          RS[R,          RS[R,          RS[R,          RS[R,          RS[RS[RS[RS[RS[/# )r   Úbatch_ids_pairsNrú   rû   r¾   rÖ   r×   rÁ   rJ   rÂ   rÄ   rÅ   rÆ   rÇ   rÈ   rÉ   rÊ   rÌ   rÍ   r!   )r$   rm   r³   r²   r   r   r"   r
   )r%   r&   s   "€r'   r(   r)   7  sg  ø€ ÷ Rñ Rá™e¡D©¥I¨t OÕ4Õ5ðRñ !%¡U©4±­9°tÕ+;¹TÁ#½YÈÕ=MÐ+MÕ%NÕ OðRñ )-©U±4¹¹cÁ3¸h½Õ3HÈ4Õ3OÑQUÑV[Ñ\_ÑadÐ\dÕVeÕQfÐimÕQmÐ3mÕ-nÕ(oð	Rñ
 !ðRñ *ðRñ 0ðRñ ˜$•JðRñ  �:ðRñ ðRñ   $�JðRñ ˜D•jðRñ ˜d�
ðRñ  $ d�{ðRñ  $ d�{ðRñ  $(ð!Rñ" %)ð#Rñ$ ð%Rñ& ð'Rñ( 
ñ)Rr*   c                óÀ  € / p\        WV4       F�  w  pppVw  ppVw  ppVw  ppV P                  VVVVVVV\        P                  P                  VP                  VVV	RRRVVVVRRVR7      pVP                  4        F*  w  ppVV9  d   . VV&   VV,          P                  V4       K,  	  KŸ  	  V P                  VVP                  VV
VVR7      p\        VVR7      pV# )aB  
Prepares a sequence of input id, or a pair of sequences of inputs ids so that it can be used by the model. It
adds special tokens, truncates sequences if overflowing while taking into account the special tokens and
manages a moving window (with user defined stride) for overflowing tokens


Args:
    batch_ids_pairs: list of tokenized input ids or input ids pairs
    batch_entity_ids_pairs: list of entity ids or entity ids pairs
    batch_entity_token_spans_pairs: list of entity spans or entity spans pairs
    max_entity_length: The maximum length of the entity sequence.
NF)ré   rê   rë   rì   r¾   r¿   rÀ   rÁ   rJ   rÂ   rÄ   rÅ   rÈ   rÇ   rÉ   rÊ   rÌ   rÆ   rí   rÍ   )r¿   rÁ   rÄ   rÅ   rÈ   ©Útensor_type)	rÜ   rï   r   Ú
DO_NOT_PADrð   rc   rn   Úpadr
   ) rs   r,  rú   rû   r¾   rÖ   r×   rÁ   rJ   rÂ   rÄ   rÅ   rÆ   rÇ   rÈ   rÉ   rÊ   rÌ   rÍ   r  r   ré   Úentity_token_span_pairsrñ   rò   ró   rô   rõ   rö   Úoutputsr|   rð   s    &&&&&&&&&&&&&&&&&&&             r'   rý   Ú'MLukeTokenizer._batch_prepare_for_model6  s1  € ðF ˆÜ>AØÐ5Sö?
Ñ:ˆI�zÐ#:ð %.Ñ!ˆI�zØ2<Ñ/ÐÐ/ØBYÑ?Ð$Ð&?Ø×,Ñ,ØØØ+Ø 1Ø#;Ø(AØ#5Ü'×2Ñ2×8Ñ8Ø.×4Ñ4Ø%Ø"3ØØ#'Ø!Ø&+Ø&;Ø*CØ+EØ+Ø#Ø#(Øð- -ó ˆGð2 &Ÿm™mžo‘
��UØ˜mÔ+Ø)+�M #Ñ&Ø˜cÕ"×)Ñ)¨%Ö0ó .ñ??
ðH Ÿ™ØØ$×*Ñ*Ø!Ø1Ø%Ø"7ð !ó 
ˆô & mÀÔPˆàÐr*   c          0      ó<  <€ V ^8„  d   QhRS[ S[,          RS[ S[,          R,          RS[ S[,          R,          RS[ S[,          R,          RS[ S[S[S[3,          ,          R,          RS[ S[S[S[3,          ,          R,          RS[R	S[S[,          S[,          R
S[S[,          S[,          R,          RS[R,          RS[R,          RS[RS[R,          RS[R,          RS[S[,          R,          RS[R,          RS[R,          RS[RS[RS[RS[RS[RS[RS[/# )r   Úidsrè   Nré   rê   rë   rì   r¾   r¿   rÀ   rÁ   rJ   rÂ   rÄ   rÅ   rÆ   rÇ   rÈ   rÉ   rÊ   rË   rÌ   rÍ   rí   r!   )	r$   r³   rm   r²   r"   r   r   r   r
   )r%   r&   s   "€r'   r(   r)   Œ  s’  ø€ ÷ eñ eá‘#�Yðeñ ‘s•)˜dÕ"ðeñ ™•I Õ$ð	eñ
 ™c� TÕ)ðeñ !¡¡s©C x¥Õ1°DÕ8ðeñ "&¡e©C±¨H¥oÕ!6¸Õ!=ðeñ !ðeñ ™•™oÕ-ðeñ ™3•JÑ!3Õ3°dÕ:ðeñ ˜$•Jðeñ  �:ðeñ ðeñ   $�Jðeñ ˜D•jðeñ  ™jÕ(¨4Õ/ð!eñ"  $ d�{ð#eñ$  $ d�{ð%eñ& $(ð'eñ( %)ð)eñ* !%ð+eñ, ð-eñ. ð/eñ0 !ð1eñ4 
ñ5er*   c                ó   € V P                   ! RRVRV	RV
RVRV/VB w  ppp
p\        VRJ4      p\        V4      pV'       d   \        V4      M^ pV'       d   V'       g   \        R4      hV'       d%   V\        P
                  8X  d   Ve   \        R4      hVf   R	V P                  9   pVf   R
V P                  9   p/ pVV,           V'       d   V P                  VR7      M^ ,           p. p V\        P                  8w  d0   V
'       d(   VV
8”  d!   V P                  VVVV
,
          VVR7      w  rp V'       d   V VR&   VV
,
          VR&   V'       d8   V P                  W4      p!V P                  W4      p"^p#\        V4      ^,           p$MTV'       d	   W,           MTp!^ .\        V4      ,          V'       d   ^ .\        V4      ,          M. ,           p"^ p#\        V4      p$V!VR&   V'       d   V"VR	&   V'       d4   V'       d   V P                  W4      VR&   M^ .\        V!4      ,          VR&   V'       g   V P                  pVEeõ   ^ p%^ p&\        W54       U'U(u. uF!  w  p'p(V(^,          \        V4      8:  g   K  V'NK#  	  p)p'p(V U(u. uF  p(V(^,          \        V4      8:  g   K  V(NK   	  p*p(V%\        V)4      ,          p%V&\        V4      \        V)4      ,
          ,          p&RRp,p+Ve—   \        WF4       U'U(u. uF!  w  p'p(V(^,          \        V4      8:  g   K  V'NK#  	  p+p'p(V U(u. uF  p(V(^,          \        V4      8:  g   K  V(NK   	  p,p(V%\        V+4      ,          p%V&\        V4      \        V+4      ,
          ,          p&V&^ 8w  d   \        P!                  V& R24       V\        P                  8w  dI   V%V8”  dB   V P                  V)V+V%V,
          VVR7      w  p)p+p-V*R\        V)4       p*V,e   V,R\        V+4       p,V'       d   X-VR&   V%V,
          VR&   V+'       d
   V)V+,           MT)p.\#        V.4      VR&   . p/. p0. p1V*V#3V,V$33 F¯  w  p2p3V2f   K  V2 F�  w  p4p5V4V3,          p4V5V3,          p5\#        \%        V4V54      4      RV P&                   p6V6R.V P&                  V5,
          V4,           ,          ,          p6V/P)                  V64       V0P)                  V44       V1P)                  V5^,
          4       KŸ  	  K±  	  V/VR&   V P*                  R8X  d   V0VR&   V1VR&   V'       d   ^ .\        VR,          4      ,          VR&   V P-                  VR,          V
V4       V\.        P0                  8w  g	   V'       d#   V P3                  VV
VVP4                  VVVR7      pV'       d   \        VR,          4      VR&   \7        VVVR7      p7V7# u up(p'i u up(i u up(p'i u up(i )a¸  
Prepares a sequence of input id, entity id and entity span, or a pair of sequences of inputs ids, entity ids,
entity spans so that it can be used by the model. It adds special tokens, truncates sequences if overflowing
while taking into account the special tokens and manages a moving window (with user defined stride) for
overflowing tokens. Please Note, for *pair_ids* different than `None` and *truncation_strategy = longest_first*
or `True`, it is not possible to return overflowing tokens. Such a combination of arguments will raise an
error.

Args:
    ids (`list[int]`):
        Tokenized input ids of the first sequence.
    pair_ids (`list[int]`, *optional*):
        Tokenized input ids of the second sequence.
    entity_ids (`list[int]`, *optional*):
        Entity ids of the first sequence.
    pair_entity_ids (`list[int]`, *optional*):
        Entity ids of the second sequence.
    entity_token_spans (`list[tuple[int, int]]`, *optional*):
        Entity spans of the first sequence.
    pair_entity_token_spans (`list[tuple[int, int]]`, *optional*):
        Entity spans of the second sequence.
    max_entity_length (`int`, *optional*):
        The maximum length of the entity sequence.
r¿   rÀ   rÁ   rÄ   rÍ   Nz·Asking to return token_type_ids while setting add_special_tokens to False results in an undefined behavior. Please set add_special_tokens to True or set return_token_type_ids to None.zÅNot possible to return overflowing tokens for pair of sequences with the `longest_first`. Please select another truncation strategy than `longest_first`, for instance `only_second` or `only_first`.Útoken_type_idsr   )r†   )rè   Únum_tokens_to_remover×   rÂ   Úoverflowing_tokensÚnum_truncated_tokensr   Úspecial_tokens_maskzb entities are ignored because their entity spans are invalid due to the truncation of input tokensÚoverflowing_entitiesÚnum_truncated_entitiesré   Úentity_position_idsr;   Úentity_start_positionsÚentity_end_positionsÚentity_token_type_ids)rÁ   rJ   r¿   rÄ   rÅ   rÈ   Úlength)r/  rí   rS   éÿÿÿÿ)rÛ   r²   rX   rh   r   ÚLONGEST_FIRSTÚmodel_input_namesrµ   ÚDO_NOT_TRUNCATEÚtruncate_sequencesÚ build_inputs_with_special_tokensÚ$create_token_type_ids_from_sequencesÚget_special_tokens_maskrJ   rÜ   ÚloggerÚwarningr$   r•   rK   rn   rI   Ú&_eventual_warn_about_too_long_sequencer   r0  r1  rð   r
   )8rs   r6  rè   ré   rê   rë   rì   r¾   r¿   rÀ   rÁ   rJ   rÂ   rÄ   rÅ   rÆ   rÇ   rÈ   rÉ   rÊ   rË   rÌ   rÍ   rí   rt   rÖ   r×   r†   Úlen_idsÚlen_pair_idsÚencoded_inputsÚ	total_lenr:  Úsequencer8  Úentity_token_offsetÚpair_entity_token_offsetÚtotal_entity_lenÚnum_invalid_entitiesÚent_idÚspanÚvalid_entity_idsÚvalid_entity_token_spansÚvalid_pair_entity_idsÚvalid_pair_entity_token_spansr=  Úfinal_entity_idsr?  r@  rA  Útoken_spansÚoffsetÚstartÚendÚposition_idsr  s8   &&&&&&&&&&&&&&&&&&&&&&&&,                               r'   rï   Ú MLukeTokenizer.prepare_for_model‹  sd  € ðl EI×DkÒDkñ E
ØðE
à!ðE
ð "ðE
ð  2ð	E
ð
 ðE
ð ñE
ÑAÐÐ-¨z¸6ô �H DÐ(Ó)ˆÜ�c“(ˆß(,”s˜8”}°!ˆç ×);Üð5óð ÷ &Ø#Ô'9×'GÑ'GÔGØÒ$äð>óð ð !Ò(Ø$4¸×8NÑ8NÑ$NÐ!Ø Ò(Ø$4¸×8NÑ8NÑ$NÐ!àˆð ˜lÕ*×[m¨d×.LÑ.LÐRVÐ.LÔ.WÐstÕuˆ	ð  ÐØÔ"4×"DÑ"DÔDÏÐXaÐdnÔXnà04×0GÑ0GØØ!Ø%.°Õ%;Ø$7Øð 1Hó 1Ñ-ˆCÐ-÷ %Ø3EˆNÐ/Ñ0Ø5>ÀÕ5KˆNÐ1Ñ2÷ Ø×<Ñ<¸SÓKˆHØ!×FÑFÀsÓUˆNØ"#ÐÜ'*¨3£x°!¥|Ñ$ç)-�s–~°3ˆHØ˜S¤3 s£8�^Çd°¨s´S¸³]Ö/BÐPRÕSˆNØ"#ÐÜ'*¨3£xÐ$ð '/ˆ�{Ñ#ß Ø/=ˆNÐ+Ñ,ß%ß!Ø8<×8TÑ8TÐUXÓ8c�Ð4Ò5à9:¸¼cÀ(»mÕ8K�Ð4Ñ5÷ !Ø $× 6Ñ 6ÐàÓ!Ø ÐØ#$Ð Ü;>¸zÔ;^ÔvÑ;^©<¨6°4ÐbfÐghÕbiÔmpÐqtÓmuÑbu§ Ñ;^ÐÑvÙ9KÓ'cÑ9K°ÈtÐTUÍwÔZ]Ð^aÓZbÑOb¯¨Ñ9KÐ$Ð'cà¤Ð$4Ó 5Õ5ÐØ ¤C¨
£O´cÐ:JÓ6KÕ$KÕKÐ àCGÈÐ#@Ð!ØÒ*ô ),¨OÔ(Uô)á(U™˜ Ø˜A•w¤# h£-Ñ/÷ �FÙ(Uð &ñ )ñ
 CZÓ0vÑBY¸$Ð]aÐbcÕ]dÔhkÐltÓhuÑ]u·°ÑBYÐ-Ð0vØ ¤CÐ(=Ó$>Õ>Ð Ø$¬¨OÓ(<¼sÐCXÓ?YÕ(YÕYÐ$à# qÔ(Ü—‘Ø+Ð,ð -2ð 2ôð
 #Ô&8×&HÑ&HÔHÐM]Ð`qÔMqàPT×PgÑPgØ$Ø2Ø)9Ð<MÕ)MØ(;Ø!ð Qhó QÑMÐ Ð"7Ð9Mð ,DÐD[ÄcÐJZÓF[Ð+\Ð(Ø0Ò<Ø4QÐRnÔTWÐXmÓTnÐ4oÐ1ç(Ø9M�Ð5Ñ6Ø;KÐN_Õ;_�Ð7Ñ8çK`Ð/Ð2GÖGÐfvÐÜ+/Ð0@Ó+AˆN˜<Ñ(Ø"$ÐØ%'Ð"Ø#%Ð à)Ð+>Ð?Ø.Ð0HÐIó(Ñ#�˜Vð Ô*Û&1™
˜˜sØ �˜Ø˜v�˜Ü'+¬E°%¸Ó,=Ó'>Ð?XÀ×AXÑAXÐ'Y˜Ø$¨¨°×0GÑ0GÈ#Õ0MÐPUÕ0UÕ(VÕV˜Ø+×2Ñ2°<Ô@Ø.×5Ñ5°eÔ<Ø,×3Ñ3°C¸!µGÖ<ó '2ñ(ð 5HˆNÐ0Ñ1Ø�y‰yÐ8Ô8Ø;Q�Ð7Ñ8Ø9M�Ð5Ñ6ç$Ø;<¸#ÄÀNÐS_ÕD`Ó@aÕ:a�Ð6Ñ7ð 	×3Ñ3°NÀ;Õ4OÐQ[Ð]dÔeð œ×9Ñ9Ô9×=RØ!ŸX™XØØ%Ø"3Ø(×.Ñ.Ø#5Ø)Ø&;ð &ó ˆN÷ Ü'*¨>¸+Õ+FÓ'GˆN˜8Ñ$ä%Ø¨ÐK]ô
ˆð Ðùós  wùÚ'cùó)ùò
 1ws0   ÉV:É3V:Ê W ÊW Ë0WÌWÌWÌ<Wc                óŒ  <€ V ^8„  d   QhRS[ S[S[ ,          ,          S[S[S[3,          ,          S[S[S[S[,          3,          ,          S[S[S[S[3,          ,          ,          RS[S[,          S[,          RS[R,          RS[R,          RS[R,          RS[R,          RS[R,          R	S[S[,          R,          R
S[RS[ /
# )r   rQ  r¿   rÁ   NrJ   rÄ   rÅ   rÈ   rÆ   rÍ   r!   )	r
   r$   r#   r"   r   r²   r   r³   r   )r%   r&   s   "€r'   r(   r)   s  sÿ   ø€ ÷ `Hñ `Há%Ù
‰}Õ
õá
‰s‘LÐ Õ
!õ"ñ ‰s‘D™Õ&Ð&Õ
'õ(ñ ‰t‘C™Ð%Õ&Õ
'õ	(ð`Hñ ™•™oÕ-ð`Hñ ˜$•Jð`Hñ  �:ð`Hñ   $�Jð`Hñ ˜D•jð`Hñ  $ d�{ð`Hñ ™jÕ(¨4Õ/ð`Hñ ð`Hñ 
ñ`Hr*   c
                ó(  a€ \        V\        \        34      '       d\   \        V^ ,          \        4      '       d?   V^ ,          P	                  4        U
Uu/ uF  qªV Uu. uF  q»V
,          NK  	  upbK  	  pp
pV P
                  ^ ,          V9  d:   \        RV P
                  ^ ,           R\        VP	                  4       4       24      hWP
                  ^ ,          ,          pV'       g   V'       d   . VR&   V# V^ ,          p\        V\        \        34      '       dC   ^ p\        WÎ,          4      ^ 8X  d   V^,          pK!  V\        V4      8  d   WÎ,          ^ ,          p\        V\        \        \        34      '       g…   \        V4      '       d
   Vf   RMTpMD\        V\        P                  4      '       d
   Vf   RMTpM\        RV R\        V4       R24      hVP                  4        F  w  r¯\        V4      W&   K  	  V P                  W#V	R	7      w  ppppVf   V P                   pWP
                  ^ ,          ,          pV'       dH   \        V^ ,          \        \        34      '       g%   V P#                  VVVVVVVR
7      p\%        WR7      # \        V4      o\&        ;QJ d-    V3R lVP)                  4        4       F  '       g   K   RM"	  RM! V3R lVP)                  4        4       4      '       d   \        R4      hV\*        P,                  8X  dE   \/        R V 4       4      pRV9   d   \/        R VR,           4       4      M^ p\*        P0                  p/ p\3        S4       F„  pVP                  4        UUu/ uF  w  ppVVV,          bK  	  pppV P#                  VVVVVVVR
7      pVP                  4        F)  w  r¯V
V9  d   . VV
&   VV
,          P5                  V4       K+  	  K†  	  \%        VVR7      # u upi u upp
i u uppi )a­  
Pad a single encoded input or a batch of encoded inputs up to predefined length or to the max sequence length
in the batch. Padding side (left/right) padding token ids are defined at the tokenizer level (with
`self.padding_side`, `self.pad_token_id` and `self.pad_token_type_id`) .. note:: If the `encoded_inputs` passed
are dictionary of numpy arrays or PyTorch tensors  the result will use the same type unless
you provide a different tensor type with `return_tensors`. In the case of PyTorch tensors, you will lose the
specific device of your tensors however.

Args:
    encoded_inputs ([`BatchEncoding`], list of [`BatchEncoding`], `dict[str, list[int]]`, `dict[str, list[list[int]]` or `list[dict[str, list[int]]]`):
        Tokenized inputs. Can represent one input ([`BatchEncoding`] or `dict[str, list[int]]`) or a batch of
        tokenized inputs (list of [`BatchEncoding`], *dict[str, list[list[int]]]* or *list[dict[str,
        list[int]]]*) so you can use this method during preprocessing as well as in a PyTorch Dataloader
        collate function. Instead of `list[int]` you can have tensors (numpy arrays, or PyTorch tensors),
        see the note above for the return type.
    padding (`bool`, `str` or [`~utils.PaddingStrategy`], *optional*, defaults to `True`):
         Select a strategy to pad the returned sequences (according to the model's padding side and padding
         index) among:

        - `True` or `'longest'`: Pad to the longest sequence in the batch (or no padding if only a single
          sequence if provided).
        - `'max_length'`: Pad to a maximum length specified with the argument `max_length` or to the maximum
          acceptable input length for the model if that argument is not provided.
        - `False` or `'do_not_pad'` (default): No padding (i.e., can output a batch with sequences of different
          lengths).
    max_length (`int`, *optional*):
        Maximum length of the returned list and optionally padding length (see above).
    max_entity_length (`int`, *optional*):
        The maximum length of the entity sequence.
    pad_to_multiple_of (`int`, *optional*):
        If set will pad the sequence to a multiple of the provided value. This is especially useful to enable
        the use of Tensor Cores on NVIDIA hardware with compute capability `>= 7.5` (Volta).
    padding_side:
        The side on which the model should have padding applied. Should be selected between ['right', 'left'].
        Default value is picked from the class attribute of the same name.
    return_attention_mask (`bool`, *optional*):
        Whether to return the attention mask. If left to the default, will return the attention mask according
        to the specific tokenizer's default, defined by the `return_outputs` attribute. [What are attention
        masks?](../glossary#attention-mask)
    return_tensors (`str` or [`~utils.TensorType`], *optional*):
        If set, will return tensors instead of list of python integers. Acceptable values are:

        - `'pt'`: Return PyTorch `torch.Tensor` objects.
        - `'np'`: Return Numpy `np.ndarray` objects.
    verbose (`bool`, *optional*, defaults to `True`):
        Whether or not to print more information and warnings.
zRYou should supply an encoding or a list of encodings to this method that includes z, but you provided r   ÚptÚnpztype of z
 unknown: z6. Should be one of a python, numpy, or pytorch object.)r¿   rÁ   rÍ   )rÁ   rJ   rÖ   rÄ   rÅ   rÈ   r.  c              3   ó@   <"  € T F  p\        V4      S8g  x € K  	  R # 5ir”   ©rX   )Ú.0rx   Ú
batch_sizes   & €r'   Ú	<genexpr>Ú%MLukeTokenizer.pad.<locals>.<genexpr>÷  s   øé € ÐEÑ-D¨Œs�1‹v˜Ö#Ó-Dùs   ƒTFzLSome items in the output dictionary have a different batch size than others.c              3   ó8   "  € T F  p\        V4      x € K  	  R # 5ir”   rj  ©rk  Úinputss   & r'   rm  rn  û  s   é € ÐF±~¨VœS Ÿ[˜[³~ùó   ‚ré   c              3   ó8   "  € T F  p\        V4      x € K  	  R # 5ir”   rj  rp  s   & r'   rm  rn  ý  s   é € ÐKÑ.J F”C˜—K�KÓ.Jùrr  )rT   r$   rm   r   ÚkeysrF  rh   rX   r³   r   rh  ÚndarrayÚtyperc   r   rÛ   rJ   Ú_padr
   ÚanyÚvaluesr   ÚLONGESTÚmaxÚ
MAX_LENGTHr•   rn   )rs   rQ  r¿   rÁ   rJ   rÄ   rÅ   rÈ   rÆ   rÍ   r|   ÚexampleÚrequired_inputÚfirst_elementr¤   rð   rÖ   Ú_r  r™   rw   rx   rq  r3  rl  s   &&&&&&&&&&              @r'   r1  ÚMLukeTokenizer.pads  sÈ  ø€ ôB �n¤t¬U m×4Ò4¼ÀNÐSTÕDUÔW^×9_Ò9_à[iÐjkÕ[l×[qÑ[qÔ[sÔtÑ[sÐTWÁÓ#OÁ°W¨C§L LÁÑ#OÒOÑ[sˆNÑtð ×!Ñ! !Õ$¨NÔ:Üð!Ø!%×!7Ñ!7¸Õ!:Ð ;Ð;NÌtÐTb×TgÑTgÓTiÓOjÐNkðmóð ð
 (×(>Ñ(>¸qÕ(AÕBˆçß$Ø35�Ð/Ñ0Ø!Ð!ð ' qÕ)ˆÜ�m¤d¬E ]×3Ò3àˆEÜ�nÕ+Ó,°Ô1Ø˜•
’Ø”s˜>Ó*Ô*Ø .Õ 5°aÕ 8�ä˜-¬#¬t´UÐ);×<Ò<Ü˜}×-Ò-Ø)7Ò)?¡À^‘Ü˜M¬2¯:©:×6Ò6Ø)7Ò)?¡À^‘ä Ø˜}˜o¨Z¼¸]Ó8KÐ7Lð MKð Kóð ð
 -×2Ñ2Ö4‘
�Ü&/°Ó&6�Ó#ñ 5ð .2×-TÑ-TØ¸Gð .Uó .
Ñ*Ð˜!˜Z¨ð Ò$Ø $× 6Ñ 6Ðà'×(>Ñ(>¸qÕ(AÕBˆß¤*¨^¸AÕ->ÄÄuÀ×"NÒ"NØ!ŸY™YØØ%Ø"3Ø!1Ø#5Ø)Ø&;ð 'ó ˆNô ! ÔLÐLä˜Ó(ˆ
ß‹3ÔE¨^×-BÑ-BÔ-DÓE�3�3Š3ÔE¨^×-BÑ-BÔ-DÓE×EÒEÜÐkÓlÐlàœ×6Ñ6Ô6ÜÑF±~ÓFÓFˆJàO[Ð_mÔOm”ÑK¨n¸\Ö.JÓKÔKÐstð ô  /×9Ñ9ÐàˆÜ�zÖ"ˆAØ*8×*>Ñ*>Ô*@ÔAÑ*@¡$ ! Q�a˜˜1�’gÑ*@ˆFÑAØ—i‘iØØ%Ø"3Ø!1Ø#5Ø)Ø&;ð  ó ˆGð &Ÿm™mžo‘
�Ø˜mÔ+Ø)+�M #Ñ&Ø˜cÕ"×)Ñ)¨%Ö0ó .ñ #ô" ˜]¸ÔGÐGùò{ $PùÓtùóZ Bs   Á	PÁPÁ/PÎPÐPc                ó¶   <€ V ^8„  d   QhRS[ S[S[3,          S[,          RS[R,          RS[R,          RS[RS[R,          RS[R,          RS[R,          R	S[ /# )
r   rQ  rÁ   NrJ   rÖ   rÄ   rÅ   rÈ   r!   )r#   r"   r   r
   r³   r   r²   )r%   r&   s   "€r'   r(   r)     sˆ   ø€ ÷ Nñ Ná™S¡,Ð.Õ/±-Õ?ðNñ ˜$•JðNñ  �:ð	Nñ
 *ðNñ   $�JðNñ ˜D•jðNñ  $ d�{ðNñ 
ñNr*   c                óÈ	  € \        RV9   4      pVf   RV P                  9   pV\        P                  8X  d-   \	        VR,          4      pV'       d   \	        VR,          4      pVe(   Ve$   W%,          ^ 8w  d   W%,          ^,           V,          pV'       d,   Ve(   Ve$   W5,          ^ 8w  d   W5,          ^,           V,          pV\        P
                  8g  ;'       d=    \	        VR,          4      V8g  ;'       g     T;'       d    \	        VR,          4      V8g  p	V'       d%   RV9  d   ^.\	        VR,          4      ,          VR&   V'       d-   V'       d%   RV9  d   ^.\	        VR,          4      ,          VR&   V	'       Edb   V\	        VR,          4      ,
          p
Ve   TMV P                  pV'       d   V\	        VR,          4      ,
          pVR8X  Edv   V'       d?   VR,          ^ .V
,          ,           VR&   V'       d   VR,          ^ .X,          ,           VR&   RV9   d?   VR,          ^ .V
,          ,           VR&   V'       d   VR,          ^ .X,          ,           VR&   RV9   d   VR,          ^.V
,          ,           VR&   VR,          V P                  .V
,          ,           VR&   V'       dš   VR,          V P                  .X,          ,           VR&   VR	,          R.V P                  ,          .V,          ,           VR	&   V P                  R
8X  d7   VR,          ^ .V,          ,           VR&   VR,          ^ .V,          ,           VR&   V# VR8X  Edv   V'       d?   ^ .V
,          VR,          ,           VR&   V'       d   ^ .X,          VR,          ,           VR&   RV9   d?   ^ .V
,          VR,          ,           VR&   V'       d   ^ .X,          VR,          ,           VR&   RV9   d   ^.V
,          VR,          ,           VR&   V P                  .V
,          VR,          ,           VR&   V'       dš   V P                  .X,          VR,          ,           VR&   R.V P                  ,          .V,          VR	,          ,           VR	&   V P                  R
8X  d7   ^ .V,          VR,          ,           VR&   ^ .V,          VR,          ,           VR&   V# \        R\        V4      ,           4      hV# )a¸  
Pad encoded inputs (on left/right and up to predefined length or max length in the batch)


Args:
    encoded_inputs:
        Dictionary of tokenized inputs (`list[int]`) or batch of tokenized inputs (`list[list[int]]`).
    max_length: maximum length of the returned list and optionally padding length (see below).
        Will truncate by taking into account the special tokens.
    max_entity_length: The maximum length of the entity sequence.
    padding_strategy: PaddingStrategy to use for padding.


        - PaddingStrategy.LONGEST Pad to the longest sequence in the batch
        - PaddingStrategy.MAX_LENGTH: Pad to the max length (default)
        - PaddingStrategy.DO_NOT_PAD: Do not pad
        The tokenizer padding sides are defined in self.padding_side:


            - 'left': pads on the left of the sequences
            - 'right': pads on the right of the sequences
    pad_to_multiple_of: (optional) Integer if set will pad the sequence to a multiple of the provided value.
        This is especially useful to enable the use of Tensor Core on NVIDIA hardware with compute capability
        `>= 7.5` (Volta).
    padding_side:
        The side on which the model should have padding applied. Should be selected between ['right', 'left'].
        Default value is picked from the class attribute of the same name.
    return_attention_mask:
        (optional) Set to False to avoid returning attention mask (default: set to model specifics)
ré   r   r   Úentity_attention_maskÚrightr8  rB  r<  r?  r;   r@  rA  ÚleftzInvalid padding strategy:rD  )r²   rF  r   rz  rX   r0  rÅ   Úpad_token_idrj   rK   rI   rh   r"   )rs   rQ  rÁ   rJ   rÖ   rÄ   rÅ   rÈ   Úentities_providedÚneeds_to_be_paddedÚ
differenceÚentity_differences   &&&&&&&&    r'   rw  ÚMLukeTokenizer._pad  s  € ôP ! °Ñ!?Ó@Ðð !Ò(Ø$4¸×8NÑ8NÑ$NÐ!àœ×6Ñ6Ô6Ü˜^¨KÕ8Ó9ˆJß Ü$'¨°|Õ(DÓ$EÐ!àÒ!Ð&8Ò&DÈ*ÕJiÐmnÔJnØ%Õ;¸qÕ@ÐDVÕVˆJ÷ Ø!Ò-Ø"Ò.Ø"Õ7¸1Ô<à"3Õ"IÈQÕ!NÐRdÕ dÐà-´×1KÑ1KÑK÷ 
ð 
Ü�˜{Õ+Ó,°
Ñ:÷ ^ð ^Ø!×\Ð\¤c¨.¸Õ*FÓ&GÐK\Ñ&\ð 	÷ !Ð%5¸^Ô%KØ01¨s´S¸ÈÕ9TÓ5UÕ/UˆNÐ+Ñ,ß×!6Ð;RÐZhÔ;hØ78°c¼CÀÈ|Õ@\Ó<]Õ6]ˆNÐ2Ñ3çÐØ#¤c¨.¸Õ*EÓ&FÕFˆJØ+7Ò+C™<È×IZÑIZˆLß Ø$5¼¸NÈ<Õ<XÓ8YÕ$YÐ!Ø˜wÕ&ß(Ø7EÐFVÕ7WÐ[\ÐZ]Ð`jÕZjÕ7j�NÐ#3Ñ4ß(à*Ð+BÕCÀqÀcÐL]ÕF]Õ]ð 'Ð'>Ñ?ð $ ~Ô5Ø7EÐFVÕ7WÐ[\ÐZ]Ð`jÕZjÕ7j�NÐ#3Ñ4ß(à*Ð+BÕCÀqÀcÐL]ÕF]Õ]ð 'Ð'>Ñ?ð )¨NÔ:Ø<JÐK`Õ<aÐefÐdgÐjtÕdtÕ<t�NÐ#8Ñ9Ø.<¸[Õ.IÈT×M^ÑM^ÐL_ÐblÕLlÕ.l�˜{Ñ+ß$à& |Õ4¸×8PÑ8PÐ7QÐTeÕ7eÕeð # <Ñ0ð 'Ð'<Õ=À"ÀÈ×H_ÑH_ÕA_Ð@`ÐctÕ@tÕtð #Ð#8Ñ9ð —y‘yÐ$@Ô@à*Ð+CÕDÈÀsÐM^ÕG^Õ^ð 'Ð'?Ñ@ð +Ð+AÕBÀaÀSÐK\ÕE\Õ\ð 'Ð'=Ñ>ðJ ÐðC  Õ'ß(Ø89°s¸ZÕ7GÈ.ÐYiÕJjÕ7j�NÐ#3Ñ4ß(ØCDÀ#ÐHYÕBYÐ\jØ3õ]õ C˜Ð'>Ñ?ð $ ~Ô5Ø89°s¸ZÕ7GÈ.ÐYiÕJjÕ7j�NÐ#3Ñ4ß(ØCDÀ#ÐHYÕBYÐ\jØ3õ]õ C˜Ð'>Ñ?ð )¨NÔ:Ø=>¸CÀ*Õ<LÈ~Ð^sÕOtÕ<t�NÐ#8Ñ9Ø/3×/@Ñ/@Ð.AÀJÕ.NÐQ_Ð`kÕQlÕ.l�˜{Ñ+ß$Ø48×4LÑ4LÐ3MÐPaÕ3aÐdrØ$õeõ 4�N <Ñ0ð ˜˜t×6Ñ6Õ6ð=à)õ=*à,:Ð;PÕ,Qõ=R�NÐ#8Ñ9ð —y‘yÐ$@Ô@ØDEÀ3ÐIZÕCZÐ]kØ4õ^õ D˜Ð'?Ñ@ð CDÀÐGXÕAXÐ[iØ2õ\õ B˜Ð'=Ñ>ð Ðô !Ð!<¼sÀ<Ó?PÕ!PÓQÐQàÐr*   c                óJ   <€ V ^8„  d   QhRS[ RS[ R,          RS[S[ ,          /# )r   Úsave_directoryÚfilename_prefixNr!   )r"   rm   )r%   r&   s   "€r'   r(   r)   ¥  s-   ø€ ÷ $ñ $©cð $ÁCÈ$ÅJð $ÑZ_Ñ`cÕZdñ $r*   c                óè  € \         P                  P                  V4      '       g   \        P	                  RV R24       R# \         P                  P                  Y'       d
   VR,           MR\        R,          ,           4      p\        VRRR7      ;_uu_ 4       pVP                  \        P                  ! V P                  ^R	R
R7      R,           4       RRR4       V3#   + '       g   i     T3# ; i)zd
Save only the entity vocabulary file. The tokenizer.json is saved by the parent TokenizersBackend.
zVocabulary path (z) should be a directoryÚ-r¨   r   Úwr8   r9   TF)ÚindentÚ	sort_keysÚensure_asciiÚ
NrS   )ÚosÚpathÚisdirrL  Úerrorrª   ÚVOCAB_FILES_NAMESre   Úwriterf   Údumpsr    )rs   rŽ  r�  r   Úfs   &&&  r'   Úsave_vocabularyÚMLukeTokenizer.save_vocabulary¥  sÁ   € ô �w‰w�}‰}˜^×,Ò,Ü�L‰LÐ,¨^Ð,<Ð<SÐTÔUØˆIäŸG™GŸL™LØ¶o˜_¨sÖ2È2ÔQbÐcvÕQwÕwó
Ðô Ð# S°7×;Õ;¸qØ�G‰G”D—J’J˜t×0Ñ0¸ÀdÐY^Ô_ÐbfÕfÔg÷ <ð "Ð#Ð#÷ <Ö;ð "Ð#Ð#ús   Â;CÃC1	c                ój   <€ V ^8„  d   QhRS[ S[,          RS[ S[,          R,          RS[ S[,          /# ©r   Útoken_ids_0Útoken_ids_1Nr!   ©r$   r³   )r%   r&   s   "€r'   r(   r)   ¶  s;   ø€ ÷ Añ AÙ¡�9ðAÙ37¹µ9¸tÕ3CðAá	‰c�ñAr*   c                óÒ   € Vf'   V P                   .V,           V P                  .,           # V P                   .pV P                  .pW1,           V,           V,           V,           V,           # )a;  
Build model inputs from a sequence or a pair of sequence for sequence classification tasks by concatenating and
adding special tokens. An XLM-RoBERTa sequence has the following format:

- single sequence: `<s> X </s>`
- pair of sequences: `<s> A </s></s> B </s>`

Args:
    token_ids_0 (`list[int]`):
        List of IDs to which the special tokens will be added.
    token_ids_1 (`list[int]`, *optional*):
        Optional second list of IDs for sequence pairs.

Returns:
    `list[int]`: List of [input IDs](../glossary#input-ids) with the appropriate special tokens.
)r‹   rŒ   )rs   r£  r¤  ÚclsÚseps   &&&  r'   rI  Ú/MLukeTokenizer.build_inputs_with_special_tokens¶  se   € ð( ÒØ×%Ñ%Ð&¨Õ4¸×8IÑ8IÐ7JÕJÐJØ× Ñ Ð!ˆØ× Ñ Ð!ˆØÕ  3Õ&¨Õ,¨{Õ:¸SÕ@Ð@r*   c          	      óp   <€ V ^8„  d   QhRS[ S[,          RS[ S[,          R,          RS[RS[ S[,          /# )r   r£  r¤  NÚalready_has_special_tokensr!   )r$   r³   r²   )r%   r&   s   "€r'   r(   r)   Ð  sD   ø€ ÷ Xñ XÙ¡�9ðXÙ37¹µ9¸tÕ3CðXÙhlðXá	‰c�ñXr*   c                ó  <€ V'       d   \         SV `  WRR7      # Vf$   ^.^ .\        V4      ,          ,           ^.,           # ^.^ .\        V4      ,          ,           ^^.,           ^ .\        V4      ,          ,           ^.,           # )ad  
Retrieve sequence ids from a token list that has no special tokens added. This method is called when adding
special tokens using the tokenizer `prepare_for_model` method.

Args:
    token_ids_0 (`list[int]`):
        List of IDs.
    token_ids_1 (`list[int]`, *optional*):
        Optional second list of IDs for sequence pairs.
    already_has_special_tokens (`bool`, *optional*, defaults to `False`):
        Whether or not the token list is already formatted with special tokens for the model.

Returns:
    `list[int]`: A list of integers in the range [0, 1]: 1 for a special token, 0 for a sequence token.
T)r£  r¤  r«  )rp   rK  rX   )rs   r£  r¤  r«  r€   s   &&&&€r'   rK  Ú&MLukeTokenizer.get_special_tokens_maskÐ  s‰   ø€ ÷& &Ü‘7Ñ2Ø'Ð]að 3ó ð ð ÒØ�3˜1˜#¤ KÓ 0Õ0Õ1°Q°CÕ7Ð7Øˆs�q�cœC Ó,Õ,Õ-°°A°Õ6¸1¸#ÄÀKÓ@PÕ:PÕQÐUVÐTWÕWÐWr*   c                ój   <€ V ^8„  d   QhRS[ S[,          RS[ S[,          R,          RS[ S[,          /# r¢  r¥  )r%   r&   s   "€r'   r(   r)   ì  s;   ø€ ÷ Lñ LÙ¡�9ðLÙ37¹µ9¸tÕ3CðLá	‰c�ñLr*   c                óè   € V P                   .pV P                  .pVf!   \        WA,           V,           4      ^ .,          # \        WA,           V,           V,           V,           V,           4      ^ .,          # )a�  
Create a mask from the two sequences passed to be used in a sequence-pair classification task. XLM-RoBERTa does
not make use of token type ids, therefore a list of zeros is returned.

Args:
    token_ids_0 (`list[int]`):
        List of IDs.
    token_ids_1 (`list[int]`, *optional*):
        Optional second list of IDs for sequence pairs.

Returns:
    `list[int]`: List of zeros.

)rŒ   r‹   rX   )rs   r£  r¤  r¨  r§  s   &&&  r'   rJ  Ú3MLukeTokenizer.create_token_type_ids_from_sequencesì  si   € ð$ × Ñ Ð!ˆØ× Ñ Ð!ˆàÒÜ�sÕ(¨3Õ.Ó/°1°#Õ5Ð5Ü�3Õ$ sÕ*¨SÕ0°;Õ>ÀÕDÓEÈÈÕKÐKr*   )rZ   rW   rY   rl   rk   rj   ri   r    rd   rb   ra   rJ   rK   rI   )r4   r6   r6   r4   r.   r5   r7   Né    é   z<ent>z<ent2>z[UNK]z[PAD]z[MASK]z[MASK2]NN)F)NNNNNTFNNNé    FNNNNNFFFFT)NNNNN)NNNNNTFNNNr³  NNNNNFFFFTF)TNNNNNNTr”   )NF)(Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r›  Úvocab_files_namesrF  rq   rr   Úpropertyr‘   rš   r    r¥   r¯   rµ   r   r   Ú'ENCODE_PLUS_ADDITIONAL_KWARGS_DOCSTRINGrÚ   r   r0  r   rG  rÞ   rÝ   r  rî   rý   rï   r1  rw  rŸ  rI  rK  rJ  Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r€   r&   s   @@r'   r   r   �   sI  ù‡ € ñRðh *ÐØ$Ð&6Ð7Ð÷nõ nõ`
ð0 ñ:ó ð:òò
	]ò>ò÷
 ò  ñ Ð/Ð1XÓY÷|ô |ó Zð|ðB '+Ø/3Ø48Ø'+Ø,0Ø#'Ø,;×,FÑ,FØ2D×2TÑ2TØ!%Ø(,ØØ+0Ø)-Ø#'Ø26Ø-1Ø-1Ø*/Ø+0Ø',Ø#Ø÷1m
õ m
ðh ØmqØ#'Ø,;×,FÑ,FØ2D×2TÑ2TØ!%Ø(,ØØ+0Ø)-Ø#'Ø26Ø-1Ø-1Ø*/Ø+0Ø',Ø#Ø÷/M,õ M,÷^oð o÷$V
ò V
ñp Ð/Ð1XÓYð $(Ø,;×,FÑ,FØ2D×2TÑ2TØ!%Ø(,ØØ)-Ø#'Ø%)Ø-1Ø-1Ø*/Ø+0Ø#Ø÷'Rñ Ró ZðRñh Ð/Ð1XÓY÷eñ eó Zðe÷N`Hò `HðJ "&Ø(,Ø,;×,FÑ,FØ)-Ø#'Ø-1÷Nò N÷`$ò $÷"Aò A÷4Xõ X÷8L÷ Lò Lr*   r   )0r¸  r  rf   r—  Úcollections.abcr   Únumpyrh  r‰   r   r   r   r   Útokenizers.modelsr   Útokenization_utils_baser   r	   r
   r   r   r   r   r   r   r   Útokenization_utils_tokenizersr   Úutilsr   r   r   Ú
get_loggerr´  rL  rm   r³   Ú
EntitySpanr$   rÎ   r"   ÚEntityrÏ   r¬   r›  r»  r   Ú__all__rS   r*   r'   Ú<module>rÉ     s±   ðñ &ã Û Û 	Ý #ã ß GÓ GÝ %÷÷ ÷ õ ?ß AÑ Að 
×	Ò	˜HÓ	%€à�3˜�8�_€
Ø�zÕ"€Ø	€Ø�6�l€àÐ à!Ð#<Ð>QÐSfÐgÐ ðI+Ð 'ôXBLÐ&ô BLðJ4 Ð
‚r*   