import{s as Xa,o as Ja,n as Ga}from"../chunks/scheduler.9991993c.js";import{S as Qa,i as Ya,g as l,s as o,r as m,A as Za,h as s,f as a,c as n,j as k,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,m as eo,n as to}from"../chunks/index.ed60ef0f.js";import{T as Ra}from"../chunks/Tip.8eaeb7b5.js";import{D as C}from"../chunks/Docstring.222cf92b.js";import{H as K,E as ao}from"../chunks/index.5b62b65b.js";function oo(ze){let h,A=`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/main/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a> or a
<a href="/docs/transformers/main/zh/main_classes/tokenizer#transformers.PreTrainedTokenizerFast">PreTrainedTokenizerFast</a> with the argument <code>return_special_tokens_mask=True</code>.`,y,w,I="<li><p>Default Behavior:</p> <ul><li><code>mask_replace_prob=0.8</code>, <code>random_replace_prob=0.1</code>.</li> <li>Expect 80% of masked tokens replaced with <code>[MASK]</code>, 10% replaced with random tokens, and 10% left unchanged.</li></ul></li> <li><p>All masked tokens replaced by <code>[MASK]</code>:</p> <ul><li><code>mask_replace_prob=1.0</code>, <code>random_replace_prob=0.0</code>.</li> <li>Expect all masked tokens to be replaced with <code>[MASK]</code>. No tokens are left unchanged or replaced with random tokens.</li></ul></li> <li><p>No <code>[MASK]</code> replacement, only random tokens:</p> <ul><li><code>mask_replace_prob=0.0</code>, <code>random_replace_prob=1.0</code>.</li> <li>Expect all masked tokens to be replaced with random tokens. No <code>[MASK]</code> replacements or unchanged tokens.</li></ul></li> <li><p>Balanced replacement:</p> <ul><li><code>mask_replace_prob=0.5</code>, <code>random_replace_prob=0.4</code>.</li> <li>Expect 50% of masked tokens replaced with <code>[MASK]</code>, 40% replaced with random tokens, and 10% left unchanged.</li></ul></li>",N,T,ot=`Note:
The sum of <code>mask_replace_prob</code> and <code>random_replace_prob</code> must not exceed 1. If their sum is less than 1, the
remaining proportion will consist of masked tokens left unchanged.`;return{c(){h=l("p"),h.innerHTML=A,y=eo(`
<Example Options and Expectations>
`),w=l("ol"),w.innerHTML=I,N=o(),T=l("p"),T.innerHTML=ot},l(v){h=s(v,"P",{"data-svelte-h":!0}),d(h)!=="svelte-1gijru4"&&(h.innerHTML=A),y=to(v,`
<Example Options and Expectations>
`),w=s(v,"OL",{"data-svelte-h":!0}),d(w)!=="svelte-14xwpjc"&&(w.innerHTML=I),N=n(v),T=s(v,"P",{"data-svelte-h":!0}),d(T)!=="svelte-10bg7dp"&&(T.innerHTML=ot)},m(v,z){i(v,h,z),i(v,y,z),i(v,w,z),i(v,N,z),i(v,T,z)},p:Ga,d(v){v&&(a(h),a(y),a(w),a(N),a(T))}}}function no(ze){let h,A=`This collator relies on details of the implementation of subword tokenization by <a href="/docs/transformers/main/zh/model_doc/bert#transformers.BertTokenizer">BertTokenizer</a>, 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=l("p"),h.innerHTML=A},l(y){h=s(y,"P",{"data-svelte-h":!0}),d(h)!=="svelte-1dp1whu"&&(h.innerHTML=A)},m(y,w){i(y,h,w)},p:Ga,d(y){y&&a(h)}}}function ro(ze){let h,A,y,w,I,N,T,ot="Data collators是一个对象，通过使用数据集元素列表作为输入来形成一个批次。这些元素与 <code>train_dataset</code> 或 <code>eval_dataset</code> 的元素类型相同。",v,z,ba='为了能够构建批次，Data collators可能会应用一些预处理（比如填充）。其中一些（比如<a href="/docs/transformers/main/zh/main_classes/data_collator#transformers.DataCollatorForLanguageModeling">DataCollatorForLanguageModeling</a>）还会在形成的批次上应用一些随机数据增强（比如随机掩码）。',rt,Z,ka='在<a href="../examples">示例脚本</a>或<a href="../notebooks">示例notebooks</a>中可以找到使用的示例。',lt,ee,st,M,te,qt,Me,va=`Very simple data collator that simply collates batches of dict-like objects and performs special handling for
potential keys named:`,At,Le,$a="<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.`,it,ae,dt,D,oe,Et,Se,Ca=`Very simple data collator that simply collates batches of dict-like objects and performs special handling for
potential keys named:`,Ht,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>",Wt,Ae,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.`,Nt,Ie,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.`,mt,ne,pt,V,re,Vt,Ee,wa="Data collator that will dynamically pad the inputs received.",ct,le,gt,O,se,Ot,He,Pa="Data collator that will dynamically pad the inputs received, as well as the labels.",ft,ie,ut,j,de,jt,We,za="Data collator that will dynamically pad the inputs received, as well as the labels.",ht,me,_t,$,pe,Kt,Ne,Ma=`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,B,Ut,U,ce,Rt,Ve,La="Prepare masked tokens inputs/labels for masked language modeling: 80% MASK, 10% random, 10% original.",Gt,R,ge,Xt,Oe,Fa="Prepare masked tokens inputs/labels for masked language modeling: 80% MASK, 10% random, 10% original.",Jt,G,fe,Qt,je,Sa="Prepare masked tokens inputs/labels for masked language modeling: 80% MASK, 10% random, 10% original.",bt,ue,kt,b,he,Yt,Ke,qa="Data collator used for language modeling that masks entire words.",Zt,Be,Aa="<li>collates batches of tensors, honoring their tokenizer’s pad_token</li> <li>preprocesses batches for masked language modeling</li>",ea,X,ta,J,_e,aa,Ue,Ia=`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,Q,be,na,Re,Ea=`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.`,ra,Y,ke,la,Ge,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,ve,$t,x,$e,sa,Xe,Wa="Data collator used for permutation language modeling.",ia,Je,Na="<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>",da,E,xe,ma,Qe,Va="The masked tokens to be predicted for a particular sequence are determined by the following algorithm:",pa,Ce,Oa=`<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>`,ca,H,ye,ga,Ye,ja="The masked tokens to be predicted for a particular sequence are determined by the following algorithm:",fa,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>`,ua,W,De,ha,Ze,Ba="The masked tokens to be predicted for a particular sequence are determined by the following algorithm:",_a,we,Ua=`<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>`,xt,Pe,Ct,nt,yt;return I=new K({props:{title:"Data Collator",local:"data-collator",headingTag:"h1"}}),ee=new K({props:{title:"Default data collator",local:"transformers.default_data_collator",headingTag:"h2"}}),te=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/main/src/transformers/data/data_collator.py#L75"}}),ae=new K({props:{title:"DefaultDataCollator",local:"transformers.DefaultDataCollator",headingTag:"h2"}}),oe=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/main/src/transformers/data/data_collator.py#L100"}}),ne=new K({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/main/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a> or <a href="/docs/transformers/main/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/main/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.0 (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/main/src/transformers/data/data_collator.py#L237"}}),le=new K({props:{title:"DataCollatorForTokenClassification",local:"transformers.DataCollatorForTokenClassification",headingTag:"h2"}}),se=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/main/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a> or <a href="/docs/transformers/main/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/main/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.0 (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/main/src/transformers/data/data_collator.py#L289"}}),ie=new K({props:{title:"DataCollatorForSeq2Seq",local:"transformers.DataCollatorForSeq2Seq",headingTag:"h2"}}),de=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/main/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a> or <a href="/docs/transformers/main/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/main/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/main/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.0 (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/main/src/transformers/data/data_collator.py#L627"}}),me=new K({props:{title:"DataCollatorForLanguageModeling",local:"transformers.DataCollatorForLanguageModeling",headingTag:"h2"}}),pe=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:"mask_replace_prob",val:": float = 0.8"},{name:"random_replace_prob",val:": float = 0.1"},{name:"pad_to_multiple_of",val:": typing.Optional[int] = None"},{name:"tf_experimental_compile",val:": bool = False"},{name:"return_tensors",val:": str = 'pt'"},{name:"seed",val:": typing.Optional[int] = None"}],parametersDescription:[{anchor:"transformers.DataCollatorForLanguageModeling.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/main/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a> or <a href="/docs/transformers/main/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.mask_replace_prob",description:`<strong>mask_replace_prob</strong> (<code>float</code>, <em>optional</em>, defaults to 0.8) &#x2014;
The probability with which masked tokens are replaced by the tokenizer&#x2019;s mask token (e.g., <code>[MASK]</code>).
Defaults to 0.8, meaning 80% of the masked tokens will be replaced with <code>[MASK]</code>.
Only works when <code>mlm</code> is set to <code>True</code>.`,name:"mask_replace_prob"},{anchor:"transformers.DataCollatorForLanguageModeling.random_replace_prob",description:`<strong>random_replace_prob</strong> (<code>float</code>, <em>optional</em>, defaults to 0.1) &#x2014;
The probability with which masked tokens are replaced by random tokens from the tokenizer&#x2019;s vocabulary.
Defaults to 0.1, meaning 10% of the masked tokens will be replaced with random tokens. The remaining
masked tokens (1 - mask_replace_prob - random_replace_prob) are left unchanged.
Only works when <code>mlm</code> is set to <code>True</code>.`,name:"random_replace_prob"},{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"},{anchor:"transformers.DataCollatorForLanguageModeling.seed",description:`<strong>seed</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The seed to use for the random number generator for masking. If not provided, the global RNG will be used.`,name:"seed"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/data/data_collator.py#L763"}}),B=new Ra({props:{$$slots:{default:[oo]},$$scope:{ctx:ze}}}),ce=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/main/src/transformers/data/data_collator.py#L1113"}}),ge=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/main/src/transformers/data/data_collator.py#L911"}}),fe=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/main/src/transformers/data/data_collator.py#L1034"}}),ue=new K({props:{title:"DataCollatorForWholeWordMask",local:"transformers.DataCollatorForWholeWordMask",headingTag:"h2"}}),he=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:"mask_replace_prob",val:": float = 0.8"},{name:"random_replace_prob",val:": float = 0.1"},{name:"pad_to_multiple_of",val:": typing.Optional[int] = None"},{name:"tf_experimental_compile",val:": bool = False"},{name:"return_tensors",val:": str = 'pt'"},{name:"seed",val:": typing.Optional[int] = None"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/data/data_collator.py#L1179"}}),X=new Ra({props:{$$slots:{default:[no]},$$scope:{ctx:ze}}}),_e=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/main/src/transformers/data/data_collator.py#L1476"}}),be=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/main/src/transformers/data/data_collator.py#L1416"}}),ke=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/main/src/transformers/data/data_collator.py#L1360"}}),ve=new K({props:{title:"DataCollatorForPermutationLanguageModeling",local:"transformers.DataCollatorForPermutationLanguageModeling",headingTag:"h2"}}),$e=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/main/src/transformers/data/data_collator.py#L1633"}}),xe=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/main/src/transformers/data/data_collator.py#L1874"}}),ye=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/main/src/transformers/data/data_collator.py#L1767"}}),De=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/main/src/transformers/data/data_collator.py#L1668"}}),Pe=new ao({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/zh/main_classes/data_collator.md"}}),{c(){h=l("meta"),A=o(),y=l("p"),w=o(),m(I.$$.fragment),N=o(),T=l("p"),T.innerHTML=ot,v=o(),z=l("p"),z.innerHTML=ba,rt=o(),Z=l("p"),Z.innerHTML=ka,lt=o(),m(ee.$$.fragment),st=o(),M=l("div"),m(te.$$.fragment),qt=o(),Me=l("p"),Me.textContent=va,At=o(),Le=l("ul"),Le.innerHTML=$a,It=o(),Fe=l("p"),Fe.textContent=xa,it=o(),m(ae.$$.fragment),dt=o(),D=l("div"),m(oe.$$.fragment),Et=o(),Se=l("p"),Se.textContent=Ca,Ht=o(),qe=l("ul"),qe.innerHTML=ya,Wt=o(),Ae=l("p"),Ae.textContent=Ta,Nt=o(),Ie=l("p"),Ie.textContent=Da,mt=o(),m(ne.$$.fragment),pt=o(),V=l("div"),m(re.$$.fragment),Vt=o(),Ee=l("p"),Ee.textContent=wa,ct=o(),m(le.$$.fragment),gt=o(),O=l("div"),m(se.$$.fragment),Ot=o(),He=l("p"),He.textContent=Pa,ft=o(),m(ie.$$.fragment),ut=o(),j=l("div"),m(de.$$.fragment),jt=o(),We=l("p"),We.textContent=za,ht=o(),m(me.$$.fragment),_t=o(),$=l("div"),m(pe.$$.fragment),Kt=o(),Ne=l("p"),Ne.textContent=Ma,Bt=o(),m(B.$$.fragment),Ut=o(),U=l("div"),m(ce.$$.fragment),Rt=o(),Ve=l("p"),Ve.textContent=La,Gt=o(),R=l("div"),m(ge.$$.fragment),Xt=o(),Oe=l("p"),Oe.textContent=Fa,Jt=o(),G=l("div"),m(fe.$$.fragment),Qt=o(),je=l("p"),je.textContent=Sa,bt=o(),m(ue.$$.fragment),kt=o(),b=l("div"),m(he.$$.fragment),Yt=o(),Ke=l("p"),Ke.textContent=qa,Zt=o(),Be=l("ul"),Be.innerHTML=Aa,ea=o(),m(X.$$.fragment),ta=o(),J=l("div"),m(_e.$$.fragment),aa=o(),Ue=l("p"),Ue.textContent=Ia,oa=o(),Q=l("div"),m(be.$$.fragment),na=o(),Re=l("p"),Re.textContent=Ea,ra=o(),Y=l("div"),m(ke.$$.fragment),la=o(),Ge=l("p"),Ge.textContent=Ha,vt=o(),m(ve.$$.fragment),$t=o(),x=l("div"),m($e.$$.fragment),sa=o(),Xe=l("p"),Xe.textContent=Wa,ia=o(),Je=l("ul"),Je.innerHTML=Na,da=o(),E=l("div"),m(xe.$$.fragment),ma=o(),Qe=l("p"),Qe.textContent=Va,pa=o(),Ce=l("ol"),Ce.innerHTML=Oa,ca=o(),H=l("div"),m(ye.$$.fragment),ga=o(),Ye=l("p"),Ye.textContent=ja,fa=o(),Te=l("ol"),Te.innerHTML=Ka,ua=o(),W=l("div"),m(De.$$.fragment),ha=o(),Ze=l("p"),Ze.textContent=Ba,_a=o(),we=l("ol"),we.innerHTML=Ua,xt=o(),m(Pe.$$.fragment),Ct=o(),nt=l("p"),this.h()},l(e){const r=Za("svelte-u9bgzb",document.head);h=s(r,"META",{name:!0,content:!0}),r.forEach(a),A=n(e),y=s(e,"P",{}),k(y).forEach(a),w=n(e),p(I.$$.fragment,e),N=n(e),T=s(e,"P",{"data-svelte-h":!0}),d(T)!=="svelte-1t1zoyx"&&(T.innerHTML=ot),v=n(e),z=s(e,"P",{"data-svelte-h":!0}),d(z)!=="svelte-aec1vj"&&(z.innerHTML=ba),rt=n(e),Z=s(e,"P",{"data-svelte-h":!0}),d(Z)!=="svelte-54nsx2"&&(Z.innerHTML=ka),lt=n(e),p(ee.$$.fragment,e),st=n(e),M=s(e,"DIV",{class:!0});var q=k(M);p(te.$$.fragment,q),qt=n(q),Me=s(q,"P",{"data-svelte-h":!0}),d(Me)!=="svelte-1hmsgsg"&&(Me.textContent=va),At=n(q),Le=s(q,"UL",{"data-svelte-h":!0}),d(Le)!=="svelte-1pq8qks"&&(Le.innerHTML=$a),It=n(q),Fe=s(q,"P",{"data-svelte-h":!0}),d(Fe)!=="svelte-1vi1gug"&&(Fe.textContent=xa),q.forEach(a),it=n(e),p(ae.$$.fragment,e),dt=n(e),D=s(e,"DIV",{class:!0});var L=k(D);p(oe.$$.fragment,L),Et=n(L),Se=s(L,"P",{"data-svelte-h":!0}),d(Se)!=="svelte-1hmsgsg"&&(Se.textContent=Ca),Ht=n(L),qe=s(L,"UL",{"data-svelte-h":!0}),d(qe)!=="svelte-1pq8qks"&&(qe.innerHTML=ya),Wt=n(L),Ae=s(L,"P",{"data-svelte-h":!0}),d(Ae)!=="svelte-1vi1gug"&&(Ae.textContent=Ta),Nt=n(L),Ie=s(L,"P",{"data-svelte-h":!0}),d(Ie)!=="svelte-vfvbwr"&&(Ie.textContent=Da),L.forEach(a),mt=n(e),p(ne.$$.fragment,e),pt=n(e),V=s(e,"DIV",{class:!0});var Tt=k(V);p(re.$$.fragment,Tt),Vt=n(Tt),Ee=s(Tt,"P",{"data-svelte-h":!0}),d(Ee)!=="svelte-1iebpai"&&(Ee.textContent=wa),Tt.forEach(a),ct=n(e),p(le.$$.fragment,e),gt=n(e),O=s(e,"DIV",{class:!0});var Dt=k(O);p(se.$$.fragment,Dt),Ot=n(Dt),He=s(Dt,"P",{"data-svelte-h":!0}),d(He)!=="svelte-4uvw1w"&&(He.textContent=Pa),Dt.forEach(a),ft=n(e),p(ie.$$.fragment,e),ut=n(e),j=s(e,"DIV",{class:!0});var wt=k(j);p(de.$$.fragment,wt),jt=n(wt),We=s(wt,"P",{"data-svelte-h":!0}),d(We)!=="svelte-4uvw1w"&&(We.textContent=za),wt.forEach(a),ht=n(e),p(me.$$.fragment,e),_t=n(e),$=s(e,"DIV",{class:!0});var F=k($);p(pe.$$.fragment,F),Kt=n(F),Ne=s(F,"P",{"data-svelte-h":!0}),d(Ne)!=="svelte-10km8jk"&&(Ne.textContent=Ma),Bt=n(F),p(B.$$.fragment,F),Ut=n(F),U=s(F,"DIV",{class:!0});var Pt=k(U);p(ce.$$.fragment,Pt),Rt=n(Pt),Ve=s(Pt,"P",{"data-svelte-h":!0}),d(Ve)!=="svelte-iv4xqf"&&(Ve.textContent=La),Pt.forEach(a),Gt=n(F),R=s(F,"DIV",{class:!0});var zt=k(R);p(ge.$$.fragment,zt),Xt=n(zt),Oe=s(zt,"P",{"data-svelte-h":!0}),d(Oe)!=="svelte-iv4xqf"&&(Oe.textContent=Fa),zt.forEach(a),Jt=n(F),G=s(F,"DIV",{class:!0});var Mt=k(G);p(fe.$$.fragment,Mt),Qt=n(Mt),je=s(Mt,"P",{"data-svelte-h":!0}),d(je)!=="svelte-iv4xqf"&&(je.textContent=Sa),Mt.forEach(a),F.forEach(a),bt=n(e),p(ue.$$.fragment,e),kt=n(e),b=s(e,"DIV",{class:!0});var P=k(b);p(he.$$.fragment,P),Yt=n(P),Ke=s(P,"P",{"data-svelte-h":!0}),d(Ke)!=="svelte-sjqk55"&&(Ke.textContent=qa),Zt=n(P),Be=s(P,"UL",{"data-svelte-h":!0}),d(Be)!=="svelte-d2ozxj"&&(Be.innerHTML=Aa),ea=n(P),p(X.$$.fragment,P),ta=n(P),J=s(P,"DIV",{class:!0});var Lt=k(J);p(_e.$$.fragment,Lt),aa=n(Lt),Ue=s(Lt,"P",{"data-svelte-h":!0}),d(Ue)!=="svelte-10msjh1"&&(Ue.textContent=Ia),Lt.forEach(a),oa=n(P),Q=s(P,"DIV",{class:!0});var Ft=k(Q);p(be.$$.fragment,Ft),na=n(Ft),Re=s(Ft,"P",{"data-svelte-h":!0}),d(Re)!=="svelte-10msjh1"&&(Re.textContent=Ea),Ft.forEach(a),ra=n(P),Y=s(P,"DIV",{class:!0});var St=k(Y);p(ke.$$.fragment,St),la=n(St),Ge=s(St,"P",{"data-svelte-h":!0}),d(Ge)!=="svelte-10msjh1"&&(Ge.textContent=Ha),St.forEach(a),P.forEach(a),vt=n(e),p(ve.$$.fragment,e),$t=n(e),x=s(e,"DIV",{class:!0});var S=k(x);p($e.$$.fragment,S),sa=n(S),Xe=s(S,"P",{"data-svelte-h":!0}),d(Xe)!=="svelte-12inif1"&&(Xe.textContent=Wa),ia=n(S),Je=s(S,"UL",{"data-svelte-h":!0}),d(Je)!=="svelte-1t4qh7k"&&(Je.innerHTML=Na),da=n(S),E=s(S,"DIV",{class:!0});var et=k(E);p(xe.$$.fragment,et),ma=n(et),Qe=s(et,"P",{"data-svelte-h":!0}),d(Qe)!=="svelte-1u70phx"&&(Qe.textContent=Va),pa=n(et),Ce=s(et,"OL",{start:!0,"data-svelte-h":!0}),d(Ce)!=="svelte-1r6jrbi"&&(Ce.innerHTML=Oa),et.forEach(a),ca=n(S),H=s(S,"DIV",{class:!0});var tt=k(H);p(ye.$$.fragment,tt),ga=n(tt),Ye=s(tt,"P",{"data-svelte-h":!0}),d(Ye)!=="svelte-1u70phx"&&(Ye.textContent=ja),fa=n(tt),Te=s(tt,"OL",{start:!0,"data-svelte-h":!0}),d(Te)!=="svelte-1r6jrbi"&&(Te.innerHTML=Ka),tt.forEach(a),ua=n(S),W=s(S,"DIV",{class:!0});var at=k(W);p(De.$$.fragment,at),ha=n(at),Ze=s(at,"P",{"data-svelte-h":!0}),d(Ze)!=="svelte-1u70phx"&&(Ze.textContent=Ba),_a=n(at),we=s(at,"OL",{start:!0,"data-svelte-h":!0}),d(we)!=="svelte-1r6jrbi"&&(we.innerHTML=Ua),at.forEach(a),S.forEach(a),xt=n(e),p(Pe.$$.fragment,e),Ct=n(e),nt=s(e,"P",{}),k(nt).forEach(a),this.h()},h(){_(h,"name","hf:doc:metadata"),_(h,"content",lo),_(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(V,"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"),_(j,"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"),_(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_($,"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"),_(Q,"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"),_(b,"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"),_(E,"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"),_(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(we,"start","0"),_(W,"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,r){t(document.head,h),i(e,A,r),i(e,y,r),i(e,w,r),c(I,e,r),i(e,N,r),i(e,T,r),i(e,v,r),i(e,z,r),i(e,rt,r),i(e,Z,r),i(e,lt,r),c(ee,e,r),i(e,st,r),i(e,M,r),c(te,M,null),t(M,qt),t(M,Me),t(M,At),t(M,Le),t(M,It),t(M,Fe),i(e,it,r),c(ae,e,r),i(e,dt,r),i(e,D,r),c(oe,D,null),t(D,Et),t(D,Se),t(D,Ht),t(D,qe),t(D,Wt),t(D,Ae),t(D,Nt),t(D,Ie),i(e,mt,r),c(ne,e,r),i(e,pt,r),i(e,V,r),c(re,V,null),t(V,Vt),t(V,Ee),i(e,ct,r),c(le,e,r),i(e,gt,r),i(e,O,r),c(se,O,null),t(O,Ot),t(O,He),i(e,ft,r),c(ie,e,r),i(e,ut,r),i(e,j,r),c(de,j,null),t(j,jt),t(j,We),i(e,ht,r),c(me,e,r),i(e,_t,r),i(e,$,r),c(pe,$,null),t($,Kt),t($,Ne),t($,Bt),c(B,$,null),t($,Ut),t($,U),c(ce,U,null),t(U,Rt),t(U,Ve),t($,Gt),t($,R),c(ge,R,null),t(R,Xt),t(R,Oe),t($,Jt),t($,G),c(fe,G,null),t(G,Qt),t(G,je),i(e,bt,r),c(ue,e,r),i(e,kt,r),i(e,b,r),c(he,b,null),t(b,Yt),t(b,Ke),t(b,Zt),t(b,Be),t(b,ea),c(X,b,null),t(b,ta),t(b,J),c(_e,J,null),t(J,aa),t(J,Ue),t(b,oa),t(b,Q),c(be,Q,null),t(Q,na),t(Q,Re),t(b,ra),t(b,Y),c(ke,Y,null),t(Y,la),t(Y,Ge),i(e,vt,r),c(ve,e,r),i(e,$t,r),i(e,x,r),c($e,x,null),t(x,sa),t(x,Xe),t(x,ia),t(x,Je),t(x,da),t(x,E),c(xe,E,null),t(E,ma),t(E,Qe),t(E,pa),t(E,Ce),t(x,ca),t(x,H),c(ye,H,null),t(H,ga),t(H,Ye),t(H,fa),t(H,Te),t(x,ua),t(x,W),c(De,W,null),t(W,ha),t(W,Ze),t(W,_a),t(W,we),i(e,xt,r),c(Pe,e,r),i(e,Ct,r),i(e,nt,r),yt=!0},p(e,[r]){const q={};r&2&&(q.$$scope={dirty:r,ctx:e}),B.$set(q);const L={};r&2&&(L.$$scope={dirty:r,ctx:e}),X.$set(L)},i(e){yt||(g(I.$$.fragment,e),g(ee.$$.fragment,e),g(te.$$.fragment,e),g(ae.$$.fragment,e),g(oe.$$.fragment,e),g(ne.$$.fragment,e),g(re.$$.fragment,e),g(le.$$.fragment,e),g(se.$$.fragment,e),g(ie.$$.fragment,e),g(de.$$.fragment,e),g(me.$$.fragment,e),g(pe.$$.fragment,e),g(B.$$.fragment,e),g(ce.$$.fragment,e),g(ge.$$.fragment,e),g(fe.$$.fragment,e),g(ue.$$.fragment,e),g(he.$$.fragment,e),g(X.$$.fragment,e),g(_e.$$.fragment,e),g(be.$$.fragment,e),g(ke.$$.fragment,e),g(ve.$$.fragment,e),g($e.$$.fragment,e),g(xe.$$.fragment,e),g(ye.$$.fragment,e),g(De.$$.fragment,e),g(Pe.$$.fragment,e),yt=!0)},o(e){f(I.$$.fragment,e),f(ee.$$.fragment,e),f(te.$$.fragment,e),f(ae.$$.fragment,e),f(oe.$$.fragment,e),f(ne.$$.fragment,e),f(re.$$.fragment,e),f(le.$$.fragment,e),f(se.$$.fragment,e),f(ie.$$.fragment,e),f(de.$$.fragment,e),f(me.$$.fragment,e),f(pe.$$.fragment,e),f(B.$$.fragment,e),f(ce.$$.fragment,e),f(ge.$$.fragment,e),f(fe.$$.fragment,e),f(ue.$$.fragment,e),f(he.$$.fragment,e),f(X.$$.fragment,e),f(_e.$$.fragment,e),f(be.$$.fragment,e),f(ke.$$.fragment,e),f(ve.$$.fragment,e),f($e.$$.fragment,e),f(xe.$$.fragment,e),f(ye.$$.fragment,e),f(De.$$.fragment,e),f(Pe.$$.fragment,e),yt=!1},d(e){e&&(a(A),a(y),a(w),a(N),a(T),a(v),a(z),a(rt),a(Z),a(lt),a(st),a(M),a(it),a(dt),a(D),a(mt),a(pt),a(V),a(ct),a(gt),a(O),a(ft),a(ut),a(j),a(ht),a(_t),a($),a(bt),a(kt),a(b),a(vt),a($t),a(x),a(xt),a(Ct),a(nt)),a(h),u(I,e),u(ee,e),u(te),u(ae,e),u(oe),u(ne,e),u(re),u(le,e),u(se),u(ie,e),u(de),u(me,e),u(pe),u(B),u(ce),u(ge),u(fe),u(ue,e),u(he),u(X),u(_e),u(be),u(ke),u(ve,e),u($e),u(xe),u(ye),u(De),u(Pe,e)}}}const lo='{"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 so(ze){return Ja(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class fo extends Qa{constructor(h){super(),Ya(this,h,so,ro,Xa,{})}}export{fo as component};
