Ë
    S^(h[û  ã                   óH  — d Z ddlZddlZddlZddlmZ ddlmZmZm	Z	m
Z
mZ ddlZddlmZmZmZmZmZ ddlmZmZ ddlmZmZmZmZ dd	lmZ  e«       rddlZ ej@                  e!«      Z"d
ddœZ# G d„ de«      Z$dZ% e«       d„ «       Z&d„ Z' G d„ d«      Z( G d„ de«      Z)y)zTokenization classes for TAPEX.é    N)Ú	lru_cache)ÚDictÚListÚOptionalÚTupleÚUnioné   )ÚExplicitEnumÚPaddingStrategyÚ
TensorTypeÚadd_end_docstringsÚis_pandas_available)Ú
AddedTokenÚPreTrainedTokenizer)ÚENCODE_KWARGS_DOCSTRINGÚBatchEncodingÚ	TextInputÚTruncationStrategy)Úloggingz
vocab.jsonz
merges.txt)Ú
vocab_fileÚmerges_filec                   ó   — e Zd ZdZdZy)ÚTapexTruncationStrategyz}
    Possible values for the `truncation` argument in [`~TapasTokenizer.__call__`]. Useful for tab-completion in an IDE.
    Údrop_rows_to_fitN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚDROP_ROWS_TO_FIT© ó    úu/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/transformers/models/deprecated/tapex/tokenization_tapex.pyr   r   (   s   „ ñð *Ñr!   r   a®  
            add_special_tokens (`bool`, *optional*, defaults to `True`):
                Whether or not to encode the sequences with the special tokens relative to their model.
            padding (`bool`, `str` or [`~file_utils.PaddingStrategy`], *optional*, defaults to `False`):
                Activates and controls padding. Accepts the following values:

                - `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).
            truncation (`bool`, `str`, [`TapexTruncationStrategy`] or [`~tokenization_utils_base.TruncationStrategy`],
                   *optional*, defaults to `False`):

                Activates and controls truncation. Accepts the following values:

                - `'drop_rows_to_fit'`: Truncate 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. This will truncate
                  row by row, removing rows from the table.
                - `True` or `'longest_first'`: Truncate 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. This will
                  truncate token by token, removing a token from the longest sequence in the pair if a pair of
                  sequences (or a batch of pairs) is provided.
                - `'only_first'`: Truncate 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. This will only
                  truncate the first sequence of a pair if a pair of sequences (or a batch of pairs) is provided.
                - `'only_second'`: Truncate 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. This will only
                  truncate the second sequence of a pair if a pair of sequences (or a batch of pairs) is provided.
                - `False` or `'do_not_truncate'` (default): No truncation (i.e., can output batch with sequence lengths
                  greater than the model maximum admissible input size).
            max_length (`int`, *optional*):
                Controls the maximum length to use by one of the truncation/padding parameters. If left unset or set to
                `None`, this will use the predefined model maximum length if a maximum length is required by one of the
                truncation/padding parameters. If the model has no specific maximum input length (like XLNet)
                truncation/padding to a maximum length will be deactivated.
            stride (`int`, *optional*, defaults to 0):
                If set to a number along with `max_length`, the overflowing tokens returned when
                `return_overflowing_tokens=True` will contain some tokens from the end of the truncated sequence
                returned to provide some overlap between truncated and overflowing sequences. The value of this
                argument defines the number of overlapping tokens.
            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).
            return_tensors (`str` or [`~file_utils.TensorType`], *optional*):
                If set, will return tensors instead of list of python integers. Acceptable values are:

                - `'tf'`: Return TensorFlow `tf.constant` objects.
                - `'pt'`: Return PyTorch `torch.Tensor` objects.
                - `'np'`: Return Numpy `np.ndarray` objects.
c            	      óò  — t        t        t        d«      t        d«      dz   «      «      t        t        t        d«      t        d«      dz   «      «      z   t        t        t        d«      t        d«      dz   «      «      z   } | dd }d	}t        d
«      D ]1  }|| vsŒ| j                  |«       |j                  d
|z   «       |dz  }Œ3 |D �cg c]  }t	        |«      ‘Œ }}t        t        | |«      «      S c c}w )a3  
    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.
    ú!ú~é   õ   Â¡õ   Â¬õ   Â®õ   Ã¿Nr   é   )ÚlistÚrangeÚordÚappendÚchrÚdictÚzip)ÚbsÚcsÚnÚbs       r"   Úbytes_to_unicoder7   f   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‹[ò ˆØ�BŠ;Ø�I‰I�aŒLØ�I‰I�d˜Q‘hÔØ�‰F‰Að	ð
 Ö	�QŒ#ˆa�&Ð	€BÐ	Ü”�B˜“ÓÐùò 
s   ÃC4c                 ób   — t        «       }| d   }| dd D ]  }|j                  ||f«       |}Œ |S )z„
    Return set of symbol pairs in a word. Word is represented as tuple of symbols (symbols being variable-length
    strings).
    r   r&   N)ÚsetÚadd)ÚwordÚpairsÚ	prev_charÚchars       r"   Ú	get_pairsr?   }   sF   € ô
 ‹E€EØ�Q‘€IØ�Q�R�ò ˆØ�	‰	�9˜dÐ#Ô$Ø‰	ðð €Lr!   c                   ó8   — e Zd ZdZdefd„Zdefd„Zdedefd„Z	y	)
ÚIndexedRowTableLinearizezQ
    FORMAT: col: col1 | col2 | col 3 row 1 : val1 | val2 | val3 row 2 : ...
    Útable_contentc                 óæ   — d|v rd|v sJ | j                   «       ‚| j                  |d   «      dz   }t        |d   «      D ]!  \  }}|| j                  ||dz   ¬«      dz   z  }Œ# |j	                  «       S )zs
        Given a table, TableLinearize aims at converting it into a flatten sequence with special symbols.
        ÚheaderÚrowsú r&   )Ú	row_index)ÚPROMPT_MESSAGEÚprocess_headerÚ	enumerateÚprocess_rowÚstrip)ÚselfrB   Ú	table_strÚiÚrow_examples        r"   Úprocess_tablez&IndexedRowTableLinearize.process_table�   s�   € ð ˜=Ñ(¨V°}Ñ-DÐYÀd×FYÑFYÓYÐDà×'Ñ'¨°hÑ(?Ó@À3ÑFˆ	ä'¨°fÑ(=Ó>ò 	N‰NˆAˆ{à˜×)Ñ)¨+ÀÀQÁÐ)ÓGÈ#ÑMÑM‰Ið	Nð �‰Ó Ð r!   Úheadersc                 ó*   — ddj                  |«      z   S )z}
        Given a list of headers, TableLinearize aims at converting it into a flatten sequence with special symbols.
        zcol : ú | )Újoin)rM   rR   s     r"   rI   z'IndexedRowTableLinearize.process_headerœ   s   € ð ˜%Ÿ*™* WÓ-Ñ-Ð-r!   ÚrowrG   c                 óà   — d}g }|D ]>  }t        |t        «      r|j                  t        |«      «       Œ.|j                  |«       Œ@ |dj	                  |«      z  }dt        |«      z   dz   |z   S )zq
        Given a row, TableLinearize aims at converting it into a flatten sequence with special symbols.
        Ú rT   zrow z : )Ú
isinstanceÚintr/   ÚstrrU   )rM   rV   rG   Úrow_strÚrow_cell_valuesÚ
cell_values         r"   rK   z$IndexedRowTableLinearize.process_row¢   su   € ð ˆØˆØò 	3ˆJÜ˜*¤cÔ*Ø×&Ñ&¤s¨:£Õ7à×&Ñ& zÕ2ð		3ð
 	�5—:‘:˜oÓ.Ñ.ˆØœ˜I›Ñ&¨Ñ.°Ñ8Ð8r!   N)
r   r   r   r   r   rQ   r   rI   rZ   rK   r    r!   r"   rA   rA   Š   s2   „ ñð!¨4ó !ð. dó .ð9˜tð 9°ô 9r!   rA   c            &       óz  ‡ — e Zd ZdZeZddgZ	 	 	 	 	 	 	 	 	 	 	 dFˆ fd„	Z	 dGdee	   d	e
ee	      d
ee	   fd„Z	 dHdee	   d	e
ee	      ded
ee	   fˆ fd„Z	 dGdee	   d	e
ee	      d
ee	   fd„ZdId„Zed„ «       Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ ZdGdede
e   d
ee   fd„Z eee«      	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dJdeded   f   de
eeee   f      deeee   f   ded eeee f   d!eeee!f   d"e
e	   d#e	d$e
e	   d%e
eee"f      d&e
e   d'e
e   d(ed)ed*ed+ed,ed
e#f$d-„«       Z$	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dKdeded   f   de
eeee   f      deeee   f   ded eeee f   d!eeee!f   d"e
e	   d#e	d$e
e	   d%e
eee"f      d&e
e   d'e
e   d(ed)ed*ed+ed,ed
e#f$d.„Z% eee«      	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dLdeded   f   de
ee      dee   ded eeee f   d!eeef   d"e
e	   d$e
e	   d%e
eee"f      d&e
e   d'e
e   d(ed)ed*ed+ed,ed
e#f"d/„«       Z&ddde jN                  e!jP                  dddddddddddfdeded   f   de
ee      de
ee      ded0e d1e!d"e
e	   d#e	d$e
e	   d%e
eee"f      d&e
e   d'e
e   d(ed)ed*ed+ed,ed
e#f$d2„Z) eee«      ddde jN                  e!jP                  ddddddddddfdeded   f   de
eeee   f      de
eeee   f      ded0e d1e!d"e
e	   d#e	d$e
e	   d%e
e   d&e
e   d'e
e   d(ed)ed+ed,ed
e#f"d3„«       Z* ee«      	 	 	 	 	 	 	 dMddde
e   de
e   ded eeee f   d!eeee!e+f   d"e
e	   d%e
eee"f      d
ee	   fd4„«       Z, eee«      	 	 	 	 	 	 	 	 	 	 	 	 	 	 dNddde
e   de
e   ded eeee f   d!eeef   d"e
e	   d$e
e	   d%e
eee"f      d&e
e   d'e
e   d)ed*ed+ed,ed
e#f d5„«       Z-ddde jN                  e!jP                  dddddddddddfddde
e   de
e   ded0e d1e!d"e
e	   d#e	d$e
e	   d%e
eee"f      d&e
e   d'e
e   d(ed)ed*ed+ed,ed
e#f$d6„Z.	 	 	 	 	 	 	 	 	 	 	 	 	 	 dOdeeee   f   ded eeee f   d!eeee!f   d"e
e	   d#e	d$e
e	   d%e
eee"f      d&e
e   d'e
e   d(ed)ed*ed+ed,ed
e#f d7„Z/	 	 	 	 	 	 	 	 	 	 	 	 	 dPdee   ded eeee f   d!eeef   d"e
e	   d$e
e	   d%e
eee"f      d&e
e   d'e
e   d(ed)ed*ed+ed,ed
e#fd8„Z0de jN                  e!jP                  dddddddddddfdee   ded0e d1e!d"e
e	   d#e	d$e
e	   d%e
eee"f      d&e
e   d'e
e   d(ed)ed*ed+ed,ed
e#f d9„Z1	 	 	 	 	 dQdeded eeee f   d!eeee!e+f   d"e
e	   d%e
eee"f      d
ee	   fd:„Z2	 	 	 	 	 	 	 	 	 	 	 	 dRdeded eeee f   d!eeef   d"e
e	   d$e
e	   d%e
eee"f      d&e
e   d'e
e   d)ed*ed+ed,ed
e#fd;„Z3de jN                  e!jP                  dddddddddddfdeded0e d1e!d"e
e	   d#e	d$e
e	   d%e
eee"f      d&e
e   d'e
e   d(ed)ed*ed+ed,ed
e#f d<„Z4deee!e+f   dfd=„Z5d>e6d?edefd@„Z7dA„ Z8	 dSd>e6d?ede
eeee   f      fdB„Z9dGd>e6d?efdC„Z:d>e6d?ededDe;fdE„Z<ˆ xZ=S )TÚTapexTokenizeraè  
    Construct a TAPEX tokenizer. Based on byte-level Byte-Pair-Encoding (BPE).

    This tokenizer can be used to flatten one or more table(s) and concatenate them with one or more related sentences
    to be used by TAPEX models. The format that the TAPEX tokenizer creates is the following:

    sentence col: col1 | col2 | col 3 row 1 : val1 | val2 | val3 row 2 : ...

    The tokenizer supports a single table + single query, a single table and multiple queries (in which case the table
    will be duplicated for every query), a single query and multiple tables (in which case the query will be duplicated
    for every table), and multiple tables and queries. In other words, you can provide a batch of tables + questions to
    the tokenizer for instance to prepare them for the model.

    Tokenization itself is based on the BPE algorithm. It is identical to the one used by BART, RoBERTa and GPT-2.

    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.
        do_lower_case (`bool`, *optional*, defaults to `True`):
            Whether or not to lowercase the input when tokenizing.
        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.
        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.
        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. (BART tokenizer detect beginning of words by the preceding space).
        max_cell_length (`int`, *optional*, defaults to 15):
            Maximum number of characters per cell when linearizing a table. If this number is exceeded, truncation
            takes place.
    Ú	input_idsÚattention_maskTFc                 óJ  •— t        |t        «      rt        |dd¬«      n|}t        |t        «      rt        |dd¬«      n|}t        |t        «      rt        |dd¬«      n|}t        |t        «      rt        |dd¬«      n|}t        |	t        «      rt        |	dd¬«      n|	}	t        |
t        «      rt        |
dd¬«      n|
}
t        |t        «      rt        |dd¬«      n|}t        |d¬«      5 }t	        j
                  |«      | _        d d d «       | j                  j                  «       D ��ci c]  \  }}||“Œ
 c}}| _        || _	        t        «       | _        | j                  j                  «       D ��ci c]  \  }}||“Œ
 c}}| _        t        |d¬«      5 }|j                  «       j                  d«      dd }d d d «       D �cg c]  }t        |j                  «       «      ‘Œ }}t!        t#        |t%        t'        |«      «      «      «      | _        i | _        || _        || _        t1        j2                  d	«      | _        t7        ‰| �p  d|||||||	|||
|||d
œ|¤Ž || _        t=        «       | _        y # 1 sw Y   �ŒsxY wc c}}w c c}}w # 1 sw Y   Œ×xY wc c}w )NF)ÚlstripÚrstripTúutf-8©Úencodingú
r&   éÿÿÿÿzJ's|'t|'re|'ve|'m|'ll|'d| ?\p{L}+| ?\p{N}+| ?[^\s\p{L}\p{N}]+|\s+(?!\S)|\s+)r   r   Údo_lower_caseÚerrorsÚ	bos_tokenÚ	eos_tokenÚ	unk_tokenÚ	sep_tokenÚ	cls_tokenÚ	pad_tokenÚ
mask_tokenÚadd_prefix_spaceÚmax_cell_lengthr    ) rY   r[   r   ÚopenÚjsonÚloadÚencoderÚitemsÚdecoderrl   r7   Úbyte_encoderÚbyte_decoderÚreadÚsplitÚtupler1   r2   r-   ÚlenÚ	bpe_ranksÚcachert   rk   ÚreÚcompileÚpatÚsuperÚ__init__ru   rA   Útable_linearize)rM   r   r   rk   rl   rm   rn   rp   rq   ro   rr   rs   rt   ru   ÚkwargsÚvocab_handleÚkÚvÚmerges_handleÚ
bpe_mergesÚmergeÚ	__class__s                        €r"   rˆ   zTapexTokenizer.__init__ü   sq  ø€ ô" JTÐT]Ô_bÔIc”J˜y°¸uÕEÐirˆ	ÜISÐT]Ô_bÔIc”J˜y°¸uÕEÐirˆ	ÜISÐT]Ô_bÔIc”J˜y°¸uÕEÐirˆ	ÜISÐT]Ô_bÔIc”J˜y°¸uÕEÐirˆ	ÜISÐT]Ô_bÔIc”J˜y°¸uÕEÐirˆ	ÜISÐT]Ô_bÔIc”J˜y°¸uÕEÐirˆ	ô KUÐU_ÔadÔJe”Z 
°4ÀÕFÐkuˆ
ä�* wÔ/ð 	3°<ÜŸ9™9 \Ó2ˆDŒL÷	3à)-¯©×);Ñ);Ó)=×>¡  A˜˜1™Ó>ˆŒØˆŒÜ,Ó.ˆÔØ.2×.?Ñ.?×.EÑ.EÓ.G×H¡d a¨˜Q ™TÓHˆÔÜ�+¨Ô0ð 	@°MØ&×+Ñ+Ó-×3Ñ3°DÓ9¸!¸BÐ?ˆJ÷	@à8BÖC¨u”e˜EŸK™K›MÕ*ÐCˆ
ÐCÜœc *¬e´C¸
³OÓ.DÓEÓFˆŒØˆŒ
Ø 0ˆÔØ*ˆÔô —:‘:ÐoÓpˆŒô 	‰Ñð 	
Ø!Ø#Ø'ØØØØØØØØ!Ø-Ø+ñ	
ð ò	
ð"  /ˆÔÜ7Ó9ˆÕ÷K	3ñ 	3üã>ùó I÷	@ð 	@üâCs*   Ã/I;Ä/JÅ8JÆ#JÇ
 J É;JÊJNÚtoken_ids_0Útoken_ids_1Úreturnc                 ó˜   — |€| j                   g|z   | j                  gz   S | j                   g}| j                  g}||z   |z   |z   |z   |z   S )a’  
        Build model inputs from a sequence or a pair of sequence for sequence classification tasks by concatenating and
        adding special tokens. A TAPEX 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.
        )Úcls_token_idÚsep_token_id)rM   r’   r“   ÚclsÚseps        r"   Ú build_inputs_with_special_tokensz/TapexTokenizer.build_inputs_with_special_tokens>  sg   € ð" ÐØ×%Ñ%Ð&¨Ñ4¸×8IÑ8IÐ7JÑJÐJØ× Ñ Ð!ˆØ× Ñ Ð!ˆØ�[Ñ  3Ñ&¨Ñ,¨{Ñ:¸SÑ@Ð@r!   Úalready_has_special_tokensc                 ó¶   •— |rt         ‰| �  ||d¬«      S |€dgdgt        |«      z  z   dgz   S dgdgt        |«      z  z   ddgz   dgt        |«      z  z   dgz   S )aÂ  
        Args:
        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.
            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›   r&   r   )r‡   Úget_special_tokens_maskr�   )rM   r’   r“   r›   r‘   s       €r"   r�   z&TapexTokenizer.get_special_tokens_maskU  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                   g}| j                  g}|€t        ||z   |z   «      dgz  S t        ||z   |z   |z   |z   |z   «      dgz  S )aÉ  
        Args:
        Create a mask from the two sequences passed to be used in a sequence-pair classification task. TAPEX does not:
        make use of token type ids, therefore a list of zeros is returned.
            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—   r–   r�   )rM   r’   r“   r™   r˜   s        r"   Ú$create_token_type_ids_from_sequencesz3TapexTokenizer.create_token_type_ids_from_sequencesn  sm   € ð × Ñ Ð!ˆØ× Ñ Ð!ˆàÐÜ�s˜[Ñ(¨3Ñ.Ó/°1°#Ñ5Ð5Ü�3˜Ñ$ sÑ*¨SÑ0°;Ñ>ÀÑDÓEÈÈÑKÐKr!   c                 ó–   — |j                  d| j                  «      }|s|r&t        |«      dkD  r|d   j                  «       sd|z   }||fS )Nrt   r   rF   )Úpoprt   r�   Úisspace)rM   ÚtextÚis_split_into_wordsrŠ   rt   s        r"   Úprepare_for_tokenizationz'TapexTokenizer.prepare_for_tokenizationƒ  sO   € Ø!Ÿ:™:Ð&8¸$×:OÑ:OÓPÐÙÑ#3¼#¸d»)Àaº-ÐPTÐUVÑPW×P_ÑP_ÔPaØ˜‘:ˆDØ�fˆ~Ðr!   c                 ó,   — t        | j                  «      S ©N)r�   ry   ©rM   s    r"   Ú
vocab_sizezTapexTokenizer.vocab_size‰  s   € ä�4—<‘<Ó Ð r!   c                 óB   — t        | j                  fi | j                  ¤ŽS r§   )r1   ry   Úadded_tokens_encoderr¨   s    r"   Ú	get_vocabzTapexTokenizer.get_vocab�  s   € Ü�D—L‘LÑ> D×$=Ñ$=Ñ>Ð>r!   c                 óØ  ‡ — |‰ j                   v r‰ j                   |   S t        |«      }t        |«      }|s|S 	 t        |ˆ fd„¬«      }|‰ j                  vrnÎ|\  }}g }d}|t        |«      k  r�	 |j                  ||«      }	|j                  |||	 «       |	}||   |k(  r6|t        |«      dz
  k  r%||dz      |k(  r|j                  ||z   «       |dz  }n|j                  ||   «       |dz  }|t        |«      k  rŒ�t        |«      }|}t        |«      dk(  rnt        |«      }Œídj                  |«      }|‰ j                   |<   |S # t        $ r |j                  ||d  «       Y Œiw xY w)Nc                 óN   •— ‰j                   j                  | t        d«      «      S )NÚinf)r‚   ÚgetÚfloat)ÚpairrM   s    €r"   ú<lambda>z$TapexTokenizer.bpe.<locals>.<lambda>š  s   ø€ °·±×1CÑ1CÀDÌ%ÐPUË,Ó1W€ r!   ©Úkeyr   r&   é   rF   )rƒ   r€   r?   Úminr‚   r�   ÚindexÚextendÚ
ValueErrorr/   rU   )
rM   Útokenr;   r<   ÚbigramÚfirstÚsecondÚnew_wordrO   Újs
   `         r"   ÚbpezTapexTokenizer.bpe�  s€  ø€ Ø�D—J‘JÑØ—:‘:˜eÑ$Ð$Ü�U‹|ˆÜ˜$“ˆáØˆLàÜ˜Ó$WÔXˆFØ˜TŸ^™^Ñ+ØØ"‰MˆE�6ØˆHØˆAØ”c˜$“i’-ðØŸ
™
 5¨!Ó,�Að
 —O‘O D¨¨1 IÔ.Ø�Aà˜‘7˜eÒ#¨¬C°«I¸©MÒ(9¸dÀ1ÀqÁ5¹kÈVÒ>SØ—O‘O E¨F¡NÔ3Ø˜‘F‘Aà—O‘O D¨¡GÔ,Ø˜‘F�Að ”c˜$“i“-ô  ˜X“ˆHØˆDÜ�4‹y˜AŠ~Øä! $›�ð9 ð: �x‰x˜‹~ˆØ ˆ�
‰
�5ÑØˆøô+ "ò Ø—O‘O D¨¨ HÔ-Ùðús   Á1E	 Å	E)Å(E)c                 ó  ‡ — g }t        j                  ‰ j                  |«      D ]a  }dj                  ˆ fd„|j	                  d«      D «       «      }|j                  d„ ‰ j                  |«      j                  d«      D «       «       Œc |S )zTokenize a string.rX   c              3   ó<   •K  — | ]  }‰j                   |   –— Œ y ­wr§   )r|   )Ú.0r6   rM   s     €r"   ú	<genexpr>z+TapexTokenizer._tokenize.<locals>.<genexpr>¾  s!   øè ø€ ò Ø)*�×!Ñ! !Õ$ñùs   ƒrf   c              3   ó    K  — | ]  }|–— Œ y ­wr§   r    )rÄ   Ú	bpe_tokens     r"   rÅ   z+TapexTokenizer._tokenize.<locals>.<genexpr>Á  s   è ø€ ÒT¨IœiÑTùs   ‚rF   )r„   Úfindallr†   rU   Úencoder¹   rÁ   r   )rM   r£   Ú
bpe_tokensr»   s   `   r"   Ú	_tokenizezTapexTokenizer._tokenizeº  s}   ø€ àˆ
Ü—Z‘Z §¡¨$Ó/ò 	UˆEØ—G‘Gó Ø.3¯l©l¸7Ó.Côó ˆEð ×ÑÑT¸¿¹À%»×9NÑ9NÈsÓ9SÔTÕTð		Uð
 Ðr!   c                 ó€   — | j                   j                  || j                   j                  | j                  «      «      S )z0Converts a token (str) in an id using the vocab.)ry   r°   ro   )rM   r»   s     r"   Ú_convert_token_to_idz#TapexTokenizer._convert_token_to_idÄ  s,   € à�|‰|×Ñ  t§|¡|×'7Ñ'7¸¿¹Ó'GÓHÐHr!   c                 ó8   — | j                   j                  |«      S )z=Converts an index (integer) in a token (str) using the vocab.)r{   r°   )rM   r¸   s     r"   Ú_convert_id_to_tokenz#TapexTokenizer._convert_id_to_tokenÈ  s   € à�|‰|×Ñ Ó&Ð&r!   c                 ó´   — dj                  |«      }t        |D �cg c]  }| j                  |   ‘Œ c}«      j                  d| j                  ¬«      }|S c c}w )z:Converts a sequence of tokens (string) in a single string.rX   rf   )rl   )rU   Ú	bytearrayr}   Údecoderl   )rM   Útokensr£   Úcs       r"   Úconvert_tokens_to_stringz'TapexTokenizer.convert_tokens_to_stringÌ  sP   € à�w‰w�v‹ˆÜ¸Ö=°1˜$×+Ñ+¨AÓ.Ò=Ó>×EÑEÀgÐVZ×VaÑVaÐEÓbˆØˆùò >s   ›AÚsave_directoryÚfilename_prefixc           	      óP  — t         j                  j                  |«      st        j	                  d|› d�«       y t         j                  j                  ||r|dz   ndt        d   z   «      }t         j                  j                  ||r|dz   ndt        d   z   «      }t        |dd¬	«      5 }|j                  t        j                  | j                  d
dd¬«      dz   «       d d d «       d}t        |dd¬	«      5 }|j                  d«       t        | j                  j                  «       d„ ¬«      D ]M  \  }}	||	k7  rt        j                  d|› d�«       |	}|j                  dj                  |«      dz   «       |dz  }ŒO 	 d d d «       ||fS # 1 sw Y   Œ®xY w# 1 sw Y   ||fS xY w)NzVocabulary path (z) should be a directoryú-rX   r   r   Úwrf   rg   r¶   TF)ÚindentÚ	sort_keysÚensure_asciiri   r   z#version: 0.2
c                 ó   — | d   S )Nr&   r    )Úkvs    r"   r³   z0TapexTokenizer.save_vocabulary.<locals>.<lambda>ã  s   € ÐY[Ð\]ÑY^€ r!   r´   zSaving vocabulary to zZ: BPE merge indices are not consecutive. Please check that the tokenizer is not corrupted!rF   r&   )ÚosÚpathÚisdirÚloggerÚerrorrU   ÚVOCAB_FILES_NAMESrv   Úwriterw   Údumpsry   Úsortedr‚   rz   Úwarning)
rM   rÖ   r×   r   Ú
merge_fileÚfr¸   ÚwriterrÊ   Útoken_indexs
             r"   Úsave_vocabularyzTapexTokenizer.save_vocabularyÒ  sœ  € Ü�w‰w�}‰}˜^Ô,Ü�L‰LÐ,¨^Ð,<Ð<SÐTÔUØÜ—W‘W—\‘\Ø±o˜_¨sÒ2È2ÔQbÐcoÑQpÑpó
ˆ
ô —W‘W—\‘\Ø±o˜_¨sÒ2È2ÔQbÐcpÑQqÑqó
ˆ
ô �*˜c¨GÔ4ð 	c¸Ø�G‰G”D—J‘J˜tŸ|™|°AÀÐTYÔZÐ]aÑaÔb÷	cð ˆÜ�*˜c¨GÔ4ð 
	¸Ø�L‰LÐ*Ô+Ü+1°$·.±.×2FÑ2FÓ2HÑN^Ô+_ò Ñ'�
˜KØ˜KÒ'Ü—N‘NØ/°
¨|ð <Mð Môð (�EØ—‘˜SŸX™X jÓ1°DÑ8Ô9Ø˜‘
‘ñ÷
	ð ˜:Ð%Ð%÷!	cð 	cú÷
	ð ˜:Ð%Ð%ús   Â*6FÃ8BFÆFÆF%r   Útablezpd.DataFrameÚqueryÚanswerÚadd_special_tokensÚpaddingÚ
truncationÚ
max_lengthÚstrideÚpad_to_multiple_ofÚreturn_tensorsÚreturn_token_type_idsÚreturn_attention_maskÚreturn_overflowing_tokensÚreturn_special_tokens_maskÚreturn_offsets_mappingÚreturn_lengthÚverbosec                 óî   — |�E | j                   di d|“d|“d|“d|“d|“d|“d|“d|“d	|	“d
|
“d|“d|“d|“d|“d|“d|“d|“|¤ŽS |�" | j                  d|||||||	|
|||||||dœ|¤ŽS t        d«      ‚)aY  
        Main method to tokenize and prepare for the model one or several table-sequence pair(s).

        Args:
            table (`pd.DataFrame`, `List[pd.DataFrame]`):
                Table(s) containing tabular data.
            query (`str` or `List[str]`, *optional*):
                Sentence or batch of sentences related to one or more table(s) to be encoded. Note that the number of
                sentences must match the number of tables.
            answer (`str` or `List[str]`, *optional*):
                Optionally, the corresponding answer to the questions as supervision.
        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ø   rù   rú   rû   rü   rý   rþ   rÿ   z4You need to provide either a `table` or an `answer`.r    )Úsource_call_funcÚtarget_call_funcrº   )rM   rï   rð   rñ   rò   ró   rô   rõ   rö   r÷   rø   rù   rú   rû   rü   rý   rþ   rÿ   rŠ   s                      r"   Ú__call__zTapexTokenizer.__call__ï  s2  € ðF ÐØ(�4×(Ñ(ò Ùðáðñ ðñ $6ð	ñ
  ðñ &ðñ &ðñ ðñ $6ðñ  .ðñ '<ðñ '<ðñ +Dðñ ,Fðñ (>ðñ  ,ð!ñ"  Øñ%ð ð( ÐØ(�4×(Ñ(ð ØØ#5ØØ%Ø%ØØ#5Ø-Ø&;Ø&;Ø*CØ+EØ'=Ø+Øñð  ñ!ð ô& ÐSÓTÐTr!   c                 óæ  — d}d}t        |t        j                  «      rd}n5t        |t        t        f«      rt        |d   t        j                  «      rd}|�t        |t
        «      rd}n9t        |t        t        f«      r#t        |«      dk(  st        |d   t
        «      rd}|st        d«      ‚|st        d«      ‚t        |t        t        f«      xs t        |t        t        f«      }|rB | j                  di d|“d|“d|“d	|“d
|“d|“d|“d|	“d|
“d|“d|“d|“d|“d|“d|“d|“|¤ŽS  | j                  di d|“d|“d|“d	|“d
|“d|“d|“d|	“d|
“d|“d|“d|“d|“d|“d|“d|“|¤ŽS )NFTr   zdtable input must of type `pd.DataFrame` (single example), `List[pd.DataFrame]` (batch of examples). zRquery input must of type `str` (single example), `List[str]` (batch of examples). rï   rð   rñ   rò   ró   rô   rõ   r÷   rø   rù   rú   rû   rü   rý   rþ   rÿ   r    )
rY   ÚpdÚ	DataFramer,   r€   r[   r�   rº   Úbatch_encode_plusÚencode_plus)rM   rï   rð   rñ   rò   ró   rô   rõ   rö   r÷   rø   rù   rú   rû   rü   rý   rþ   rÿ   rŠ   Úvalid_tableÚvalid_queryÚ
is_batcheds                         r"   r  zTapexTokenizer.source_call_func=  s=  € ð, ˆØˆô �eœRŸ\™\Ô*Ø‰KÜ˜¤¤e˜}Ô-´*¸UÀ1¹XÄrÇ|Á|Ô2TØˆKð ˆ=œJ u¬cÔ2Ø‰KÜ˜¤¤e˜}Ô-Ü�5‹z˜QŠ¤*¨U°1©X´sÔ";Ø"�áÜØvóð ñ ÜÐqÓrÐrÜ ¬¬e }Ó5ÒY¼ÀEÌDÔRWÈ=Ó9Yˆ
áØ)�4×)Ñ)ò Ùðáðñ ðñ $6ð	ñ
  ðñ &ðñ &ðñ $6ðñ  .ðñ '<ðñ '<ðñ +Dðñ ,Fðñ (>ðñ ,ðñ   Øñ#ð ð( $�4×#Ñ#ò Ùðáðñ ðñ $6ð	ñ
  ðñ &ðñ &ðñ $6ðñ  .ðñ '<ðñ '<ðñ +Dðñ ,Fðñ (>ðñ ,ðñ   Øñ#ð r!   c           	      óÀ   —  | j                   d|||||dœ|¤Ž\  }}}} | j                  di d|“d|“d|“d|“d|“d|“d|“d	|“d
|	“d|
“d|“d|“d|“d|“d|“d|“|¤ŽS )z}
        <Tip warning={true}>

        This method is deprecated, `__call__` should be used instead.

        </Tip>
        ©ró   rô   rõ   r÷   rÿ   rï   rð   rñ   rò   Úpadding_strategyÚtruncation_strategyrõ   r÷   rø   rù   rú   rû   rü   rý   rþ   rÿ   r    )Ú"_get_padding_truncation_strategiesÚ_batch_encode_plus)rM   rï   rð   rñ   rò   ró   rô   rõ   r÷   rø   rù   rú   rû   rü   rý   rþ   rÿ   rŠ   r  r  s                       r"   r  z TapexTokenizer.batch_encode_plus”  sü   € ð: ElÀD×DkÑDkð E
ØØ!Ø!Ø1ØñE
ð ñE
ÑAÐÐ-¨z¸6ð 'ˆt×&Ñ&ò 
Ùð
áð
ñ ð
ñ  2ð	
ñ
 .ð
ñ !4ð
ñ "ð
ñ  2ð
ñ *ð
ñ #8ð
ñ #8ð
ñ '@ð
ñ (Bð
ñ $:ð
ñ (ð
ñ  Øñ#
ð 	
r!   r  r  c                 ó\  — |rt        d«      ‚t        |t        j                  «      r%t        |t        t
        f«      r|gt        |«      z  }t        |t        t
        f«      rt        |t        «      r|gt        |«      z  }| j                  |||||||||	||||||
|¬«      }t        |«      S )Nzª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  r  rõ   rö   r÷   rú   rù   rû   rü   rþ   rø   rÿ   )
ÚNotImplementedErrorrY   r  r  r,   r€   r�   r[   Ú_batch_prepare_for_modelr   )rM   rï   rð   rñ   rò   r  r  rõ   rö   r÷   rø   rù   rú   rû   rü   rý   rþ   rÿ   rŠ   Úbatch_outputss                       r"   r  z!TapexTokenizer._batch_encode_plusÎ  sÃ   € ñ* "Ü%ð8óð ô �eœRŸ\™\Ô*¬z¸%Ä$ÌÀÔ/Oð �Gœc %›jÑ(ˆEÜ�eœd¤E˜]Ô+´
¸5Ä#Ô0Fð �Gœc %›jÑ(ˆEà×5Ñ5ØØØØ1Ø-Ø 3Ø!ØØ1Ø"7Ø"7Ø&?Ø'AØ'Ø)Øð! 6ó 
ˆô& ˜]Ó+Ð+r!   c                 óD  — i }|€dgt        |«      z  }t        |||«      D ]Ï  \  }}}| j                  |||||¬«      }| j                  r|j	                  «       }| j                  |«      }| j                  | j                  |«      |t        j                  j                  |j                  ||dd||||dd|¬«      }|j                  «       D ]"  \  }}||vrg ||<   ||   j                  |«       Œ$ ŒÑ | j                  ||j                  ||	|¬«      }t        ||
¬«      }|S )zÙ
        This method 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.
        N©r  rõ   F©Úidsrò   ró   rô   rõ   rö   r÷   rú   rù   rû   rü   rþ   rø   Úprepend_batch_axisrÿ   ©ró   rõ   r÷   rú   ©Útensor_type)r�   r2   Úprepare_table_queryrk   ÚlowerÚtokenizeÚprepare_for_modelÚconvert_tokens_to_idsr   Ú
DO_NOT_PADÚvaluerz   r/   Úpadr   )rM   rï   rð   rñ   rò   r  r  rõ   rö   r÷   rø   rù   rú   rû   rü   rþ   rÿ   r  Ú_tableÚ_queryÚ_answerr£   rÓ   Úoutputsrµ   r$  s                             r"   r  z'TapexTokenizer._batch_prepare_for_model  sa  € ð0 ˆØˆ>Ø�Vœc %›jÑ(ˆFÜ'*¨5°%¸Ó'@ò 	1Ñ#ˆF�F˜GØ×+Ñ+Ø˜ Ð=PÐ]gð ,ó ˆDð ×!Ò!Ø—z‘z“|�à—]‘] 4Ó(ˆFØ×,Ñ,Ø×.Ñ.¨vÓ6Ø#5Ü'×2Ñ2×8Ñ8Ø.×4Ñ4Ø%ØØ#'Ø&+Ø&;Ø*CØ+EØ+Ø#Ø#(Øð -ó ˆGð$ &Ÿm™m›oò 1‘
��UØ˜mÑ+Ø)+�M #Ñ&Ø˜cÑ"×)Ñ)¨%Õ0ñ1ð7	1ð@ Ÿ™ØØ$×*Ñ*Ø!Ø1Ø"7ð !ó 
ˆô & mÀÔPˆàÐr!   c	                 óB   —  | j                   |f|||||||dœ|	¤Ž}
|
d   S )a6  
        Prepare a table, a string and possible answer for the model. This method does not return token type IDs,
        attention masks, etc. which are necessary for the model to work correctly. Use this method if you want to build
        your processing on your own, otherwise refer to `__call__`.
        )rð   rñ   rò   ró   rô   rõ   rø   ra   )r  )rM   rï   rð   rñ   rò   ró   rô   rõ   rø   rŠ   Úencoded_inputss              r"   rÉ   zTapexTokenizer.encodeO  sJ   € ð$ *˜×)Ñ)Øð

àØØ1ØØ!Ø!Ø)ñ

ð ñ

ˆð ˜kÑ*Ð*r!   c                 ó€   —  | j                   d|||||dœ|¤Ž\  }}}} | j                  d|||||||||	|
|||||dœ|¤ŽS )Nr  )rï   rð   rñ   rò   r  r  rõ   r÷   rø   rù   rú   rü   rý   rþ   rÿ   r    )r  Ú_encode_plus)rM   rï   rð   rñ   rò   ró   rô   rõ   r÷   rø   rù   rú   rü   rý   rþ   rÿ   rŠ   r  r  s                      r"   r  zTapexTokenizer.encode_pluso  s—   € ð* ElÀD×DkÑDkð E
ØØ!Ø!Ø1ØñE
ð ñE
ÑAÐÐ-¨z¸6ð !ˆt× Ñ ð 
ØØØØ1Ø-Ø 3Ø!Ø1Ø)Ø"7Ø"7Ø'AØ#9Ø'Øñ
ð  ñ!
ð 	
r!   c                 ó(  — |rt        d«      ‚| j                  |||||¬«      }| j                  r|j                  «       }| j	                  |«      }| j                  | j                  |«      ||j                  |j                  |||	|
d||||||¬«      S )Ná  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/2674r  T©r  rò   ró   rô   rõ   rö   r÷   rø   r  rú   rù   rû   rü   rþ   rÿ   )r  r  rk   r  r   r!  r"  r$  )rM   rï   rð   rñ   rò   r  r  rõ   rö   r÷   rø   rù   rú   rû   rü   rý   rþ   rÿ   rŠ   r£   rÓ   s                        r"   r-  zTapexTokenizer._encode_plus   s¾   € ñ* "Ü%ðHóð ð ×'Ñ'Ø�5˜&Ð6IÐV`ð (ó 
ˆð
 ×ÒØ—:‘:“<ˆDà—‘˜tÓ$ˆà×%Ñ%Ø×*Ñ*¨6Ó2Ø1Ø$×*Ñ*Ø*×0Ñ0Ø!ØØ1Ø)Ø#Ø"7Ø"7Ø&?Ø'AØ'Øð &ó 
