§
    ‚Štj…M  ã                   óØ   — 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	 ddl
mZ  ej        e¦  «        ZddiZd„ Z G d	„ d
¦  «        Z G d„ d¦  «        Zd„ Z G d„ de¦  «        ZdgZdS )é    N)ÚIterableé   )ÚPreTrainedTokenizerÚ_is_controlÚ_is_punctuationÚ_is_whitespace)ÚloggingÚ
vocab_filezprophetnet.tokenizerc                 ó^   — |                       ¦   «         } | sg S |                      ¦   «         }|S )z@Runs basic whitespace cleaning and splitting on a piece of text.)ÚstripÚsplit)ÚtextÚtokenss     út/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/transformers/models/prophetnet/tokenization_prophetnet.pyÚwhitespace_tokenizer      s.   € à�:Š:‰<Œ<€DØð Øˆ	Ø�ZŠZ‰\Œ\€FØ€Mó    c                   óL   — e Zd ZdZ	 	 	 	 	 dd„Zdd„Zd„ Zdd„Zd„ Zd	„ Z	d
„ Z
dS )ÚBasicTokenizeraª  
    Constructs a BasicTokenizer that will run basic tokenization (punctuation splitting, lower casing, etc.).

    Args:
        do_lower_case (`bool`, *optional*, defaults to `True`):
            Whether or not to lowercase the input when tokenizing.
        never_split (`Iterable`, *optional*):
            Collection of tokens which will never be split during tokenization. Only has an effect when
            `do_basic_tokenize=True`
        tokenize_chinese_chars (`bool`, *optional*, defaults to `True`):
            Whether or not to tokenize Chinese characters.

            This should likely be deactivated for Japanese (see this
            [issue](https://github.com/huggingface/transformers/issues/328)).
        strip_accents (`bool`, *optional*):
            Whether or not to strip all accents. If this option is not specified, then it will be determined by the
            value for `lowercase` (as in the original BERT).
        do_split_on_punc (`bool`, *optional*, defaults to `True`):
            In some instances we want to skip the basic punctuation splitting so that later tokenization can capture
            the full context of the words, such as contractions.
    TNc                 ón   — |€g }|| _         t          |¦  «        | _        || _        || _        || _        d S ©N)Údo_lower_caseÚsetÚnever_splitÚtokenize_chinese_charsÚstrip_accentsÚdo_split_on_punc)Úselfr   r   r   r   r   s         r   Ú__init__zBasicTokenizer.__init__=   sE   € ð ÐØˆKØ*ˆÔÝ˜{Ñ+Ô+ˆÔØ&<ˆÔ#Ø*ˆÔØ 0ˆÔÐÐr   c                 óh  — |r'| j                              t          |¦  «        ¦  «        n| j         }|                      |¦  «        }| j        r|                      |¦  «        }t          j        d|¦  «        }t          |¦  «        }g }|D ]…}||vrV| j	        r3| 
                    ¦   «         }| j        dur|                      |¦  «        }n| j        r|                      |¦  «        }|                     |                      ||¦  «        ¦  «         Œ†t          d                     |¦  «        ¦  «        }|S )aj  
        Basic Tokenization of a piece of text. For sub-word tokenization, see WordPieceTokenizer.

        Args:
            never_split (`List[str]`, *optional*)
                Kept for backward compatibility purposes. Now implemented directly at the base class level (see
                [`PreTrainedTokenizer.tokenize`]) List of token not to split.
        ÚNFCFú )r   Úunionr   Ú_clean_textr   Ú_tokenize_chinese_charsÚunicodedataÚ	normalizer   r   Úlowerr   Ú_run_strip_accentsÚextendÚ_run_split_on_puncÚjoin)r   r   r   Úunicode_normalized_textÚorig_tokensÚsplit_tokensÚtokenÚoutput_tokenss           r   ÚtokenizezBasicTokenizer.tokenizeM   sE  € ð CNÐc�dÔ&×,Ò,­S°Ñ-=Ô-=Ñ>Ô>Ð>ÐSWÔScˆØ×Ò Ñ%Ô%ˆð Ô&ð 	6Ø×/Ò/°Ñ5Ô5ˆDå"-Ô"7¸¸tÑ"DÔ"DÐÝ)Ð*AÑBÔBˆØˆØ ð 	Mð 	MˆEØ˜KÐ'Ð'ØÔ%ð ;Ø!ŸKšK™MœM�EØÔ)°Ð6Ð6Ø $× 7Ò 7¸Ñ >Ô >˜øØÔ'ð ;Ø ×3Ò3°EÑ:Ô:�EØ×Ò × 7Ò 7¸¸{Ñ KÔ KÑLÔLÐLÐLå+¨C¯HªH°\Ñ,BÔ,BÑCÔCˆØÐr   c                 óÄ   — t          j        d|¦  «        }g }|D ]2}t          j        |¦  «        }|dk    rŒ|                     |¦  «         Œ3d                     |¦  «        S )z$Strips accents from a piece of text.ÚNFDÚMnÚ )r%   r&   ÚcategoryÚappendr+   )r   r   ÚoutputÚcharÚcats        r   r(   z!BasicTokenizer._run_strip_accentss   si   € åÔ$ U¨DÑ1Ô1ˆØˆØð 	 ð 	 ˆDÝÔ& tÑ,Ô,ˆCØ�dŠ{ˆ{ØØ�MŠM˜$ÑÔÐÐØ�wŠw�v‰ŒÐr   c                 ó‚  — | j         r|�||v r|gS t          |¦  «        }d}d}g }|t          |¦  «        k     r|||         }t          |¦  «        r|                     |g¦  «         d}n4|r|                     g ¦  «         d}|d                              |¦  «         |dz  }|t          |¦  «        k     °|d„ |D ¦   «         S )z&Splits punctuation on a piece of text.Nr   TFéÿÿÿÿé   c                 ó8   — g | ]}d                       |¦  «        ‘ŒS )r5   )r+   )Ú.0Úxs     r   ú
