+
    œ°³jÅ'  ã                   ó°   € R t ^ RIt^ RIHt ^ RIt^RIHtHt ^RI	H
t
 ^RIHt ]
P                  ! ]4      tRRRR	/t]R
 4       tR t ! R R]4      tR.tR# )zTokenization class for CLVP.N)Ú	lru_cache)Ú
AddedTokenÚPreTrainedTokenizer)Úlogging)ÚEnglishNormalizerÚ
vocab_filez
vocab.jsonÚmerges_filez
merges.txtc            	     ó>  € \        \        \        R4      \        R4      ^,           4      4      \        \        \        R4      \        R4      ^,           4      4      ,           \        \        \        R4      \        R4      ^,           4      4      ,           p V R,          p^ p\        R4       F=  pW09  g   K  V P                  V4       VP                  RV,           4       V^,          pK?  	  V Uu. uF  p\	        V4      NK  	  pp\        \        W4      4      # u upi )	a  
Returns list of utf-8 byte and a mapping to unicode strings. We specifically avoids mapping to whitespace/control
characters the bpe code barfs on.

The reversible bpe codes work on unicode strings. This means you need a large # of unicode characters in your vocab
if you want to avoid UNKs. When you're at something like a 10B token dataset you end up needing around 5K for
decent coverage. This is a significant percentage of your normal, say, 32K bpe vocab. To avoid that, we want lookup
tables between utf-8 bytes and unicode strings.
Ú!Ú~ô   Â¡ô   Â¬ô   Â®ô   Ã¿:NNNé   )ÚlistÚrangeÚordÚappendÚchrÚdictÚzip)ÚbsÚcsÚnÚbs       Úk/home/luca/screen-checking/.venv/lib/python3.14/site-packages/transformers/models/clvp/tokenization_clvp.pyÚbytes_to_unicoder   "   sÞ   € ô 	ŒU”3�s“8œS ›X¨�\Ó*Ó+¬d´5¼¸T»ÄCÈÃIÐPQÅMÓ3RÓ.SÕSÔVZÔ[`ÔadÐeiÓajÔloÐptÓluÐxyÕlyÓ[zÓV{Õ{ð ð 
ˆA�€BØ	€AÜ�4Ž[ˆØŽ;Ø�I‰I�aŒLØ�I‰I�d˜Q•hÔØ��FŠAñ	 ñ
 Ó	™"�QŒ#ˆaŽ&™"€BÐ	Ü”�B“ÓÐùò 
s   Ã0Dc                ót   € \        4       pV ^ ,          pV R,           F  pVP                  W#34       TpK  	  V# )zy
Return set of symbol pairs in a word.

Word is represented as tuple of symbols (symbols being variable-length strings).
:é   NN)ÚsetÚadd)ÚwordÚpairsÚ	prev_charÚchars   &   r   Ú	get_pairsr&   ;   s?   € ô ‹E€EØ�Q•€IØ�R—�ˆØ�	‰	�9Ð#Ô$ØŠ	ñ ð €Ló    c                   ó�   a a€ ] tR t^It oRt]tRR.tRV 3R llt]	R 4       t
]	R 4       tR tR tR	 tR
 tR tR tR tRtVtV ;t# )ÚClvpTokenizera�  
Construct a CLVP tokenizer. Based on byte-level Byte-Pair-Encoding.

This tokenizer has been trained to treat spaces like parts of the tokens (a bit like sentencepiece) so a word will
be encoded differently whether it is at the beginning of the sentence (without space) or not:

```python
>>> from transformers import ClvpTokenizer

>>> tokenizer = ClvpTokenizer.from_pretrained("susnato/clvp_dev")
>>> tokenizer("Hello world")["input_ids"]
[62, 84, 28, 2, 179, 79]

>>> tokenizer(" Hello world")["input_ids"]
[2, 62, 84, 28, 2, 179, 79]
```

You can get around that behavior by passing `add_prefix_space=True` when instantiating this tokenizer or when you
call it on some text, but since the model was not pretrained this way, it might yield a decrease in performance.

<Tip>

When used with `is_split_into_words=True`, this tokenizer will add a space before each word (even the first one).