ð 	
r!   c                 ó¶   — t        |t        t        f«      }|r! | j                  d||||||||	|
|||||dœ|¤ŽS  | j                  d||||||||	|
|||||dœ|¤ŽS )zå
        The method tokenizes and prepares the answer label for the model.

        Args:
            answer (`str` or `List[str]`):
                Corresponding answer supervision to the queries for training the model.
        )rñ   rò   ró   rô   rõ   r÷   rø   rù   rú   rû   rü   rý   rþ   rÿ   r    )rY   r,   r€   Útarget_batch_encode_plusÚtarget_encode_plus)rM   rñ   rò   ró   rô   rõ   rö   r÷   rø   rù   rú   rû   rü   rý   rþ   rÿ   rŠ   r  s                     r"   r  zTapexTokenizer.target_call_funcÚ  sµ   € ô4   ¬¬u¨Ó6ˆ
áØ0�4×0Ñ0ð ØØ#5ØØ%Ø%Ø#5Ø-Ø&;Ø&;Ø*CØ+EØ'=Ø+Øñð ñð ð$ +�4×*Ñ*ð ØØ#5ØØ%Ø%Ø#5Ø-Ø&;Ø&;Ø*CØ+EØ'=Ø+Øñð ñð r!   c                 ó~   —  | j                   d|||||dœ|¤Ž\  }}}} | j                  d|||||||||	|
||||dœ|¤ŽS )z¾
        Prepare answer strings for the model.

        Args:
            answer `List[str]`:
                Corresponding answer supervision to the queries for training the model.
        r  )rñ   rò   r  r  rõ   r÷   rø   rù   rú   rû   rü   rý   rþ   rÿ   r    )r  Ú_target_batch_encode_plus)rM   rñ   rò   ró   rô   rõ   r÷   rø   rù   rú   rû   rü   rý   rþ   rÿ   rŠ   r  r  s                     r"   r2  z'TapexTokenizer.target_batch_encode_plus  s”   € ð4 ElÀD×DkÑDkð E