<listcomp>z5BasicTokenizer._run_split_on_punc.<locals>.<listcomp>’   s"   € Ð+Ð+Ð+˜q�—’˜‘
”
Ð+Ð+Ð+r   )r   ÚlistÚlenr   r7   )r   r   r   ÚcharsÚiÚstart_new_wordr8   r9   s           r   r*   z!BasicTokenizer._run_split_on_punc~   sç   € àÔ$ð 	¨Ð)@ÀTÈ[ÐEXÐEXØ�6ˆMÝ�T‘
”
ˆØˆØˆØˆØ•#�e‘*”*ŠnˆnØ˜”8ˆDÝ˜tÑ$Ô$ð (Ø—’˜t˜fÑ%Ô%Ð%Ø!%��à!ð &Ø—M’M "Ñ%Ô%Ð%Ø!&�Ø�r”
×!Ò! $Ñ'Ô'Ð'Ø�‰FˆAð •#�e‘*”*Šnˆnð ,Ð+ FÐ+Ñ+Ô+Ð+r   c                 ó,  — g }|D ]{}t          |¦  «        }|                      |¦  «        r@|                     d¦  «         |                     |¦  «         |                     d¦  «         Œf|                     |¦  «         Œ|d                     |¦  «        S )z)Adds whitespace around any CJK character.r!   r5   )ÚordÚ_is_chinese_charr7   r+   ©r   r   r8   r9   Úcps        r   r$   z&BasicTokenizer._tokenize_chinese_chars”   s•   € àˆØð 	$ð 	$ˆDÝ�T‘”ˆBØ×$Ò$ RÑ(Ô(ð $Ø—’˜cÑ"Ô"Ð"Ø—’˜dÑ#Ô#Ð#Ø—’˜cÑ"Ô"Ð"Ð"à—’˜dÑ#Ô#Ð#Ð#Ø�wŠw�v‰ŒÐr   c                 óÊ   — |dk    r|dk    sT|dk    r|dk    sH|dk    r|dk    s<|dk    r|dk    s0|d	k    r|d
k    s$|dk    r|dk    s|dk    r|dk    s|dk    r|dk    rdS dS )z6Checks whether CP is the codepoint of a CJK character.i N  iÿŸ  i 4  i¿M  i   iß¦ i § i?· i@· i¸ i ¸ i¯Î i ù  iÿú  i ø iú TF© )r   rK   s     r   rI   zBasicTokenizer._is_chinese_char¡   s–   € ð �6Š\ˆ\˜b Fšl˜lØ�f’�  v¢ Ø�g’� "¨¢- -Ø�g’� "¨¢- -Ø�g’� "¨¢- -Ø�g’� "¨¢- -Ø�f’�  v¢ Ø�g’� "¨¢- -à�4àˆur   c                 ó  — g }|D ]g}t          |¦  «        }|dk    s|dk    st          |¦  «        rŒ-t          |¦  «        r|                     d¦  «         ŒR|                     |¦  «         Œhd                     |¦  «        S )zBPerforms invalid character removal and whitespace cleanup on text.r   iýÿ  r!   r5   )rH   r   r   r7   r+   rJ   s        r   r#   zBasicTokenizer._clean_text¹   s‹   € àˆØð 	$ð 	$ˆDÝ�T‘”ˆBØ�QŠwˆw˜" š,˜,­+°dÑ*;Ô*;˜,ØÝ˜dÑ#Ô#ð $Ø—’˜cÑ"Ô"Ð"Ð"à—’˜dÑ#Ô#Ð#Ð#Ø�wŠw�v‰ŒÐr   )TNTNTr   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r1   r(   r*   r$   rI   r#   rM   r   r   r   r   &   s¨   € € € € € ðð ð0 ØØ#ØØð1ð 1ð 1ð 1ð $ð $ð $ð $ðL	ð 	ð 	ð,ð ,ð ,ð ,ð,ð ð ðð ð ð0ð ð ð ð r   r   c                   ó    — e Zd ZdZdd„Zd„ ZdS )ÚWordpieceTokenizerzRuns WordPiece tokenization.éd   c                 ó0   — || _         || _        || _        d S r   )ÚvocabÚ	unk_tokenÚmax_input_chars_per_word)r   rW   rX   rY   s       r   r   zWordpieceTokenizer.__init__Ê   s   € ØˆŒ
Ø"ˆŒØ(@ˆÔ%Ð%Ð%r   c                 óX  — g }t          |¦  «        D �]}t          |¦  «        }t          |¦  «        | j        k    r|                     | j        ¦  «         ŒEd}d}g }|t          |¦  «        k     r…t          |¦  «        }d}	||k     r?d                     |||…         ¦  «        }
|dk    rd|
z   }
|
| j        v r|
}	n|dz  }||k     °?|	€d}n*|                     |	¦  «         |}|t          |¦  «        k     °…|r|                     | j        ¦  «         �Œ|                     |¦  «         �Œ|S )aæ  
        Tokenizes a piece of text into its word pieces. This uses a greedy longest-match-first algorithm to perform
        tokenization using the given vocabulary.

        For example, `input = "unaffable"` will return as output `["un", "##aff", "##able"]`.

        Args:
            text: A single token or whitespace separated tokens. This should have
                already been passed through *BasicTokenizer*.

        Returns:
            A list of wordpiece tokens.
        Fr   Nr5   z##r=   T)	r   rB   rC   rY   r7   rX   r+   rW   r)   )r   r   r0   r/   rD   Úis_badÚstartÚ