</Tip>

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.
    merges_file (`str`):
        Path to the merges file.
    errors (`str`, *optional*, defaults to `"replace"`):
        Paradigm to follow when decoding bytes to UTF-8. See
        [bytes.decode](https://docs.python.org/3/library/stdtypes.html#bytes.decode) for more information.
    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.
    bos_token (`str`, *optional*, defaults to `"<|endoftext|>"`):
        The beginning of sequence token.
    eos_token (`str`, *optional*, defaults to `"[STOP]"`):
        The end of sequence token.
    pad_token (`str`, *optional*, defaults to `"[STOP]"`):
        The pad token of the sequence.
    add_prefix_space (`bool`, *optional*, defaults to `False`):
        Whether or not to add an initial space to the input. This allows to treat the leading word just as any
        other word. (CLVP tokenizer detect beginning of words by the preceding space).
Ú	input_idsÚattention_maskc	                óÊ  <€ \        V\        4      '       d   \        VR R7      MTp\        V\        4      '       d   \        VR R7      MTp\        V\        4      '       d   \        VR R7      MTp\        V\        4      '       d   \        VR R7      MTpRV n        \	        VRR7      ;_uu_ 4       p
\
        P                  ! V
4      V n        RRR4       V P                  P                  4        UUu/ uF  w  r¼WËbK	  	  uppV n	        W0n
        \        4       V n        V P                  P                  4        UUu/ uF  w  r¼WËbK	  	  uppV n        \	        VRR7      ;_uu_ 4       pVP                  4       P                  R4      ^R pRRR4       X Uu. uF  p\!        VP                  4       4      NK  	  pp\#        \%        V\'        \)        V4      4      4      4      V n        / V n        W€n        \0        P2                  ! R4      V n        \6        SV `p  ! RRVRVR	VR
VRVRVRR/V	B  R#   + '       g   i     ELh; iu uppi u uppi   + '       g   i     LÌ; iu upi )T)ÚspecialNúutf-8)ÚencodingÚ
zJ's|'t|'re|'ve|'m|'ll|'d| ?\p{L}+| ?\p{N}+| ?[^\s\p{L}\p{N}]+|\s+(?!\S)|\s+ÚerrorsÚ	unk_tokenÚ	bos_tokenÚ	eos_tokenÚ	pad_tokenÚadd_prefix_spaceÚspecial_tokens_patternÚnoneéÿÿÿÿ© )Ú
isinstanceÚstrr   Ú_normalizerÚopenÚjsonÚloadÚencoderÚitemsÚdecoderr1   r   Úbyte_encoderÚbyte_decoderÚreadÚsplitÚtupler   r   r   ÚlenÚ	bpe_ranksÚcacher6   ÚreÚcompileÚpatÚsuperÚ__init__)Úselfr   r   r1   r2   r3   r4   r5   r6   ÚkwargsÚvocab_handleÚkÚvÚmerges_handleÚ
bpe_mergesÚmergeÚ	__class__s   &&&&&&&&&,      €r   rP   ÚClvpTokenizer.__init__ƒ   s  ø€ ô <FÀiÔQT×;UÒ;U”J˜y°$Õ7Ð[dˆ	Ü;EÀiÔQT×;UÒ;U”J˜y°$Õ7Ð[dˆ	Ü;EÀiÔQT×;UÒ;U”J˜y°$Õ7Ð[dˆ	Ü;EÀiÔQT×;UÒ;U”J˜y°$Õ7Ð[dˆ	àˆÔÜ�* w×/Õ/°<ÜŸ9š9 \Ó2ˆDŒL÷ 0à)-¯©×);Ñ);Ô)=Ô>Ñ)=¡ ˜šÑ)=Ò>ˆŒØŒÜ,Ó.ˆÔØ.2×.?Ñ.?×.EÑ.EÔ.GÔHÑ.G¡d a˜QšTÑ.GÒHˆÔÜ�+¨×0Õ0°MØ&×+Ñ+Ó-×3Ñ3°DÓ9¸!¸BÐ?ˆJ÷ 1á8BÓC¹
¨u”e˜EŸK™K›MÖ*¹
ˆ
ÐCÜœc *¬e´C¸
³OÓ.DÓEÓFˆŒØˆŒ
Ø 0Ôô —:’:ÐoÓpˆŒä‰Òñ 		
Øð		
àð		
ð  ð		
ð  ð			
ð
  ð		