ØØ!Ø!Ø1ØñE
ð ñE
ÑAÐÐ-¨z¸6ð .ˆt×-Ñ-ð 
ØØ1Ø-Ø 3Ø!Ø1Ø)Ø"7Ø"7Ø&?Ø'AØ#9Ø'Øñ
ð ñ
ð 	
r!   c                 óê  — i }|D ]µ  }| j                   r|j                  «       }| j                  |«      }| j                  | j	                  |«      |t
        j                  j                  |j                  ||d d|	|||d d|¬«      }|j                  «       D ]"  \  }}||vrg ||<   ||   j                  |«       Œ$ Œ· | j                  ||j                  |||
¬«      }t        ||¬«      }t        |«      S )NFr  r  r  )rk   r  r   r!  r"  r   r#  r$  rz   r/   r%  r   )rM   rñ   rò   r  r  rõ   rö   r÷   rø   rù   rú   rû   rü   rý   rþ   rÿ   rŠ   r  r£   rÓ   r)  rµ   r$  s                          r"   r5  z(TapexTokenizer._target_batch_encode_plusP  s  € ð& ˆØò 	1ˆDØ×!Ò!Ø—z‘z“|�à—]‘] 4Ó(ˆFØ×,Ñ,Ø×.Ñ.¨vÓ6Ø#5Ü'×2Ñ2×8Ñ8Ø.×4Ñ4Ø%ØØ#'Ø&+Ø&;Ø*CØ+EØ+Ø#Ø#(Øð -ó ˆGð$ &Ÿm™m›oò 1‘
��UØ˜mÑ+Ø)+�M #Ñ&Ø˜cÑ"×)Ñ)¨%Õ0ñ1ð/	1ð8 Ÿ™ØØ$×*Ñ*Ø!Ø1Ø"7ð !ó 
ˆô & mÀÔPˆä˜]Ó+Ð+r!   c           
      ó>   —  | j                   d||||||dœ|¤Ž}|d   S )a¢  
        Prepare the answer string for the model. This method does not return token type IDs, attention masks, etc.
        which are necessary for the model to work correctly. Use this method if you want to build your processing on
        your own, otherwise refer to `__call__`.

        Args:
            answer `str`:
                Corresponding answer supervision to the queries for training the model
        )rñ   rò   ró   rô   rõ   rø   ra   r    )r3  )	rM   rñ   rò   ró   rô   rõ   rø   rŠ   Úencoded_outputss	            r"   Útarget_encodezTapexTokenizer.target_encodeŒ  sD   € ð& 2˜$×1Ñ1ð 