sub_tokensÚendÚ
cur_substrÚsubstrs              r   r1   zWordpieceTokenizer.tokenizeÏ   sb  € ð ˆÝ(¨Ñ.Ô.ð 	1ñ 	1ˆEÝ˜‘K”KˆEÝ�5‰zŒz˜DÔ9Ò9Ð9Ø×$Ò$ T¤^Ñ4Ô4Ð4ØàˆFØˆEØˆJØ�#˜e™*œ*Ò$Ð$Ý˜%‘j”j�Ø!�
Ø˜c’k�kØŸWšW U¨5°¨9Ô%5Ñ6Ô6�FØ˜q’y�yØ!%¨¡˜Ø ¤Ð+Ð+Ø%+˜
ØØ˜1‘H�Cð ˜c’k�kð Ð%Ø!�FØØ×!Ò! *Ñ-Ô-Ð-Ø�ð �#˜e™*œ*Ò$Ð$ð" ð 1Ø×$Ò$ T¤^Ñ4Ô4Ð4Ñ4à×$Ò$ ZÑ0Ô0Ð0Ñ0ØÐr   N)rU   )rO   rP   rQ   rR   r   r1   rM   r   r   rT   rT   Ç   sA   € € € € € Ø&Ð&ðAð Að Að Að
.ð .ð .ð .ð .r   rT   c                 ó  — t          j        ¦   «         }t          | dd¬¦  «        5 }|                     ¦   «         }ddd¦  «         n# 1 swxY w Y   t	          |¦  «        D ]\  }}|                     d¦  «        }|||<   Œ |S )z*Loads a vocabulary file into a dictionary.Úrúutf-8©ÚencodingNú
)ÚcollectionsÚOrderedDictÚopenÚ	readlinesÚ	enumerateÚrstrip)r
   rW   Úreaderr   Úindexr/   s         r   Ú
