import{s as Xl,o as Nl,n as k}from"../chunks/scheduler.25b97de1.js";import{S as Fl,i as Ll,g as m,s as l,r as h,A as Al,h as c,f as n,c as t,j as Yl,u as o,x as u,k as _,y as Ql,a as e,v as i,d as j,t as b,w as d,m as El,n as Pl}from"../chunks/index.d9030fc9.js";import{T as L}from"../chunks/Tip.baa67368.js";import{Y as Sl}from"../chunks/Youtube.eaf1a617.js";import{C as M}from"../chunks/CodeBlock.e6cd0d95.js";import{D as Dl}from"../chunks/DocNotebookDropdown.5ea6cb78.js";import{F as Kl,M as ql}from"../chunks/Markdown.7217f838.js";import{H as I,E as Ol}from"../chunks/EditOnGithub.91d95064.js";function st(y){let p,f="<code>AutoProcessor</code> <strong>always</strong> works and automatically chooses the correct class for the model you’re using, whether you’re using a tokenizer, image processor, feature extractor or processor.";return{c(){p=m("p"),p.innerHTML=f},l(r){p=c(r,"P",{"data-svelte-h":!0}),u(p)!=="svelte-15om5of"&&(p.innerHTML=f)},m(r,g){e(r,p,g)},p:k,d(r){r&&n(p)}}}function at(y){let p,f="If you plan on using a pretrained model, it’s important to use the associated pretrained tokenizer. This ensures the text is split the same way as the pretraining corpus, and uses the same corresponding tokens-to-index (usually referred to as the <em>vocab</em>) during pretraining.";return{c(){p=m("p"),p.innerHTML=f},l(r){p=c(r,"P",{"data-svelte-h":!0}),u(p)!=="svelte-1irmkk5"&&(p.innerHTML=f)},m(r,g){e(r,p,g)},p:k,d(r){r&&n(p)}}}function nt(y){let p,f='Check out the <a href="./pad_truncation">Padding and truncation</a> concept guide to learn more different padding and truncation arguments.';return{c(){p=m("p"),p.innerHTML=f},l(r){p=c(r,"P",{"data-svelte-h":!0}),u(p)!=="svelte-4vcsqp"&&(p.innerHTML=f)},m(r,g){e(r,p,g)},p:k,d(r){r&&n(p)}}}function et(y){let p,f;return p=new M({props:{code:"YmF0Y2hfc2VudGVuY2VzJTIwJTNEJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIyQnV0JTIwd2hhdCUyMGFib3V0JTIwc2Vjb25kJTIwYnJlYWtmYXN0JTNGJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIyRG9uJ3QlMjB0aGluayUyMGhlJTIwa25vd3MlMjBhYm91dCUyMHNlY29uZCUyMGJyZWFrZmFzdCUyQyUyMFBpcC4lMjIlMkMlMEElMjAlMjAlMjAlMjAlMjJXaGF0JTIwYWJvdXQlMjBlbGV2ZW5zaWVzJTNGJTIyJTJDJTBBJTVEJTBBZW5jb2RlZF9pbnB1dCUyMCUzRCUyMHRva2VuaXplcihiYXRjaF9zZW50ZW5jZXMlMkMlMjBwYWRkaW5nJTNEVHJ1ZSUyQyUyMHRydW5jYXRpb24lM0RUcnVlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEFwcmludChlbmNvZGVkX2lucHV0KQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>batch_sentences = [
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;But what about second breakfast?&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;Don&#x27;t think he knows about second breakfast, Pip.&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;What about elevensies?&quot;</span>,
<span class="hljs-meta">... </span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>encoded_input = tokenizer(batch_sentences, padding=<span class="hljs-literal">True</span>, truncation=<span class="hljs-literal">True</span>, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(encoded_input)
{<span class="hljs-string">&#x27;input_ids&#x27;</span>: tensor([[<span class="hljs-number">101</span>, <span class="hljs-number">1252</span>, <span class="hljs-number">1184</span>, <span class="hljs-number">1164</span>, <span class="hljs-number">1248</span>, <span class="hljs-number">6462</span>, <span class="hljs-number">136</span>, <span class="hljs-number">102</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>],
                      [<span class="hljs-number">101</span>, <span class="hljs-number">1790</span>, <span class="hljs-number">112</span>, <span class="hljs-number">189</span>, <span class="hljs-number">1341</span>, <span class="hljs-number">1119</span>, <span class="hljs-number">3520</span>, <span class="hljs-number">1164</span>, <span class="hljs-number">1248</span>, <span class="hljs-number">6462</span>, <span class="hljs-number">117</span>, <span class="hljs-number">21902</span>, <span class="hljs-number">1643</span>, <span class="hljs-number">119</span>, <span class="hljs-number">102</span>],
                      [<span class="hljs-number">101</span>, <span class="hljs-number">1327</span>, <span class="hljs-number">1164</span>, <span class="hljs-number">5450</span>, <span class="hljs-number">23434</span>, <span class="hljs-number">136</span>, <span class="hljs-number">102</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>]]),
 <span class="hljs-string">&#x27;token_type_ids&#x27;</span>: tensor([[<span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>],
                           [<span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>],
                           [<span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>]]),
 <span class="hljs-string">&#x27;attention_mask&#x27;</span>: tensor([[<span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>],
                           [<span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>],
                           [<span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>]])}`,wrap:!1}}),{c(){h(p.$$.fragment)},l(r){o(p.$$.fragment,r)},m(r,g){i(p,r,g),f=!0},p:k,i(r){f||(j(p.$$.fragment,r),f=!0)},o(r){b(p.$$.fragment,r),f=!1},d(r){d(p,r)}}}function lt(y){let p,f;return p=new ql({props:{$$slots:{default:[et]},$$scope:{ctx:y}}}),{c(){h(p.$$.fragment)},l(r){o(p.$$.fragment,r)},m(r,g){i(p,r,g),f=!0},p(r,g){const $={};g&2&&($.$$scope={dirty:g,ctx:r}),p.$set($)},i(r){f||(j(p.$$.fragment,r),f=!0)},o(r){b(p.$$.fragment,r),f=!1},d(r){d(p,r)}}}function tt(y){let p,f;return p=new M({props:{code:"YmF0Y2hfc2VudGVuY2VzJTIwJTNEJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIyQnV0JTIwd2hhdCUyMGFib3V0JTIwc2Vjb25kJTIwYnJlYWtmYXN0JTNGJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIyRG9uJ3QlMjB0aGluayUyMGhlJTIwa25vd3MlMjBhYm91dCUyMHNlY29uZCUyMGJyZWFrZmFzdCUyQyUyMFBpcC4lMjIlMkMlMEElMjAlMjAlMjAlMjAlMjJXaGF0JTIwYWJvdXQlMjBlbGV2ZW5zaWVzJTNGJTIyJTJDJTBBJTVEJTBBZW5jb2RlZF9pbnB1dCUyMCUzRCUyMHRva2VuaXplcihiYXRjaF9zZW50ZW5jZXMlMkMlMjBwYWRkaW5nJTNEVHJ1ZSUyQyUyMHRydW5jYXRpb24lM0RUcnVlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJ0ZiUyMiklMEFwcmludChlbmNvZGVkX2lucHV0KQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>batch_sentences = [
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;But what about second breakfast?&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;Don&#x27;t think he knows about second breakfast, Pip.&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;What about elevensies?&quot;</span>,
<span class="hljs-meta">... </span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>encoded_input = tokenizer(batch_sentences, padding=<span class="hljs-literal">True</span>, truncation=<span class="hljs-literal">True</span>, return_tensors=<span class="hljs-string">&quot;tf&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(encoded_input)
{<span class="hljs-string">&#x27;input_ids&#x27;</span>: &lt;tf.Tensor: shape=(<span class="hljs-number">2</span>, <span class="hljs-number">9</span>), dtype=int32, numpy=
array([[<span class="hljs-number">101</span>, <span class="hljs-number">1252</span>, <span class="hljs-number">1184</span>, <span class="hljs-number">1164</span>, <span class="hljs-number">1248</span>, <span class="hljs-number">6462</span>, <span class="hljs-number">136</span>, <span class="hljs-number">102</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>],
       [<span class="hljs-number">101</span>, <span class="hljs-number">1790</span>, <span class="hljs-number">112</span>, <span class="hljs-number">189</span>, <span class="hljs-number">1341</span>, <span class="hljs-number">1119</span>, <span class="hljs-number">3520</span>, <span class="hljs-number">1164</span>, <span class="hljs-number">1248</span>, <span class="hljs-number">6462</span>, <span class="hljs-number">117</span>, <span class="hljs-number">21902</span>, <span class="hljs-number">1643</span>, <span class="hljs-number">119</span>, <span class="hljs-number">102</span>],
       [<span class="hljs-number">101</span>, <span class="hljs-number">1327</span>, <span class="hljs-number">1164</span>, <span class="hljs-number">5450</span>, <span class="hljs-number">23434</span>, <span class="hljs-number">136</span>, <span class="hljs-number">102</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>]],
      dtype=int32)&gt;,
 <span class="hljs-string">&#x27;token_type_ids&#x27;</span>: &lt;tf.Tensor: shape=(<span class="hljs-number">2</span>, <span class="hljs-number">9</span>), dtype=int32, numpy=
array([[<span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>],
       [<span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>],
       [<span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>]], dtype=int32)&gt;,
 <span class="hljs-string">&#x27;attention_mask&#x27;</span>: &lt;tf.Tensor: shape=(<span class="hljs-number">2</span>, <span class="hljs-number">9</span>), dtype=int32, numpy=
array([[<span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>],
       [<span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>],
       [<span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>]], dtype=int32)&gt;}`,wrap:!1}}),{c(){h(p.$$.fragment)},l(r){o(p.$$.fragment,r)},m(r,g){i(p,r,g),f=!0},p:k,i(r){f||(j(p.$$.fragment,r),f=!0)},o(r){b(p.$$.fragment,r),f=!1},d(r){d(p,r)}}}function pt(y){let p,f;return p=new ql({props:{$$slots:{default:[tt]},$$scope:{ctx:y}}}),{c(){h(p.$$.fragment)},l(r){o(p.$$.fragment,r)},m(r,g){i(p,r,g),f=!0},p(r,g){const $={};g&2&&($.$$scope={dirty:g,ctx:r}),p.$set($)},i(r){f||(j(p.$$.fragment,r),f=!0)},o(r){b(p.$$.fragment,r),f=!1},d(r){d(p,r)}}}function rt(y){let p;return{c(){p=El("Different pipelines support tokenizer arguments in their `__call__()` differently. `text-2-text-generation` pipelines support (i.e. pass on)\nonly `truncation`. `text-generation` pipelines support `max_length`, `truncation`, `padding` and `add_special_tokens`. \nIn `fill-mask` pipelines, tokenizer arguments can be passed in the `tokenizer_kwargs` argument (dictionary).")},l(f){p=Pl(f,"Different pipelines support tokenizer arguments in their `__call__()` differently. `text-2-text-generation` pipelines support (i.e. pass on)\nonly `truncation`. `text-generation` pipelines support `max_length`, `truncation`, `padding` and `add_special_tokens`. \nIn `fill-mask` pipelines, tokenizer arguments can be passed in the `tokenizer_kwargs` argument (dictionary).")},m(f,r){e(f,p,r)},d(f){f&&n(p)}}}function mt(y){let p,f=`Image preprocessing often follows some form of image augmentation. Both image preprocessing and image augmentation
transform image data, but they serve different purposes:`,r,g,$="<li>Image augmentation alters images in a way that can help prevent overfitting and increase the robustness of the model. You can get creative in how you augment your data - adjust brightness and colors, crop, rotate, resize, zoom, etc. However, be mindful not to change the meaning of the images with your augmentations.</li> <li>Image preprocessing guarantees that the images match the model’s expected input format. When fine-tuning a computer vision model, images must be preprocessed exactly as when the model was initially trained.</li>",J,w,A="You can use any library you like for image augmentation. For image preprocessing, use the <code>ImageProcessor</code> associated with the model.";return{c(){p=m("p"),p.textContent=f,r=l(),g=m("ul"),g.innerHTML=$,J=l(),w=m("p"),w.innerHTML=A},l(T){p=c(T,"P",{"data-svelte-h":!0}),u(p)!=="svelte-aepj6y"&&(p.textContent=f),r=t(T),g=c(T,"UL",{"data-svelte-h":!0}),u(g)!=="svelte-mzhu6i"&&(g.innerHTML=$),J=t(T),w=c(T,"P",{"data-svelte-h":!0}),u(w)!=="svelte-dwyc8n"&&(w.innerHTML=A)},m(T,v){e(T,p,v),e(T,r,v),e(T,g,v),e(T,J,v),e(T,w,v)},p:k,d(T){T&&(n(p),n(r),n(g),n(J),n(w))}}}function ct(y){let p,f="Use 🤗 Datasets <code>split</code> parameter to only load a small sample from the training split since the dataset is quite large!";return{c(){p=m("p"),p.innerHTML=f},l(r){p=c(r,"P",{"data-svelte-h":!0}),u(p)!=="svelte-14ltu7c"&&(p.innerHTML=f)},m(r,g){e(r,p,g)},p:k,d(r){r&&n(p)}}}function ut(y){let p,f=`In the example above we set <code>do_resize=False</code> because we have already resized the images in the image augmentation transformation,
and leveraged the <code>size</code> attribute from the appropriate <code>image_processor</code>. If you do not resize images during image augmentation,
leave this parameter out. By default, <code>ImageProcessor</code> will handle the resizing.`,r,g,$=`If you wish to normalize images as a part of the augmentation transformation, use the <code>image_processor.image_mean</code>,
and <code>image_processor.image_std</code> values.`;return{c(){p=m("p"),p.innerHTML=f,r=l(),g=m("p"),g.innerHTML=$},l(J){p=c(J,"P",{"data-svelte-h":!0}),u(p)!=="svelte-nqgnl7"&&(p.innerHTML=f),r=t(J),g=c(J,"P",{"data-svelte-h":!0}),u(g)!=="svelte-13w97bd"&&(g.innerHTML=$)},m(J,w){e(J,p,w),e(J,r,w),e(J,g,w)},p:k,d(J){J&&(n(p),n(r),n(g))}}}function ht(y){let p,f=`For tasks like object detection, semantic segmentation, instance segmentation, and panoptic segmentation, <code>ImageProcessor</code>
offers post processing methods. These methods convert model’s raw outputs into meaningful predictions such as bounding boxes,
or segmentation maps.`;return{c(){p=m("p"),p.innerHTML=f},l(r){p=c(r,"P",{"data-svelte-h":!0}),u(p)!=="svelte-p4rlwj"&&(p.innerHTML=f)},m(r,g){e(r,p,g)},p:k,d(r){r&&n(p)}}}function ot(y){let p,f,r,g,$,J,w,A,T,v="Before you can train a model on a dataset, it needs to be preprocessed into the expected model input format. Whether your data is text, images, or audio, they need to be converted and assembled into batches of tensors. 🤗 Transformers provides a set of preprocessing classes to help prepare your data for the model. In this tutorial, you’ll learn that for:",xa,Q,Ce='<li>Text, use a <a href="./main_classes/tokenizer">Tokenizer</a> to convert text into a sequence of tokens, create a numerical representation of the tokens, and assemble them into tensors.</li> <li>Speech and audio, use a <a href="./main_classes/feature_extractor">Feature extractor</a> to extract sequential features from audio waveforms and convert them into tensors.</li> <li>Image inputs use a <a href="./main_classes/image_processor">ImageProcessor</a> to convert images into tensors.</li> <li>Multimodal inputs, use a <a href="./main_classes/processors">Processor</a> to combine a tokenizer and a feature extractor or image processor.</li>',Ca,U,Za,E,Ze="Before you begin, install 🤗 Datasets so you can load some datasets to experiment with:",Ga,P,Va,S,Ba,D,Wa,K,Ge='The main tool for preprocessing textual data is a <a href="main_classes/tokenizer">tokenizer</a>. A tokenizer splits text into <em>tokens</em> according to a set of rules. The tokens are converted into numbers and then tensors, which become the model inputs. Any additional inputs required by the model are added by the tokenizer.',za,x,Ha,O,Ve='Get started by loading a pretrained tokenizer with the <a href="/docs/transformers/pr_30962/en/model_doc/auto#transformers.AutoTokenizer.from_pretrained">AutoTokenizer.from_pretrained()</a> method. This downloads the <em>vocab</em> a model was pretrained with:',Ra,ss,Ya,as,Be="Then pass your text to the tokenizer:",qa,ns,Xa,es,We="The tokenizer returns a dictionary with three important items:",Na,ls,ze='<li><a href="glossary#input-ids">input_ids</a> are the indices corresponding to each token in the sentence.</li> <li><a href="glossary#attention-mask">attention_mask</a> indicates whether a token should be attended to or not.</li> <li><a href="glossary#token-type-ids">token_type_ids</a> identifies which sequence a token belongs to when there is more than one sequence.</li>',Fa,ts,He="Return your input by decoding the <code>input_ids</code>:",La,ps,Aa,rs,Re=`As you can see, the tokenizer added two special tokens - <code>CLS</code> and <code>SEP</code> (classifier and separator) - to the sentence. Not all models need
special tokens, but if they do, the tokenizer automatically adds them for you.`,Qa,ms,Ye="If there are several sentences you want to preprocess, pass them as a list to the tokenizer:",Ea,cs,Pa,us,Sa,hs,qe="Sentences aren’t always the same length which can be an issue because tensors, the model inputs, need to have a uniform shape. Padding is a strategy for ensuring tensors are rectangular by adding a special <em>padding token</em> to shorter sentences.",Da,os,Xe="Set the <code>padding</code> parameter to <code>True</code> to pad the shorter sequences in the batch to match the longest sequence:",Ka,is,Oa,js,Ne="The first and third sentences are now padded with <code>0</code>’s because they are shorter.",sn,bs,an,ds,Fe="On the other end of the spectrum, sometimes a sequence may be too long for a model to handle. In this case, you’ll need to truncate the sequence to a shorter length.",nn,fs,Le="Set the <code>truncation</code> parameter to <code>True</code> to truncate a sequence to the maximum length accepted by the model:",en,gs,ln,C,tn,Ms,pn,ys,Ae="Finally, you want the tokenizer to return the actual tensors that get fed to the model.",rn,Ts,Qe="Set the <code>return_tensors</code> parameter to either <code>pt</code> for PyTorch, or <code>tf</code> for TensorFlow:",mn,Z,cn,G,un,$s,hn,Js,Ee='For audio tasks, you’ll need a <a href="main_classes/feature_extractor">feature extractor</a> to prepare your dataset for the model. The feature extractor is designed to extract features from raw audio data, and convert them into tensors.',on,ws,Pe='Load the <a href="https://huggingface.co/datasets/PolyAI/minds14" rel="nofollow">MInDS-14</a> dataset (see the 🤗 <a href="https://huggingface.co/docs/datasets/load_hub" rel="nofollow">Datasets tutorial</a> for more details on how to load a dataset) to see how you can use a feature extractor with audio datasets:',jn,_s,bn,Is,Se="Access the first element of the <code>audio</code> column to take a look at the input. Calling the <code>audio</code> column automatically loads and resamples the audio file:",dn,ks,fn,vs,De="This returns three items:",gn,Us,Ke="<li><code>array</code> is the speech signal loaded - and potentially resampled - as a 1D array.</li> <li><code>path</code> points to the location of the audio file.</li> <li><code>sampling_rate</code> refers to how many data points in the speech signal are measured per second.</li>",Mn,xs,Oe='For this tutorial, you’ll use the <a href="https://huggingface.co/facebook/wav2vec2-base" rel="nofollow">Wav2Vec2</a> model. Take a look at the model card, and you’ll learn Wav2Vec2 is pretrained on 16kHz sampled speech audio. It is important your audio data’s sampling rate matches the sampling rate of the dataset used to pretrain the model. If your data’s sampling rate isn’t the same, then you need to resample your data.',yn,Cs,sl='<li>Use 🤗 Datasets’ <a href="https://huggingface.co/docs/datasets/main/en/package_reference/main_classes#datasets.Dataset.cast_column" rel="nofollow">cast_column</a> method to upsample the sampling rate to 16kHz:</li>',Tn,Zs,$n,V,al="<li>Call the <code>audio</code> column again to resample the audio file:</li>",Jn,Gs,wn,Vs,nl="Next, load a feature extractor to normalize and pad the input. When padding textual data, a <code>0</code> is added for shorter sequences. The same idea applies to audio data. The feature extractor adds a <code>0</code> - interpreted as silence - to <code>array</code>.",_n,Bs,el='Load the feature extractor with <a href="/docs/transformers/pr_30962/en/model_doc/auto#transformers.AutoFeatureExtractor.from_pretrained">AutoFeatureExtractor.from_pretrained()</a>:',In,Ws,kn,zs,ll="Pass the audio <code>array</code> to the feature extractor. We also recommend adding the <code>sampling_rate</code> argument in the feature extractor in order to better debug any silent errors that may occur.",vn,Hs,Un,Rs,tl="Just like the tokenizer, you can apply padding or truncation to handle variable sequences in a batch. Take a look at the sequence length of these two audio samples:",xn,Ys,Cn,qs,pl="Create a function to preprocess the dataset so the audio samples are the same lengths. Specify a maximum sample length, and the feature extractor will either pad or truncate the sequences to match it:",Zn,Xs,Gn,Ns,rl="Apply the <code>preprocess_function</code> to the first few examples in the dataset:",Vn,Fs,Bn,Ls,ml="The sample lengths are now the same and match the specified maximum length. You can pass your processed dataset to the model now!",Wn,As,zn,Qs,Hn,Es,cl=`For computer vision tasks, you’ll need an <a href="main_classes/image_processor">image processor</a> to prepare your dataset for the model.
Image preprocessing consists of several steps that convert images into the input expected by the model. These steps
include but are not limited to resizing, normalizing, color channel correction, and converting images to tensors.`,Rn,B,Yn,Ps,ul='Load the <a href="https://huggingface.co/datasets/food101" rel="nofollow">food101</a> dataset (see the 🤗 <a href="https://huggingface.co/docs/datasets/load_hub" rel="nofollow">Datasets tutorial</a> for more details on how to load a dataset) to see how you can use an image processor with computer vision datasets:',qn,W,Xn,Ss,Nn,Ds,hl='Next, take a look at the image with 🤗 Datasets <a href="https://huggingface.co/docs/datasets/package_reference/main_classes?highlight=image#datasets.Image" rel="nofollow"><code>Image</code></a> feature:',Fn,Ks,Ln,z,ol='<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/vision-preprocess-tutorial.png"/>',An,Os,il='Load the image processor with <a href="/docs/transformers/pr_30962/en/model_doc/auto#transformers.AutoImageProcessor.from_pretrained">AutoImageProcessor.from_pretrained()</a>:',Qn,sa,En,aa,jl='First, let’s add some image augmentation. You can use any library you prefer, but in this tutorial, we’ll use torchvision’s <a href="https://pytorch.org/vision/stable/transforms.html" rel="nofollow"><code>transforms</code></a> module. If you’re interested in using another data augmentation library, learn how in the <a href="https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/image_classification_albumentations.ipynb" rel="nofollow">Albumentations</a> or <a href="https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/image_classification_kornia.ipynb" rel="nofollow">Kornia notebooks</a>.',Pn,na,bl=`<li>Here we use <a href="https://pytorch.org/vision/master/generated/torchvision.transforms.Compose.html" rel="nofollow"><code>Compose</code></a> to chain together a couple of
transforms - <a href="https://pytorch.org/vision/main/generated/torchvision.transforms.RandomResizedCrop.html" rel="nofollow"><code>RandomResizedCrop</code></a> and <a href="https://pytorch.org/vision/main/generated/torchvision.transforms.ColorJitter.html" rel="nofollow"><code>ColorJitter</code></a>.
Note that for resizing, we can get the image size requirements from the <code>image_processor</code>. For some models, an exact height and
width are expected, for others only the <code>shortest_edge</code> is defined.</li>`,Sn,ea,Dn,H,dl=`<li>The model accepts <a href="model_doc/vision-encoder-decoder#transformers.VisionEncoderDecoderModel.forward.pixel_values"><code>pixel_values</code></a>
as its input. <code>ImageProcessor</code> can take care of normalizing the images, and generating appropriate tensors.
Create a function that combines image augmentation and image preprocessing for a batch of images and generates <code>pixel_values</code>:</li>`,Kn,la,On,R,se,Y,fl='<li>Then use 🤗 Datasets<a href="https://huggingface.co/docs/datasets/main/en/package_reference/main_classes#datasets.Dataset.set_transform" rel="nofollow">set_transform</a> to apply the transforms on the fly:</li>',ae,ta,ne,q,gl="<li>Now when you access the image, you’ll notice the image processor has added <code>pixel_values</code>. You can pass your processed dataset to the model now!</li>",ee,pa,le,ra,Ml="Here is what the image looks like after the transforms are applied. The image has been randomly cropped and it’s color properties are different.",te,ma,pe,X,yl='<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/preprocessed_image.png"/>',re,N,me,ca,ce,ua,Tl=`In some cases, for instance, when fine-tuning <a href="./model_doc/detr">DETR</a>, the model applies scale augmentation at training
time. This may cause images to be different sizes in a batch. You can use <code>DetrImageProcessor.pad()</code>
from <a href="/docs/transformers/pr_30962/en/model_doc/detr#transformers.DetrImageProcessor">DetrImageProcessor</a> and define a custom <code>collate_fn</code> to batch images together.`,ue,ha,he,oa,oe,ia,$l='For tasks involving multimodal inputs, you’ll need a <a href="main_classes/processors">processor</a> to prepare your dataset for the model. A processor couples together two processing objects such as tokenizer and feature extractor.',ie,ja,Jl='Load the <a href="https://huggingface.co/datasets/lj_speech" rel="nofollow">LJ Speech</a> dataset (see the 🤗 <a href="https://huggingface.co/docs/datasets/load_hub" rel="nofollow">Datasets tutorial</a> for more details on how to load a dataset) to see how you can use a processor for automatic speech recognition (ASR):',je,ba,be,da,wl="For ASR, you’re mainly focused on <code>audio</code> and <code>text</code> so you can remove the other columns:",de,fa,fe,ga,_l="Now take a look at the <code>audio</code> and <code>text</code> columns:",ge,Ma,Me,ya,Il='Remember you should always <a href="preprocessing#audio">resample</a> your audio dataset’s sampling rate to match the sampling rate of the dataset used to pretrain a model!',ye,Ta,Te,$a,kl='Load a processor with <a href="/docs/transformers/pr_30962/en/model_doc/auto#transformers.AutoProcessor.from_pretrained">AutoProcessor.from_pretrained()</a>:',$e,Ja,Je,wa,vl="<li>Create a function to process the audio data contained in <code>array</code> to <code>input_values</code>, and tokenize <code>text</code> to <code>labels</code>. These are the inputs to the model:</li>",we,_a,_e,F,Ul="<li>Apply the <code>prepare_dataset</code> function to a sample:</li>",Ie,Ia,ke,ka,xl="The processor has now added <code>input_values</code> and <code>labels</code>, and the sampling rate has also been correctly downsampled to 16kHz. You can pass your processed dataset to the model now!",ve,va,Ue,Ua,xe;return $=new I({props:{title:"Preprocess",local:"preprocess",headingTag:"h1"}}),w=new Dl({props:{classNames:"absolute z-10 right-0 top-0",options:[{label:"Mixed",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/main/transformers_doc/en/preprocessing.ipynb"},{label:"PyTorch",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/main/transformers_doc/en/pytorch/preprocessing.ipynb"},{label:"TensorFlow",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/main/transformers_doc/en/tensorflow/preprocessing.ipynb"},{label:"Mixed",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/transformers_doc/en/preprocessing.ipynb"},{label:"PyTorch",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/transformers_doc/en/pytorch/preprocessing.ipynb"},{label:"TensorFlow",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/transformers_doc/en/tensorflow/preprocessing.ipynb"}]}}),U=new L({props:{$$slots:{default:[st]},$$scope:{ctx:y}}}),P=new M({props:{code:"cGlwJTIwaW5zdGFsbCUyMGRhdGFzZXRz",highlighted:"pip install datasets",wrap:!1}}),S=new I({props:{title:"Natural Language Processing",local:"natural-language-processing",headingTag:"h2"}}),D=new Sl({props:{id:"Yffk5aydLzg"}}),x=new L({props:{$$slots:{default:[at]},$$scope:{ctx:y}}}),ss=new M({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMEElMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZCglMjJnb29nbGUtYmVydCUyRmJlcnQtYmFzZS1jYXNlZCUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;google-bert/bert-base-cased&quot;</span>)`,wrap:!1}}),ns=new M({props:{code:"ZW5jb2RlZF9pbnB1dCUyMCUzRCUyMHRva2VuaXplciglMjJEbyUyMG5vdCUyMG1lZGRsZSUyMGluJTIwdGhlJTIwYWZmYWlycyUyMG9mJTIwd2l6YXJkcyUyQyUyMGZvciUyMHRoZXklMjBhcmUlMjBzdWJ0bGUlMjBhbmQlMjBxdWljayUyMHRvJTIwYW5nZXIuJTIyKSUwQXByaW50KGVuY29kZWRfaW5wdXQp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>encoded_input = tokenizer(<span class="hljs-string">&quot;Do not meddle in the affairs of wizards, for they are subtle and quick to anger.&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(encoded_input)
{<span class="hljs-string">&#x27;input_ids&#x27;</span>: [<span class="hljs-number">101</span>, <span class="hljs-number">2079</span>, <span class="hljs-number">2025</span>, <span class="hljs-number">19960</span>, <span class="hljs-number">10362</span>, <span class="hljs-number">1999</span>, <span class="hljs-number">1996</span>, <span class="hljs-number">3821</span>, <span class="hljs-number">1997</span>, <span class="hljs-number">16657</span>, <span class="hljs-number">1010</span>, <span class="hljs-number">2005</span>, <span class="hljs-number">2027</span>, <span class="hljs-number">2024</span>, <span class="hljs-number">11259</span>, <span class="hljs-number">1998</span>, <span class="hljs-number">4248</span>, <span class="hljs-number">2000</span>, <span class="hljs-number">4963</span>, <span class="hljs-number">1012</span>, <span class="hljs-number">102</span>],
 <span class="hljs-string">&#x27;token_type_ids&#x27;</span>: [<span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>],
 <span class="hljs-string">&#x27;attention_mask&#x27;</span>: [<span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>]}`,wrap:!1}}),ps=new M({props:{code:"dG9rZW5pemVyLmRlY29kZShlbmNvZGVkX2lucHV0JTVCJTIyaW5wdXRfaWRzJTIyJTVEKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer.decode(encoded_input[<span class="hljs-string">&quot;input_ids&quot;</span>])
<span class="hljs-string">&#x27;[CLS] Do not meddle in the affairs of wizards, for they are subtle and quick to anger. [SEP]&#x27;</span>`,wrap:!1}}),cs=new M({props:{code:"YmF0Y2hfc2VudGVuY2VzJTIwJTNEJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIyQnV0JTIwd2hhdCUyMGFib3V0JTIwc2Vjb25kJTIwYnJlYWtmYXN0JTNGJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIyRG9uJ3QlMjB0aGluayUyMGhlJTIwa25vd3MlMjBhYm91dCUyMHNlY29uZCUyMGJyZWFrZmFzdCUyQyUyMFBpcC4lMjIlMkMlMEElMjAlMjAlMjAlMjAlMjJXaGF0JTIwYWJvdXQlMjBlbGV2ZW5zaWVzJTNGJTIyJTJDJTBBJTVEJTBBZW5jb2RlZF9pbnB1dHMlMjAlM0QlMjB0b2tlbml6ZXIoYmF0Y2hfc2VudGVuY2VzKSUwQXByaW50KGVuY29kZWRfaW5wdXRzKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>batch_sentences = [
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;But what about second breakfast?&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;Don&#x27;t think he knows about second breakfast, Pip.&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;What about elevensies?&quot;</span>,
<span class="hljs-meta">... </span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>encoded_inputs = tokenizer(batch_sentences)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(encoded_inputs)
{<span class="hljs-string">&#x27;input_ids&#x27;</span>: [[<span class="hljs-number">101</span>, <span class="hljs-number">1252</span>, <span class="hljs-number">1184</span>, <span class="hljs-number">1164</span>, <span class="hljs-number">1248</span>, <span class="hljs-number">6462</span>, <span class="hljs-number">136</span>, <span class="hljs-number">102</span>],
               [<span class="hljs-number">101</span>, <span class="hljs-number">1790</span>, <span class="hljs-number">112</span>, <span class="hljs-number">189</span>, <span class="hljs-number">1341</span>, <span class="hljs-number">1119</span>, <span class="hljs-number">3520</span>, <span class="hljs-number">1164</span>, <span class="hljs-number">1248</span>, <span class="hljs-number">6462</span>, <span class="hljs-number">117</span>, <span class="hljs-number">21902</span>, <span class="hljs-number">1643</span>, <span class="hljs-number">119</span>, <span class="hljs-number">102</span>],
               [<span class="hljs-number">101</span>, <span class="hljs-number">1327</span>, <span class="hljs-number">1164</span>, <span class="hljs-number">5450</span>, <span class="hljs-number">23434</span>, <span class="hljs-number">136</span>, <span class="hljs-number">102</span>]],
 <span class="hljs-string">&#x27;token_type_ids&#x27;</span>: [[<span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>],
                    [<span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>],
                    [<span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>]],
 <span class="hljs-string">&#x27;attention_mask&#x27;</span>: [[<span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>],
                    [<span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>],
                    [<span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>]]}`,wrap:!1}}),us=new I({props:{title:"Pad",local:"pad",headingTag:"h3"}}),is=new M({props:{code:"YmF0Y2hfc2VudGVuY2VzJTIwJTNEJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIyQnV0JTIwd2hhdCUyMGFib3V0JTIwc2Vjb25kJTIwYnJlYWtmYXN0JTNGJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIyRG9uJ3QlMjB0aGluayUyMGhlJTIwa25vd3MlMjBhYm91dCUyMHNlY29uZCUyMGJyZWFrZmFzdCUyQyUyMFBpcC4lMjIlMkMlMEElMjAlMjAlMjAlMjAlMjJXaGF0JTIwYWJvdXQlMjBlbGV2ZW5zaWVzJTNGJTIyJTJDJTBBJTVEJTBBZW5jb2RlZF9pbnB1dCUyMCUzRCUyMHRva2VuaXplcihiYXRjaF9zZW50ZW5jZXMlMkMlMjBwYWRkaW5nJTNEVHJ1ZSklMEFwcmludChlbmNvZGVkX2lucHV0KQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>batch_sentences = [
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;But what about second breakfast?&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;Don&#x27;t think he knows about second breakfast, Pip.&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;What about elevensies?&quot;</span>,
<span class="hljs-meta">... </span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>encoded_input = tokenizer(batch_sentences, padding=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(encoded_input)
{<span class="hljs-string">&#x27;input_ids&#x27;</span>: [[<span class="hljs-number">101</span>, <span class="hljs-number">1252</span>, <span class="hljs-number">1184</span>, <span class="hljs-number">1164</span>, <span class="hljs-number">1248</span>, <span class="hljs-number">6462</span>, <span class="hljs-number">136</span>, <span class="hljs-number">102</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>],
               [<span class="hljs-number">101</span>, <span class="hljs-number">1790</span>, <span class="hljs-number">112</span>, <span class="hljs-number">189</span>, <span class="hljs-number">1341</span>, <span class="hljs-number">1119</span>, <span class="hljs-number">3520</span>, <span class="hljs-number">1164</span>, <span class="hljs-number">1248</span>, <span class="hljs-number">6462</span>, <span class="hljs-number">117</span>, <span class="hljs-number">21902</span>, <span class="hljs-number">1643</span>, <span class="hljs-number">119</span>, <span class="hljs-number">102</span>],
               [<span class="hljs-number">101</span>, <span class="hljs-number">1327</span>, <span class="hljs-number">1164</span>, <span class="hljs-number">5450</span>, <span class="hljs-number">23434</span>, <span class="hljs-number">136</span>, <span class="hljs-number">102</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>]],
 <span class="hljs-string">&#x27;token_type_ids&#x27;</span>: [[<span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>],
                    [<span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>],
                    [<span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>]],
 <span class="hljs-string">&#x27;attention_mask&#x27;</span>: [[<span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>],
                    [<span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>],
                    [<span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>]]}`,wrap:!1}}),bs=new I({props:{title:"Truncation",local:"truncation",headingTag:"h3"}}),gs=new M({props:{code:"YmF0Y2hfc2VudGVuY2VzJTIwJTNEJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIyQnV0JTIwd2hhdCUyMGFib3V0JTIwc2Vjb25kJTIwYnJlYWtmYXN0JTNGJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIyRG9uJ3QlMjB0aGluayUyMGhlJTIwa25vd3MlMjBhYm91dCUyMHNlY29uZCUyMGJyZWFrZmFzdCUyQyUyMFBpcC4lMjIlMkMlMEElMjAlMjAlMjAlMjAlMjJXaGF0JTIwYWJvdXQlMjBlbGV2ZW5zaWVzJTNGJTIyJTJDJTBBJTVEJTBBZW5jb2RlZF9pbnB1dCUyMCUzRCUyMHRva2VuaXplcihiYXRjaF9zZW50ZW5jZXMlMkMlMjBwYWRkaW5nJTNEVHJ1ZSUyQyUyMHRydW5jYXRpb24lM0RUcnVlKSUwQXByaW50KGVuY29kZWRfaW5wdXQp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>batch_sentences = [
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;But what about second breakfast?&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;Don&#x27;t think he knows about second breakfast, Pip.&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;What about elevensies?&quot;</span>,
<span class="hljs-meta">... </span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>encoded_input = tokenizer(batch_sentences, padding=<span class="hljs-literal">True</span>, truncation=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(encoded_input)
{<span class="hljs-string">&#x27;input_ids&#x27;</span>: [[<span class="hljs-number">101</span>, <span class="hljs-number">1252</span>, <span class="hljs-number">1184</span>, <span class="hljs-number">1164</span>, <span class="hljs-number">1248</span>, <span class="hljs-number">6462</span>, <span class="hljs-number">136</span>, <span class="hljs-number">102</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>],
               [<span class="hljs-number">101</span>, <span class="hljs-number">1790</span>, <span class="hljs-number">112</span>, <span class="hljs-number">189</span>, <span class="hljs-number">1341</span>, <span class="hljs-number">1119</span>, <span class="hljs-number">3520</span>, <span class="hljs-number">1164</span>, <span class="hljs-number">1248</span>, <span class="hljs-number">6462</span>, <span class="hljs-number">117</span>, <span class="hljs-number">21902</span>, <span class="hljs-number">1643</span>, <span class="hljs-number">119</span>, <span class="hljs-number">102</span>],
               [<span class="hljs-number">101</span>, <span class="hljs-number">1327</span>, <span class="hljs-number">1164</span>, <span class="hljs-number">5450</span>, <span class="hljs-number">23434</span>, <span class="hljs-number">136</span>, <span class="hljs-number">102</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>]],
 <span class="hljs-string">&#x27;token_type_ids&#x27;</span>: [[<span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>],
                    [<span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>],
                    [<span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>]],
 <span class="hljs-string">&#x27;attention_mask&#x27;</span>: [[<span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>],
                    [<span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>],
                    [<span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>]]}`,wrap:!1}}),C=new L({props:{$$slots:{default:[nt]},$$scope:{ctx:y}}}),Ms=new I({props:{title:"Build tensors",local:"build-tensors",headingTag:"h3"}}),Z=new Kl({props:{pytorch:!0,tensorflow:!0,jax:!1,$$slots:{tensorflow:[pt],pytorch:[lt]},$$scope:{ctx:y}}}),G=new L({props:{$$slots:{default:[rt]},$$scope:{ctx:y}}}),$s=new I({props:{title:"Audio",local:"audio",headingTag:"h2"}}),_s=new M({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTJDJTIwQXVkaW8lMEElMEFkYXRhc2V0JTIwJTNEJTIwbG9hZF9kYXRhc2V0KCUyMlBvbHlBSSUyRm1pbmRzMTQlMjIlMkMlMjBuYW1lJTNEJTIyZW4tVVMlMjIlMkMlMjBzcGxpdCUzRCUyMnRyYWluJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset, Audio

<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;PolyAI/minds14&quot;</span>, name=<span class="hljs-string">&quot;en-US&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>)`,wrap:!1}}),ks=new M({props:{code:"ZGF0YXNldCU1QjAlNUQlNUIlMjJhdWRpbyUyMiU1RA==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>dataset[<span class="hljs-number">0</span>][<span class="hljs-string">&quot;audio&quot;</span>]
{<span class="hljs-string">&#x27;array&#x27;</span>: array([ <span class="hljs-number">0.</span>        ,  <span class="hljs-number">0.00024414</span>, -<span class="hljs-number">0.00024414</span>, ..., -<span class="hljs-number">0.00024414</span>,
         <span class="hljs-number">0.</span>        ,  <span class="hljs-number">0.</span>        ], dtype=float32),
 <span class="hljs-string">&#x27;path&#x27;</span>: <span class="hljs-string">&#x27;/root/.cache/huggingface/datasets/downloads/extracted/f14948e0e84be638dd7943ac36518a4cf3324e8b7aa331c5ab11541518e9368c/en-US~JOINT_ACCOUNT/602ba55abb1e6d0fbce92065.wav&#x27;</span>,
 <span class="hljs-string">&#x27;sampling_rate&#x27;</span>: <span class="hljs-number">8000</span>}`,wrap:!1}}),Zs=new M({props:{code:"ZGF0YXNldCUyMCUzRCUyMGRhdGFzZXQuY2FzdF9jb2x1bW4oJTIyYXVkaW8lMjIlMkMlMjBBdWRpbyhzYW1wbGluZ19yYXRlJTNEMTZfMDAwKSk=",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = dataset.cast_column(<span class="hljs-string">&quot;audio&quot;</span>, Audio(sampling_rate=<span class="hljs-number">16_000</span>))',wrap:!1}}),Gs=new M({props:{code:"ZGF0YXNldCU1QjAlNUQlNUIlMjJhdWRpbyUyMiU1RA==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>dataset[<span class="hljs-number">0</span>][<span class="hljs-string">&quot;audio&quot;</span>]
{<span class="hljs-string">&#x27;array&#x27;</span>: array([ <span class="hljs-number">2.3443763e-05</span>,  <span class="hljs-number">2.1729663e-04</span>,  <span class="hljs-number">2.2145823e-04</span>, ...,
         <span class="hljs-number">3.8356509e-05</span>, -<span class="hljs-number">7.3497440e-06</span>, -<span class="hljs-number">2.1754686e-05</span>], dtype=float32),
 <span class="hljs-string">&#x27;path&#x27;</span>: <span class="hljs-string">&#x27;/root/.cache/huggingface/datasets/downloads/extracted/f14948e0e84be638dd7943ac36518a4cf3324e8b7aa331c5ab11541518e9368c/en-US~JOINT_ACCOUNT/602ba55abb1e6d0fbce92065.wav&#x27;</span>,
 <span class="hljs-string">&#x27;sampling_rate&#x27;</span>: <span class="hljs-number">16000</span>}`,wrap:!1}}),Ws=new M({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9GZWF0dXJlRXh0cmFjdG9yJTBBJTBBZmVhdHVyZV9leHRyYWN0b3IlMjAlM0QlMjBBdXRvRmVhdHVyZUV4dHJhY3Rvci5mcm9tX3ByZXRyYWluZWQoJTIyZmFjZWJvb2slMkZ3YXYydmVjMi1iYXNlJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoFeatureExtractor

<span class="hljs-meta">&gt;&gt;&gt; </span>feature_extractor = AutoFeatureExtractor.from_pretrained(<span class="hljs-string">&quot;facebook/wav2vec2-base&quot;</span>)`,wrap:!1}}),Hs=new M({props:{code:"YXVkaW9faW5wdXQlMjAlM0QlMjAlNUJkYXRhc2V0JTVCMCU1RCU1QiUyMmF1ZGlvJTIyJTVEJTVCJTIyYXJyYXklMjIlNUQlNUQlMEFmZWF0dXJlX2V4dHJhY3RvcihhdWRpb19pbnB1dCUyQyUyMHNhbXBsaW5nX3JhdGUlM0QxNjAwMCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>audio_input = [dataset[<span class="hljs-number">0</span>][<span class="hljs-string">&quot;audio&quot;</span>][<span class="hljs-string">&quot;array&quot;</span>]]
<span class="hljs-meta">&gt;&gt;&gt; </span>feature_extractor(audio_input, sampling_rate=<span class="hljs-number">16000</span>)
{<span class="hljs-string">&#x27;input_values&#x27;</span>: [array([ <span class="hljs-number">3.8106556e-04</span>,  <span class="hljs-number">2.7506407e-03</span>,  <span class="hljs-number">2.8015103e-03</span>, ...,
        <span class="hljs-number">5.6335266e-04</span>,  <span class="hljs-number">4.6588284e-06</span>, -<span class="hljs-number">1.7142107e-04</span>], dtype=float32)]}`,wrap:!1}}),Ys=new M({props:{code:"ZGF0YXNldCU1QjAlNUQlNUIlMjJhdWRpbyUyMiU1RCU1QiUyMmFycmF5JTIyJTVELnNoYXBlJTBBJTBBZGF0YXNldCU1QjElNUQlNUIlMjJhdWRpbyUyMiU1RCU1QiUyMmFycmF5JTIyJTVELnNoYXBl",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>dataset[<span class="hljs-number">0</span>][<span class="hljs-string">&quot;audio&quot;</span>][<span class="hljs-string">&quot;array&quot;</span>].shape
(<span class="hljs-number">173398</span>,)

<span class="hljs-meta">&gt;&gt;&gt; </span>dataset[<span class="hljs-number">1</span>][<span class="hljs-string">&quot;audio&quot;</span>][<span class="hljs-string">&quot;array&quot;</span>].shape
(<span class="hljs-number">106496</span>,)`,wrap:!1}}),Xs=new M({props:{code:"ZGVmJTIwcHJlcHJvY2Vzc19mdW5jdGlvbihleGFtcGxlcyklM0ElMEElMjAlMjAlMjAlMjBhdWRpb19hcnJheXMlMjAlM0QlMjAlNUJ4JTVCJTIyYXJyYXklMjIlNUQlMjBmb3IlMjB4JTIwaW4lMjBleGFtcGxlcyU1QiUyMmF1ZGlvJTIyJTVEJTVEJTBBJTIwJTIwJTIwJTIwaW5wdXRzJTIwJTNEJTIwZmVhdHVyZV9leHRyYWN0b3IoJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwYXVkaW9fYXJyYXlzJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwc2FtcGxpbmdfcmF0ZSUzRDE2MDAwJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwcGFkZGluZyUzRFRydWUlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBtYXhfbGVuZ3RoJTNEMTAwMDAwJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwdHJ1bmNhdGlvbiUzRFRydWUlMkMlMEElMjAlMjAlMjAlMjApJTBBJTIwJTIwJTIwJTIwcmV0dXJuJTIwaW5wdXRz",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">preprocess_function</span>(<span class="hljs-params">examples</span>):
<span class="hljs-meta">... </span>    audio_arrays = [x[<span class="hljs-string">&quot;array&quot;</span>] <span class="hljs-keyword">for</span> x <span class="hljs-keyword">in</span> examples[<span class="hljs-string">&quot;audio&quot;</span>]]
<span class="hljs-meta">... </span>    inputs = feature_extractor(
<span class="hljs-meta">... </span>        audio_arrays,
<span class="hljs-meta">... </span>        sampling_rate=<span class="hljs-number">16000</span>,
<span class="hljs-meta">... </span>        padding=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>        max_length=<span class="hljs-number">100000</span>,
<span class="hljs-meta">... </span>        truncation=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>    )
<span class="hljs-meta">... </span>    <span class="hljs-keyword">return</span> inputs`,wrap:!1}}),Fs=new M({props:{code:"cHJvY2Vzc2VkX2RhdGFzZXQlMjAlM0QlMjBwcmVwcm9jZXNzX2Z1bmN0aW9uKGRhdGFzZXQlNUIlM0E1JTVEKQ==",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>processed_dataset = preprocess_function(dataset[:<span class="hljs-number">5</span>])',wrap:!1}}),As=new M({props:{code:"cHJvY2Vzc2VkX2RhdGFzZXQlNUIlMjJpbnB1dF92YWx1ZXMlMjIlNUQlNUIwJTVELnNoYXBlJTBBJTBBcHJvY2Vzc2VkX2RhdGFzZXQlNUIlMjJpbnB1dF92YWx1ZXMlMjIlNUQlNUIxJTVELnNoYXBl",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>processed_dataset[<span class="hljs-string">&quot;input_values&quot;</span>][<span class="hljs-number">0</span>].shape
(<span class="hljs-number">100000</span>,)

<span class="hljs-meta">&gt;&gt;&gt; </span>processed_dataset[<span class="hljs-string">&quot;input_values&quot;</span>][<span class="hljs-number">1</span>].shape
(<span class="hljs-number">100000</span>,)`,wrap:!1}}),Qs=new I({props:{title:"Computer vision",local:"computer-vision",headingTag:"h2"}}),B=new L({props:{$$slots:{default:[mt]},$$scope:{ctx:y}}}),W=new L({props:{$$slots:{default:[ct]},$$scope:{ctx:y}}}),Ss=new M({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBJTBBZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJmb29kMTAxJTIyJTJDJTIwc3BsaXQlM0QlMjJ0cmFpbiU1QiUzQTEwMCU1RCUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset

<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;food101&quot;</span>, split=<span class="hljs-string">&quot;train[:100]&quot;</span>)`,wrap:!1}}),Ks=new M({props:{code:"ZGF0YXNldCU1QjAlNUQlNUIlMjJpbWFnZSUyMiU1RA==",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>dataset[<span class="hljs-number">0</span>][<span class="hljs-string">&quot;image&quot;</span>]',wrap:!1}}),sa=new M({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUwQSUwQWltYWdlX3Byb2Nlc3NvciUyMCUzRCUyMEF1dG9JbWFnZVByb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIyZ29vZ2xlJTJGdml0LWJhc2UtcGF0Y2gxNi0yMjQlMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor

<span class="hljs-meta">&gt;&gt;&gt; </span>image_processor = AutoImageProcessor.from_pretrained(<span class="hljs-string">&quot;google/vit-base-patch16-224&quot;</span>)`,wrap:!1}}),ea=new M({props:{code:"ZnJvbSUyMHRvcmNodmlzaW9uLnRyYW5zZm9ybXMlMjBpbXBvcnQlMjBSYW5kb21SZXNpemVkQ3JvcCUyQyUyMENvbG9ySml0dGVyJTJDJTIwQ29tcG9zZSUwQSUwQXNpemUlMjAlM0QlMjAoJTBBJTIwJTIwJTIwJTIwaW1hZ2VfcHJvY2Vzc29yLnNpemUlNUIlMjJzaG9ydGVzdF9lZGdlJTIyJTVEJTBBJTIwJTIwJTIwJTIwaWYlMjAlMjJzaG9ydGVzdF9lZGdlJTIyJTIwaW4lMjBpbWFnZV9wcm9jZXNzb3Iuc2l6ZSUwQSUyMCUyMCUyMCUyMGVsc2UlMjAoaW1hZ2VfcHJvY2Vzc29yLnNpemUlNUIlMjJoZWlnaHQlMjIlNUQlMkMlMjBpbWFnZV9wcm9jZXNzb3Iuc2l6ZSU1QiUyMndpZHRoJTIyJTVEKSUwQSklMEElMEFfdHJhbnNmb3JtcyUyMCUzRCUyMENvbXBvc2UoJTVCUmFuZG9tUmVzaXplZENyb3Aoc2l6ZSklMkMlMjBDb2xvckppdHRlcihicmlnaHRuZXNzJTNEMC41JTJDJTIwaHVlJTNEMC41KSU1RCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> torchvision.transforms <span class="hljs-keyword">import</span> RandomResizedCrop, ColorJitter, Compose

<span class="hljs-meta">&gt;&gt;&gt; </span>size = (
<span class="hljs-meta">... </span>    image_processor.size[<span class="hljs-string">&quot;shortest_edge&quot;</span>]
<span class="hljs-meta">... </span>    <span class="hljs-keyword">if</span> <span class="hljs-string">&quot;shortest_edge&quot;</span> <span class="hljs-keyword">in</span> image_processor.size
<span class="hljs-meta">... </span>    <span class="hljs-keyword">else</span> (image_processor.size[<span class="hljs-string">&quot;height&quot;</span>], image_processor.size[<span class="hljs-string">&quot;width&quot;</span>])
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>_transforms = Compose([RandomResizedCrop(size), ColorJitter(brightness=<span class="hljs-number">0.5</span>, hue=<span class="hljs-number">0.5</span>)])`,wrap:!1}}),la=new M({props:{code:"ZGVmJTIwdHJhbnNmb3JtcyhleGFtcGxlcyklM0ElMEElMjAlMjAlMjAlMjBpbWFnZXMlMjAlM0QlMjAlNUJfdHJhbnNmb3JtcyhpbWcuY29udmVydCglMjJSR0IlMjIpKSUyMGZvciUyMGltZyUyMGluJTIwZXhhbXBsZXMlNUIlMjJpbWFnZSUyMiU1RCU1RCUwQSUyMCUyMCUyMCUyMGV4YW1wbGVzJTVCJTIycGl4ZWxfdmFsdWVzJTIyJTVEJTIwJTNEJTIwaW1hZ2VfcHJvY2Vzc29yKGltYWdlcyUyQyUyMGRvX3Jlc2l6ZSUzREZhbHNlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklNUIlMjJwaXhlbF92YWx1ZXMlMjIlNUQlMEElMjAlMjAlMjAlMjByZXR1cm4lMjBleGFtcGxlcw==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">transforms</span>(<span class="hljs-params">examples</span>):
<span class="hljs-meta">... </span>    images = [_transforms(img.convert(<span class="hljs-string">&quot;RGB&quot;</span>)) <span class="hljs-keyword">for</span> img <span class="hljs-keyword">in</span> examples[<span class="hljs-string">&quot;image&quot;</span>]]
<span class="hljs-meta">... </span>    examples[<span class="hljs-string">&quot;pixel_values&quot;</span>] = image_processor(images, do_resize=<span class="hljs-literal">False</span>, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)[<span class="hljs-string">&quot;pixel_values&quot;</span>]
<span class="hljs-meta">... </span>    <span class="hljs-keyword">return</span> examples`,wrap:!1}}),R=new L({props:{$$slots:{default:[ut]},$$scope:{ctx:y}}}),ta=new M({props:{code:"ZGF0YXNldC5zZXRfdHJhbnNmb3JtKHRyYW5zZm9ybXMp",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>dataset.set_transform(transforms)',wrap:!1}}),pa=new M({props:{code:"ZGF0YXNldCU1QjAlNUQua2V5cygp",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>dataset[<span class="hljs-number">0</span>].keys()',wrap:!1}}),ma=new M({props:{code:"aW1wb3J0JTIwbnVtcHklMjBhcyUyMG5wJTBBaW1wb3J0JTIwbWF0cGxvdGxpYi5weXBsb3QlMjBhcyUyMHBsdCUwQSUwQWltZyUyMCUzRCUyMGRhdGFzZXQlNUIwJTVEJTVCJTIycGl4ZWxfdmFsdWVzJTIyJTVEJTBBcGx0Lmltc2hvdyhpbWcucGVybXV0ZSgxJTJDJTIwMiUyQyUyMDApKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> numpy <span class="hljs-keyword">as</span> np
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> matplotlib.pyplot <span class="hljs-keyword">as</span> plt

<span class="hljs-meta">&gt;&gt;&gt; </span>img = dataset[<span class="hljs-number">0</span>][<span class="hljs-string">&quot;pixel_values&quot;</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>plt.imshow(img.permute(<span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">0</span>))`,wrap:!1}}),N=new L({props:{$$slots:{default:[ht]},$$scope:{ctx:y}}}),ca=new I({props:{title:"Pad",local:"pad",headingTag:"h3"}}),ha=new M({props:{code:"ZGVmJTIwY29sbGF0ZV9mbihiYXRjaCklM0ElMEElMjAlMjAlMjAlMjBwaXhlbF92YWx1ZXMlMjAlM0QlMjAlNUJpdGVtJTVCJTIycGl4ZWxfdmFsdWVzJTIyJTVEJTIwZm9yJTIwaXRlbSUyMGluJTIwYmF0Y2glNUQlMEElMjAlMjAlMjAlMjBlbmNvZGluZyUyMCUzRCUyMGltYWdlX3Byb2Nlc3Nvci5wYWQocGl4ZWxfdmFsdWVzJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEElMjAlMjAlMjAlMjBsYWJlbHMlMjAlM0QlMjAlNUJpdGVtJTVCJTIybGFiZWxzJTIyJTVEJTIwZm9yJTIwaXRlbSUyMGluJTIwYmF0Y2glNUQlMEElMjAlMjAlMjAlMjBiYXRjaCUyMCUzRCUyMCU3QiU3RCUwQSUyMCUyMCUyMCUyMGJhdGNoJTVCJTIycGl4ZWxfdmFsdWVzJTIyJTVEJTIwJTNEJTIwZW5jb2RpbmclNUIlMjJwaXhlbF92YWx1ZXMlMjIlNUQlMEElMjAlMjAlMjAlMjBiYXRjaCU1QiUyMnBpeGVsX21hc2slMjIlNUQlMjAlM0QlMjBlbmNvZGluZyU1QiUyMnBpeGVsX21hc2slMjIlNUQlMEElMjAlMjAlMjAlMjBiYXRjaCU1QiUyMmxhYmVscyUyMiU1RCUyMCUzRCUyMGxhYmVscyUwQSUyMCUyMCUyMCUyMHJldHVybiUyMGJhdGNo",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">collate_fn</span>(<span class="hljs-params">batch</span>):
<span class="hljs-meta">... </span>    pixel_values = [item[<span class="hljs-string">&quot;pixel_values&quot;</span>] <span class="hljs-keyword">for</span> item <span class="hljs-keyword">in</span> batch]
<span class="hljs-meta">... </span>    encoding = image_processor.pad(pixel_values, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)
<span class="hljs-meta">... </span>    labels = [item[<span class="hljs-string">&quot;labels&quot;</span>] <span class="hljs-keyword">for</span> item <span class="hljs-keyword">in</span> batch]
<span class="hljs-meta">... </span>    batch = {}
<span class="hljs-meta">... </span>    batch[<span class="hljs-string">&quot;pixel_values&quot;</span>] = encoding[<span class="hljs-string">&quot;pixel_values&quot;</span>]
<span class="hljs-meta">... </span>    batch[<span class="hljs-string">&quot;pixel_mask&quot;</span>] = encoding[<span class="hljs-string">&quot;pixel_mask&quot;</span>]
<span class="hljs-meta">... </span>    batch[<span class="hljs-string">&quot;labels&quot;</span>] = labels
<span class="hljs-meta">... </span>    <span class="hljs-keyword">return</span> batch`,wrap:!1}}),oa=new I({props:{title:"Multimodal",local:"multimodal",headingTag:"h2"}}),ba=new M({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBJTBBbGpfc3BlZWNoJTIwJTNEJTIwbG9hZF9kYXRhc2V0KCUyMmxqX3NwZWVjaCUyMiUyQyUyMHNwbGl0JTNEJTIydHJhaW4lMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset

<span class="hljs-meta">&gt;&gt;&gt; </span>lj_speech = load_dataset(<span class="hljs-string">&quot;lj_speech&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>)`,wrap:!1}}),fa=new M({props:{code:"bGpfc3BlZWNoJTIwJTNEJTIwbGpfc3BlZWNoLm1hcChyZW1vdmVfY29sdW1ucyUzRCU1QiUyMmZpbGUlMjIlMkMlMjAlMjJpZCUyMiUyQyUyMCUyMm5vcm1hbGl6ZWRfdGV4dCUyMiU1RCk=",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>lj_speech = lj_speech.<span class="hljs-built_in">map</span>(remove_columns=[<span class="hljs-string">&quot;file&quot;</span>, <span class="hljs-string">&quot;id&quot;</span>, <span class="hljs-string">&quot;normalized_text&quot;</span>])',wrap:!1}}),Ma=new M({props:{code:"bGpfc3BlZWNoJTVCMCU1RCU1QiUyMmF1ZGlvJTIyJTVEJTBBJTBBbGpfc3BlZWNoJTVCMCU1RCU1QiUyMnRleHQlMjIlNUQ=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>lj_speech[<span class="hljs-number">0</span>][<span class="hljs-string">&quot;audio&quot;</span>]
{<span class="hljs-string">&#x27;array&#x27;</span>: array([-<span class="hljs-number">7.3242188e-04</span>, -<span class="hljs-number">7.6293945e-04</span>, -<span class="hljs-number">6.4086914e-04</span>, ...,
         <span class="hljs-number">7.3242188e-04</span>,  <span class="hljs-number">2.1362305e-04</span>,  <span class="hljs-number">6.1035156e-05</span>], dtype=float32),
 <span class="hljs-string">&#x27;path&#x27;</span>: <span class="hljs-string">&#x27;/root/.cache/huggingface/datasets/downloads/extracted/917ece08c95cf0c4115e45294e3cd0dee724a1165b7fc11798369308a465bd26/LJSpeech-1.1/wavs/LJ001-0001.wav&#x27;</span>,
 <span class="hljs-string">&#x27;sampling_rate&#x27;</span>: <span class="hljs-number">22050</span>}

<span class="hljs-meta">&gt;&gt;&gt; </span>lj_speech[<span class="hljs-number">0</span>][<span class="hljs-string">&quot;text&quot;</span>]
<span class="hljs-string">&#x27;Printing, in the only sense with which we are at present concerned, differs from most if not from all the arts and crafts represented in the Exhibition&#x27;</span>`,wrap:!1}}),Ta=new M({props:{code:"bGpfc3BlZWNoJTIwJTNEJTIwbGpfc3BlZWNoLmNhc3RfY29sdW1uKCUyMmF1ZGlvJTIyJTJDJTIwQXVkaW8oc2FtcGxpbmdfcmF0ZSUzRDE2XzAwMCkp",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>lj_speech = lj_speech.cast_column(<span class="hljs-string">&quot;audio&quot;</span>, Audio(sampling_rate=<span class="hljs-number">16_000</span>))',wrap:!1}}),Ja=new M({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Qcm9jZXNzb3IlMEElMEFwcm9jZXNzb3IlMjAlM0QlMjBBdXRvUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJmYWNlYm9vayUyRndhdjJ2ZWMyLWJhc2UtOTYwaCUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoProcessor

<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;facebook/wav2vec2-base-960h&quot;</span>)`,wrap:!1}}),_a=new M({props:{code:"ZGVmJTIwcHJlcGFyZV9kYXRhc2V0KGV4YW1wbGUpJTNBJTBBJTIwJTIwJTIwJTIwYXVkaW8lMjAlM0QlMjBleGFtcGxlJTVCJTIyYXVkaW8lMjIlNUQlMEElMEElMjAlMjAlMjAlMjBleGFtcGxlLnVwZGF0ZShwcm9jZXNzb3IoYXVkaW8lM0RhdWRpbyU1QiUyMmFycmF5JTIyJTVEJTJDJTIwdGV4dCUzRGV4YW1wbGUlNUIlMjJ0ZXh0JTIyJTVEJTJDJTIwc2FtcGxpbmdfcmF0ZSUzRDE2MDAwKSklMEElMEElMjAlMjAlMjAlMjByZXR1cm4lMjBleGFtcGxl",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">prepare_dataset</span>(<span class="hljs-params">example</span>):
<span class="hljs-meta">... </span>    audio = example[<span class="hljs-string">&quot;audio&quot;</span>]

<span class="hljs-meta">... </span>    example.update(processor(audio=audio[<span class="hljs-string">&quot;array&quot;</span>], text=example[<span class="hljs-string">&quot;text&quot;</span>], sampling_rate=<span class="hljs-number">16000</span>))

<span class="hljs-meta">... </span>    <span class="hljs-keyword">return</span> example`,wrap:!1}}),Ia=new M({props:{code:"cHJlcGFyZV9kYXRhc2V0KGxqX3NwZWVjaCU1QjAlNUQp",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>prepare_dataset(lj_speech[<span class="hljs-number">0</span>])',wrap:!1}}),va=new Ol({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/en/preprocessing.md"}}),{c(){p=m("meta"),f=l(),r=m("p"),g=l(),h($.$$.fragment),J=l(),h(w.$$.fragment),A=l(),T=m("p"),T.textContent=v,xa=l(),Q=m("ul"),Q.innerHTML=Ce,Ca=l(),h(U.$$.fragment),Za=l(),E=m("p"),E.textContent=Ze,Ga=l(),h(P.$$.fragment),Va=l(),h(S.$$.fragment),Ba=l(),h(D.$$.fragment),Wa=l(),K=m("p"),K.innerHTML=Ge,za=l(),h(x.$$.fragment),Ha=l(),O=m("p"),O.innerHTML=Ve,Ra=l(),h(ss.$$.fragment),Ya=l(),as=m("p"),as.textContent=Be,qa=l(),h(ns.$$.fragment),Xa=l(),es=m("p"),es.textContent=We,Na=l(),ls=m("ul"),ls.innerHTML=ze,Fa=l(),ts=m("p"),ts.innerHTML=He,La=l(),h(ps.$$.fragment),Aa=l(),rs=m("p"),rs.innerHTML=Re,Qa=l(),ms=m("p"),ms.textContent=Ye,Ea=l(),h(cs.$$.fragment),Pa=l(),h(us.$$.fragment),Sa=l(),hs=m("p"),hs.innerHTML=qe,Da=l(),os=m("p"),os.innerHTML=Xe,Ka=l(),h(is.$$.fragment),Oa=l(),js=m("p"),js.innerHTML=Ne,sn=l(),h(bs.$$.fragment),an=l(),ds=m("p"),ds.textContent=Fe,nn=l(),fs=m("p"),fs.innerHTML=Le,en=l(),h(gs.$$.fragment),ln=l(),h(C.$$.fragment),tn=l(),h(Ms.$$.fragment),pn=l(),ys=m("p"),ys.textContent=Ae,rn=l(),Ts=m("p"),Ts.innerHTML=Qe,mn=l(),h(Z.$$.fragment),cn=l(),h(G.$$.fragment),un=l(),h($s.$$.fragment),hn=l(),Js=m("p"),Js.innerHTML=Ee,on=l(),ws=m("p"),ws.innerHTML=Pe,jn=l(),h(_s.$$.fragment),bn=l(),Is=m("p"),Is.innerHTML=Se,dn=l(),h(ks.$$.fragment),fn=l(),vs=m("p"),vs.textContent=De,gn=l(),Us=m("ul"),Us.innerHTML=Ke,Mn=l(),xs=m("p"),xs.innerHTML=Oe,yn=l(),Cs=m("ol"),Cs.innerHTML=sl,Tn=l(),h(Zs.$$.fragment),$n=l(),V=m("ol"),V.innerHTML=al,Jn=l(),h(Gs.$$.fragment),wn=l(),Vs=m("p"),Vs.innerHTML=nl,_n=l(),Bs=m("p"),Bs.innerHTML=el,In=l(),h(Ws.$$.fragment),kn=l(),zs=m("p"),zs.innerHTML=ll,vn=l(),h(Hs.$$.fragment),Un=l(),Rs=m("p"),Rs.textContent=tl,xn=l(),h(Ys.$$.fragment),Cn=l(),qs=m("p"),qs.textContent=pl,Zn=l(),h(Xs.$$.fragment),Gn=l(),Ns=m("p"),Ns.innerHTML=rl,Vn=l(),h(Fs.$$.fragment),Bn=l(),Ls=m("p"),Ls.textContent=ml,Wn=l(),h(As.$$.fragment),zn=l(),h(Qs.$$.fragment),Hn=l(),Es=m("p"),Es.innerHTML=cl,Rn=l(),h(B.$$.fragment),Yn=l(),Ps=m("p"),Ps.innerHTML=ul,qn=l(),h(W.$$.fragment),Xn=l(),h(Ss.$$.fragment),Nn=l(),Ds=m("p"),Ds.innerHTML=hl,Fn=l(),h(Ks.$$.fragment),Ln=l(),z=m("div"),z.innerHTML=ol,An=l(),Os=m("p"),Os.innerHTML=il,Qn=l(),h(sa.$$.fragment),En=l(),aa=m("p"),aa.innerHTML=jl,Pn=l(),na=m("ol"),na.innerHTML=bl,Sn=l(),h(ea.$$.fragment),Dn=l(),H=m("ol"),H.innerHTML=dl,Kn=l(),h(la.$$.fragment),On=l(),h(R.$$.fragment),se=l(),Y=m("ol"),Y.innerHTML=fl,ae=l(),h(ta.$$.fragment),ne=l(),q=m("ol"),q.innerHTML=gl,ee=l(),h(pa.$$.fragment),le=l(),ra=m("p"),ra.textContent=Ml,te=l(),h(ma.$$.fragment),pe=l(),X=m("div"),X.innerHTML=yl,re=l(),h(N.$$.fragment),me=l(),h(ca.$$.fragment),ce=l(),ua=m("p"),ua.innerHTML=Tl,ue=l(),h(ha.$$.fragment),he=l(),h(oa.$$.fragment),oe=l(),ia=m("p"),ia.innerHTML=$l,ie=l(),ja=m("p"),ja.innerHTML=Jl,je=l(),h(ba.$$.fragment),be=l(),da=m("p"),da.innerHTML=wl,de=l(),h(fa.$$.fragment),fe=l(),ga=m("p"),ga.innerHTML=_l,ge=l(),h(Ma.$$.fragment),Me=l(),ya=m("p"),ya.innerHTML=Il,ye=l(),h(Ta.$$.fragment),Te=l(),$a=m("p"),$a.innerHTML=kl,$e=l(),h(Ja.$$.fragment),Je=l(),wa=m("ol"),wa.innerHTML=vl,we=l(),h(_a.$$.fragment),_e=l(),F=m("ol"),F.innerHTML=Ul,Ie=l(),h(Ia.$$.fragment),ke=l(),ka=m("p"),ka.innerHTML=xl,ve=l(),h(va.$$.fragment),Ue=l(),Ua=m("p"),this.h()},l(s){const a=Al("svelte-u9bgzb",document.head);p=c(a,"META",{name:!0,content:!0}),a.forEach(n),f=t(s),r=c(s,"P",{}),Yl(r).forEach(n),g=t(s),o($.$$.fragment,s),J=t(s),o(w.$$.fragment,s),A=t(s),T=c(s,"P",{"data-svelte-h":!0}),u(T)!=="svelte-16m3n59"&&(T.textContent=v),xa=t(s),Q=c(s,"UL",{"data-svelte-h":!0}),u(Q)!=="svelte-1akoncx"&&(Q.innerHTML=Ce),Ca=t(s),o(U.$$.fragment,s),Za=t(s),E=c(s,"P",{"data-svelte-h":!0}),u(E)!=="svelte-miijey"&&(E.textContent=Ze),Ga=t(s),o(P.$$.fragment,s),Va=t(s),o(S.$$.fragment,s),Ba=t(s),o(D.$$.fragment,s),Wa=t(s),K=c(s,"P",{"data-svelte-h":!0}),u(K)!=="svelte-1kdxp2p"&&(K.innerHTML=Ge),za=t(s),o(x.$$.fragment,s),Ha=t(s),O=c(s,"P",{"data-svelte-h":!0}),u(O)!=="svelte-1jjtchy"&&(O.innerHTML=Ve),Ra=t(s),o(ss.$$.fragment,s),Ya=t(s),as=c(s,"P",{"data-svelte-h":!0}),u(as)!=="svelte-uv8q8p"&&(as.textContent=Be),qa=t(s),o(ns.$$.fragment,s),Xa=t(s),es=c(s,"P",{"data-svelte-h":!0}),u(es)!=="svelte-19z6qke"&&(es.textContent=We),Na=t(s),ls=c(s,"UL",{"data-svelte-h":!0}),u(ls)!=="svelte-1l83r3n"&&(ls.innerHTML=ze),Fa=t(s),ts=c(s,"P",{"data-svelte-h":!0}),u(ts)!=="svelte-1nvt1pa"&&(ts.innerHTML=He),La=t(s),o(ps.$$.fragment,s),Aa=t(s),rs=c(s,"P",{"data-svelte-h":!0}),u(rs)!=="svelte-1b2ebhq"&&(rs.innerHTML=Re),Qa=t(s),ms=c(s,"P",{"data-svelte-h":!0}),u(ms)!=="svelte-838qsc"&&(ms.textContent=Ye),Ea=t(s),o(cs.$$.fragment,s),Pa=t(s),o(us.$$.fragment,s),Sa=t(s),hs=c(s,"P",{"data-svelte-h":!0}),u(hs)!=="svelte-uq7hrd"&&(hs.innerHTML=qe),Da=t(s),os=c(s,"P",{"data-svelte-h":!0}),u(os)!=="svelte-1ahwezm"&&(os.innerHTML=Xe),Ka=t(s),o(is.$$.fragment,s),Oa=t(s),js=c(s,"P",{"data-svelte-h":!0}),u(js)!=="svelte-375nfh"&&(js.innerHTML=Ne),sn=t(s),o(bs.$$.fragment,s),an=t(s),ds=c(s,"P",{"data-svelte-h":!0}),u(ds)!=="svelte-1pf21dx"&&(ds.textContent=Fe),nn=t(s),fs=c(s,"P",{"data-svelte-h":!0}),u(fs)!=="svelte-1nn988l"&&(fs.innerHTML=Le),en=t(s),o(gs.$$.fragment,s),ln=t(s),o(C.$$.fragment,s),tn=t(s),o(Ms.$$.fragment,s),pn=t(s),ys=c(s,"P",{"data-svelte-h":!0}),u(ys)!=="svelte-190ympp"&&(ys.textContent=Ae),rn=t(s),Ts=c(s,"P",{"data-svelte-h":!0}),u(Ts)!=="svelte-ynk6ab"&&(Ts.innerHTML=Qe),mn=t(s),o(Z.$$.fragment,s),cn=t(s),o(G.$$.fragment,s),un=t(s),o($s.$$.fragment,s),hn=t(s),Js=c(s,"P",{"data-svelte-h":!0}),u(Js)!=="svelte-1h9zu4s"&&(Js.innerHTML=Ee),on=t(s),ws=c(s,"P",{"data-svelte-h":!0}),u(ws)!=="svelte-16xmqn"&&(ws.innerHTML=Pe),jn=t(s),o(_s.$$.fragment,s),bn=t(s),Is=c(s,"P",{"data-svelte-h":!0}),u(Is)!=="svelte-1hq7vhu"&&(Is.innerHTML=Se),dn=t(s),o(ks.$$.fragment,s),fn=t(s),vs=c(s,"P",{"data-svelte-h":!0}),u(vs)!=="svelte-1c6azkv"&&(vs.textContent=De),gn=t(s),Us=c(s,"UL",{"data-svelte-h":!0}),u(Us)!=="svelte-ykpien"&&(Us.innerHTML=Ke),Mn=t(s),xs=c(s,"P",{"data-svelte-h":!0}),u(xs)!=="svelte-6giqvb"&&(xs.innerHTML=Oe),yn=t(s),Cs=c(s,"OL",{"data-svelte-h":!0}),u(Cs)!=="svelte-1hjs96z"&&(Cs.innerHTML=sl),Tn=t(s),o(Zs.$$.fragment,s),$n=t(s),V=c(s,"OL",{start:!0,"data-svelte-h":!0}),u(V)!=="svelte-1965xun"&&(V.innerHTML=al),Jn=t(s),o(Gs.$$.fragment,s),wn=t(s),Vs=c(s,"P",{"data-svelte-h":!0}),u(Vs)!=="svelte-1a0ukdn"&&(Vs.innerHTML=nl),_n=t(s),Bs=c(s,"P",{"data-svelte-h":!0}),u(Bs)!=="svelte-1o7wi9i"&&(Bs.innerHTML=el),In=t(s),o(Ws.$$.fragment,s),kn=t(s),zs=c(s,"P",{"data-svelte-h":!0}),u(zs)!=="svelte-1yb546a"&&(zs.innerHTML=ll),vn=t(s),o(Hs.$$.fragment,s),Un=t(s),Rs=c(s,"P",{"data-svelte-h":!0}),u(Rs)!=="svelte-bo476j"&&(Rs.textContent=tl),xn=t(s),o(Ys.$$.fragment,s),Cn=t(s),qs=c(s,"P",{"data-svelte-h":!0}),u(qs)!=="svelte-1407gba"&&(qs.textContent=pl),Zn=t(s),o(Xs.$$.fragment,s),Gn=t(s),Ns=c(s,"P",{"data-svelte-h":!0}),u(Ns)!=="svelte-mxr6t4"&&(Ns.innerHTML=rl),Vn=t(s),o(Fs.$$.fragment,s),Bn=t(s),Ls=c(s,"P",{"data-svelte-h":!0}),u(Ls)!=="svelte-1n00f7l"&&(Ls.textContent=ml),Wn=t(s),o(As.$$.fragment,s),zn=t(s),o(Qs.$$.fragment,s),Hn=t(s),Es=c(s,"P",{"data-svelte-h":!0}),u(Es)!=="svelte-14l1a6u"&&(Es.innerHTML=cl),Rn=t(s),o(B.$$.fragment,s),Yn=t(s),Ps=c(s,"P",{"data-svelte-h":!0}),u(Ps)!=="svelte-1aqi6mt"&&(Ps.innerHTML=ul),qn=t(s),o(W.$$.fragment,s),Xn=t(s),o(Ss.$$.fragment,s),Nn=t(s),Ds=c(s,"P",{"data-svelte-h":!0}),u(Ds)!=="svelte-9ffc4n"&&(Ds.innerHTML=hl),Fn=t(s),o(Ks.$$.fragment,s),Ln=t(s),z=c(s,"DIV",{class:!0,"data-svelte-h":!0}),u(z)!=="svelte-1jzdron"&&(z.innerHTML=ol),An=t(s),Os=c(s,"P",{"data-svelte-h":!0}),u(Os)!=="svelte-gwyucl"&&(Os.innerHTML=il),Qn=t(s),o(sa.$$.fragment,s),En=t(s),aa=c(s,"P",{"data-svelte-h":!0}),u(aa)!=="svelte-1k4l269"&&(aa.innerHTML=jl),Pn=t(s),na=c(s,"OL",{"data-svelte-h":!0}),u(na)!=="svelte-iu2fmq"&&(na.innerHTML=bl),Sn=t(s),o(ea.$$.fragment,s),Dn=t(s),H=c(s,"OL",{start:!0,"data-svelte-h":!0}),u(H)!=="svelte-1beco9e"&&(H.innerHTML=dl),Kn=t(s),o(la.$$.fragment,s),On=t(s),o(R.$$.fragment,s),se=t(s),Y=c(s,"OL",{start:!0,"data-svelte-h":!0}),u(Y)!=="svelte-4dlgnd"&&(Y.innerHTML=fl),ae=t(s),o(ta.$$.fragment,s),ne=t(s),q=c(s,"OL",{start:!0,"data-svelte-h":!0}),u(q)!=="svelte-z5mlcc"&&(q.innerHTML=gl),ee=t(s),o(pa.$$.fragment,s),le=t(s),ra=c(s,"P",{"data-svelte-h":!0}),u(ra)!=="svelte-trcbp4"&&(ra.textContent=Ml),te=t(s),o(ma.$$.fragment,s),pe=t(s),X=c(s,"DIV",{class:!0,"data-svelte-h":!0}),u(X)!=="svelte-mp8qzc"&&(X.innerHTML=yl),re=t(s),o(N.$$.fragment,s),me=t(s),o(ca.$$.fragment,s),ce=t(s),ua=c(s,"P",{"data-svelte-h":!0}),u(ua)!=="svelte-gzpzfe"&&(ua.innerHTML=Tl),ue=t(s),o(ha.$$.fragment,s),he=t(s),o(oa.$$.fragment,s),oe=t(s),ia=c(s,"P",{"data-svelte-h":!0}),u(ia)!=="svelte-f8x5ic"&&(ia.innerHTML=$l),ie=t(s),ja=c(s,"P",{"data-svelte-h":!0}),u(ja)!=="svelte-d9ps8f"&&(ja.innerHTML=Jl),je=t(s),o(ba.$$.fragment,s),be=t(s),da=c(s,"P",{"data-svelte-h":!0}),u(da)!=="svelte-1k5hdjd"&&(da.innerHTML=wl),de=t(s),o(fa.$$.fragment,s),fe=t(s),ga=c(s,"P",{"data-svelte-h":!0}),u(ga)!=="svelte-115u1vs"&&(ga.innerHTML=_l),ge=t(s),o(Ma.$$.fragment,s),Me=t(s),ya=c(s,"P",{"data-svelte-h":!0}),u(ya)!=="svelte-mn9i5v"&&(ya.innerHTML=Il),ye=t(s),o(Ta.$$.fragment,s),Te=t(s),$a=c(s,"P",{"data-svelte-h":!0}),u($a)!=="svelte-18f4xkw"&&($a.innerHTML=kl),$e=t(s),o(Ja.$$.fragment,s),Je=t(s),wa=c(s,"OL",{"data-svelte-h":!0}),u(wa)!=="svelte-1rrl7ud"&&(wa.innerHTML=vl),we=t(s),o(_a.$$.fragment,s),_e=t(s),F=c(s,"OL",{start:!0,"data-svelte-h":!0}),u(F)!=="svelte-ub4yka"&&(F.innerHTML=Ul),Ie=t(s),o(Ia.$$.fragment,s),ke=t(s),ka=c(s,"P",{"data-svelte-h":!0}),u(ka)!=="svelte-1fqvd5l"&&(ka.innerHTML=xl),ve=t(s),o(va.$$.fragment,s),Ue=t(s),Ua=c(s,"P",{}),Yl(Ua).forEach(n),this.h()},h(){_(p,"name","hf:doc:metadata"),_(p,"content",it),_(V,"start","2"),_(z,"class","flex justify-center"),_(H,"start","2"),_(Y,"start","3"),_(q,"start","4"),_(X,"class","flex justify-center"),_(F,"start","2")},m(s,a){Ql(document.head,p),e(s,f,a),e(s,r,a),e(s,g,a),i($,s,a),e(s,J,a),i(w,s,a),e(s,A,a),e(s,T,a),e(s,xa,a),e(s,Q,a),e(s,Ca,a),i(U,s,a),e(s,Za,a),e(s,E,a),e(s,Ga,a),i(P,s,a),e(s,Va,a),i(S,s,a),e(s,Ba,a),i(D,s,a),e(s,Wa,a),e(s,K,a),e(s,za,a),i(x,s,a),e(s,Ha,a),e(s,O,a),e(s,Ra,a),i(ss,s,a),e(s,Ya,a),e(s,as,a),e(s,qa,a),i(ns,s,a),e(s,Xa,a),e(s,es,a),e(s,Na,a),e(s,ls,a),e(s,Fa,a),e(s,ts,a),e(s,La,a),i(ps,s,a),e(s,Aa,a),e(s,rs,a),e(s,Qa,a),e(s,ms,a),e(s,Ea,a),i(cs,s,a),e(s,Pa,a),i(us,s,a),e(s,Sa,a),e(s,hs,a),e(s,Da,a),e(s,os,a),e(s,Ka,a),i(is,s,a),e(s,Oa,a),e(s,js,a),e(s,sn,a),i(bs,s,a),e(s,an,a),e(s,ds,a),e(s,nn,a),e(s,fs,a),e(s,en,a),i(gs,s,a),e(s,ln,a),i(C,s,a),e(s,tn,a),i(Ms,s,a),e(s,pn,a),e(s,ys,a),e(s,rn,a),e(s,Ts,a),e(s,mn,a),i(Z,s,a),e(s,cn,a),i(G,s,a),e(s,un,a),i($s,s,a),e(s,hn,a),e(s,Js,a),e(s,on,a),e(s,ws,a),e(s,jn,a),i(_s,s,a),e(s,bn,a),e(s,Is,a),e(s,dn,a),i(ks,s,a),e(s,fn,a),e(s,vs,a),e(s,gn,a),e(s,Us,a),e(s,Mn,a),e(s,xs,a),e(s,yn,a),e(s,Cs,a),e(s,Tn,a),i(Zs,s,a),e(s,$n,a),e(s,V,a),e(s,Jn,a),i(Gs,s,a),e(s,wn,a),e(s,Vs,a),e(s,_n,a),e(s,Bs,a),e(s,In,a),i(Ws,s,a),e(s,kn,a),e(s,zs,a),e(s,vn,a),i(Hs,s,a),e(s,Un,a),e(s,Rs,a),e(s,xn,a),i(Ys,s,a),e(s,Cn,a),e(s,qs,a),e(s,Zn,a),i(Xs,s,a),e(s,Gn,a),e(s,Ns,a),e(s,Vn,a),i(Fs,s,a),e(s,Bn,a),e(s,Ls,a),e(s,Wn,a),i(As,s,a),e(s,zn,a),i(Qs,s,a),e(s,Hn,a),e(s,Es,a),e(s,Rn,a),i(B,s,a),e(s,Yn,a),e(s,Ps,a),e(s,qn,a),i(W,s,a),e(s,Xn,a),i(Ss,s,a),e(s,Nn,a),e(s,Ds,a),e(s,Fn,a),i(Ks,s,a),e(s,Ln,a),e(s,z,a),e(s,An,a),e(s,Os,a),e(s,Qn,a),i(sa,s,a),e(s,En,a),e(s,aa,a),e(s,Pn,a),e(s,na,a),e(s,Sn,a),i(ea,s,a),e(s,Dn,a),e(s,H,a),e(s,Kn,a),i(la,s,a),e(s,On,a),i(R,s,a),e(s,se,a),e(s,Y,a),e(s,ae,a),i(ta,s,a),e(s,ne,a),e(s,q,a),e(s,ee,a),i(pa,s,a),e(s,le,a),e(s,ra,a),e(s,te,a),i(ma,s,a),e(s,pe,a),e(s,X,a),e(s,re,a),i(N,s,a),e(s,me,a),i(ca,s,a),e(s,ce,a),e(s,ua,a),e(s,ue,a),i(ha,s,a),e(s,he,a),i(oa,s,a),e(s,oe,a),e(s,ia,a),e(s,ie,a),e(s,ja,a),e(s,je,a),i(ba,s,a),e(s,be,a),e(s,da,a),e(s,de,a),i(fa,s,a),e(s,fe,a),e(s,ga,a),e(s,ge,a),i(Ma,s,a),e(s,Me,a),e(s,ya,a),e(s,ye,a),i(Ta,s,a),e(s,Te,a),e(s,$a,a),e(s,$e,a),i(Ja,s,a),e(s,Je,a),e(s,wa,a),e(s,we,a),i(_a,s,a),e(s,_e,a),e(s,F,a),e(s,Ie,a),i(Ia,s,a),e(s,ke,a),e(s,ka,a),e(s,ve,a),i(va,s,a),e(s,Ue,a),e(s,Ua,a),xe=!0},p(s,[a]){const Cl={};a&2&&(Cl.$$scope={dirty:a,ctx:s}),U.$set(Cl);const Zl={};a&2&&(Zl.$$scope={dirty:a,ctx:s}),x.$set(Zl);const Gl={};a&2&&(Gl.$$scope={dirty:a,ctx:s}),C.$set(Gl);const Vl={};a&2&&(Vl.$$scope={dirty:a,ctx:s}),Z.$set(Vl);const Bl={};a&2&&(Bl.$$scope={dirty:a,ctx:s}),G.$set(Bl);const Wl={};a&2&&(Wl.$$scope={dirty:a,ctx:s}),B.$set(Wl);const zl={};a&2&&(zl.$$scope={dirty:a,ctx:s}),W.$set(zl);const Hl={};a&2&&(Hl.$$scope={dirty:a,ctx:s}),R.$set(Hl);const Rl={};a&2&&(Rl.$$scope={dirty:a,ctx:s}),N.$set(Rl)},i(s){xe||(j($.$$.fragment,s),j(w.$$.fragment,s),j(U.$$.fragment,s),j(P.$$.fragment,s),j(S.$$.fragment,s),j(D.$$.fragment,s),j(x.$$.fragment,s),j(ss.$$.fragment,s),j(ns.$$.fragment,s),j(ps.$$.fragment,s),j(cs.$$.fragment,s),j(us.$$.fragment,s),j(is.$$.fragment,s),j(bs.$$.fragment,s),j(gs.$$.fragment,s),j(C.$$.fragment,s),j(Ms.$$.fragment,s),j(Z.$$.fragment,s),j(G.$$.fragment,s),j($s.$$.fragment,s),j(_s.$$.fragment,s),j(ks.$$.fragment,s),j(Zs.$$.fragment,s),j(Gs.$$.fragment,s),j(Ws.$$.fragment,s),j(Hs.$$.fragment,s),j(Ys.$$.fragment,s),j(Xs.$$.fragment,s),j(Fs.$$.fragment,s),j(As.$$.fragment,s),j(Qs.$$.fragment,s),j(B.$$.fragment,s),j(W.$$.fragment,s),j(Ss.$$.fragment,s),j(Ks.$$.fragment,s),j(sa.$$.fragment,s),j(ea.$$.fragment,s),j(la.$$.fragment,s),j(R.$$.fragment,s),j(ta.$$.fragment,s),j(pa.$$.fragment,s),j(ma.$$.fragment,s),j(N.$$.fragment,s),j(ca.$$.fragment,s),j(ha.$$.fragment,s),j(oa.$$.fragment,s),j(ba.$$.fragment,s),j(fa.$$.fragment,s),j(Ma.$$.fragment,s),j(Ta.$$.fragment,s),j(Ja.$$.fragment,s),j(_a.$$.fragment,s),j(Ia.$$.fragment,s),j(va.$$.fragment,s),xe=!0)},o(s){b($.$$.fragment,s),b(w.$$.fragment,s),b(U.$$.fragment,s),b(P.$$.fragment,s),b(S.$$.fragment,s),b(D.$$.fragment,s),b(x.$$.fragment,s),b(ss.$$.fragment,s),b(ns.$$.fragment,s),b(ps.$$.fragment,s),b(cs.$$.fragment,s),b(us.$$.fragment,s),b(is.$$.fragment,s),b(bs.$$.fragment,s),b(gs.$$.fragment,s),b(C.$$.fragment,s),b(Ms.$$.fragment,s),b(Z.$$.fragment,s),b(G.$$.fragment,s),b($s.$$.fragment,s),b(_s.$$.fragment,s),b(ks.$$.fragment,s),b(Zs.$$.fragment,s),b(Gs.$$.fragment,s),b(Ws.$$.fragment,s),b(Hs.$$.fragment,s),b(Ys.$$.fragment,s),b(Xs.$$.fragment,s),b(Fs.$$.fragment,s),b(As.$$.fragment,s),b(Qs.$$.fragment,s),b(B.$$.fragment,s),b(W.$$.fragment,s),b(Ss.$$.fragment,s),b(Ks.$$.fragment,s),b(sa.$$.fragment,s),b(ea.$$.fragment,s),b(la.$$.fragment,s),b(R.$$.fragment,s),b(ta.$$.fragment,s),b(pa.$$.fragment,s),b(ma.$$.fragment,s),b(N.$$.fragment,s),b(ca.$$.fragment,s),b(ha.$$.fragment,s),b(oa.$$.fragment,s),b(ba.$$.fragment,s),b(fa.$$.fragment,s),b(Ma.$$.fragment,s),b(Ta.$$.fragment,s),b(Ja.$$.fragment,s),b(_a.$$.fragment,s),b(Ia.$$.fragment,s),b(va.$$.fragment,s),xe=!1},d(s){s&&(n(f),n(r),n(g),n(J),n(A),n(T),n(xa),n(Q),n(Ca),n(Za),n(E),n(Ga),n(Va),n(Ba),n(Wa),n(K),n(za),n(Ha),n(O),n(Ra),n(Ya),n(as),n(qa),n(Xa),n(es),n(Na),n(ls),n(Fa),n(ts),n(La),n(Aa),n(rs),n(Qa),n(ms),n(Ea),n(Pa),n(Sa),n(hs),n(Da),n(os),n(Ka),n(Oa),n(js),n(sn),n(an),n(ds),n(nn),n(fs),n(en),n(ln),n(tn),n(pn),n(ys),n(rn),n(Ts),n(mn),n(cn),n(un),n(hn),n(Js),n(on),n(ws),n(jn),n(bn),n(Is),n(dn),n(fn),n(vs),n(gn),n(Us),n(Mn),n(xs),n(yn),n(Cs),n(Tn),n($n),n(V),n(Jn),n(wn),n(Vs),n(_n),n(Bs),n(In),n(kn),n(zs),n(vn),n(Un),n(Rs),n(xn),n(Cn),n(qs),n(Zn),n(Gn),n(Ns),n(Vn),n(Bn),n(Ls),n(Wn),n(zn),n(Hn),n(Es),n(Rn),n(Yn),n(Ps),n(qn),n(Xn),n(Nn),n(Ds),n(Fn),n(Ln),n(z),n(An),n(Os),n(Qn),n(En),n(aa),n(Pn),n(na),n(Sn),n(Dn),n(H),n(Kn),n(On),n(se),n(Y),n(ae),n(ne),n(q),n(ee),n(le),n(ra),n(te),n(pe),n(X),n(re),n(me),n(ce),n(ua),n(ue),n(he),n(oe),n(ia),n(ie),n(ja),n(je),n(be),n(da),n(de),n(fe),n(ga),n(ge),n(Me),n(ya),n(ye),n(Te),n($a),n($e),n(Je),n(wa),n(we),n(_e),n(F),n(Ie),n(ke),n(ka),n(ve),n(Ue),n(Ua)),n(p),d($,s),d(w,s),d(U,s),d(P,s),d(S,s),d(D,s),d(x,s),d(ss,s),d(ns,s),d(ps,s),d(cs,s),d(us,s),d(is,s),d(bs,s),d(gs,s),d(C,s),d(Ms,s),d(Z,s),d(G,s),d($s,s),d(_s,s),d(ks,s),d(Zs,s),d(Gs,s),d(Ws,s),d(Hs,s),d(Ys,s),d(Xs,s),d(Fs,s),d(As,s),d(Qs,s),d(B,s),d(W,s),d(Ss,s),d(Ks,s),d(sa,s),d(ea,s),d(la,s),d(R,s),d(ta,s),d(pa,s),d(ma,s),d(N,s),d(ca,s),d(ha,s),d(oa,s),d(ba,s),d(fa,s),d(Ma,s),d(Ta,s),d(Ja,s),d(_a,s),d(Ia,s),d(va,s)}}}const it='{"title":"Preprocess","local":"preprocess","sections":[{"title":"Natural Language Processing","local":"natural-language-processing","sections":[{"title":"Pad","local":"pad","sections":[],"depth":3},{"title":"Truncation","local":"truncation","sections":[],"depth":3},{"title":"Build tensors","local":"build-tensors","sections":[],"depth":3}],"depth":2},{"title":"Audio","local":"audio","sections":[],"depth":2},{"title":"Computer vision","local":"computer-vision","sections":[{"title":"Pad","local":"pad","sections":[],"depth":3}],"depth":2},{"title":"Multimodal","local":"multimodal","sections":[],"depth":2}],"depth":1}';function jt(y){return Nl(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Jt extends Fl{constructor(p){super(),Ll(this,p,jt,ot,Xl,{})}}export{Jt as component};