ØØ1ØØ!Ø!Ø)ñ
ð ñ
ˆð ˜{Ñ+Ð+r!   c                 ó|   —  | j                   d|||||dœ|¤Ž\  }}}} | j                  d|||||||||	|
|||dœ|¤ŽS )z¹
        Prepare a answer string for the model.

        Args:
            answer `str`:
                Corresponding answer supervision to the queries for training the model.
        r  )rñ   rò   r  r  rõ   r÷   rø   rù   rú   rü   rý   rþ   rÿ   r    )r  Ú_target_encode_plus)rM   rñ   rò   ró   rô   rõ   r÷   rø   rù   rú   rü   rý   rþ   rÿ   rŠ   r  r  s                    r"   r3  z!TapexTokenizer.target_encode_plus«  s‘   € ð2 ElÀD×DkÑDkð E
ØØ!Ø!Ø1ØñE
ð ñE
ÑAÐÐ-¨z¸6ð (ˆt×'Ñ'ð 
ØØ1Ø-Ø 3Ø!Ø1Ø)Ø"7Ø"7Ø'AØ#9Ø'Øñ
ð ñ
ð 	
r!   c                 ó   — |rt        d«      ‚|}| j                  r|j                  «       }| j                  |«      }| j	                  | j                  |«      ||j                  |j                  ||||d|
|	||||¬«      S )Nr/  Tr0  )r  rk   r  r   r!  r"  r$  )rM   rñ   rò   r  r  rõ   rö   r÷   rø   rù   rú   rû   rü   rý   rþ   rÿ   rŠ   r£   rÓ   s                      r"   r;  z"TapexTokenizer._target_encode_plusÞ  s¡   € ñ& "Ü%ðHóð ð ˆð ×ÒØ—:‘:“<ˆDà—‘˜tÓ$ˆà×%Ñ%Ø×*Ñ*¨6Ó2Ø1Ø$×*Ñ*Ø*×0Ñ0Ø!ØØ1Ø)Ø#Ø"7Ø"7Ø&?Ø'AØ'Øð &ó 
ð 	
r!   c                 ó  — |j                   s£t        |j                  «      |j                  «       D ��cg c]  \  }}t        |j                  «      ‘Œ c}}dœ}| j                  |||«       |t        j                  k(  r| j                  ||||¬«       | j                  j                  |«      }	nd}	|	dk(  rt        j                  dd|› d�z   «       |dk(  rt        j                  d«       |r|	rdnd}
|r
||
z   |	z   }|S |	}|S c c}}w )	zã
        This method can be used to linearize a table and add a corresponding query.

        Optionally, it also handles truncation of the table (cells).

        An answer can be provided for more precise truncation.
        )rD   rE   )rõ   rX   zUYou provide an empty table, or all cells contain much tokens (e.g., >= 1024 tokens). z@Please carefully check the corresponding table with the query : ú.z7You provide nothing to query with respect to the table.rF   )Úemptyr,   ÚcolumnsÚiterrowsÚvaluesÚtruncate_table_cellsr   r   Útruncate_table_rowsr‰   rQ   rã   ré   )rM   rï   rð   rñ   r  rõ   rO   rV   rB   Úlinear_tableÚ	separatorÚjoint_inputs               r"   r  z"TapexTokenizer.prepare_table_query  s  € ð �{Š{ä'+¨E¯M©MÓ':Ðdi×drÑdrÓdt×DuÑZ`ÐZ[Ð]`ÄTÈ#Ï*É*ÕEUÓDuÑvˆMð
 ×%Ñ% m°U¸FÔCØ"Ô&=×&NÑ&NÒNØ×(Ñ(¨¸¸vÐR\Ð(Ô]ð  ×/Ñ/×=Ñ=¸mÓL‰LàˆLà˜2ÒÜ�N‰NØgØTÐUZÐT[Ð[\Ð]ñ^ôð �BŠ;Ü�N‰NÐTÔUá ¡\‘C°rˆ	Ù<A�u˜yÑ(¨<Ñ7ˆàÐð HTˆàÐùó3 Evs   ´DrB   Úquestionc                 óà   — i }|d   D ]3  }t        |«      D ]#  \  }}| j                  |«      }|€Œ|||<   |||<   Œ% Œ5 |�/t        |«      D ]   \  }}	|	|j                  «       v sŒ||	   ||<   Œ" y y )NrE   )rJ   Útruncate_cellÚkeys)