load_vocabro      sÄ   € åÔ#Ñ%Ô%€EÝ	ˆj˜#¨Ð	0Ñ	0Ô	0ð $°FØ×!Ò!Ñ#Ô#ˆð$ð $ð $ñ $ô $ð $ð $ð $ð $ð $ð $øøøð $ð $ð $ð $å! &Ñ)Ô)ð ð ‰ˆˆuØ—’˜TÑ"Ô"ˆØˆˆe‰ˆØ€Ls   ¦AÁAÁAc                   óÎ  ‡ — e Zd ZU dZeZddgZee         e	d<   	 	 	 	 	 	 	 	 	 	 	 d,dede
dz  de
dz  dedz  dedz  dedz  dedz  dedz  dedz  de
dz  de
dz  de
fˆ fd„Zed„ ¦   «         Zd„ Zd„ Zdefd„Zdefd„Zd efd!„Z	 	 d-d#ee         d$ee         dz  d%e
dz  d&ee         fˆ fd'„Zd.d(ed)edz  d&ee         fd*„Z	 d.d#ee         d$ee         dz  d&ee         fd+„Zˆ xZS )/ÚProphetNetTokenizeraÆ
  
    Construct a ProphetNetTokenizer. Based on WordPiece.

    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`):
            File containing the vocabulary.
        do_lower_case (`bool`, *optional*, defaults to `True`):
            Whether or not to lowercase the input when tokenizing.
        do_basic_tokenize (`bool`, *optional*, defaults to `True`):
            Whether or not to do basic tokenization before WordPiece.
        never_split (`Iterable`, *optional*):
            Collection of tokens which will never be split during tokenization. Only has an effect when
            `do_basic_tokenize=True`
        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.
        sep_token (`str`, *optional*, defaults to `"[SEP]"`):
            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.
        x_sep_token (`str`, *optional*, defaults to `"[X_SEP]"`):
            Special second separator token, which can be generated by [`ProphetNetForConditionalGeneration`]. It is
            used to separate bullet-point like sentences in summarization, *e.g.*.
        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.
        tokenize_chinese_chars (`bool`, *optional*, defaults to `True`):
            Whether or not to tokenize Chinese characters.

            This should likely be deactivated for Japanese (see this
            [issue](https://github.com/huggingface/transformers/issues/328)).
        strip_accents (`bool`, *optional*):
            Whether or not to strip all accents. If this option is not specified, then it will be determined by the
            value for `lowercase` (as in the original BERT).
        clean_up_tokenization_spaces (`bool`, *optional*, defaults to `True`):
            Whether or not to cleanup spaces after decoding, cleanup consists in removing potential artifacts like
            extra spaces.
    Ú	input_idsÚattention_maskÚmodel_input_namesTNú[UNK]ú[SEP]ú[X_SEP]ú[PAD]ú[MASK]r
   r   Údo_basic_tokenizer   rX   Ú	sep_tokenÚx_sep_tokenÚ	pad_tokenÚ
mask_tokenr   r   Úclean_up_tokenization_spacesc                 óä  •— t           j                             |¦  «        st          d|› d�¦  «        ‚t	          |¦  «        | _        t          j        d„ | j                             ¦   «         D ¦   «         ¦  «        | _	        || _
        |rt          |||
|¬¦  «        | _        t          | j        t          |¦  «        ¬¦  «        | _         t!          ¦   «         j        d||||||||	|
||dœ|¤Ž d S )Nz&Can't find a vocabulary file at path 'z'. To load the vocabulary from a Google pretrained model use `tokenizer = AutoTokenizer.from_pretrained(PRETRAINED_MODEL_NAME)`c                 ó   — g | ]	\  }}||f‘Œ
S rM   rM   )r?   ÚtokÚidss      r   rA   z0ProphetNetTokenizer.__init__.<locals>.<listcomp>U  s    € Ð5dÐ5dÐ5dÁXÀSÈ#°s¸C°jÐ5dÐ5dÐ5dr   )r   r   r   r   )rW   rX   )r   rz   r   rX   r{   r|   r}   r~   r   r   r   rM   )ÚosÚpathÚisfileÚ
ValueErrorro   rW   rg   rh   ÚitemsÚids_to_tokensrz   r   Úbasic_tokenizerrT   ÚstrÚwordpiece_tokenizerÚsuperr   )r   r
   r   rz   r   rX   r{   r|   r}   r~   r   r   r   ÚkwargsÚ	__class__s                 €r   r   zProphetNetTokenizer.__init__?  s:  ø€ õ  Œw�~Š~˜jÑ)Ô)ð 	Ýð`¸ð `ð `ð `ñô ð õ   
Ñ+Ô+ˆŒ
Ý(Ô4Ð5dÐ5dÐQUÔQ[×QaÒQaÑQcÔQcÐ5dÑ5dÔ5dÑeÔeˆÔØ!2ˆÔØð 	Ý#1Ø+Ø'Ø'=Ø+ð	$ñ $ô $ˆDÔ õ $6¸D¼JÕRUÐV_ÑR`ÔR`Ð#aÑ#aÔ#aˆÔ à�‰ŒÔð 	
Ø'Ø/Ø#ØØØ#ØØ!Ø#9Ø'Ø)Eð	
ð 	
ð ð	
ð 	
ð 	
ð 	
ð 	
r   c                 ó*   — t          | j        ¦  «        S r   )rC   rW   ©r   s    r   Ú
vocab_sizezProphetNetTokenizer.vocab_sizeo  s   € å�4”:‰ŒÐr   c                 ó0   — t          | j        fi | j        ¤ŽS r   )ÚdictrW   Úadded_tokens_encoderr‘   s    r   Ú	get_vocabzProphetNetTokenizer.get_vocabs  s   € Ý�D”JÐ<Ð< $Ô";Ð<Ð<Ð<r   c                 ó  — g }| j         rf| j                             || j        ¬¦  «        D ]C}|| j        j        v r|                     |¦  «         Œ&|| j                             |¦  «        z  }ŒDn| j                             |¦  «        }|S )N)r   )rz   rŠ   r1   Úall_special_tokensr   r7   rŒ   )r   r   r.   r/   s       r   Ú	_tokenizezProphetNetTokenizer._tokenizev  s¦   € ØˆØÔ!ð 	CØÔ-×6Ò6°tÈÔI`Ð6ÑaÔað Mð M�à˜DÔ0Ô<Ð<Ð<Ø ×'Ò'¨Ñ.Ô.Ð.Ð.à  DÔ$<×$EÒ$EÀeÑ$LÔ$LÑL�L�LðMð  Ô3×<Ò<¸TÑBÔBˆLØÐr   r/   c                 ór   — | j                              || j                              | j        ¦  «        ¦  «        S )z0Converts a token (str) in an id using the vocab.)rW   ÚgetrX   )r   r/   s     r   Ú_convert_token_to_idz(ProphetNetTokenizer._convert_token_to_idƒ  s(   € àŒz�~Š~˜e T¤Z§^¢^°D´NÑ%CÔ%CÑDÔDÐDr   rn   c                 óB   — | j                              || j        ¦  «        S )z=Converts an index (integer) in a token (str) using the vocab.)r‰   r›   rX   )r   rn   s     r   Ú_convert_id_to_tokenz(ProphetNetTokenizer._convert_id_to_token‡  s   € àÔ!×%Ò% e¨T¬^Ñ<Ô<Ð<r   r   c                 ó|   — d                      |¦  «                             dd¦  «                             ¦   «         }|S )z:Converts a sequence of tokens (string) in a single string.r!   z ##r5   )r+   Úreplacer   )r   r   Ú
out_strings      r   Úconvert_tokens_to_stringz,ProphetNetTokenizer.convert_tokens_to_string‹  s5   € à—X’X˜fÑ%Ô%×-Ò-¨e°RÑ8Ô8×>Ò>Ñ@Ô@ˆ
ØÐr   FÚtoken_ids_0Útoken_ids_1Úalready_has_special_tokensÚreturnc                 óà   •— |r$t          ¦   «                              ||d¬¦  «        S |€dgt          |¦  «        z  dgz   S dgt          |¦  «        z  dgz   dgt          |¦  «        z  z   dgz   S )aÄ  
        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¥   Nr   r=   )r�   Úget_special_tokens_maskrC   )r   r£   r¤   r¥   r�   s       €r   r¨   z+ProphetNetTokenizer.get_special_tokens_mask�  s‘   ø€ ð* &ð 	Ý‘7”7×2Ò2Ø'°[Ð]að 3ñ ô ð ð ÐØ�C�#˜kÑ*Ô*Ñ*¨q¨cÑ1Ð1Ø�•c˜+Ñ&Ô&Ñ&¨1¨#Ñ-°!°µs¸;Ñ7GÔ7GÑ1GÑHÈAÈ3ÑNÐNr   Úsave_directoryÚfilename_prefixc                 ó  — d}t           j                             |¦  «        r6t           j                             ||r|dz   ndt          d         z   ¦  «        }n|r|dz   nd|z   }t          |dd¬¦  «        5 }t          | j                             ¦   «         d„ ¬	¦  «        D ]H\  }}||k    r t           
                    d