ð .ð		
ð $*ð		
ð ô		
÷! 0×/Ð/üã>ùó Iß0×0üâCs*   Â2H-Ã3IÄ;IÅ&#IÆ"I È-H>	ÉI	c                ó,   € \        V P                  4      # ©N)rI   rA   ©rQ   s   &r   Ú
vocab_sizeÚClvpTokenizer.vocab_size°   s   € ä�4—<‘<Ó Ð r'   c                óT   € V P                   f   \        4       V n         V P                   # r\   )r=   r   r]   s   &r   Ú
normalizerÚClvpTokenizer.normalizer´   s%   € à×ÑÒ#Ü0Ó2ˆDÔØ×ÑÐr'   c                óB   € \        V P                  3/ V P                  B # r\   )r   rA   Úadded_tokens_encoderr]   s   &r   Ú	get_vocabÚClvpTokenizer.get_vocabº   s   € Ü�D—L‘LÑ> D×$=Ñ$=Ñ>Ð>r'   c                ó0  a € VS P                   9   d   S P                   V,          # \        V4      p\        V4      pV'       g   V#  \        VV 3R lR7      pVS P                  9  d   MçVw  rV. p^ pV\        V4      8  d¤    VP                  WX4      p	VP                  W(V	 4       T	pY(,          T8X  dN   T\        T4      ^,
          8  d7   Y(^,           ,          T8X  d#   TP                  YV,           4       T^,          pK‘  TP                  Y(,          4       T^,          pK³  \        V4      pTp\        V4      ^8X  d   M\        V4      pEK  RP                  V4      pVS P                   V&   V#   \         d    TP                  Y(R 4        Ko  i ; i)Tc                 óN   <€ SP                   P                  V \        R 4      4      # )Úinf)rJ   ÚgetÚfloat)ÚpairrQ   s   &€r   Ú<lambda>Ú#ClvpTokenizer.bpe.<locals>.<lambda>Ç   s   ø€ °·±×1CÑ1CÀDÌ%ÐPUË,Ô1Wr'   )ÚkeyNÚ )rK   rH   r&   ÚminrJ   rI   ÚindexÚextendÚ
ValueErrorr   Újoin)
rQ   Útokenr"   r#   ÚbigramÚfirstÚsecondÚnew_wordÚiÚjs
   f&        r   ÚbpeÚClvpTokenizer.bpe½   sZ  ø€ Ø�D—J‘JÔØ—:‘:˜eÕ$Ð$Ü�U‹|ˆÜ˜$“ˆçØˆLàÜ˜Ô$WÔXˆFØ˜TŸ^™^Ô+ØØ"‰MˆEØˆHØˆAØ”c˜$“i”-ðØŸ
™
 5Ó,�Að
 —O‘O D¨1 IÔ.Ø�Aà•7˜eÔ#¨¬C°«I¸­MÔ(9¸dÀqÅ5½kÈVÔ>SØ—O‘O E¥NÔ3Ø˜•F’Aà—O‘O D¥GÔ,Ø˜•F’AÜ˜X“ˆHØˆDÜ�4‹y˜AŒ~Øä! $›“Ø�x‰x˜‹~ˆØ ˆ�
‰
�5ÑØˆøô+ "ô Ø—O‘O D¨ HÔ-Úðús   ÂE3 Å3FÆFc                óD  a € . pS P                  V4      p\        P                  ! S P                  V4       Ff  pRP	                  V 3R lVP                  R4       4       4      pVP                  V 3R lS P                  V4      P                  R4       4       4       Kh  	  V# )zTokenize a string.Ú c              3   óJ   <"  € T F  pSP                   V,          x € K  	  R # 5ir\   )rD   )Ú.0r   rQ   s   & €r   Ú	<genexpr>Ú*ClvpTokenizer._tokenize.<locals>.<genexpr>ì   s#   øé € ð Ù.C¨�×!Ñ! !×$Ò$Ó.Cùs   ƒ #r.   c              3   ó\   <"  € T F!  pVR 8X  d   RSP                   9   d   RMTx € K#  	  R# 5i)u   Ä ú[SPACE]N)rA   )r‚   Ú	bpe_tokenrQ   s   & €r   rƒ   r„   ñ   s0   øé € ð á!;�Ið '¨(Ô2°yÀDÇLÁLÔ7P‘	ÐV_Ô_Û!;ùs   ƒ),rp   )	ra   rL   ÚfindallrN   ru   Úencoders   r}   rG   )rQ   ÚtextÚ
bpe_tokensrv   s   f&  r   Ú	_tokenizeÚClvpTokenizer._tokenizeç   s‹   ø€ àˆ
Ø�‰˜tÓ$ˆÜ—Z’Z §¡¨$Ö/ˆEØ—G‘Gô Ø.3¯l©l¸7Ô.Cóó ˆEð
 ×Ñô à!%§¡¨%£×!6Ñ!6°sÔ!;óö ñ 0ð Ðr'   c                ó~   € V P                   P                  WP                   P                  V P                  4      4      # )z0Converts a token (str) in an id using the vocab.)rA   rj   r2   )rQ   rv   s   &&r   Ú_convert_token_to_idÚ"ClvpTokenizer._convert_token_to_idø   s*   € à�|‰|×Ñ §|¡|×'7Ñ'7¸¿¹Ó'GÓHÐHr'   c                ó8   € V P                   P                  V4      # )z=Converts an index (integer) in a token (str) using the vocab.)rC   rj   )rQ   rr   s   &&r   Ú_convert_id_to_tokenÚ"ClvpTokenizer._convert_id_to_tokenü   s   € à�|‰|×Ñ Ó&Ð&r'   c                ó¾   € RP                  V4      p\        V Uu. uF  q0P                  V,          NK  	  up4      P                  RV P                  R7      pV# u upi )z:Converts a sequence of tokens (string) in a single string.r€   r.   )r1   )ru   Ú	bytearrayrE   Údecoder1   )rQ   ÚtokensrŠ   Úcs   &&  r   Úconvert_tokens_to_stringÚ&ClvpTokenizer.convert_tokens_to_string   sU   € à�w‰w�v‹ˆÜ¹Ó=¹°1×+Ñ+¨A×.Ð.¹Ñ=Ó>×EÑEÀgÐVZ×VaÑVaÐEÓbˆØˆùò >s   ›Ac                óÒ  € \        V\        4      '       d   R P                  V4      MTp\        V P                  P	                  4       4      \        V P
                  P	                  4       4      ,           pRV9   d   VP                  RR4      MTpRV9   d   VP                  RR4      MTpVP                  V P                  R 4      P                  RR4      P                  RR4      pV# )r€   r†   rp   ú[STOP]z   z  )r;   r   ru   rA   Úkeysrd   Úreplacer2   )rQ   rŠ   Úvocab_tokenss   && r   Úclean_up_tokenizationÚ#ClvpTokenizer.clean_up_tokenization  s³   € Ü *¨4´× 6Ò 6ˆr�w‰w�tŒ}¸DˆÜ˜DŸL™L×-Ñ-Ó/Ó0´4¸×8QÑ8Q×8VÑ8VÓ8XÓ3YÕYˆà/8¸LÔ/Hˆt�|‰|˜I sÔ+ÈdˆØ.6¸,Ô.Fˆt�|‰|˜H cÔ*ÈDˆà�|‰|˜DŸN™N¨BÓ/×7Ñ7¸¸sÓC×KÑKÈDÐRUÓVˆØˆr'   )
r=   r6   rJ   rE   rD   rK   rC   rA   r1   rN   )rž   z[UNK]z<|endoftext|>rœ   rœ   F)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__ÚVOCAB_FILES_NAMESÚvocab_files_namesÚmodel_input_namesrP   Úpropertyr^   ra   re   r}   rŒ   r�   r’   r™   r    Ú__static_attributes__Ú__classdictcell__Ú__classcell__)rY   Ú__classdict__s   @@r   r)   r)   I   sy   ù‡ € ñ1ðf *ÐàØðÐ÷
+
ðZ ñ!ó ð!ð ñ ó ð ò
?ò(òTò"Iò'ò÷ò r'   r)   )r¦   r?   Ú	functoolsr   ÚregexrL   Útokenization_pythonr   r   Úutilsr   Únumber_normalizerr   Ú
get_loggerr¢   Úloggerr§   r   r&   r)   Ú__all__r:   r'   r   Ú<module>r·      su   ðñ #ã Ý ã ç BÝ Ý 0ð 
×	Ò	˜HÓ	%€ð �,Ø�<ðÐ ð ñó ðò0ôEÐ'ô EðP Ð
‚r'   