rM   rB   rH  rñ   Úcell_mappingrV   rO   ÚcellrJ  Úcases
             r"   rC  z#TapexTokenizer.truncate_table_cells@  sŸ   € àˆØ  Ñ(ò 	+ˆCÜ$ S›>ò +‘��4Ø $× 2Ñ 2°4Ó 8�Ø Ñ,Ø)6�L Ñ&Ø*�C˜’Fñ	+ð	+ð ÐÜ$ VÓ,ò 3‘��4Ø˜<×,Ñ,Ó.Ò.Ø ,¨TÑ 2�F˜1’Iñ3ð r!   c                 ó  — t        |t        «      st        |t        «      r|S |j                  «       dk7  rL| j	                  |«      }t        |«      | j                  k\  r"|d | j                   }| j                  |«      }|S y |S )NrX   )rY   rZ   r±   rL   r   r�   ru   rÕ   )rM   r^   Ú
try_tokensÚretain_tokensÚretain_cell_values        r"   rJ  zTapexTokenizer.truncate_cellP  s   € ä�j¤#Ô&¬*°ZÄÔ*GØÐØ×ÑÓ Ò#ØŸ™ zÓ2ˆJÜ�:‹ $×"6Ñ"6Ò6Ø *Ð+A¨T×-AÑ-AÐ B�Ø$(×$AÑ$AÀ-Ó$PÐ!Ø(Ð(ààÐr!   c                 ó,  — | j                  |||«      \  }}| j                  ||||«       d}t        |d   «      D ]O  \  }}	| j                  j	                  |	|dz   «      }
t        | j                  |
«      «      }||kD  r n||z  }|dz  }ŒQ |d   |d…= y)a  
        Args:
        table_content:
            {"header": xxx, "rows": xxx, "id" (Optionally): xxx}

        question:
            natural language sentence

        answer:
            if for training, is the supervision; otherwise will be empty
        r   rE   r&   N)Úestimate_delete_ratioÚdelete_unrelated_rowsrJ   r‰   rK   r�   r   )rM   rB   rH  rñ   rõ   Údelete_ratioÚremain_token_lenÚmaximum_keep_rowsÚindrP   Úvalue_stringÚvalue_token_lens               r"   rD  z"TapexTokenizer.truncate_table_rows_  s¼   € ð *.×)CÑ)CÀMÐS[Ð]gÓ)hÑ&ˆÐ&à×"Ñ" =°(¸FÀLÔQàÐÜ )¨-¸Ñ*?Ó @ò 	#ÑˆC�Ø×/Ñ/×;Ñ;¸KÈÈqÉÓQˆLÜ! $§-¡-°Ó"=Ó>ˆOàÐ!1Ò1ÙØ Ñ/ÐØ Ñ"Ñð	#ð ˜&Ñ!Ð"3Ñ"4Ñ5r!   c                 ó¶  — d|vsd|vrt        d«      ‚| j                  |d¬«      }| j                  j                  |d   «      }| j                  |d¬«      }t	        |«      t	        |«      z   }||z
  }d}	t        |d   «      D ]'  \  }
}|	| j                  j                  |d«      d	z   z  }	Œ) t	        | j                  |	«      «      }||k  rd
|fS d||z  z
  |fS )NrD   rE   z?The table content should contain both 'header' and 'rows' keys.T)rò   FrX   éd   rF   g        g      ð?)rº   r   r‰   rI   r�   rJ   rK   )rM   rB   rH  rõ   Úquestion_tokensÚheader_stringÚheader_tokensÚused_token_lenrW  rZ  Ú_rP   r[  s                r"   rT  z$TapexTokenizer.estimate_delete_ratio|  s  € Ø˜=Ñ(¨F¸-Ñ,GÜÐ^Ó_Ð_àŸ-™-¨ÀT˜-ÓJˆà×,Ñ,×;Ñ;¸MÈ(Ñ<SÓTˆØŸ™ mÈ˜ÓNˆä˜_Ó-´°MÓ0BÑBˆà%¨Ñ6ÐàˆÜ'¨°fÑ(=Ó>ò 	U‰NˆAˆ{à˜D×0Ñ0×<Ñ<¸[È#ÓNÐQTÑTÑT‰Lð	Uô ˜dŸm™m¨LÓ9Ó:ˆàÐ-Ò-àÐ(Ð(Ð(ð Ð)¨OÑ;Ñ;Ð=MÐMÐMr!   rV  c           	      óð  — g }g }|�t        |«      dk(  rt        «       }n|D �ch c]  }|j                  «       ’Œ }}|�|j                  |j	                  «       «       t        |j                  d«      j	                  d«      «      }	t        |d   «      }
t        |d   «      D ]�  \  }}|D �ch c]  }t        |«      j                  «       ’Œ }}t        ||z  «      dk(  r#t        ||	z  «      dk(  r|j                  |«       Œ`|j                  |dz
  |dz
  ||dz   |dz   g«       Œƒ |D �cg c]	  }||vsŒ|‘Œ }}t        t        |«      t        t        |d   «      |z  «      «      }t        j                  ||¬«      }t        t        |