|› d�¦  «         |}|                     |dz   ¦  «         |dz  }ŒI	 d d d ¦  «         n# 1 swxY w Y   |fS )Nr   ú-r5   r
   Úwrc   rd   c                 ó   — | d         S )Nr=   rM   )Úkvs    r   ú<lambda>z5ProphetNetTokenizer.save_vocabulary.<locals>.<lambda>·  s   € ÐPRÐSTÔPU€ r   )ÚkeyzSaving vocabulary to z\: vocabulary indices are not consecutive. Please check that the vocabulary is not corrupted!rf   r=   )r„   r…   Úisdirr+   ÚVOCAB_FILES_NAMESri   ÚsortedrW   rˆ   ÚloggerÚwarningÚwrite)r   r©   rª   rn   r
   Úwriterr/   Útoken_indexs           r   Úsave_vocabularyz#ProphetNetTokenizer.save_vocabulary®  s}  € ØˆÝŒ7�=Š=˜Ñ(Ô(ð 	]ÝœŸšØ¸/Ð!Q °3Ñ!6Ð!6ÈrÕUfÐgsÔUtÑ tñô ˆJˆJð 4CÐJ˜/¨CÑ/Ð/ÈÈnÑ\ˆJÝ�*˜c¨GÐ4Ñ4Ô4ð 		¸Ý&,¨T¬Z×-=Ò-=Ñ-?Ô-?ÐEUÐEUÐ&VÑ&VÔ&Vð ð Ñ"��{Ø˜KÒ'Ð'Ý—N’NðN°
