import{s as pt,n as ht,o as ut}from"../chunks/scheduler.9bc65507.js";import{S as ft,i as gt,g as a,s as o,r as h,A as kt,h as i,f as n,c as s,j as v,u,x as c,k as w,y as t,a as d,v as f,d as g,t as k,w as _}from"../chunks/index.707bf1b6.js";import{D as L}from"../chunks/Docstring.17db21ae.js";import{H as ce}from"../chunks/Heading.342b1fa6.js";function _t(Xe){let x,me,de,pe,C,he,D,ue,P,Je=`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.`,fe,A,Ge="The abstract of the paper:",ge,F,Qe=`<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>`,ke,I,Ye='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>.',_e,R,be,E,Ze=`<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>`,ze,M,Te,l,H,Ce,X,et=`Adapted from <a href="/docs/transformers/main/en/model_doc/camembert#transformers.CamembertTokenizer">CamembertTokenizer</a> and <a href="/docs/transformers/main/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>.`,De,J,tt=`This tokenizer inherits from <a href="/docs/transformers/main/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.`,Pe,b,S,Ae,G,nt=`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:`,Fe,Q,ot="<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>",Ie,q,O,Re,Y,st="Converts a sequence of tokens (string) in a single string.",Ee,y,N,Me,Z,rt="Create a mask from the two sequences passed to be used in a sequence-pair classification task.",He,$,U,Se,ee,at=`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.`,ve,V,we,m,W,Oe,te,it=`Adapted from <a href="/docs/transformers/main/en/model_doc/camembert#transformers.CamembertTokenizer">CamembertTokenizer</a> and <a href="/docs/transformers/main/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>.`,Ne,ne,dt=`This tokenizer inherits from <a href="/docs/transformers/main/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.`,Ue,z,j,Ve,oe,lt=`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:`,We,se,ct="<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>",je,B,K,Ke,re,mt="Create a mask from the two sequences passed to be used in a sequence-pair classification task.",xe,le,qe;return C=new ce({props:{title:"BARThez",local:"barthez",headingTag:"h1"}}),D=new ce({props:{title:"Overview",local:"overview",headingTag:"h2"}}),R=new ce({props:{title:"Examples",local:"examples",headingTag:"h3"}}),M=new ce({props:{title:"BarthezTokenizer",local:"transformers.BarthezTokenizer",headingTag:"h2"}}),H=new L({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:": typing.Union[typing.Dict[str, typing.Any], NoneType] = 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/main/src/transformers/models/barthez/tokenization_barthez.py#L53"}}),S=new L({props:{name:"build_inputs_with_special_tokens",anchor:"transformers.BarthezTokenizer.build_inputs_with_special_tokens",parameters:[{name:"token_ids_0",val:": typing.List[int]"},{name:"token_ids_1",val:": typing.Optional[typing.List[int]] = 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/main/src/transformers/models/barthez/tokenization_barthez.py#L159",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>
`}}),O=new L({props:{name:"convert_tokens_to_string",anchor:"transformers.BarthezTokenizer.convert_tokens_to_string",parameters:[{name:"tokens",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/barthez/tokenization_barthez.py#L254"}}),N=new L({props:{name:"create_token_type_ids_from_sequences",anchor:"transformers.BarthezTokenizer.create_token_type_ids_from_sequences",parameters:[{name:"token_ids_0",val:": typing.List[int]"},{name:"token_ids_1",val:": typing.Optional[typing.List[int]] = 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/main/src/transformers/models/barthez/tokenization_barthez.py#L212",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>
`}}),U=new L({props:{name:"get_special_tokens_mask",anchor:"transformers.BarthezTokenizer.get_special_tokens_mask",parameters:[{name:"token_ids_0",val:": typing.List[int]"},{name:"token_ids_1",val:": typing.Optional[typing.List[int]] = 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/main/src/transformers/models/barthez/tokenization_barthez.py#L185",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>
`}}),V=new ce({props:{title:"BarthezTokenizerFast",local:"transformers.BarthezTokenizerFast",headingTag:"h2"}}),W=new L({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/main/src/transformers/models/barthez/tokenization_barthez_fast.py#L62"}}),j=new L({props:{name:"build_inputs_with_special_tokens",anchor:"transformers.BarthezTokenizerFast.build_inputs_with_special_tokens",parameters:[{name:"token_ids_0",val:": typing.List[int]"},{name:"token_ids_1",val:": typing.Optional[typing.List[int]] = 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/main/src/transformers/models/barthez/tokenization_barthez_fast.py#L154",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>
`}}),K=new L({props:{name:"create_token_type_ids_from_sequences",anchor:"transformers.BarthezTokenizerFast.create_token_type_ids_from_sequences",parameters:[{name:"token_ids_0",val:": typing.List[int]"},{name:"token_ids_1",val:": typing.Optional[typing.List[int]] = 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/main/src/transformers/models/barthez/tokenization_barthez_fast.py#L180",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>
`}}),{c(){x=a("meta"),me=o(),de=a("p"),pe=o(),h(C.$$.fragment),he=o(),h(D.$$.fragment),ue=o(),P=a("p"),P.innerHTML=Je,fe=o(),A=a("p"),A.textContent=Ge,ge=o(),F=a("p"),F.innerHTML=Qe,ke=o(),I=a("p"),I.innerHTML=Ye,_e=o(),h(R.$$.fragment),be=o(),E=a("ul"),E.innerHTML=Ze,ze=o(),h(M.$$.fragment),Te=o(),l=a("div"),h(H.$$.fragment),Ce=o(),X=a("p"),X.innerHTML=et,De=o(),J=a("p"),J.innerHTML=tt,Pe=o(),b=a("div"),h(S.$$.fragment),Ae=o(),G=a("p"),G.textContent=nt,Fe=o(),Q=a("ul"),Q.innerHTML=ot,Ie=o(),q=a("div"),h(O.$$.fragment),Re=o(),Y=a("p"),Y.textContent=st,Ee=o(),y=a("div"),h(N.$$.fragment),Me=o(),Z=a("p"),Z.textContent=rt,He=o(),$=a("div"),h(U.$$.fragment),Se=o(),ee=a("p"),ee.innerHTML=at,ve=o(),h(V.$$.fragment),we=o(),m=a("div"),h(W.$$.fragment),Oe=o(),te=a("p"),te.innerHTML=it,Ne=o(),ne=a("p"),ne.innerHTML=dt,Ue=o(),z=a("div"),h(j.$$.fragment),Ve=o(),oe=a("p"),oe.textContent=lt,We=o(),se=a("ul"),se.innerHTML=ct,je=o(),B=a("div"),h(K.$$.fragment),Ke=o(),re=a("p"),re.textContent=mt,xe=o(),le=a("p"),this.h()},l(e){const r=kt("svelte-u9bgzb",document.head);x=i(r,"META",{name:!0,content:!0}),r.forEach(n),me=s(e),de=i(e,"P",{}),v(de).forEach(n),pe=s(e),u(C.$$.fragment,e),he=s(e),u(D.$$.fragment,e),ue=s(e),P=i(e,"P",{"data-svelte-h":!0}),c(P)!=="svelte-6jqwe8"&&(P.innerHTML=Je),fe=s(e),A=i(e,"P",{"data-svelte-h":!0}),c(A)!=="svelte-v8ud33"&&(A.textContent=Ge),ge=s(e),F=i(e,"P",{"data-svelte-h":!0}),c(F)!=="svelte-libbyk"&&(F.innerHTML=Qe),ke=s(e),I=i(e,"P",{"data-svelte-h":!0}),c(I)!=="svelte-xolpee"&&(I.innerHTML=Ye),_e=s(e),u(R.$$.fragment,e),be=s(e),E=i(e,"UL",{"data-svelte-h":!0}),c(E)!=="svelte-1m5bh03"&&(E.innerHTML=Ze),ze=s(e),u(M.$$.fragment,e),Te=s(e),l=i(e,"DIV",{class:!0});var p=v(l);u(H.$$.fragment,p),Ce=s(p),X=i(p,"P",{"data-svelte-h":!0}),c(X)!=="svelte-1u4yp2l"&&(X.innerHTML=et),De=s(p),J=i(p,"P",{"data-svelte-h":!0}),c(J)!=="svelte-1c3t5ty"&&(J.innerHTML=tt),Pe=s(p),b=i(p,"DIV",{class:!0});var ae=v(b);u(S.$$.fragment,ae),Ae=s(ae),G=i(ae,"P",{"data-svelte-h":!0}),c(G)!=="svelte-js8h2n"&&(G.textContent=nt),Fe=s(ae),Q=i(ae,"UL",{"data-svelte-h":!0}),c(Q)!=="svelte-rq8uot"&&(Q.innerHTML=ot),ae.forEach(n),Ie=s(p),q=i(p,"DIV",{class:!0});var ye=v(q);u(O.$$.fragment,ye),Re=s(ye),Y=i(ye,"P",{"data-svelte-h":!0}),c(Y)!=="svelte-b3k2yi"&&(Y.textContent=st),ye.forEach(n),Ee=s(p),y=i(p,"DIV",{class:!0});var $e=v(y);u(N.$$.fragment,$e),Me=s($e),Z=i($e,"P",{"data-svelte-h":!0}),c(Z)!=="svelte-sqjw56"&&(Z.textContent=rt),$e.forEach(n),He=s(p),$=i(p,"DIV",{class:!0});var Be=v($);u(U.$$.fragment,Be),Se=s(Be),ee=i(Be,"P",{"data-svelte-h":!0}),c(ee)!=="svelte-1f4f5kp"&&(ee.innerHTML=at),Be.forEach(n),p.forEach(n),ve=s(e),u(V.$$.fragment,e),we=s(e),m=i(e,"DIV",{class:!0});var T=v(m);u(W.$$.fragment,T),Oe=s(T),te=i(T,"P",{"data-svelte-h":!0}),c(te)!=="svelte-15e385w"&&(te.innerHTML=it),Ne=s(T),ne=i(T,"P",{"data-svelte-h":!0}),c(ne)!=="svelte-fh0aq"&&(ne.innerHTML=dt),Ue=s(T),z=i(T,"DIV",{class:!0});var ie=v(z);u(j.$$.fragment,ie),Ve=s(ie),oe=i(ie,"P",{"data-svelte-h":!0}),c(oe)!=="svelte-js8h2n"&&(oe.textContent=lt),We=s(ie),se=i(ie,"UL",{"data-svelte-h":!0}),c(se)!=="svelte-rq8uot"&&(se.innerHTML=ct),ie.forEach(n),je=s(T),B=i(T,"DIV",{class:!0});var Le=v(B);u(K.$$.fragment,Le),Ke=s(Le),re=i(Le,"P",{"data-svelte-h":!0}),c(re)!=="svelte-sqjw56"&&(re.textContent=mt),Le.forEach(n),T.forEach(n),xe=s(e),le=i(e,"P",{}),v(le).forEach(n),this.h()},h(){w(x,"name","hf:doc:metadata"),w(x,"content",bt),w(b,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w($,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(l,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(m,"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,r){t(document.head,x),d(e,me,r),d(e,de,r),d(e,pe,r),f(C,e,r),d(e,he,r),f(D,e,r),d(e,ue,r),d(e,P,r),d(e,fe,r),d(e,A,r),d(e,ge,r),d(e,F,r),d(e,ke,r),d(e,I,r),d(e,_e,r),f(R,e,r),d(e,be,r),d(e,E,r),d(e,ze,r),f(M,e,r),d(e,Te,r),d(e,l,r),f(H,l,null),t(l,Ce),t(l,X),t(l,De),t(l,J),t(l,Pe),t(l,b),f(S,b,null),t(b,Ae),t(b,G),t(b,Fe),t(b,Q),t(l,Ie),t(l,q),f(O,q,null),t(q,Re),t(q,Y),t(l,Ee),t(l,y),f(N,y,null),t(y,Me),t(y,Z),t(l,He),t(l,$),f(U,$,null),t($,Se),t($,ee),d(e,ve,r),f(V,e,r),d(e,we,r),d(e,m,r),f(W,m,null),t(m,Oe),t(m,te),t(m,Ne),t(m,ne),t(m,Ue),t(m,z),f(j,z,null),t(z,Ve),t(z,oe),t(z,We),t(z,se),t(m,je),t(m,B),f(K,B,null),t(B,Ke),t(B,re),d(e,xe,r),d(e,le,r),qe=!0},p:ht,i(e){qe||(g(C.$$.fragment,e),g(D.$$.fragment,e),g(R.$$.fragment,e),g(M.$$.fragment,e),g(H.$$.fragment,e),g(S.$$.fragment,e),g(O.$$.fragment,e),g(N.$$.fragment,e),g(U.$$.fragment,e),g(V.$$.fragment,e),g(W.$$.fragment,e),g(j.$$.fragment,e),g(K.$$.fragment,e),qe=!0)},o(e){k(C.$$.fragment,e),k(D.$$.fragment,e),k(R.$$.fragment,e),k(M.$$.fragment,e),k(H.$$.fragment,e),k(S.$$.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),qe=!1},d(e){e&&(n(me),n(de),n(pe),n(he),n(ue),n(P),n(fe),n(A),n(ge),n(F),n(ke),n(I),n(_e),n(be),n(E),n(ze),n(Te),n(l),n(ve),n(we),n(m),n(xe),n(le)),n(x),_(C,e),_(D,e),_(R,e),_(M,e),_(H),_(S),_(O),_(N),_(U),_(V,e),_(W),_(j),_(K)}}}const bt='{"title":"BARThez","local":"barthez","sections":[{"title":"Overview","local":"overview","sections":[{"title":"Examples","local":"examples","sections":[],"depth":3}],"depth":2},{"title":"BarthezTokenizer","local":"transformers.BarthezTokenizer","sections":[],"depth":2},{"title":"BarthezTokenizerFast","local":"transformers.BarthezTokenizerFast","sections":[],"depth":2}],"depth":1}';function zt(Xe){return ut(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class qt extends ft{constructor(x){super(),gt(this,x,zt,_t,pt,{})}}export{qt as component};
