import{s as Pt,o as At,n as Ft}from"../chunks/scheduler.9bc65507.js";import{S as Bt,i as Zt,g as a,s as n,r as g,A as Xt,h as o,f as r,c as s,j as J,u as h,x as d,k as L,y as t,a as c,v as k,d as b,t as v,w as T}from"../chunks/index.707bf1b6.js";import{D as q}from"../chunks/Docstring.17db21ae.js";import{C as _t}from"../chunks/CodeBlock.54a9f38d.js";import{E as Rt}from"../chunks/ExampleCodeBlock.4f515aa9.js";import{H as Pe}from"../chunks/Heading.342b1fa6.js";function Nt(re){let p,z="pair mask has the following format:",w,_,y;return _=new _t({props:{code:"MCUyMDAlMjAwJTIwMCUyMDAlMjAwJTIwMCUyMDAlMjAwJTIwMCUyMDAlMjAxJTIwMSUyMDElMjAxJTIwMSUyMDElMjAxJTIwMSUyMDElMEElN0MlMjBmaXJzdCUyMHNlcXVlbmNlJTIwJTIwJTIwJTIwJTdDJTIwc2Vjb25kJTIwc2VxdWVuY2UlMjAlN0M=",highlighted:`0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 1 </span>1<span class="hljs-number"> 1 </span>1<span class="hljs-number"> 1 </span>1<span class="hljs-number"> 1 </span>1 1
| first sequence    | second sequence |`,wrap:!1}}),{c(){p=a("p"),p.textContent=z,w=n(),g(_.$$.fragment)},l(l){p=o(l,"P",{"data-svelte-h":!0}),d(p)!=="svelte-qjgeij"&&(p.textContent=z),w=s(l),h(_.$$.fragment,l)},m(l,M){c(l,p,M),c(l,w,M),k(_,l,M),y=!0},p:Ft,i(l){y||(b(_.$$.fragment,l),y=!0)},o(l){v(_.$$.fragment,l),y=!1},d(l){l&&(r(p),r(w)),T(_,l)}}}function Wt(re){let p,z="BERT sequence pair mask has the following format:",w,_,y;return _=new _t({props:{code:"MCUyMDAlMjAwJTIwMCUyMDAlMjAwJTIwMCUyMDAlMjAwJTIwMCUyMDAlMjAxJTIwMSUyMDElMjAxJTIwMSUyMDElMjAxJTIwMSUyMDElMEElN0MlMjBmaXJzdCUyMHNlcXVlbmNlJTIwJTIwJTIwJTIwJTdDJTIwc2Vjb25kJTIwc2VxdWVuY2UlMjAlN0M=",highlighted:`0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 0 </span>0<span class="hljs-number"> 1 </span>1<span class="hljs-number"> 1 </span>1<span class="hljs-number"> 1 </span>1<span class="hljs-number"> 1 </span>1 1
| first sequence    | second sequence |`,wrap:!1}}),{c(){p=a("p"),p.textContent=z,w=n(),g(_.$$.fragment)},l(l){p=o(l,"P",{"data-svelte-h":!0}),d(p)!=="svelte-thc81r"&&(p.textContent=z),w=s(l),h(_.$$.fragment,l)},m(l,M){c(l,p,M),c(l,w,M),k(_,l,M),y=!0},p:Ft,i(l){y||(b(_.$$.fragment,l),y=!0)},o(l){v(_.$$.fragment,l),y=!1},d(l){l&&(r(p),r(w)),T(_,l)}}}function Gt(re){let p,z,w,_,y,l,M,xe,P,gt=`The HerBERT model was proposed in <a href="https://www.aclweb.org/anthology/2020.acl-main.111.pdf" rel="nofollow">KLEJ: Comprehensive Benchmark for Polish Language Understanding</a> by Piotr Rybak, Robert Mroczkowski, Janusz Tracz, and
Ireneusz Gawlik. It is a BERT-based Language Model trained on Polish Corpora using only MLM objective with dynamic
masking of whole words.`,Je,A,ht="The abstract from the paper is the following:",Le,B,kt=`<em>In recent years, a series of Transformer-based models unlocked major improvements in general natural language
understanding (NLU) tasks. Such a fast pace of research would not be possible without general NLU benchmarks, which
allow for a fair comparison of the proposed methods. However, such benchmarks are available only for a handful of
languages. To alleviate this issue, we introduce a comprehensive multi-task benchmark for the Polish language
understanding, accompanied by an online leaderboard. It consists of a diverse set of tasks, adopted from existing
datasets for named entity recognition, question-answering, textual entailment, and others. We also introduce a new
sentiment analysis task for the e-commerce domain, named Allegro Reviews (AR). To ensure a common evaluation scheme and
promote models that generalize to different NLU tasks, the benchmark includes datasets from varying domains and
applications. Additionally, we release HerBERT, a Transformer-based model trained specifically for the Polish language,
which has the best average performance and obtains the best results for three out of nine tasks. Finally, we provide an
extensive evaluation, including several standard baselines and recently proposed, multilingual Transformer-based
models.</em>`,ze,Z,bt="Examples of use:",He,X,Ce,N,vt=`This model was contributed by <a href="https://huggingface.co/rmroczkowski" rel="nofollow">rmroczkowski</a>. The original code can be found
<a href="https://github.com/allegro/HerBERT" rel="nofollow">here</a>.`,je,W,Ie,m,G,Ae,ae,Tt="Construct a BPE tokenizer for HerBERT.",Be,oe,yt="Peculiarities:",Ze,ie,$t=`<li><p>uses BERT’s pre-tokenizer: BaseTokenizer splits tokens on spaces, and also on punctuation. Each occurrence of a
punctuation character will be treated separately.</p></li> <li><p>Such pretokenized input is BPE subtokenized</p></li>`,Xe,le,wt=`This tokenizer inherits from <a href="/docs/transformers/main/en/model_doc/xlm#transformers.XLMTokenizer">XLMTokenizer</a> which contains most of the methods. Users should refer to the
superclass for more information regarding methods.`,Ne,H,S,We,ce,Mt=`Build model inputs from a sequence or a pair of sequence for sequence classification tasks by concatenating and
adding special tokens. An XLM sequence has the following format:`,Ge,pe,xt="<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; B &lt;/s&gt;</code></li>",Se,E,Y,Ye,de,Jt="Converts a sequence of tokens (string) in a single string.",Oe,x,O,Qe,me,Lt="Create a mask from the two sequences passed to be used in a sequence-pair classification task. An XLM sequence",Ke,U,et,fe,zt="If <code>token_ids_1</code> is <code>None</code>, this method only returns the first portion of the mask (0s).",tt,D,Q,nt,ue,Ht=`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,Ee,f,ee,st,_e,Ct="Construct a “Fast” BPE tokenizer for HerBERT (backed by HuggingFace’s <em>tokenizers</em> library).",rt,ge,jt="Peculiarities:",at,he,It=`<li>uses BERT’s pre-tokenizer: BertPreTokenizer splits tokens on spaces, and also on punctuation. Each occurrence of
a punctuation character will be treated separately.</li>`,ot,ke,qt=`This tokenizer inherits from <a href="/docs/transformers/main/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a> which contains most of the methods. Users should refer to the
superclass for more information regarding methods.`,it,C,te,lt,be,Et=`Build model inputs from a sequence or a pair of sequence for sequence classification tasks by concatenating and
adding special tokens. An HerBERT, like BERT sequence has the following format:`,ct,ve,Ut="<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; B &lt;/s&gt;</code></li>",pt,j,ne,dt,Te,Dt="Create a mask from the two sequences passed to be used in a sequence-pair classification task. HerBERT, like",mt,V,ft,R,se,ut,ye,Vt=`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.`,Ue,Me,De;return y=new Pe({props:{title:"HerBERT",local:"herbert",headingTag:"h1"}}),M=new Pe({props:{title:"Overview",local:"overview",headingTag:"h2"}}),X=new _t({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEhlcmJlcnRUb2tlbml6ZXIlMkMlMjBSb2JlcnRhTW9kZWwlMEElMEF0b2tlbml6ZXIlMjAlM0QlMjBIZXJiZXJ0VG9rZW5pemVyLmZyb21fcHJldHJhaW5lZCglMjJhbGxlZ3JvJTJGaGVyYmVydC1rbGVqLWNhc2VkLXRva2VuaXplci12MSUyMiklMEFtb2RlbCUyMCUzRCUyMFJvYmVydGFNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyYWxsZWdybyUyRmhlcmJlcnQta2xlai1jYXNlZC12MSUyMiklMEElMEFlbmNvZGVkX2lucHV0JTIwJTNEJTIwdG9rZW5pemVyLmVuY29kZSglMjJLdG8lMjBtYSUyMGxlcHN6JUM0JTg1JTIwc3p0dWslQzQlOTklMkMlMjBtYSUyMGxlcHN6eSUyMHJ6JUM0JTg1ZCUyMCVFMiU4MCU5MyUyMHRvJTIwamFzbmUuJTIyJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEFvdXRwdXRzJTIwJTNEJTIwbW9kZWwoZW5jb2RlZF9pbnB1dCklMEElMEElMjMlMjBIZXJCRVJUJTIwY2FuJTIwYWxzbyUyMGJlJTIwbG9hZGVkJTIwdXNpbmclMjBBdXRvVG9rZW5pemVyJTIwYW5kJTIwQXV0b01vZGVsJTNBJTBBaW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQXV0b01vZGVsJTJDJTIwQXV0b1Rva2VuaXplciUwQSUwQXRva2VuaXplciUyMCUzRCUyMEF1dG9Ub2tlbml6ZXIuZnJvbV9wcmV0cmFpbmVkKCUyMmFsbGVncm8lMkZoZXJiZXJ0LWtsZWotY2FzZWQtdG9rZW5pemVyLXYxJTIyKSUwQW1vZGVsJTIwJTNEJTIwQXV0b01vZGVsLmZyb21fcHJldHJhaW5lZCglMjJhbGxlZ3JvJTJGaGVyYmVydC1rbGVqLWNhc2VkLXYxJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> HerbertTokenizer, RobertaModel

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = HerbertTokenizer.from_pretrained(<span class="hljs-string">&quot;allegro/herbert-klej-cased-tokenizer-v1&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = RobertaModel.from_pretrained(<span class="hljs-string">&quot;allegro/herbert-klej-cased-v1&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>encoded_input = tokenizer.encode(<span class="hljs-string">&quot;Kto ma lepszą sztukę, ma lepszy rząd – to jasne.&quot;</span>, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(encoded_input)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># HerBERT can also be loaded using AutoTokenizer and AutoModel:</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoModel, AutoTokenizer

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;allegro/herbert-klej-cased-tokenizer-v1&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = AutoModel.from_pretrained(<span class="hljs-string">&quot;allegro/herbert-klej-cased-v1&quot;</span>)`,wrap:!1}}),W=new Pe({props:{title:"HerbertTokenizer",local:"transformers.HerbertTokenizer",headingTag:"h2"}}),G=new q({props:{name:"class transformers.HerbertTokenizer",anchor:"transformers.HerbertTokenizer",parameters:[{name:"vocab_file",val:""},{name:"merges_file",val:""},{name:"tokenizer_file",val:" = None"},{name:"cls_token",val:" = '<s>'"},{name:"unk_token",val:" = '<unk>'"},{name:"pad_token",val:" = '<pad>'"},{name:"mask_token",val:" = '<mask>'"},{name:"sep_token",val:" = '</s>'"},{name:"bos_token",val:" = '<s>'"},{name:"do_lowercase_and_remove_accent",val:" = False"},{name:"additional_special_tokens",val:" = ['<special0>', '<special1>', '<special2>', '<special3>', '<special4>', '<special5>', '<special6>', '<special7>', '<special8>', '<special9>']"},{name:"lang2id",val:" = None"},{name:"id2lang",val:" = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/herbert/tokenization_herbert.py#L289"}}),S=new q({props:{name:"build_inputs_with_special_tokens",anchor:"transformers.HerbertTokenizer.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.HerbertTokenizer.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.HerbertTokenizer.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/herbert/tokenization_herbert.py#L526",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>
`}}),Y=new q({props:{name:"convert_tokens_to_string",anchor:"transformers.HerbertTokenizer.convert_tokens_to_string",parameters:[{name:"tokens",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/herbert/tokenization_herbert.py#L520"}}),O=new q({props:{name:"create_token_type_ids_from_sequences",anchor:"transformers.HerbertTokenizer.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.HerbertTokenizer.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.HerbertTokenizer.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/herbert/tokenization_herbert.py#L583",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>List of <a href="../glossary#token-type-ids">token type IDs</a> according to the given sequence(s).</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>List[int]</code></p>
`}}),U=new Rt({props:{anchor:"transformers.HerbertTokenizer.create_token_type_ids_from_sequences.example",$$slots:{default:[Nt]},$$scope:{ctx:re}}}),Q=new q({props:{name:"get_special_tokens_mask",anchor:"transformers.HerbertTokenizer.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.HerbertTokenizer.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.HerbertTokenizer.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.HerbertTokenizer.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/herbert/tokenization_herbert.py#L554",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 Pe({props:{title:"HerbertTokenizerFast",local:"transformers.HerbertTokenizerFast",headingTag:"h2"}}),ee=new q({props:{name:"class transformers.HerbertTokenizerFast",anchor:"transformers.HerbertTokenizerFast",parameters:[{name:"vocab_file",val:" = None"},{name:"merges_file",val:" = None"},{name:"tokenizer_file",val:" = None"},{name:"cls_token",val:" = '<s>'"},{name:"unk_token",val:" = '<unk>'"},{name:"pad_token",val:" = '<pad>'"},{name:"mask_token",val:" = '<mask>'"},{name:"sep_token",val:" = '</s>'"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.HerbertTokenizerFast.vocab_file",description:`<strong>vocab_file</strong> (<code>str</code>) &#x2014;
Path to the vocabulary file.`,name:"vocab_file"},{anchor:"transformers.HerbertTokenizerFast.merges_file",description:`<strong>merges_file</strong> (<code>str</code>) &#x2014;
Path to the merges file.`,name:"merges_file"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/herbert/tokenization_herbert_fast.py#L40"}}),te=new q({props:{name:"build_inputs_with_special_tokens",anchor:"transformers.HerbertTokenizerFast.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.HerbertTokenizerFast.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.HerbertTokenizerFast.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/herbert/tokenization_herbert_fast.py#L89",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>
`}}),ne=new q({props:{name:"create_token_type_ids_from_sequences",anchor:"transformers.HerbertTokenizerFast.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.HerbertTokenizerFast.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.HerbertTokenizerFast.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/herbert/tokenization_herbert_fast.py#L143",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>List of <a href="../glossary#token-type-ids">token type IDs</a> according to the given sequence(s).</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>List[int]</code></p>
`}}),V=new Rt({props:{anchor:"transformers.HerbertTokenizerFast.create_token_type_ids_from_sequences.example",$$slots:{default:[Wt]},$$scope:{ctx:re}}}),se=new q({props:{name:"get_special_tokens_mask",anchor:"transformers.HerbertTokenizerFast.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.HerbertTokenizerFast.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.HerbertTokenizerFast.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.HerbertTokenizerFast.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/herbert/tokenization_herbert_fast.py#L116",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>
`}}),{c(){p=a("meta"),z=n(),w=a("p"),_=n(),g(y.$$.fragment),l=n(),g(M.$$.fragment),xe=n(),P=a("p"),P.innerHTML=gt,Je=n(),A=a("p"),A.textContent=ht,Le=n(),B=a("p"),B.innerHTML=kt,ze=n(),Z=a("p"),Z.textContent=bt,He=n(),g(X.$$.fragment),Ce=n(),N=a("p"),N.innerHTML=vt,je=n(),g(W.$$.fragment),Ie=n(),m=a("div"),g(G.$$.fragment),Ae=n(),ae=a("p"),ae.textContent=Tt,Be=n(),oe=a("p"),oe.textContent=yt,Ze=n(),ie=a("ul"),ie.innerHTML=$t,Xe=n(),le=a("p"),le.innerHTML=wt,Ne=n(),H=a("div"),g(S.$$.fragment),We=n(),ce=a("p"),ce.textContent=Mt,Ge=n(),pe=a("ul"),pe.innerHTML=xt,Se=n(),E=a("div"),g(Y.$$.fragment),Ye=n(),de=a("p"),de.textContent=Jt,Oe=n(),x=a("div"),g(O.$$.fragment),Qe=n(),me=a("p"),me.textContent=Lt,Ke=n(),g(U.$$.fragment),et=n(),fe=a("p"),fe.innerHTML=zt,tt=n(),D=a("div"),g(Q.$$.fragment),nt=n(),ue=a("p"),ue.innerHTML=Ht,qe=n(),g(K.$$.fragment),Ee=n(),f=a("div"),g(ee.$$.fragment),st=n(),_e=a("p"),_e.innerHTML=Ct,rt=n(),ge=a("p"),ge.textContent=jt,at=n(),he=a("ul"),he.innerHTML=It,ot=n(),ke=a("p"),ke.innerHTML=qt,it=n(),C=a("div"),g(te.$$.fragment),lt=n(),be=a("p"),be.textContent=Et,ct=n(),ve=a("ul"),ve.innerHTML=Ut,pt=n(),j=a("div"),g(ne.$$.fragment),dt=n(),Te=a("p"),Te.textContent=Dt,mt=n(),g(V.$$.fragment),ft=n(),R=a("div"),g(se.$$.fragment),ut=n(),ye=a("p"),ye.innerHTML=Vt,Ue=n(),Me=a("p"),this.h()},l(e){const i=Xt("svelte-u9bgzb",document.head);p=o(i,"META",{name:!0,content:!0}),i.forEach(r),z=s(e),w=o(e,"P",{}),J(w).forEach(r),_=s(e),h(y.$$.fragment,e),l=s(e),h(M.$$.fragment,e),xe=s(e),P=o(e,"P",{"data-svelte-h":!0}),d(P)!=="svelte-innugr"&&(P.innerHTML=gt),Je=s(e),A=o(e,"P",{"data-svelte-h":!0}),d(A)!=="svelte-vfdo9a"&&(A.textContent=ht),Le=s(e),B=o(e,"P",{"data-svelte-h":!0}),d(B)!=="svelte-1frp4qn"&&(B.innerHTML=kt),ze=s(e),Z=o(e,"P",{"data-svelte-h":!0}),d(Z)!=="svelte-nxjt31"&&(Z.textContent=bt),He=s(e),h(X.$$.fragment,e),Ce=s(e),N=o(e,"P",{"data-svelte-h":!0}),d(N)!=="svelte-1jq061t"&&(N.innerHTML=vt),je=s(e),h(W.$$.fragment,e),Ie=s(e),m=o(e,"DIV",{class:!0});var u=J(m);h(G.$$.fragment,u),Ae=s(u),ae=o(u,"P",{"data-svelte-h":!0}),d(ae)!=="svelte-irtuqb"&&(ae.textContent=Tt),Be=s(u),oe=o(u,"P",{"data-svelte-h":!0}),d(oe)!=="svelte-r7777v"&&(oe.textContent=yt),Ze=s(u),ie=o(u,"UL",{"data-svelte-h":!0}),d(ie)!=="svelte-15v80xk"&&(ie.innerHTML=$t),Xe=s(u),le=o(u,"P",{"data-svelte-h":!0}),d(le)!=="svelte-1xpuuz9"&&(le.innerHTML=wt),Ne=s(u),H=o(u,"DIV",{class:!0});var I=J(H);h(S.$$.fragment,I),We=s(I),ce=o(I,"P",{"data-svelte-h":!0}),d(ce)!=="svelte-1xo6smc"&&(ce.textContent=Mt),Ge=s(I),pe=o(I,"UL",{"data-svelte-h":!0}),d(pe)!=="svelte-1w73b42"&&(pe.innerHTML=xt),I.forEach(r),Se=s(u),E=o(u,"DIV",{class:!0});var Ve=J(E);h(Y.$$.fragment,Ve),Ye=s(Ve),de=o(Ve,"P",{"data-svelte-h":!0}),d(de)!=="svelte-b3k2yi"&&(de.textContent=Jt),Ve.forEach(r),Oe=s(u),x=o(u,"DIV",{class:!0});var F=J(x);h(O.$$.fragment,F),Qe=s(F),me=o(F,"P",{"data-svelte-h":!0}),d(me)!=="svelte-17m549d"&&(me.textContent=Lt),Ke=s(F),h(U.$$.fragment,F),et=s(F),fe=o(F,"P",{"data-svelte-h":!0}),d(fe)!=="svelte-owoxgn"&&(fe.innerHTML=zt),F.forEach(r),tt=s(u),D=o(u,"DIV",{class:!0});var Re=J(D);h(Q.$$.fragment,Re),nt=s(Re),ue=o(Re,"P",{"data-svelte-h":!0}),d(ue)!=="svelte-1f4f5kp"&&(ue.innerHTML=Ht),Re.forEach(r),u.forEach(r),qe=s(e),h(K.$$.fragment,e),Ee=s(e),f=o(e,"DIV",{class:!0});var $=J(f);h(ee.$$.fragment,$),st=s($),_e=o($,"P",{"data-svelte-h":!0}),d(_e)!=="svelte-1n4shqg"&&(_e.innerHTML=Ct),rt=s($),ge=o($,"P",{"data-svelte-h":!0}),d(ge)!=="svelte-r7777v"&&(ge.textContent=jt),at=s($),he=o($,"UL",{"data-svelte-h":!0}),d(he)!=="svelte-lbio7x"&&(he.innerHTML=It),ot=s($),ke=o($,"P",{"data-svelte-h":!0}),d(ke)!=="svelte-jf96o3"&&(ke.innerHTML=qt),it=s($),C=o($,"DIV",{class:!0});var $e=J(C);h(te.$$.fragment,$e),lt=s($e),be=o($e,"P",{"data-svelte-h":!0}),d(be)!=="svelte-11s9gqx"&&(be.textContent=Et),ct=s($e),ve=o($e,"UL",{"data-svelte-h":!0}),d(ve)!=="svelte-1w73b42"&&(ve.innerHTML=Ut),$e.forEach(r),pt=s($),j=o($,"DIV",{class:!0});var we=J(j);h(ne.$$.fragment,we),dt=s(we),Te=o(we,"P",{"data-svelte-h":!0}),d(Te)!=="svelte-xgjhc7"&&(Te.textContent=Dt),mt=s(we),h(V.$$.fragment,we),we.forEach(r),ft=s($),R=o($,"DIV",{class:!0});var Fe=J(R);h(se.$$.fragment,Fe),ut=s(Fe),ye=o(Fe,"P",{"data-svelte-h":!0}),d(ye)!=="svelte-1f4f5kp"&&(ye.innerHTML=Vt),Fe.forEach(r),$.forEach(r),Ue=s(e),Me=o(e,"P",{}),J(Me).forEach(r),this.h()},h(){L(p,"name","hf:doc:metadata"),L(p,"content",St),L(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),L(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),L(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),L(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),L(m,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),L(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),L(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),L(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),L(f,"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,i){t(document.head,p),c(e,z,i),c(e,w,i),c(e,_,i),k(y,e,i),c(e,l,i),k(M,e,i),c(e,xe,i),c(e,P,i),c(e,Je,i),c(e,A,i),c(e,Le,i),c(e,B,i),c(e,ze,i),c(e,Z,i),c(e,He,i),k(X,e,i),c(e,Ce,i),c(e,N,i),c(e,je,i),k(W,e,i),c(e,Ie,i),c(e,m,i),k(G,m,null),t(m,Ae),t(m,ae),t(m,Be),t(m,oe),t(m,Ze),t(m,ie),t(m,Xe),t(m,le),t(m,Ne),t(m,H),k(S,H,null),t(H,We),t(H,ce),t(H,Ge),t(H,pe),t(m,Se),t(m,E),k(Y,E,null),t(E,Ye),t(E,de),t(m,Oe),t(m,x),k(O,x,null),t(x,Qe),t(x,me),t(x,Ke),k(U,x,null),t(x,et),t(x,fe),t(m,tt),t(m,D),k(Q,D,null),t(D,nt),t(D,ue),c(e,qe,i),k(K,e,i),c(e,Ee,i),c(e,f,i),k(ee,f,null),t(f,st),t(f,_e),t(f,rt),t(f,ge),t(f,at),t(f,he),t(f,ot),t(f,ke),t(f,it),t(f,C),k(te,C,null),t(C,lt),t(C,be),t(C,ct),t(C,ve),t(f,pt),t(f,j),k(ne,j,null),t(j,dt),t(j,Te),t(j,mt),k(V,j,null),t(f,ft),t(f,R),k(se,R,null),t(R,ut),t(R,ye),c(e,Ue,i),c(e,Me,i),De=!0},p(e,[i]){const u={};i&2&&(u.$$scope={dirty:i,ctx:e}),U.$set(u);const I={};i&2&&(I.$$scope={dirty:i,ctx:e}),V.$set(I)},i(e){De||(b(y.$$.fragment,e),b(M.$$.fragment,e),b(X.$$.fragment,e),b(W.$$.fragment,e),b(G.$$.fragment,e),b(S.$$.fragment,e),b(Y.$$.fragment,e),b(O.$$.fragment,e),b(U.$$.fragment,e),b(Q.$$.fragment,e),b(K.$$.fragment,e),b(ee.$$.fragment,e),b(te.$$.fragment,e),b(ne.$$.fragment,e),b(V.$$.fragment,e),b(se.$$.fragment,e),De=!0)},o(e){v(y.$$.fragment,e),v(M.$$.fragment,e),v(X.$$.fragment,e),v(W.$$.fragment,e),v(G.$$.fragment,e),v(S.$$.fragment,e),v(Y.$$.fragment,e),v(O.$$.fragment,e),v(U.$$.fragment,e),v(Q.$$.fragment,e),v(K.$$.fragment,e),v(ee.$$.fragment,e),v(te.$$.fragment,e),v(ne.$$.fragment,e),v(V.$$.fragment,e),v(se.$$.fragment,e),De=!1},d(e){e&&(r(z),r(w),r(_),r(l),r(xe),r(P),r(Je),r(A),r(Le),r(B),r(ze),r(Z),r(He),r(Ce),r(N),r(je),r(Ie),r(m),r(qe),r(Ee),r(f),r(Ue),r(Me)),r(p),T(y,e),T(M,e),T(X,e),T(W,e),T(G),T(S),T(Y),T(O),T(U),T(Q),T(K,e),T(ee),T(te),T(ne),T(V),T(se)}}}const St='{"title":"HerBERT","local":"herbert","sections":[{"title":"Overview","local":"overview","sections":[],"depth":2},{"title":"HerbertTokenizer","local":"transformers.HerbertTokenizer","sections":[],"depth":2},{"title":"HerbertTokenizerFast","local":"transformers.HerbertTokenizerFast","sections":[],"depth":2}],"depth":1}';function Yt(re){return At(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class sn extends Bt{constructor(p){super(),Zt(this,p,Yt,Gt,Pt,{})}}export{sn as component};