ð Nð Nð Nñô ð ð (�EØ—’˜U T™\Ñ*Ô*Ð*Ø˜‘
��ðð		ð 		ð 		ñ 		ô 		ð 		ð 		ð 		ð 		ð 		ð 		øøøð 		ð 		ð 		ð 		ð ˆ}Ðs   Á6A3C6Ã6C:Ã=C:c                 óB   — |€|| j         gz   S | j         g}||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 BERT sequence has the following format:

        - single sequence: `[CLS] X [SEP]`
        - pair of sequences: `[CLS] A [SEP] B [SEP]`

        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.
        )Úsep_token_id)r   r£   r¤   Úseps       r   Ú build_inputs_with_special_tokensz4ProphetNetTokenizer.build_inputs_with_special_tokensÂ  s;   € ð& ÐØ $Ô"3Ð!4Ñ4Ð4ØÔ Ð!ˆØ˜SÑ  ;Ñ.°Ñ4Ð4r   )TTNru   rv   rw   rx   ry   TNT)NFr   )rO   rP   rQ   rR   r³   Úvocab_files_namesrt   rB   r‹   Ú__annotations__Úboolr   r   Úpropertyr’   r–   r™   rœ   Úintrž   r¢   r¨   Útuplerº   r¾   Ú__classcell__)r�   s   @r   rq   rq     s¸  ø€ € € € € € ð*ð *ðX *Ðð
 %0Ð1AÐ#BÐ�t˜C”yÐBÐBÑBð
 &*Ø)-Ø'+Ø 'Ø 'Ø"+Ø 'Ø!)Ø.2Ø%)Ø-1ð.