«      «      D ]  }||v sŒ|d   |= Œ d	|v rAt        |«      dkD  r2t         j#                  d
j%                  t        |«      |d	   «      «       yyyc c}w c c}w c c}w )zC
        The argument answer is used only during training.
        Nr   z?!.,rF   rE   r¶   r&   )rŒ   ÚidzDelete {:.2f} rows in table {})r�   r9   r  Úupdater   rL   rJ   r[   r/   r¹   r·   rZ   ÚrandomÚchoicesÚreversedr-   rã   ré   Úformat)rM   rB   rH  rñ   rV  Útruncated_unrelated_indicesÚrelated_indicesÚ
answer_setÚans_exÚquestion_setÚrow_max_lenÚ_row_idxrV   rM  Ú	lower_rowÚ
drop_itemsÚdrop_row_indicess                    r"   rU  z$TapexTokenizer.delete_unrelated_rows–  s  € ð ')Ð#ØˆØˆ>œS ›[¨AÒ-Ü›‰Jà7=Ö>¨V˜&Ÿ,™,�.Ð>ˆJÐ>àÐØ×Ñ˜hŸn™nÓ.Ô/Ü˜8Ÿ>™>¨&Ó1×7Ñ7¸Ó<Ó=ˆÜ˜-¨Ñ/Ó0ˆÜ& }°VÑ'<Ó=ò 	k‰MˆH�cØ7:Ö;¨tœ˜T›Ÿ™Õ*Ð;ˆIÐ;Ü�9˜zÑ)Ó*¨aÒ/´C¸	ÀLÑ8PÓ4QÐUVÒ4VØ+×2Ñ2°8Õ<ð  ×&Ñ&¨°1©°hÀ±lÀHÈhÐYZÉlÐ\dÐghÑ\hÐ'iÕjð	kð &Aö'
Ø!ÀHÐTcÒDcŠHð'
Ð#ð '
ô œÐ8Ó9¼3¼sÀ=ÐQWÑCXÓ?YÐ\hÑ?hÓ;iÓjˆ
Ü!Ÿ>™>Ð*EÈÔTÐä ¤ {Ó!3Ó4ò 	4ˆHØÐ+Ò+Ø! &Ñ)¨(Ñ3ð	4ð
 �=Ñ ¤SÐ)9Ó%:¸QÒ%>Ü�N‰NÐ;×BÑBÄ3ÐGWÓCXÐZgÐhlÑZmÓnÕoð &?Ð ùò7 ?ùò <ùò'
