import{s as Xa,o as Ja,n as Ga}from"../chunks/scheduler.9991993c.js";import{S as Qa,i as Ya,g as s,s as a,r as m,A as Za,h as l,f as o,c as r,j as v,u as p,x as d,k as _,y as t,a as i,v as c,d as g,t as f,w as u}from"../chunks/index.ed60ef0f.js";import{T as Ra}from"../chunks/Tip.8eaeb7b5.js";import{D as C}from"../chunks/Docstring.56b4a92a.js";import{H,E as er}from"../chunks/EditOnGithub.ba269039.js";function tr(we){let h,L=`For best performance, this data collator should be used with a dataset having items that are dictionaries or
BatchEncoding, with the <code>&quot;special_tokens_mask&quot;</code> key, as returned by a <a href="/docs/transformers/pr_30530/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a> or a
<a href="/docs/transformers/pr_30530/zh/main_classes/tokenizer#transformers.PreTrainedTokenizerFast">PreTrainedTokenizerFast</a> with the argument <code>return_special_tokens_mask=True</code>.`;return{c(){h=s("p"),h.innerHTML=L},l($){h=l($,"P",{"data-svelte-h":!0}),d(h)!=="svelte-uhivga"&&(h.innerHTML=L)},m($,V){i($,h,V)},p:Ga,d($){$&&o(h)}}}function ar(we){let h,L=`This collator relies on details of the implementation of subword tokenization by <code>BertTokenizer</code>, specifically
that subword tokens are prefixed with <em>##</em>. For tokenizers that do not adhere to this scheme, this collator will
produce an output that is roughly equivalent to <code>.DataCollatorForLanguageModeling</code>.`;return{c(){h=s("p"),h.innerHTML=L},l($){h=l($,"P",{"data-svelte-h":!0}),d(h)!=="svelte-3v0y1u"&&(h.innerHTML=L)},m($,V){i($,h,V)},p:Ga,d($){$&&o(h)}}}function rr(we){let h,L,$,V,G,at,X,_a="Data collators是一个对象，通过使用数据集元素列表作为输入来形成一个批次。这些元素与 <code>train_dataset</code> 或 <code>eval_dataset</code> 的元素类型相同。",rt,J,ba='为了能够构建批次，Data collators可能会应用一些预处理（比如填充）。其中一些（比如<a href="/docs/transformers/pr_30530/zh/main_classes/data_collator#transformers.DataCollatorForLanguageModeling">DataCollatorForLanguageModeling</a>）还会在形成的批次上应用一些随机数据增强（比如随机掩码）。',ot,Q,va='在<a href="../examples">示例脚本</a>或<a href="../notebooks">示例notebooks</a>中可以找到使用的示例。',nt,Y,st,D,Z,Mt,Pe,$a=`Very simple data collator that simply collates batches of dict-like objects and performs special handling for
potential keys named:`,St,ze,ka="<li><code>label</code>: handles a single value (int or float) per object</li> <li><code>label_ids</code>: handles a list of values per object</li>",It,Fe,xa=`Does not do any additional preprocessing: property names of the input object will be used as corresponding inputs
to the model. See glue and ner for example of how it’s useful.`,lt,ee,it,y,te,At,Le,Ca=`Very simple data collator that simply collates batches of dict-like objects and performs special handling for
potential keys named:`,Wt,qe,ya="<li><code>label</code>: handles a single value (int or float) per object</li> <li><code>label_ids</code>: handles a list of values per object</li>",Ht,Me,Ta=`Does not do any additional preprocessing: property names of the input object will be used as corresponding inputs
to the model. See glue and ner for example of how it’s useful.`,Vt,Se,Da=`This is an object (like other data collators) rather than a pure function like default_data_collator. This can be
helpful if you need to set a return_tensors value at initialization.`,dt,ae,mt,I,re,Et,Ie,wa="Data collator that will dynamically pad the inputs received.",pt,oe,ct,A,ne,jt,Ae,Pa="Data collator that will dynamically pad the inputs received, as well as the labels.",gt,se,ft,W,le,Nt,We,za="Data collator that will dynamically pad the inputs received, as well as the labels.",ut,ie,ht,k,de,Ot,He,Fa=`Data collator used for language modeling. Inputs are dynamically padded to the maximum length of a batch if they
are not all of the same length.`,Bt,E,Ut,j,me,Kt,Ve,La="Prepare masked tokens inputs/labels for masked language modeling: 80% MASK, 10% random, 10% original.",Rt,N,pe,Gt,Ee,qa="Prepare masked tokens inputs/labels for masked language modeling: 80% MASK, 10% random, 10% original.",Xt,O,ce,Jt,je,Ma="Prepare masked tokens inputs/labels for masked language modeling: 80% MASK, 10% random, 10% original.",_t,ge,bt,b,fe,Qt,Ne,Sa="Data collator used for language modeling that masks entire words.",Yt,Oe,Ia="<li>collates batches of tensors, honoring their tokenizer’s pad_token</li> <li>preprocesses batches for masked language modeling</li>",Zt,B,ea,U,ue,ta,Be,Aa=`Prepare masked tokens inputs/labels for masked language modeling: 80% MASK, 10% random, 10% original. Set
‘mask_labels’ means we use whole word mask (wwm), we directly mask idxs according to it’s ref.`,aa,K,he,ra,Ue,Wa=`Prepare masked tokens inputs/labels for masked language modeling: 80% MASK, 10% random, 10% original. Set
‘mask_labels’ means we use whole word mask (wwm), we directly mask idxs according to it’s ref.`,oa,R,_e,na,Ke,Ha=`Prepare masked tokens inputs/labels for masked language modeling: 80% MASK, 10% random, 10% original. Set
‘mask_labels’ means we use whole word mask (wwm), we directly mask idxs according to it’s ref.`,vt,be,$t,x,ve,sa,Re,Va="Data collator used for permutation language modeling.",la,Ge,Ea="<li>collates batches of tensors, honoring their tokenizer’s pad_token</li> <li>preprocesses batches for permutation language modeling with procedures specific to XLNet</li>",ia,q,$e,da,Xe,ja="The masked tokens to be predicted for a particular sequence are determined by the following algorithm:",ma,ke,Na=`<li>Start from the beginning of the sequence by setting <code>cur_len = 0</code> (number of tokens processed so far).</li> <li>Sample a <code>span_length</code> from the interval <code>[1, max_span_length]</code> (length of span of tokens to be masked)</li> <li>Reserve a context of length <code>context_length = span_length / plm_probability</code> to surround span to be
masked</li> <li>Sample a starting point <code>start_index</code> from the interval <code>[cur_len, cur_len + context_length - span_length]</code> and mask tokens <code>start_index:start_index + span_length</code></li> <li>Set <code>cur_len = cur_len + context_length</code>. If <code>cur_len &lt; max_len</code> (i.e. there are tokens remaining in the
sequence to be processed), repeat from Step 1.</li>`,pa,M,xe,ca,Je,Oa="The masked tokens to be predicted for a particular sequence are determined by the following algorithm:",ga,Ce,Ba=`<li>Start from the beginning of the sequence by setting <code>cur_len = 0</code> (number of tokens processed so far).</li> <li>Sample a <code>span_length</code> from the interval <code>[1, max_span_length]</code> (length of span of tokens to be masked)</li> <li>Reserve a context of length <code>context_length = span_length / plm_probability</code> to surround span to be
masked</li> <li>Sample a starting point <code>start_index</code> from the interval <code>[cur_len, cur_len + context_length - span_length]</code> and mask tokens <code>start_index:start_index + span_length</code></li> <li>Set <code>cur_len = cur_len + context_length</code>. If <code>cur_len &lt; max_len</code> (i.e. there are tokens remaining in the
sequence to be processed), repeat from Step 1.</li>`,fa,S,ye,ua,Qe,Ua="The masked tokens to be predicted for a particular sequence are determined by the following algorithm:",ha,Te,Ka=`<li>Start from the beginning of the sequence by setting <code>cur_len = 0</code> (number of tokens processed so far).</li> <li>Sample a <code>span_length</code> from the interval <code>[1, max_span_length]</code> (length of span of tokens to be masked)</li> <li>Reserve a context of length <code>context_length = span_length / plm_probability</code> to surround span to be
masked</li> <li>Sample a starting point <code>start_index</code> from the interval <code>[cur_len, cur_len + context_length - span_length]</code> and mask tokens <code>start_index:start_index + span_length</code></li> <li>Set <code>cur_len = cur_len + context_length</code>. If <code>cur_len &lt; max_len</code> (i.e. there are tokens remaining in the
sequence to be processed), repeat from Step 1.</li>`,kt,De,xt,tt,Ct;return G=new H({props:{title:"Data Collator",local:"data-collator",headingTag:"h1"}}),Y=new H({props:{title:"Default data collator",local:"transformers.default_data_collator",headingTag:"h2"}}),Z=new C({props:{name:"transformers.default_data_collator",anchor:"transformers.default_data_collator",parameters:[{name:"features",val:": typing.List[transformers.data.data_collator.InputDataClass]"},{name:"return_tensors",val:" = 'pt'"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/data/data_collator.py#L74"}}),ee=new H({props:{title:"DefaultDataCollator",local:"transformers.DefaultDataCollator",headingTag:"h2"}}),te=new C({props:{name:"class transformers.DefaultDataCollator",anchor:"transformers.DefaultDataCollator",parameters:[{name:"return_tensors",val:": str = 'pt'"}],parametersDescription:[{anchor:"transformers.DefaultDataCollator.return_tensors",description:`<strong>return_tensors</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;pt&quot;</code>) &#x2014;
The type of Tensor to return. Allowable values are &#x201C;np&#x201D;, &#x201C;pt&#x201D; and &#x201C;tf&#x201D;.`,name:"return_tensors"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/data/data_collator.py#L99"}}),ae=new H({props:{title:"DataCollatorWithPadding",local:"transformers.DataCollatorWithPadding",headingTag:"h2"}}),re=new C({props:{name:"class transformers.DataCollatorWithPadding",anchor:"transformers.DataCollatorWithPadding",parameters:[{name:"tokenizer",val:": PreTrainedTokenizerBase"},{name:"padding",val:": typing.Union[bool, str, transformers.utils.generic.PaddingStrategy] = True"},{name:"max_length",val:": typing.Optional[int] = None"},{name:"pad_to_multiple_of",val:": typing.Optional[int] = None"},{name:"return_tensors",val:": str = 'pt'"}],parametersDescription:[{anchor:"transformers.DataCollatorWithPadding.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/pr_30530/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a> or <a href="/docs/transformers/pr_30530/zh/main_classes/tokenizer#transformers.PreTrainedTokenizerFast">PreTrainedTokenizerFast</a>) &#x2014;
The tokenizer used for encoding the data.`,name:"tokenizer"},{anchor:"transformers.DataCollatorWithPadding.padding",description:`<strong>padding</strong> (<code>bool</code>, <code>str</code> or <a href="/docs/transformers/pr_30530/zh/internal/file_utils#transformers.utils.PaddingStrategy">PaddingStrategy</a>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Select a strategy to pad the returned sequences (according to the model&#x2019;s padding side and padding index)
among:</p>
<ul>
<li><code>True</code> or <code>&apos;longest&apos;</code> (default): Pad to the longest sequence in the batch (or no padding if only a single
sequence is provided).</li>
<li><code>&apos;max_length&apos;</code>: Pad to a maximum length specified with the argument <code>max_length</code> or to the maximum
acceptable input length for the model if that argument is not provided.</li>
<li><code>False</code> or <code>&apos;do_not_pad&apos;</code>: No padding (i.e., can output a batch with sequences of different lengths).</li>
</ul>`,name:"padding"},{anchor:"transformers.DataCollatorWithPadding.max_length",description:`<strong>max_length</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Maximum length of the returned list and optionally padding length (see above).`,name:"max_length"},{anchor:"transformers.DataCollatorWithPadding.pad_to_multiple_of",description:`<strong>pad_to_multiple_of</strong> (<code>int</code>, <em>optional</em>) &#x2014;
If set will pad the sequence to a multiple of the provided value.</p>
<p>This is especially useful to enable the use of Tensor Cores on NVIDIA hardware with compute capability &gt;=
7.5 (Volta).`,name:"pad_to_multiple_of"},{anchor:"transformers.DataCollatorWithPadding.return_tensors",description:`<strong>return_tensors</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;pt&quot;</code>) &#x2014;
The type of Tensor to return. Allowable values are &#x201C;np&#x201D;, &#x201C;pt&#x201D; and &#x201C;tf&#x201D;.`,name:"return_tensors"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/data/data_collator.py#L236"}}),oe=new H({props:{title:"DataCollatorForTokenClassification",local:"transformers.DataCollatorForTokenClassification",headingTag:"h2"}}),ne=new C({props:{name:"class transformers.DataCollatorForTokenClassification",anchor:"transformers.DataCollatorForTokenClassification",parameters:[{name:"tokenizer",val:": PreTrainedTokenizerBase"},{name:"padding",val:": typing.Union[bool, str, transformers.utils.generic.PaddingStrategy] = True"},{name:"max_length",val:": typing.Optional[int] = None"},{name:"pad_to_multiple_of",val:": typing.Optional[int] = None"},{name:"label_pad_token_id",val:": int = -100"},{name:"return_tensors",val:": str = 'pt'"}],parametersDescription:[{anchor:"transformers.DataCollatorForTokenClassification.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/pr_30530/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a> or <a href="/docs/transformers/pr_30530/zh/main_classes/tokenizer#transformers.PreTrainedTokenizerFast">PreTrainedTokenizerFast</a>) &#x2014;
The tokenizer used for encoding the data.`,name:"tokenizer"},{anchor:"transformers.DataCollatorForTokenClassification.padding",description:`<strong>padding</strong> (<code>bool</code>, <code>str</code> or <a href="/docs/transformers/pr_30530/zh/internal/file_utils#transformers.utils.PaddingStrategy">PaddingStrategy</a>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Select a strategy to pad the returned sequences (according to the model&#x2019;s padding side and padding index)
among:</p>
<ul>
<li><code>True</code> or <code>&apos;longest&apos;</code> (default): Pad to the longest sequence in the batch (or no padding if only a single
sequence is provided).</li>
<li><code>&apos;max_length&apos;</code>: Pad to a maximum length specified with the argument <code>max_length</code> or to the maximum
acceptable input length for the model if that argument is not provided.</li>
<li><code>False</code> or <code>&apos;do_not_pad&apos;</code>: No padding (i.e., can output a batch with sequences of different lengths).</li>
</ul>`,name:"padding"},{anchor:"transformers.DataCollatorForTokenClassification.max_length",description:`<strong>max_length</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Maximum length of the returned list and optionally padding length (see above).`,name:"max_length"},{anchor:"transformers.DataCollatorForTokenClassification.pad_to_multiple_of",description:`<strong>pad_to_multiple_of</strong> (<code>int</code>, <em>optional</em>) &#x2014;
If set will pad the sequence to a multiple of the provided value.</p>
<p>This is especially useful to enable the use of Tensor Cores on NVIDIA hardware with compute capability &gt;=
7.5 (Volta).`,name:"pad_to_multiple_of"},{anchor:"transformers.DataCollatorForTokenClassification.label_pad_token_id",description:`<strong>label_pad_token_id</strong> (<code>int</code>, <em>optional</em>, defaults to -100) &#x2014;
The id to use when padding the labels (-100 will be automatically ignore by PyTorch loss functions).`,name:"label_pad_token_id"},{anchor:"transformers.DataCollatorForTokenClassification.return_tensors",description:`<strong>return_tensors</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;pt&quot;</code>) &#x2014;
The type of Tensor to return. Allowable values are &#x201C;np&#x201D;, &#x201C;pt&#x201D; and &#x201C;tf&#x201D;.`,name:"return_tensors"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/data/data_collator.py#L288"}}),se=new H({props:{title:"DataCollatorForSeq2Seq",local:"transformers.DataCollatorForSeq2Seq",headingTag:"h2"}}),le=new C({props:{name:"class transformers.DataCollatorForSeq2Seq",anchor:"transformers.DataCollatorForSeq2Seq",parameters:[{name:"tokenizer",val:": PreTrainedTokenizerBase"},{name:"model",val:": typing.Optional[typing.Any] = None"},{name:"padding",val:": typing.Union[bool, str, transformers.utils.generic.PaddingStrategy] = True"},{name:"max_length",val:": typing.Optional[int] = None"},{name:"pad_to_multiple_of",val:": typing.Optional[int] = None"},{name:"label_pad_token_id",val:": int = -100"},{name:"return_tensors",val:": str = 'pt'"}],parametersDescription:[{anchor:"transformers.DataCollatorForSeq2Seq.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/pr_30530/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a> or <a href="/docs/transformers/pr_30530/zh/main_classes/tokenizer#transformers.PreTrainedTokenizerFast">PreTrainedTokenizerFast</a>) &#x2014;
The tokenizer used for encoding the data.`,name:"tokenizer"},{anchor:"transformers.DataCollatorForSeq2Seq.model",description:`<strong>model</strong> (<a href="/docs/transformers/pr_30530/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a>, <em>optional</em>) &#x2014;
The model that is being trained. If set and has the <em>prepare_decoder_input_ids_from_labels</em>, use it to
prepare the <em>decoder_input_ids</em></p>
<p>This is useful when using <em>label_smoothing</em> to avoid calculating loss twice.`,name:"model"},{anchor:"transformers.DataCollatorForSeq2Seq.padding",description:`<strong>padding</strong> (<code>bool</code>, <code>str</code> or <a href="/docs/transformers/pr_30530/zh/internal/file_utils#transformers.utils.PaddingStrategy">PaddingStrategy</a>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Select a strategy to pad the returned sequences (according to the model&#x2019;s padding side and padding index)
among:</p>
<ul>
<li><code>True</code> or <code>&apos;longest&apos;</code> (default): Pad to the longest sequence in the batch (or no padding if only a single
sequence is provided).</li>
<li><code>&apos;max_length&apos;</code>: Pad to a maximum length specified with the argument <code>max_length</code> or to the maximum
acceptable input length for the model if that argument is not provided.</li>
<li><code>False</code> or <code>&apos;do_not_pad&apos;</code>: No padding (i.e., can output a batch with sequences of different lengths).</li>
</ul>`,name:"padding"},{anchor:"transformers.DataCollatorForSeq2Seq.max_length",description:`<strong>max_length</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Maximum length of the returned list and optionally padding length (see above).`,name:"max_length"},{anchor:"transformers.DataCollatorForSeq2Seq.pad_to_multiple_of",description:`<strong>pad_to_multiple_of</strong> (<code>int</code>, <em>optional</em>) &#x2014;
If set will pad the sequence to a multiple of the provided value.</p>
<p>This is especially useful to enable the use of Tensor Cores on NVIDIA hardware with compute capability &gt;=
7.5 (Volta).`,name:"pad_to_multiple_of"},{anchor:"transformers.DataCollatorForSeq2Seq.label_pad_token_id",description:`<strong>label_pad_token_id</strong> (<code>int</code>, <em>optional</em>, defaults to -100) &#x2014;
The id to use when padding the labels (-100 will be automatically ignored by PyTorch loss functions).`,name:"label_pad_token_id"},{anchor:"transformers.DataCollatorForSeq2Seq.return_tensors",description:`<strong>return_tensors</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;pt&quot;</code>) &#x2014;
The type of Tensor to return. Allowable values are &#x201C;np&#x201D;, &#x201C;pt&#x201D; and &#x201C;tf&#x201D;.`,name:"return_tensors"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/data/data_collator.py#L543"}}),ie=new H({props:{title:"DataCollatorForLanguageModeling",local:"transformers.DataCollatorForLanguageModeling",headingTag:"h2"}}),de=new C({props:{name:"class transformers.DataCollatorForLanguageModeling",anchor:"transformers.DataCollatorForLanguageModeling",parameters:[{name:"tokenizer",val:": PreTrainedTokenizerBase"},{name:"mlm",val:": bool = True"},{name:"mlm_probability",val:": float = 0.15"},{name:"pad_to_multiple_of",val:": typing.Optional[int] = None"},{name:"tf_experimental_compile",val:": bool = False"},{name:"return_tensors",val:": str = 'pt'"}],parametersDescription:[{anchor:"transformers.DataCollatorForLanguageModeling.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/pr_30530/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a> or <a href="/docs/transformers/pr_30530/zh/main_classes/tokenizer#transformers.PreTrainedTokenizerFast">PreTrainedTokenizerFast</a>) &#x2014;
The tokenizer used for encoding the data.`,name:"tokenizer"},{anchor:"transformers.DataCollatorForLanguageModeling.mlm",description:`<strong>mlm</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to use masked language modeling. If set to <code>False</code>, the labels are the same as the inputs
with the padding tokens ignored (by setting them to -100). Otherwise, the labels are -100 for non-masked
tokens and the value to predict for the masked token.`,name:"mlm"},{anchor:"transformers.DataCollatorForLanguageModeling.mlm_probability",description:`<strong>mlm_probability</strong> (<code>float</code>, <em>optional</em>, defaults to 0.15) &#x2014;
The probability with which to (randomly) mask tokens in the input, when <code>mlm</code> is set to <code>True</code>.`,name:"mlm_probability"},{anchor:"transformers.DataCollatorForLanguageModeling.pad_to_multiple_of",description:`<strong>pad_to_multiple_of</strong> (<code>int</code>, <em>optional</em>) &#x2014;
If set will pad the sequence to a multiple of the provided value.`,name:"pad_to_multiple_of"},{anchor:"transformers.DataCollatorForLanguageModeling.return_tensors",description:`<strong>return_tensors</strong> (<code>str</code>) &#x2014;
The type of Tensor to return. Allowable values are &#x201C;np&#x201D;, &#x201C;pt&#x201D; and &#x201C;tf&#x201D;.`,name:"return_tensors"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/data/data_collator.py#L679"}}),E=new Ra({props:{$$slots:{default:[tr]},$$scope:{ctx:we}}}),me=new C({props:{name:"numpy_mask_tokens",anchor:"transformers.DataCollatorForLanguageModeling.numpy_mask_tokens",parameters:[{name:"inputs",val:": typing.Any"},{name:"special_tokens_mask",val:": typing.Optional[typing.Any] = None"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/data/data_collator.py#L885"}}),pe=new C({props:{name:"tf_mask_tokens",anchor:"transformers.DataCollatorForLanguageModeling.tf_mask_tokens",parameters:[{name:"inputs",val:": typing.Any"},{name:"vocab_size",val:""},{name:"mask_token_id",val:""},{name:"special_tokens_mask",val:": typing.Optional[typing.Any] = None"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/data/data_collator.py#L732"}}),ce=new C({props:{name:"torch_mask_tokens",anchor:"transformers.DataCollatorForLanguageModeling.torch_mask_tokens",parameters:[{name:"inputs",val:": typing.Any"},{name:"special_tokens_mask",val:": typing.Optional[typing.Any] = None"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/data/data_collator.py#L828"}}),ge=new H({props:{title:"DataCollatorForWholeWordMask",local:"transformers.DataCollatorForWholeWordMask",headingTag:"h2"}}),fe=new C({props:{name:"class transformers.DataCollatorForWholeWordMask",anchor:"transformers.DataCollatorForWholeWordMask",parameters:[{name:"tokenizer",val:": PreTrainedTokenizerBase"},{name:"mlm",val:": bool = True"},{name:"mlm_probability",val:": float = 0.15"},{name:"pad_to_multiple_of",val:": typing.Optional[int] = None"},{name:"tf_experimental_compile",val:": bool = False"},{name:"return_tensors",val:": str = 'pt'"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/data/data_collator.py#L923"}}),B=new Ra({props:{$$slots:{default:[ar]},$$scope:{ctx:we}}}),ue=new C({props:{name:"numpy_mask_tokens",anchor:"transformers.DataCollatorForWholeWordMask.numpy_mask_tokens",parameters:[{name:"inputs",val:": typing.Any"},{name:"mask_labels",val:": typing.Any"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/data/data_collator.py#L1154"}}),he=new C({props:{name:"tf_mask_tokens",anchor:"transformers.DataCollatorForWholeWordMask.tf_mask_tokens",parameters:[{name:"inputs",val:": typing.Any"},{name:"mask_labels",val:": typing.Any"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/data/data_collator.py#L1112"}}),_e=new C({props:{name:"torch_mask_tokens",anchor:"transformers.DataCollatorForWholeWordMask.torch_mask_tokens",parameters:[{name:"inputs",val:": typing.Any"},{name:"mask_labels",val:": typing.Any"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/data/data_collator.py#L1072"}}),be=new H({props:{title:"DataCollatorForPermutationLanguageModeling",local:"transformers.DataCollatorForPermutationLanguageModeling",headingTag:"h2"}}),ve=new C({props:{name:"class transformers.DataCollatorForPermutationLanguageModeling",anchor:"transformers.DataCollatorForPermutationLanguageModeling",parameters:[{name:"tokenizer",val:": PreTrainedTokenizerBase"},{name:"plm_probability",val:": float = 0.16666666666666666"},{name:"max_span_length",val:": int = 5"},{name:"return_tensors",val:": str = 'pt'"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/data/data_collator.py#L1278"}}),$e=new C({props:{name:"numpy_mask_tokens",anchor:"transformers.DataCollatorForPermutationLanguageModeling.numpy_mask_tokens",parameters:[{name:"inputs",val:": typing.Any"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/data/data_collator.py#L1519"}}),xe=new C({props:{name:"tf_mask_tokens",anchor:"transformers.DataCollatorForPermutationLanguageModeling.tf_mask_tokens",parameters:[{name:"inputs",val:": typing.Any"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/data/data_collator.py#L1412"}}),ye=new C({props:{name:"torch_mask_tokens",anchor:"transformers.DataCollatorForPermutationLanguageModeling.torch_mask_tokens",parameters:[{name:"inputs",val:": typing.Any"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/data/data_collator.py#L1313"}}),De=new er({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/zh/main_classes/data_collator.md"}}),{c(){h=s("meta"),L=a(),$=s("p"),V=a(),m(G.$$.fragment),at=a(),X=s("p"),X.innerHTML=_a,rt=a(),J=s("p"),J.innerHTML=ba,ot=a(),Q=s("p"),Q.innerHTML=va,nt=a(),m(Y.$$.fragment),st=a(),D=s("div"),m(Z.$$.fragment),Mt=a(),Pe=s("p"),Pe.textContent=$a,St=a(),ze=s("ul"),ze.innerHTML=ka,It=a(),Fe=s("p"),Fe.textContent=xa,lt=a(),m(ee.$$.fragment),it=a(),y=s("div"),m(te.$$.fragment),At=a(),Le=s("p"),Le.textContent=Ca,Wt=a(),qe=s("ul"),qe.innerHTML=ya,Ht=a(),Me=s("p"),Me.textContent=Ta,Vt=a(),Se=s("p"),Se.textContent=Da,dt=a(),m(ae.$$.fragment),mt=a(),I=s("div"),m(re.$$.fragment),Et=a(),Ie=s("p"),Ie.textContent=wa,pt=a(),m(oe.$$.fragment),ct=a(),A=s("div"),m(ne.$$.fragment),jt=a(),Ae=s("p"),Ae.textContent=Pa,gt=a(),m(se.$$.fragment),ft=a(),W=s("div"),m(le.$$.fragment),Nt=a(),We=s("p"),We.textContent=za,ut=a(),m(ie.$$.fragment),ht=a(),k=s("div"),m(de.$$.fragment),Ot=a(),He=s("p"),He.textContent=Fa,Bt=a(),m(E.$$.fragment),Ut=a(),j=s("div"),m(me.$$.fragment),Kt=a(),Ve=s("p"),Ve.textContent=La,Rt=a(),N=s("div"),m(pe.$$.fragment),Gt=a(),Ee=s("p"),Ee.textContent=qa,Xt=a(),O=s("div"),m(ce.$$.fragment),Jt=a(),je=s("p"),je.textContent=Ma,_t=a(),m(ge.$$.fragment),bt=a(),b=s("div"),m(fe.$$.fragment),Qt=a(),Ne=s("p"),Ne.textContent=Sa,Yt=a(),Oe=s("ul"),Oe.innerHTML=Ia,Zt=a(),m(B.$$.fragment),ea=a(),U=s("div"),m(ue.$$.fragment),ta=a(),Be=s("p"),Be.textContent=Aa,aa=a(),K=s("div"),m(he.$$.fragment),ra=a(),Ue=s("p"),Ue.textContent=Wa,oa=a(),R=s("div"),m(_e.$$.fragment),na=a(),Ke=s("p"),Ke.textContent=Ha,vt=a(),m(be.$$.fragment),$t=a(),x=s("div"),m(ve.$$.fragment),sa=a(),Re=s("p"),Re.textContent=Va,la=a(),Ge=s("ul"),Ge.innerHTML=Ea,ia=a(),q=s("div"),m($e.$$.fragment),da=a(),Xe=s("p"),Xe.textContent=ja,ma=a(),ke=s("ol"),ke.innerHTML=Na,pa=a(),M=s("div"),m(xe.$$.fragment),ca=a(),Je=s("p"),Je.textContent=Oa,ga=a(),Ce=s("ol"),Ce.innerHTML=Ba,fa=a(),S=s("div"),m(ye.$$.fragment),ua=a(),Qe=s("p"),Qe.textContent=Ua,ha=a(),Te=s("ol"),Te.innerHTML=Ka,kt=a(),m(De.$$.fragment),xt=a(),tt=s("p"),this.h()},l(e){const n=Za("svelte-u9bgzb",document.head);h=l(n,"META",{name:!0,content:!0}),n.forEach(o),L=r(e),$=l(e,"P",{}),v($).forEach(o),V=r(e),p(G.$$.fragment,e),at=r(e),X=l(e,"P",{"data-svelte-h":!0}),d(X)!=="svelte-1t1zoyx"&&(X.innerHTML=_a),rt=r(e),J=l(e,"P",{"data-svelte-h":!0}),d(J)!=="svelte-j1wwyq"&&(J.innerHTML=ba),ot=r(e),Q=l(e,"P",{"data-svelte-h":!0}),d(Q)!=="svelte-54nsx2"&&(Q.innerHTML=va),nt=r(e),p(Y.$$.fragment,e),st=r(e),D=l(e,"DIV",{class:!0});var F=v(D);p(Z.$$.fragment,F),Mt=r(F),Pe=l(F,"P",{"data-svelte-h":!0}),d(Pe)!=="svelte-1hmsgsg"&&(Pe.textContent=$a),St=r(F),ze=l(F,"UL",{"data-svelte-h":!0}),d(ze)!=="svelte-1pq8qks"&&(ze.innerHTML=ka),It=r(F),Fe=l(F,"P",{"data-svelte-h":!0}),d(Fe)!=="svelte-1vi1gug"&&(Fe.textContent=xa),F.forEach(o),lt=r(e),p(ee.$$.fragment,e),it=r(e),y=l(e,"DIV",{class:!0});var w=v(y);p(te.$$.fragment,w),At=r(w),Le=l(w,"P",{"data-svelte-h":!0}),d(Le)!=="svelte-1hmsgsg"&&(Le.textContent=Ca),Wt=r(w),qe=l(w,"UL",{"data-svelte-h":!0}),d(qe)!=="svelte-1pq8qks"&&(qe.innerHTML=ya),Ht=r(w),Me=l(w,"P",{"data-svelte-h":!0}),d(Me)!=="svelte-1vi1gug"&&(Me.textContent=Ta),Vt=r(w),Se=l(w,"P",{"data-svelte-h":!0}),d(Se)!=="svelte-vfvbwr"&&(Se.textContent=Da),w.forEach(o),dt=r(e),p(ae.$$.fragment,e),mt=r(e),I=l(e,"DIV",{class:!0});var yt=v(I);p(re.$$.fragment,yt),Et=r(yt),Ie=l(yt,"P",{"data-svelte-h":!0}),d(Ie)!=="svelte-1iebpai"&&(Ie.textContent=wa),yt.forEach(o),pt=r(e),p(oe.$$.fragment,e),ct=r(e),A=l(e,"DIV",{class:!0});var Tt=v(A);p(ne.$$.fragment,Tt),jt=r(Tt),Ae=l(Tt,"P",{"data-svelte-h":!0}),d(Ae)!=="svelte-4uvw1w"&&(Ae.textContent=Pa),Tt.forEach(o),gt=r(e),p(se.$$.fragment,e),ft=r(e),W=l(e,"DIV",{class:!0});var Dt=v(W);p(le.$$.fragment,Dt),Nt=r(Dt),We=l(Dt,"P",{"data-svelte-h":!0}),d(We)!=="svelte-4uvw1w"&&(We.textContent=za),Dt.forEach(o),ut=r(e),p(ie.$$.fragment,e),ht=r(e),k=l(e,"DIV",{class:!0});var P=v(k);p(de.$$.fragment,P),Ot=r(P),He=l(P,"P",{"data-svelte-h":!0}),d(He)!=="svelte-10km8jk"&&(He.textContent=Fa),Bt=r(P),p(E.$$.fragment,P),Ut=r(P),j=l(P,"DIV",{class:!0});var wt=v(j);p(me.$$.fragment,wt),Kt=r(wt),Ve=l(wt,"P",{"data-svelte-h":!0}),d(Ve)!=="svelte-iv4xqf"&&(Ve.textContent=La),wt.forEach(o),Rt=r(P),N=l(P,"DIV",{class:!0});var Pt=v(N);p(pe.$$.fragment,Pt),Gt=r(Pt),Ee=l(Pt,"P",{"data-svelte-h":!0}),d(Ee)!=="svelte-iv4xqf"&&(Ee.textContent=qa),Pt.forEach(o),Xt=r(P),O=l(P,"DIV",{class:!0});var zt=v(O);p(ce.$$.fragment,zt),Jt=r(zt),je=l(zt,"P",{"data-svelte-h":!0}),d(je)!=="svelte-iv4xqf"&&(je.textContent=Ma),zt.forEach(o),P.forEach(o),_t=r(e),p(ge.$$.fragment,e),bt=r(e),b=l(e,"DIV",{class:!0});var T=v(b);p(fe.$$.fragment,T),Qt=r(T),Ne=l(T,"P",{"data-svelte-h":!0}),d(Ne)!=="svelte-sjqk55"&&(Ne.textContent=Sa),Yt=r(T),Oe=l(T,"UL",{"data-svelte-h":!0}),d(Oe)!=="svelte-d2ozxj"&&(Oe.innerHTML=Ia),Zt=r(T),p(B.$$.fragment,T),ea=r(T),U=l(T,"DIV",{class:!0});var Ft=v(U);p(ue.$$.fragment,Ft),ta=r(Ft),Be=l(Ft,"P",{"data-svelte-h":!0}),d(Be)!=="svelte-10msjh1"&&(Be.textContent=Aa),Ft.forEach(o),aa=r(T),K=l(T,"DIV",{class:!0});var Lt=v(K);p(he.$$.fragment,Lt),ra=r(Lt),Ue=l(Lt,"P",{"data-svelte-h":!0}),d(Ue)!=="svelte-10msjh1"&&(Ue.textContent=Wa),Lt.forEach(o),oa=r(T),R=l(T,"DIV",{class:!0});var qt=v(R);p(_e.$$.fragment,qt),na=r(qt),Ke=l(qt,"P",{"data-svelte-h":!0}),d(Ke)!=="svelte-10msjh1"&&(Ke.textContent=Ha),qt.forEach(o),T.forEach(o),vt=r(e),p(be.$$.fragment,e),$t=r(e),x=l(e,"DIV",{class:!0});var z=v(x);p(ve.$$.fragment,z),sa=r(z),Re=l(z,"P",{"data-svelte-h":!0}),d(Re)!=="svelte-12inif1"&&(Re.textContent=Va),la=r(z),Ge=l(z,"UL",{"data-svelte-h":!0}),d(Ge)!=="svelte-1t4qh7k"&&(Ge.innerHTML=Ea),ia=r(z),q=l(z,"DIV",{class:!0});var Ye=v(q);p($e.$$.fragment,Ye),da=r(Ye),Xe=l(Ye,"P",{"data-svelte-h":!0}),d(Xe)!=="svelte-1u70phx"&&(Xe.textContent=ja),ma=r(Ye),ke=l(Ye,"OL",{start:!0,"data-svelte-h":!0}),d(ke)!=="svelte-1r6jrbi"&&(ke.innerHTML=Na),Ye.forEach(o),pa=r(z),M=l(z,"DIV",{class:!0});var Ze=v(M);p(xe.$$.fragment,Ze),ca=r(Ze),Je=l(Ze,"P",{"data-svelte-h":!0}),d(Je)!=="svelte-1u70phx"&&(Je.textContent=Oa),ga=r(Ze),Ce=l(Ze,"OL",{start:!0,"data-svelte-h":!0}),d(Ce)!=="svelte-1r6jrbi"&&(Ce.innerHTML=Ba),Ze.forEach(o),fa=r(z),S=l(z,"DIV",{class:!0});var et=v(S);p(ye.$$.fragment,et),ua=r(et),Qe=l(et,"P",{"data-svelte-h":!0}),d(Qe)!=="svelte-1u70phx"&&(Qe.textContent=Ua),ha=r(et),Te=l(et,"OL",{start:!0,"data-svelte-h":!0}),d(Te)!=="svelte-1r6jrbi"&&(Te.innerHTML=Ka),et.forEach(o),z.forEach(o),kt=r(e),p(De.$$.fragment,e),xt=r(e),tt=l(e,"P",{}),v(tt).forEach(o),this.h()},h(){_(h,"name","hf:doc:metadata"),_(h,"content",or),_(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(A,"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"),_(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(b,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(ke,"start","0"),_(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(Ce,"start","0"),_(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(Te,"start","0"),_(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(x,"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,n){t(document.head,h),i(e,L,n),i(e,$,n),i(e,V,n),c(G,e,n),i(e,at,n),i(e,X,n),i(e,rt,n),i(e,J,n),i(e,ot,n),i(e,Q,n),i(e,nt,n),c(Y,e,n),i(e,st,n),i(e,D,n),c(Z,D,null),t(D,Mt),t(D,Pe),t(D,St),t(D,ze),t(D,It),t(D,Fe),i(e,lt,n),c(ee,e,n),i(e,it,n),i(e,y,n),c(te,y,null),t(y,At),t(y,Le),t(y,Wt),t(y,qe),t(y,Ht),t(y,Me),t(y,Vt),t(y,Se),i(e,dt,n),c(ae,e,n),i(e,mt,n),i(e,I,n),c(re,I,null),t(I,Et),t(I,Ie),i(e,pt,n),c(oe,e,n),i(e,ct,n),i(e,A,n),c(ne,A,null),t(A,jt),t(A,Ae),i(e,gt,n),c(se,e,n),i(e,ft,n),i(e,W,n),c(le,W,null),t(W,Nt),t(W,We),i(e,ut,n),c(ie,e,n),i(e,ht,n),i(e,k,n),c(de,k,null),t(k,Ot),t(k,He),t(k,Bt),c(E,k,null),t(k,Ut),t(k,j),c(me,j,null),t(j,Kt),t(j,Ve),t(k,Rt),t(k,N),c(pe,N,null),t(N,Gt),t(N,Ee),t(k,Xt),t(k,O),c(ce,O,null),t(O,Jt),t(O,je),i(e,_t,n),c(ge,e,n),i(e,bt,n),i(e,b,n),c(fe,b,null),t(b,Qt),t(b,Ne),t(b,Yt),t(b,Oe),t(b,Zt),c(B,b,null),t(b,ea),t(b,U),c(ue,U,null),t(U,ta),t(U,Be),t(b,aa),t(b,K),c(he,K,null),t(K,ra),t(K,Ue),t(b,oa),t(b,R),c(_e,R,null),t(R,na),t(R,Ke),i(e,vt,n),c(be,e,n),i(e,$t,n),i(e,x,n),c(ve,x,null),t(x,sa),t(x,Re),t(x,la),t(x,Ge),t(x,ia),t(x,q),c($e,q,null),t(q,da),t(q,Xe),t(q,ma),t(q,ke),t(x,pa),t(x,M),c(xe,M,null),t(M,ca),t(M,Je),t(M,ga),t(M,Ce),t(x,fa),t(x,S),c(ye,S,null),t(S,ua),t(S,Qe),t(S,ha),t(S,Te),i(e,kt,n),c(De,e,n),i(e,xt,n),i(e,tt,n),Ct=!0},p(e,[n]){const F={};n&2&&(F.$$scope={dirty:n,ctx:e}),E.$set(F);const w={};n&2&&(w.$$scope={dirty:n,ctx:e}),B.$set(w)},i(e){Ct||(g(G.$$.fragment,e),g(Y.$$.fragment,e),g(Z.$$.fragment,e),g(ee.$$.fragment,e),g(te.$$.fragment,e),g(ae.$$.fragment,e),g(re.$$.fragment,e),g(oe.$$.fragment,e),g(ne.$$.fragment,e),g(se.$$.fragment,e),g(le.$$.fragment,e),g(ie.$$.fragment,e),g(de.$$.fragment,e),g(E.$$.fragment,e),g(me.$$.fragment,e),g(pe.$$.fragment,e),g(ce.$$.fragment,e),g(ge.$$.fragment,e),g(fe.$$.fragment,e),g(B.$$.fragment,e),g(ue.$$.fragment,e),g(he.$$.fragment,e),g(_e.$$.fragment,e),g(be.$$.fragment,e),g(ve.$$.fragment,e),g($e.$$.fragment,e),g(xe.$$.fragment,e),g(ye.$$.fragment,e),g(De.$$.fragment,e),Ct=!0)},o(e){f(G.$$.fragment,e),f(Y.$$.fragment,e),f(Z.$$.fragment,e),f(ee.$$.fragment,e),f(te.$$.fragment,e),f(ae.$$.fragment,e),f(re.$$.fragment,e),f(oe.$$.fragment,e),f(ne.$$.fragment,e),f(se.$$.fragment,e),f(le.$$.fragment,e),f(ie.$$.fragment,e),f(de.$$.fragment,e),f(E.$$.fragment,e),f(me.$$.fragment,e),f(pe.$$.fragment,e),f(ce.$$.fragment,e),f(ge.$$.fragment,e),f(fe.$$.fragment,e),f(B.$$.fragment,e),f(ue.$$.fragment,e),f(he.$$.fragment,e),f(_e.$$.fragment,e),f(be.$$.fragment,e),f(ve.$$.fragment,e),f($e.$$.fragment,e),f(xe.$$.fragment,e),f(ye.$$.fragment,e),f(De.$$.fragment,e),Ct=!1},d(e){e&&(o(L),o($),o(V),o(at),o(X),o(rt),o(J),o(ot),o(Q),o(nt),o(st),o(D),o(lt),o(it),o(y),o(dt),o(mt),o(I),o(pt),o(ct),o(A),o(gt),o(ft),o(W),o(ut),o(ht),o(k),o(_t),o(bt),o(b),o(vt),o($t),o(x),o(kt),o(xt),o(tt)),o(h),u(G,e),u(Y,e),u(Z),u(ee,e),u(te),u(ae,e),u(re),u(oe,e),u(ne),u(se,e),u(le),u(ie,e),u(de),u(E),u(me),u(pe),u(ce),u(ge,e),u(fe),u(B),u(ue),u(he),u(_e),u(be,e),u(ve),u($e),u(xe),u(ye),u(De,e)}}}const or='{"title":"Data Collator","local":"data-collator","sections":[{"title":"Default data collator","local":"transformers.default_data_collator","sections":[],"depth":2},{"title":"DefaultDataCollator","local":"transformers.DefaultDataCollator","sections":[],"depth":2},{"title":"DataCollatorWithPadding","local":"transformers.DataCollatorWithPadding","sections":[],"depth":2},{"title":"DataCollatorForTokenClassification","local":"transformers.DataCollatorForTokenClassification","sections":[],"depth":2},{"title":"DataCollatorForSeq2Seq","local":"transformers.DataCollatorForSeq2Seq","sections":[],"depth":2},{"title":"DataCollatorForLanguageModeling","local":"transformers.DataCollatorForLanguageModeling","sections":[],"depth":2},{"title":"DataCollatorForWholeWordMask","local":"transformers.DataCollatorForWholeWordMask","sections":[],"depth":2},{"title":"DataCollatorForPermutationLanguageModeling","local":"transformers.DataCollatorForPermutationLanguageModeling","sections":[],"depth":2}],"depth":1}';function nr(we){return Ja(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class pr extends Qa{constructor(h){super(),Ya(this,h,nr,rr,Xa,{})}}export{pr as component};