ð .
àð.
ð ˜d‘{ð.
ð   $™;ð	.
ð
  ‘_ð.
ð ˜‘:ð.
ð ˜‘:ð.
ð ˜4‘Zð.
ð ˜‘:ð.
ð ˜$‘Jð.
ð !% t¡ð.
ð ˜d‘{ð.
ð '+ð.
ð .
ð .
ð .
ð .
ð .
ð` ðð ñ „Xðð=ð =ð =ðð ð ðE¨#ð Eð Eð Eð Eð=¨#ð =ð =ð =ð =ð¨sð ð ð ð ð )-Ø27ð	Oð Oà˜#”YðOð ˜#”Y Ñ%ðOð %)¨4¡Kð	Oð
 
ˆcŒðOð Oð Oð Oð Oð Oð<ð ¨cð ÀCÈ$ÁJð ÐZ_Ð`cÔZdð ð ð ð ð* GKð5ð 5Ø œ9ð5Ø37¸´9¸tÑ3Cð5à	ˆcŒð5ð 5ð 5ð 5ð 5ð 5ð 5ð 5r   rq   )rg   r„   r%   Úcollections.abcr   Útokenization_pythonr   r   r   r   Úutilsr	   Ú
get_loggerrO   rµ   r³   r   r   rT   ro   rq   Ú__all__rM   r   r   ú<module>rË      sJ  ðð Ð Ð Ð Ø 	€	€	€	Ø Ð Ð Ð Ø $Ð $Ð $Ð $Ð $Ð $à dÐ dÐ dÐ dÐ dÐ dÐ dÐ dÐ dÐ dÐ dÐ dØ Ð Ð Ð Ð Ð ð 
ˆÔ	˜HÑ	%Ô	%€à!Ð#9Ð:Ð ðð ð ð^ð ^ð ^ð ^ð ^ñ ^ô ^ð ^ðB6ð 6ð 6ð 6ð 6ñ 6ô 6ð 6ðrð ð ðM5ð M5ð M5ð M5ð M5Ð-ñ M5ô M5ð M5ð` !Ð
!€€€r   