s   ¤G)Â- G.Ä+	G3Ä5G3)TÚreplaceú<s>ú</s>rv  ru  z<unk>z<pad>z<mask>Fé   r§   )NF)F)NNNTFNNr   NNNNFFFFT)NNTFNNr   NNNNFFFFT)NNTFNNNNNNFFFFT)NNTFNNN)NNTFNNNNNNFFFT)TFNNr   NNNNFFFFT)TFNNNNNNFFFFT)TFNNN)TFNNNNNNFFFT)NN)>r   r   r   r   rå   Úvocab_files_namesÚmodel_input_namesrˆ   r   rZ   r   rš   Úboolr�   rŸ   r¥   Úpropertyr©   r¬   rÁ   rË   rÍ   rÏ   rÕ   r[   r   rî   r   r   Ú-TAPEX_ENCODE_PLUS_ADDITIONAL_KWARGS_DOCSTRINGr   r   r   r   r   r   r  r  r  r#  ÚDO_NOT_TRUNCATEr  r  r   rÉ   r  r-  r  r2  r5  r9  r3  r;  r  r   rC  rJ  rD  rT  r±   rU  Ú__classcell__)r‘   s   @r"   r`   r`   ±   s`  ø„ ñEðN *ÐØ$Ð&6Ð7Ðð ØØØØØØØØØØõ@:ðF JNñAØ ™9ðAØ3;¸DÀ¹IÑ3FðAà	ˆc‰óAð0 sxñXØ ™9ðXØ3;¸DÀ¹IÑ3FðXØkoðXà	ˆc‰õXð4 JNñLØ ™9ðLØ3;¸DÀ¹IÑ3FðLà	ˆc‰óLó*ð ñ!ó ð!ò?ò(òTòIò'òñ&¨cð &ÀHÈSÁMð &Ð]bÐcfÑ]gó &ñ: Ð/Ð1^Ó_ð >BØ=AØ(,Ø#'Ø5:Ø;?Ø$(ØØ,0Ø;?Ø04Ø04Ø*/Ø+0Ø',Ø#Øñ%KUà�^ T¨.Ñ%9Ð9Ñ:ðKUð ˜˜i¨¨i©Ð8Ñ9Ñ:ðKUð �c˜4 ™9�nÑ%ð	KUð
 !ðKUð �t˜S /Ð1Ñ2ðKUð ˜$ Ð%7Ð7Ñ8ðKUð ˜S‘MðKUð ðKUð % S™MðKUð !  s¨J Ñ!7Ñ8ðKUð  (¨™~ðKUð  (¨™~ðKUð $(ðKUð %)ðKUð  !%ð!KUð" ð#KUð$ ð%KUð( 
ò)KUó `ðKUð` >BØ(,Ø#'Ø5:Ø;?Ø$(ØØ,0Ø;?Ø04Ø04Ø*/Ø+0Ø',Ø#Øñ%Uà�^ T¨.Ñ%9Ð9Ñ:ðUð ˜˜i¨¨i©Ð8Ñ9Ñ:ðUð �c˜4 ™9�nÑ%ð	Uð
 !ðUð �t˜S /Ð1Ñ2ðUð ˜$ Ð%7Ð7Ñ8ðUð ˜S‘MðUð ðUð % S™MðUð !  s¨J Ñ!7Ñ8ðUð  (¨™~ðUð  (¨™~ðUð $(ðUð %)ðUð  !%ð!Uð" ð#Uð$ ð%Uð( 
ó)Uñn Ð/Ð1^Ó_ð ,0Ø Ø#'Ø5:Ø'+Ø$(Ø,0Ø;?Ø04Ø04Ø*/Ø+0Ø',Ø#Øñ#7
à�^ T¨.Ñ%9Ð9Ñ:ð7
ð ˜˜Y™Ñ(ð7
ð �S‘	ð	7
ð
 !ð7
ð �t˜S /Ð1Ñ2ð7
ð ˜$ ˜)Ñ$ð7
ð ˜S‘Mð7
ð % S™Mð7
ð !  s¨J Ñ!7Ñ8ð7
ð  (¨™~ð7
ð  (¨™~ð7
ð $(ð7
ð %)ð7
ð !%ð7
ð  ð!7
ð" ð#7
ð& 
ò'7
ó `ð7
ðx ,0Ø&*Ø#'Ø,;×,FÑ,FØ2D×2TÑ2TØ$(ØØ,0Ø;?Ø04Ø04Ø*/Ø+0Ø',Ø#Øñ%8,à�^ T¨.Ñ%9Ð9Ñ:ð8,ð ˜˜Y™Ñ(ð8,ð ˜˜c™Ñ#ð	8,ð
 !ð8,ð *ð8,ð 0ð8,ð ˜S‘Mð8,ð ð8,ð % S™Mð8,ð !  s¨J Ñ!7Ñ8ð8,ð  (¨™~ð8,ð  (¨™~ð8,ð $(ð8,ð %)ð8,ð  !%ð!8,ð" ð#8,ð$ ð%8,ð( 
ó)8,ñt Ð/Ð1^Ó_ð >BØ26Ø#'Ø,;×,FÑ,FØ2D×2TÑ2TØ$(ØØ,0Ø(,Ø04Ø04Ø*/Ø+0Ø#Øñ#Dà�^ T¨.Ñ%9Ð9Ñ:ðDð ˜˜i¨¨i©Ð8Ñ9Ñ:ðDð ˜˜s D¨¡I˜~Ñ.Ñ/ð	Dð
 !ðDð *ðDð 0ðDð ˜S‘MðDð ðDð % S™MðDð ! ™ðDð  (¨™~ðDð  (¨™~ðDð $(ðDð %)ðDð  ð!Dð" ð#Dð$ 
ò%Dó `ðDñL Ð/Ó0ð &*Ø $Ø#'Ø5:ØTXØ$(Ø;?ñ+àð+ð ˜	Ñ"ð+ð ˜‘ð	+ð
 !ð+ð �t˜S /Ð1Ñ2ð+ð ˜$ Ð%7Ð9PÐPÑQð+ð ˜S‘Mð+ð !  s¨J Ñ!7Ñ8ð+ð 
ˆc‰ò+ó 1ð+ñ> Ð/Ð1^Ó_ð &*Ø $Ø#'Ø5:Ø'+Ø$(Ø,0Ø;?Ø04Ø04Ø+0Ø',Ø#Øñ!.
àð.
ð ˜	Ñ"ð.
ð ˜‘ð	.
ð
 !ð.
ð �t˜S /Ð1Ñ2ð.
ð ˜$ ˜)Ñ$ð.
ð ˜S‘Mð.
ð % S™Mð.
ð !  s¨J Ñ!7Ñ8ð.
ð  (¨™~ð.
ð  (¨™~ð.
ð %)ð.
ð !%ð.
ð ð.
ð  ð!.
ð$ 
ò%.
ó `ð.
ðf &*Ø $Ø#'Ø,;×,FÑ,FØ2D×2TÑ2TØ$(ØØ,0Ø;?Ø04Ø04Ø*/Ø+0Ø',Ø#Øñ%8
àð8
ð ˜	Ñ"ð8
ð ˜‘ð	8
ð
 !ð8
ð *ð8
ð 0ð8
ð ˜S‘Mð8
ð ð8
ð % S™Mð8
ð !  s¨J Ñ!7Ñ8ð8
ð  (¨™~ð8
ð  (¨™~ð8
ð $(ð8
ð %)ð8
ð  !%ð!8
ð" ð#8
ð$ ð%8
ð( 
ó)8
ðz $(Ø5:Ø;?Ø$(ØØ,0Ø;?Ø04Ø04Ø*/Ø+0Ø',Ø#Øñ!?à�c˜4 ™9�nÑ%ð?ð !ð?ð �t˜S /Ð1Ñ2ð	?ð
 ˜$ Ð%7Ð7Ñ8ð?ð ˜S‘Mð?ð ð?ð % S™Mð?ð !  s¨J Ñ!7Ñ8ð?ð  (¨™~ð?ð  (¨™~ð?ð $(ð?ð %)ð?ð !%ð?ð ð?ð  ð!?ð$ 
ó%?ðH $(Ø5:Ø'+Ø$(Ø,0Ø;?Ø04Ø04Ø*/Ø+0Ø',Ø#Øñ3
à�S‘	ð3
ð !ð3
ð �t˜S /Ð1Ñ2ð	3
ð
 ˜$ ˜)Ñ$ð3
ð ˜S‘Mð3
ð % S™Mð3
ð !  s¨J Ñ!7Ñ8ð3
ð  (¨™~ð3
ð  (¨™~ð3
ð $(ð3
ð %)ð3
ð !%ð3
ð ð3
ð ð3
ð" 
ó#3
ðp $(Ø,;×,FÑ,FØ2D×2TÑ2TØ$(ØØ,0Ø;?Ø04Ø04Ø*/Ø+0Ø',Ø#Øñ!:,à�S‘	ð:,ð !ð:,ð *ð	:,ð
 0ð:,ð ˜S‘Mð:,ð ð:,ð % S™Mð:,ð !  s¨J Ñ!7Ñ8ð:,ð  (¨™~ð:,ð  (¨™~ð:,ð $(ð:,ð %)ð:,ð !%ð:,ð ð:,ð  ð!:,ð$ 
ó%:,ð~ $(Ø5:ØTXØ$(Ø;?ñ,àð,ð !ð,ð �t˜S /Ð1Ñ2ð	,ð
 ˜$ Ð%7Ð9PÐPÑQð,ð ˜S‘Mð,ð !  s¨J Ñ!7Ñ8ð,ð 
ˆc‰ó,ðD $(Ø5:Ø'+Ø$(Ø,0Ø;?Ø04Ø04Ø+0Ø',Ø#Øñ1
àð1
ð !ð1
ð �t˜S /Ð1Ñ2ð	1
ð
 ˜$ ˜)Ñ$ð1
ð ˜S‘Mð1
ð % S™Mð1
ð !  s¨J Ñ!7Ñ8ð1
ð  (¨™~ð1
ð  (¨™~ð1
ð %)ð1
ð !%ð1
ð ð1
ð ð1
ð  
ó!1
ðl $(Ø,;×,FÑ,FØ2D×2TÑ2TØ$(ØØ,0Ø;?Ø04Ø04Ø*/Ø+0Ø',Ø#Øñ!4
àð4
ð !ð4
ð *ð	4
ð
 0ð4
ð ˜S‘Mð4
ð ð4
ð % S™Mð4
ð !  s¨J Ñ!7Ñ8ð4
ð  (¨™~ð4
ð  (¨™~ð4
ð $(ð4
ð %)ð4
ð !%ð4
ð ð4
ð  ð!4
ð$ 
ó%4
ðt Ø! #Ð'9Ð;RÐ"RÑSØó*ðX3°$ð 3À#ð 3Ètó 3ò ð  nrñ6Ø!ð6Ø-0ð6Ø:BÀ5ÈÈdÐSVÉiÈÑCXÑ:Yó6ñ:N°4ð NÀ3ó Nð4%p°4ð %pÀ3ð %pÐPTð %pÐdi÷ %pr!   r`   )*r   rw   rà   rf  Ú	functoolsr   Útypingr   r   r   r   r   Úregexr„   Ú
file_utilsr
   r   r   r   r   Útokenization_utilsr   r   Útokenization_utils_baser   r   r   r   Úutilsr   Úpandasr  Ú
get_loggerr   rã   rå   r   r|  r7   r?   rA   r`   r    r!   r"   ú<module>rˆ     s§   ðñ &ã Û 	Û Ý ß 5Õ 5ã ç mÕ mß Bß mÓ mÝ ñ ÔÛð 
ˆ×	Ñ	˜HÓ	%€à#/ÀÑMÐ ô*˜lô *ð31Ð -ñl ƒñó ðò,
÷$9ñ $9ôNJpÐ(õ Jpr!   