import{s as gt,o as kt,n as _t}from"../chunks/scheduler.25b97de1.js";import{S as bt,i as zt,g as a,s,r as f,A as vt,h as i,f as n,c as r,j as w,u,x as c,k as x,y as o,a as d,v as g,d as k,t as _,w as b}from"../chunks/index.d9030fc9.js";import{T as Tt}from"../chunks/Tip.baa67368.js";import{D as P}from"../chunks/Docstring.e257edda.js";import{H as fe,E as $t}from"../chunks/EditOnGithub.91d95064.js";function wt(ue){let m,A=`BARThez implementation is the same as BART, except for tokenization. Refer to <a href="bart">BART documentation</a> for information on
configuration classes and their parameters. BARThez-specific tokenizers are documented below.`;return{c(){m=a("p"),m.innerHTML=A},l(z){m=i(z,"P",{"data-svelte-h":!0}),c(m)!=="svelte-127v6y2"&&(m.innerHTML=A)},m(z,Y){d(z,m,Y)},p:_t,d(z){z&&n(m)}}}function xt(ue){let m,A,z,Y,D,ge,R,ke,F,Ze=`The BARThez model was proposed in <a href="https://arxiv.org/abs/2010.12321" rel="nofollow">BARThez: a Skilled Pretrained French Sequence-to-Sequence Model</a> by Moussa Kamal Eddine, Antoine J.-P. Tixier, Michalis Vazirgiannis on 23 Oct,
2020.`,_e,I,et="The abstract of the paper:",be,E,tt=`<em>Inductive transfer learning, enabled by self-supervised learning, have taken the entire Natural Language Processing
(NLP) field by storm, with models such as BERT and BART setting new state of the art on countless natural language
understanding tasks. While there are some notable exceptions, most of the available models and research have been
conducted for the English language. In this work, we introduce BARThez, the first BART model for the French language
(to the best of our knowledge). BARThez was pretrained on a very large monolingual French corpus from past research
that we adapted to suit BART’s perturbation schemes. Unlike already existing BERT-based French language models such as
CamemBERT and FlauBERT, BARThez is particularly well-suited for generative tasks, since not only its encoder but also
its decoder is pretrained. In addition to discriminative tasks from the FLUE benchmark, we evaluate BARThez on a novel
summarization dataset, OrangeSum, that we release with this paper. We also continue the pretraining of an already
pretrained multilingual BART on BARThez’s corpus, and we show that the resulting model, which we call mBARTHez,
provides a significant boost over vanilla BARThez, and is on par with or outperforms CamemBERT and FlauBERT.</em>`,ze,M,nt='This model was contributed by <a href="https://huggingface.co/moussakam" rel="nofollow">moussakam</a>. The Authors’ code can be found <a href="https://github.com/moussaKam/BARThez" rel="nofollow">here</a>.',ve,q,Te,H,$e,S,ot=`<li>BARThez can be fine-tuned on sequence-to-sequence tasks in a similar way as BART, check:
<a href="https://github.com/huggingface/transformers/tree/main/examples/pytorch/summarization/README.md" rel="nofollow">examples/pytorch/summarization/</a>.</li>`,we,O,xe,l,N,Fe,Z,st=`Adapted from <a href="/docs/transformers/pr_29969/en/model_doc/camembert#transformers.CamembertTokenizer">CamembertTokenizer</a> and <a href="/docs/transformers/pr_29969/en/model_doc/bart#transformers.BartTokenizer">BartTokenizer</a>. Construct a BARThez tokenizer. Based on
<a href="https://github.com/google/sentencepiece" rel="nofollow">SentencePiece</a>.`,Ie,ee,rt=`This tokenizer inherits from <a href="/docs/transformers/pr_29969/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a> which contains most of the main methods. Users should refer to
this superclass for more information regarding those methods.`,Ee,v,U,Me,te,at=`Build model inputs from a sequence or a pair of sequence for sequence classification tasks by concatenating and
adding special tokens. A BARThez sequence has the following format:`,He,ne,it="<li>single sequence: <code>&lt;s&gt; X &lt;/s&gt;</code></li> <li>pair of sequences: <code>&lt;s&gt; A &lt;/s&gt;&lt;/s&gt; B &lt;/s&gt;</code></li>",Se,B,V,Oe,oe,dt="Converts a sequence of tokens (string) in a single string.",Ne,y,W,Ue,se,lt="Create a mask from the two sequences passed to be used in a sequence-pair classification task.",Ve,L,j,We,re,ct=`Retrieve sequence ids from a token list that has no special tokens added. This method is called when adding
special tokens using the tokenizer <code>prepare_for_model</code> method.`,qe,K,Be,h,X,je,ae,mt=`Adapted from <a href="/docs/transformers/pr_29969/en/model_doc/camembert#transformers.CamembertTokenizer">CamembertTokenizer</a> and <a href="/docs/transformers/pr_29969/en/model_doc/bart#transformers.BartTokenizer">BartTokenizer</a>. Construct a “fast” BARThez tokenizer. Based on
<a href="https://github.com/google/sentencepiece" rel="nofollow">SentencePiece</a>.`,Ke,ie,pt=`This tokenizer inherits from <a href="/docs/transformers/pr_29969/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast">PreTrainedTokenizerFast</a> which contains most of the main methods. Users should
refer to this superclass for more information regarding those methods.`,Xe,T,G,Ge,de,ht=`Build model inputs from a sequence or a pair of sequence for sequence classification tasks by concatenating and
adding special tokens. A BARThez sequence has the following format:`,Je,le,ft="<li>single sequence: <code>&lt;s&gt; X &lt;/s&gt;</code></li> <li>pair of sequences: <code>&lt;s&gt; A &lt;/s&gt;&lt;/s&gt; B &lt;/s&gt;</code></li>",Qe,C,J,Ye,ce,ut="Create a mask from the two sequences passed to be used in a sequence-pair classification task.",ye,Q,Le,he,Ce;return D=new fe({props:{title:"BARThez",local:"barthez",headingTag:"h1"}}),R=new fe({props:{title:"Overview",local:"overview",headingTag:"h2"}}),q=new Tt({props:{$$slots:{default:[wt]},$$scope:{ctx:ue}}}),H=new fe({props:{title:"Resources",local:"resources",headingTag:"h2"}}),O=new fe({props:{title:"BarthezTokenizer",local:"transformers.BarthezTokenizer",headingTag:"h2"}}),N=new P({props:{name:"class transformers.BarthezTokenizer",anchor:"transformers.BarthezTokenizer",parameters:[{name:"vocab_file",val:""},{name:"bos_token",val:" = '<s>'"},{name:"eos_token",val:" = '</s>'"},{name:"sep_token",val:" = '</s>'"},{name:"cls_token",val:" = '<s>'"},{name:"unk_token",val:" = '<unk>'"},{name:"pad_token",val:" = '<pad>'"},{name:"mask_token",val:" = '<mask>'"},{name:"sp_model_kwargs",val:": Optional = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.BarthezTokenizer.vocab_file",description:`<strong>vocab_file</strong> (<code>str</code>) &#x2014;
<a href="https://github.com/google/sentencepiece" rel="nofollow">SentencePiece</a> file (generally has a <em>.spm</em> extension) that
contains the vocabulary necessary to instantiate a tokenizer.`,name:"vocab_file"},{anchor:"transformers.BarthezTokenizer.bos_token",description:`<strong>bos_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&lt;s&gt;&quot;</code>) &#x2014;
The beginning of sequence token that was used during pretraining. Can be used a sequence classifier token.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						
<p>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 <code>cls_token</code>.</p>

					</div>`,name:"bos_token"},{anchor:"transformers.BarthezTokenizer.eos_token",description:`<strong>eos_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&lt;/s&gt;&quot;</code>) &#x2014;
The end of sequence token.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						
<p>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 <code>sep_token</code>.</p>

					</div>`,name:"eos_token"},{anchor:"transformers.BarthezTokenizer.sep_token",description:`<strong>sep_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&lt;/s&gt;&quot;</code>) &#x2014;
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.`,name:"sep_token"},{anchor:"transformers.BarthezTokenizer.cls_token",description:`<strong>cls_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&lt;s&gt;&quot;</code>) &#x2014;
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.`,name:"cls_token"},{anchor:"transformers.BarthezTokenizer.unk_token",description:`<strong>unk_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&lt;unk&gt;&quot;</code>) &#x2014;
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.`,name:"unk_token"},{anchor:"transformers.BarthezTokenizer.pad_token",description:`<strong>pad_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&lt;pad&gt;&quot;</code>) &#x2014;
The token used for padding, for example when batching sequences of different lengths.`,name:"pad_token"},{anchor:"transformers.BarthezTokenizer.mask_token",description:`<strong>mask_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&lt;mask&gt;&quot;</code>) &#x2014;
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.`,name:"mask_token"},{anchor:"transformers.BarthezTokenizer.sp_model_kwargs",description:`<strong>sp_model_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Will be passed to the <code>SentencePieceProcessor.__init__()</code> method. The <a href="https://github.com/google/sentencepiece/tree/master/python" rel="nofollow">Python wrapper for
SentencePiece</a> can be used, among other things,
to set:</p>
<ul>
<li>
<p><code>enable_sampling</code>: Enable subword regularization.</p>
</li>
<li>
<p><code>nbest_size</code>: Sampling parameters for unigram. Invalid for BPE-Dropout.</p>
<ul>
<li><code>nbest_size = {0,1}</code>: No sampling is performed.</li>
<li><code>nbest_size &gt; 1</code>: samples from the nbest_size results.</li>
<li><code>nbest_size &lt; 0</code>: assuming that nbest_size is infinite and samples from the all hypothesis (lattice)
using forward-filtering-and-backward-sampling algorithm.</li>
</ul>
</li>
<li>
<p><code>alpha</code>: Smoothing parameter for unigram sampling, and dropout probability of merge operations for
BPE-dropout.</p>
</li>
</ul>`,name:"sp_model_kwargs"},{anchor:"transformers.BarthezTokenizer.sp_model",description:`<strong>sp_model</strong> (<code>SentencePieceProcessor</code>) &#x2014;
The <em>SentencePiece</em> processor that is used for every conversion (string, tokens and IDs).`,name:"sp_model"}],source:"https://github.com/huggingface/transformers/blob/vr_29969/src/transformers/models/barthez/tokenization_barthez.py#L37"}}),U=new P({props:{name:"build_inputs_with_special_tokens",anchor:"transformers.BarthezTokenizer.build_inputs_with_special_tokens",parameters:[{name:"token_ids_0",val:": List"},{name:"token_ids_1",val:": Optional = None"}],parametersDescription:[{anchor:"transformers.BarthezTokenizer.build_inputs_with_special_tokens.token_ids_0",description:`<strong>token_ids_0</strong> (<code>List[int]</code>) &#x2014;
List of IDs to which the special tokens will be added.`,name:"token_ids_0"},{anchor:"transformers.BarthezTokenizer.build_inputs_with_special_tokens.token_ids_1",description:`<strong>token_ids_1</strong> (<code>List[int]</code>, <em>optional</em>) &#x2014;
Optional second list of IDs for sequence pairs.`,name:"token_ids_1"}],source:"https://github.com/huggingface/transformers/blob/vr_29969/src/transformers/models/barthez/tokenization_barthez.py#L141",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>List of <a href="../glossary#input-ids">input IDs</a> with the appropriate special tokens.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>List[int]</code></p>
`}}),V=new P({props:{name:"convert_tokens_to_string",anchor:"transformers.BarthezTokenizer.convert_tokens_to_string",parameters:[{name:"tokens",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_29969/src/transformers/models/barthez/tokenization_barthez.py#L237"}}),W=new P({props:{name:"create_token_type_ids_from_sequences",anchor:"transformers.BarthezTokenizer.create_token_type_ids_from_sequences",parameters:[{name:"token_ids_0",val:": List"},{name:"token_ids_1",val:": Optional = None"}],parametersDescription:[{anchor:"transformers.BarthezTokenizer.create_token_type_ids_from_sequences.token_ids_0",description:`<strong>token_ids_0</strong> (<code>List[int]</code>) &#x2014;
List of IDs.`,name:"token_ids_0"},{anchor:"transformers.BarthezTokenizer.create_token_type_ids_from_sequences.token_ids_1",description:`<strong>token_ids_1</strong> (<code>List[int]</code>, <em>optional</em>) &#x2014;
Optional second list of IDs for sequence pairs.`,name:"token_ids_1"}],source:"https://github.com/huggingface/transformers/blob/vr_29969/src/transformers/models/barthez/tokenization_barthez.py#L194",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>List of zeros.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>List[int]</code></p>
`}}),j=new P({props:{name:"get_special_tokens_mask",anchor:"transformers.BarthezTokenizer.get_special_tokens_mask",parameters:[{name:"token_ids_0",val:": List"},{name:"token_ids_1",val:": Optional = None"},{name:"already_has_special_tokens",val:": bool = False"}],parametersDescription:[{anchor:"transformers.BarthezTokenizer.get_special_tokens_mask.token_ids_0",description:`<strong>token_ids_0</strong> (<code>List[int]</code>) &#x2014;
List of IDs.`,name:"token_ids_0"},{anchor:"transformers.BarthezTokenizer.get_special_tokens_mask.token_ids_1",description:`<strong>token_ids_1</strong> (<code>List[int]</code>, <em>optional</em>) &#x2014;
Optional second list of IDs for sequence pairs.`,name:"token_ids_1"},{anchor:"transformers.BarthezTokenizer.get_special_tokens_mask.already_has_special_tokens",description:`<strong>already_has_special_tokens</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not the token list is already formatted with special tokens for the model.`,name:"already_has_special_tokens"}],source:"https://github.com/huggingface/transformers/blob/vr_29969/src/transformers/models/barthez/tokenization_barthez.py#L167",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of integers in the range [0, 1]: 1 for a special token, 0 for a sequence token.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>List[int]</code></p>
`}}),K=new fe({props:{title:"BarthezTokenizerFast",local:"transformers.BarthezTokenizerFast",headingTag:"h2"}}),X=new P({props:{name:"class transformers.BarthezTokenizerFast",anchor:"transformers.BarthezTokenizerFast",parameters:[{name:"vocab_file",val:" = None"},{name:"tokenizer_file",val:" = None"},{name:"bos_token",val:" = '<s>'"},{name:"eos_token",val:" = '</s>'"},{name:"sep_token",val:" = '</s>'"},{name:"cls_token",val:" = '<s>'"},{name:"unk_token",val:" = '<unk>'"},{name:"pad_token",val:" = '<pad>'"},{name:"mask_token",val:" = '<mask>'"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.BarthezTokenizerFast.vocab_file",description:`<strong>vocab_file</strong> (<code>str</code>) &#x2014;
<a href="https://github.com/google/sentencepiece" rel="nofollow">SentencePiece</a> file (generally has a <em>.spm</em> extension) that
contains the vocabulary necessary to instantiate a tokenizer.`,name:"vocab_file"},{anchor:"transformers.BarthezTokenizerFast.bos_token",description:`<strong>bos_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&lt;s&gt;&quot;</code>) &#x2014;
The beginning of sequence token that was used during pretraining. Can be used a sequence classifier token.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						
<p>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 <code>cls_token</code>.</p>

					</div>`,name:"bos_token"},{anchor:"transformers.BarthezTokenizerFast.eos_token",description:`<strong>eos_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&lt;/s&gt;&quot;</code>) &#x2014;
The end of sequence token.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						
<p>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 <code>sep_token</code>.</p>

					</div>`,name:"eos_token"},{anchor:"transformers.BarthezTokenizerFast.sep_token",description:`<strong>sep_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&lt;/s&gt;&quot;</code>) &#x2014;
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.`,name:"sep_token"},{anchor:"transformers.BarthezTokenizerFast.cls_token",description:`<strong>cls_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&lt;s&gt;&quot;</code>) &#x2014;
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.`,name:"cls_token"},{anchor:"transformers.BarthezTokenizerFast.unk_token",description:`<strong>unk_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&lt;unk&gt;&quot;</code>) &#x2014;
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.`,name:"unk_token"},{anchor:"transformers.BarthezTokenizerFast.pad_token",description:`<strong>pad_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&lt;pad&gt;&quot;</code>) &#x2014;
The token used for padding, for example when batching sequences of different lengths.`,name:"pad_token"},{anchor:"transformers.BarthezTokenizerFast.mask_token",description:`<strong>mask_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&lt;mask&gt;&quot;</code>) &#x2014;
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.`,name:"mask_token"},{anchor:"transformers.BarthezTokenizerFast.additional_special_tokens",description:`<strong>additional_special_tokens</strong> (<code>List[str]</code>, <em>optional</em>, defaults to <code>[&quot;&lt;s&gt;NOTUSED&quot;, &quot;&lt;/s&gt;NOTUSED&quot;]</code>) &#x2014;
Additional special tokens used by the tokenizer.`,name:"additional_special_tokens"}],source:"https://github.com/huggingface/transformers/blob/vr_29969/src/transformers/models/barthez/tokenization_barthez_fast.py#L39"}}),G=new P({props:{name:"build_inputs_with_special_tokens",anchor:"transformers.BarthezTokenizerFast.build_inputs_with_special_tokens",parameters:[{name:"token_ids_0",val:": List"},{name:"token_ids_1",val:": Optional = None"}],parametersDescription:[{anchor:"transformers.BarthezTokenizerFast.build_inputs_with_special_tokens.token_ids_0",description:`<strong>token_ids_0</strong> (<code>List[int]</code>) &#x2014;
List of IDs to which the special tokens will be added.`,name:"token_ids_0"},{anchor:"transformers.BarthezTokenizerFast.build_inputs_with_special_tokens.token_ids_1",description:`<strong>token_ids_1</strong> (<code>List[int]</code>, <em>optional</em>) &#x2014;
Optional second list of IDs for sequence pairs.`,name:"token_ids_1"}],source:"https://github.com/huggingface/transformers/blob/vr_29969/src/transformers/models/barthez/tokenization_barthez_fast.py#L129",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>List of <a href="../glossary#input-ids">input IDs</a> with the appropriate special tokens.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>List[int]</code></p>
`}}),J=new P({props:{name:"create_token_type_ids_from_sequences",anchor:"transformers.BarthezTokenizerFast.create_token_type_ids_from_sequences",parameters:[{name:"token_ids_0",val:": List"},{name:"token_ids_1",val:": Optional = None"}],parametersDescription:[{anchor:"transformers.BarthezTokenizerFast.create_token_type_ids_from_sequences.token_ids_0",description:`<strong>token_ids_0</strong> (<code>List[int]</code>) &#x2014;
List of IDs.`,name:"token_ids_0"},{anchor:"transformers.BarthezTokenizerFast.create_token_type_ids_from_sequences.token_ids_1",description:`<strong>token_ids_1</strong> (<code>List[int]</code>, <em>optional</em>) &#x2014;
Optional second list of IDs for sequence pairs.`,name:"token_ids_1"}],source:"https://github.com/huggingface/transformers/blob/vr_29969/src/transformers/models/barthez/tokenization_barthez_fast.py#L155",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>List of zeros.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>List[int]</code></p>
`}}),Q=new $t({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/en/model_doc/barthez.md"}}),{c(){m=a("meta"),A=s(),z=a("p"),Y=s(),f(D.$$.fragment),ge=s(),f(R.$$.fragment),ke=s(),F=a("p"),F.innerHTML=Ze,_e=s(),I=a("p"),I.textContent=et,be=s(),E=a("p"),E.innerHTML=tt,ze=s(),M=a("p"),M.innerHTML=nt,ve=s(),f(q.$$.fragment),Te=s(),f(H.$$.fragment),$e=s(),S=a("ul"),S.innerHTML=ot,we=s(),f(O.$$.fragment),xe=s(),l=a("div"),f(N.$$.fragment),Fe=s(),Z=a("p"),Z.innerHTML=st,Ie=s(),ee=a("p"),ee.innerHTML=rt,Ee=s(),v=a("div"),f(U.$$.fragment),Me=s(),te=a("p"),te.textContent=at,He=s(),ne=a("ul"),ne.innerHTML=it,Se=s(),B=a("div"),f(V.$$.fragment),Oe=s(),oe=a("p"),oe.textContent=dt,Ne=s(),y=a("div"),f(W.$$.fragment),Ue=s(),se=a("p"),se.textContent=lt,Ve=s(),L=a("div"),f(j.$$.fragment),We=s(),re=a("p"),re.innerHTML=ct,qe=s(),f(K.$$.fragment),Be=s(),h=a("div"),f(X.$$.fragment),je=s(),ae=a("p"),ae.innerHTML=mt,Ke=s(),ie=a("p"),ie.innerHTML=pt,Xe=s(),T=a("div"),f(G.$$.fragment),Ge=s(),de=a("p"),de.textContent=ht,Je=s(),le=a("ul"),le.innerHTML=ft,Qe=s(),C=a("div"),f(J.$$.fragment),Ye=s(),ce=a("p"),ce.textContent=ut,ye=s(),f(Q.$$.fragment),Le=s(),he=a("p"),this.h()},l(e){const t=vt("svelte-u9bgzb",document.head);m=i(t,"META",{name:!0,content:!0}),t.forEach(n),A=r(e),z=i(e,"P",{}),w(z).forEach(n),Y=r(e),u(D.$$.fragment,e),ge=r(e),u(R.$$.fragment,e),ke=r(e),F=i(e,"P",{"data-svelte-h":!0}),c(F)!=="svelte-6jqwe8"&&(F.innerHTML=Ze),_e=r(e),I=i(e,"P",{"data-svelte-h":!0}),c(I)!=="svelte-v8ud33"&&(I.textContent=et),be=r(e),E=i(e,"P",{"data-svelte-h":!0}),c(E)!=="svelte-libbyk"&&(E.innerHTML=tt),ze=r(e),M=i(e,"P",{"data-svelte-h":!0}),c(M)!=="svelte-xolpee"&&(M.innerHTML=nt),ve=r(e),u(q.$$.fragment,e),Te=r(e),u(H.$$.fragment,e),$e=r(e),S=i(e,"UL",{"data-svelte-h":!0}),c(S)!=="svelte-1m5bh03"&&(S.innerHTML=ot),we=r(e),u(O.$$.fragment,e),xe=r(e),l=i(e,"DIV",{class:!0});var p=w(l);u(N.$$.fragment,p),Fe=r(p),Z=i(p,"P",{"data-svelte-h":!0}),c(Z)!=="svelte-c8mkar"&&(Z.innerHTML=st),Ie=r(p),ee=i(p,"P",{"data-svelte-h":!0}),c(ee)!=="svelte-2iarov"&&(ee.innerHTML=rt),Ee=r(p),v=i(p,"DIV",{class:!0});var me=w(v);u(U.$$.fragment,me),Me=r(me),te=i(me,"P",{"data-svelte-h":!0}),c(te)!=="svelte-js8h2n"&&(te.textContent=at),He=r(me),ne=i(me,"UL",{"data-svelte-h":!0}),c(ne)!=="svelte-rq8uot"&&(ne.innerHTML=it),me.forEach(n),Se=r(p),B=i(p,"DIV",{class:!0});var Pe=w(B);u(V.$$.fragment,Pe),Oe=r(Pe),oe=i(Pe,"P",{"data-svelte-h":!0}),c(oe)!=="svelte-b3k2yi"&&(oe.textContent=dt),Pe.forEach(n),Ne=r(p),y=i(p,"DIV",{class:!0});var Ae=w(y);u(W.$$.fragment,Ae),Ue=r(Ae),se=i(Ae,"P",{"data-svelte-h":!0}),c(se)!=="svelte-sqjw56"&&(se.textContent=lt),Ae.forEach(n),Ve=r(p),L=i(p,"DIV",{class:!0});var De=w(L);u(j.$$.fragment,De),We=r(De),re=i(De,"P",{"data-svelte-h":!0}),c(re)!=="svelte-1f4f5kp"&&(re.innerHTML=ct),De.forEach(n),p.forEach(n),qe=r(e),u(K.$$.fragment,e),Be=r(e),h=i(e,"DIV",{class:!0});var $=w(h);u(X.$$.fragment,$),je=r($),ae=i($,"P",{"data-svelte-h":!0}),c(ae)!=="svelte-1t2fb3e"&&(ae.innerHTML=mt),Ke=r($),ie=i($,"P",{"data-svelte-h":!0}),c(ie)!=="svelte-10s47aj"&&(ie.innerHTML=pt),Xe=r($),T=i($,"DIV",{class:!0});var pe=w(T);u(G.$$.fragment,pe),Ge=r(pe),de=i(pe,"P",{"data-svelte-h":!0}),c(de)!=="svelte-js8h2n"&&(de.textContent=ht),Je=r(pe),le=i(pe,"UL",{"data-svelte-h":!0}),c(le)!=="svelte-rq8uot"&&(le.innerHTML=ft),pe.forEach(n),Qe=r($),C=i($,"DIV",{class:!0});var Re=w(C);u(J.$$.fragment,Re),Ye=r(Re),ce=i(Re,"P",{"data-svelte-h":!0}),c(ce)!=="svelte-sqjw56"&&(ce.textContent=ut),Re.forEach(n),$.forEach(n),ye=r(e),u(Q.$$.fragment,e),Le=r(e),he=i(e,"P",{}),w(he).forEach(n),this.h()},h(){x(m,"name","hf:doc:metadata"),x(m,"content",qt),x(v,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(l,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(h,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,t){o(document.head,m),d(e,A,t),d(e,z,t),d(e,Y,t),g(D,e,t),d(e,ge,t),g(R,e,t),d(e,ke,t),d(e,F,t),d(e,_e,t),d(e,I,t),d(e,be,t),d(e,E,t),d(e,ze,t),d(e,M,t),d(e,ve,t),g(q,e,t),d(e,Te,t),g(H,e,t),d(e,$e,t),d(e,S,t),d(e,we,t),g(O,e,t),d(e,xe,t),d(e,l,t),g(N,l,null),o(l,Fe),o(l,Z),o(l,Ie),o(l,ee),o(l,Ee),o(l,v),g(U,v,null),o(v,Me),o(v,te),o(v,He),o(v,ne),o(l,Se),o(l,B),g(V,B,null),o(B,Oe),o(B,oe),o(l,Ne),o(l,y),g(W,y,null),o(y,Ue),o(y,se),o(l,Ve),o(l,L),g(j,L,null),o(L,We),o(L,re),d(e,qe,t),g(K,e,t),d(e,Be,t),d(e,h,t),g(X,h,null),o(h,je),o(h,ae),o(h,Ke),o(h,ie),o(h,Xe),o(h,T),g(G,T,null),o(T,Ge),o(T,de),o(T,Je),o(T,le),o(h,Qe),o(h,C),g(J,C,null),o(C,Ye),o(C,ce),d(e,ye,t),g(Q,e,t),d(e,Le,t),d(e,he,t),Ce=!0},p(e,[t]){const p={};t&2&&(p.$$scope={dirty:t,ctx:e}),q.$set(p)},i(e){Ce||(k(D.$$.fragment,e),k(R.$$.fragment,e),k(q.$$.fragment,e),k(H.$$.fragment,e),k(O.$$.fragment,e),k(N.$$.fragment,e),k(U.$$.fragment,e),k(V.$$.fragment,e),k(W.$$.fragment,e),k(j.$$.fragment,e),k(K.$$.fragment,e),k(X.$$.fragment,e),k(G.$$.fragment,e),k(J.$$.fragment,e),k(Q.$$.fragment,e),Ce=!0)},o(e){_(D.$$.fragment,e),_(R.$$.fragment,e),_(q.$$.fragment,e),_(H.$$.fragment,e),_(O.$$.fragment,e),_(N.$$.fragment,e),_(U.$$.fragment,e),_(V.$$.fragment,e),_(W.$$.fragment,e),_(j.$$.fragment,e),_(K.$$.fragment,e),_(X.$$.fragment,e),_(G.$$.fragment,e),_(J.$$.fragment,e),_(Q.$$.fragment,e),Ce=!1},d(e){e&&(n(A),n(z),n(Y),n(ge),n(ke),n(F),n(_e),n(I),n(be),n(E),n(ze),n(M),n(ve),n(Te),n($e),n(S),n(we),n(xe),n(l),n(qe),n(Be),n(h),n(ye),n(Le),n(he)),n(m),b(D,e),b(R,e),b(q,e),b(H,e),b(O,e),b(N),b(U),b(V),b(W),b(j),b(K,e),b(X),b(G),b(J),b(Q,e)}}}const qt='{"title":"BARThez","local":"barthez","sections":[{"title":"Overview","local":"overview","sections":[],"depth":2},{"title":"Resources","local":"resources","sections":[],"depth":2},{"title":"BarthezTokenizer","local":"transformers.BarthezTokenizer","sections":[],"depth":2},{"title":"BarthezTokenizerFast","local":"transformers.BarthezTokenizerFast","sections":[],"depth":2}],"depth":1}';function Bt(ue){return kt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Dt extends bt{constructor(m){super(),zt(this,m,Bt,xt,gt,{})}}export{Dt as component};
