import{S as $s,i as vs,s as gs,e as n,k as f,w,t as r,M as ys,c as o,d as e,m as h,a as i,x as _,h as p,b as u,G as a,g as l,y as b,q as x,o as k,B as E,v as ws,L as ms}from"../chunks/vendor-hf-doc-builder.js";import{T as Na}from"../chunks/Tip-hf-doc-builder.js";import{I as Tt}from"../chunks/IconCopyLink-hf-doc-builder.js";import{C as M}from"../chunks/CodeBlock-hf-doc-builder.js";function _s(Y){let d,T,m,A,D,$,P,S;return{c(){d=n("p"),T=r("If you want to use \u{1F917} Datasets with TensorFlow or PyTorch, you\u2019ll need to install them separately. Refer to the "),m=n("a"),A=r("TensorFlow installation page"),D=r(" or the "),$=n("a"),P=r("PyTorch installation page"),S=r(" for the specific install command for your framework."),this.h()},l(c){d=o(c,"P",{});var v=i(d);T=p(v,"If you want to use \u{1F917} Datasets with TensorFlow or PyTorch, you\u2019ll need to install them separately. Refer to the "),m=o(v,"A",{href:!0,rel:!0});var j=i(m);A=p(j,"TensorFlow installation page"),j.forEach(e),D=p(v," or the "),$=o(v,"A",{href:!0,rel:!0});var q=i($);P=p(q,"PyTorch installation page"),q.forEach(e),S=p(v," for the specific install command for your framework."),v.forEach(e),this.h()},h(){u(m,"href","https://www.tensorflow.org/install/pip#tensorflow-2-packages-are-available"),u(m,"rel","nofollow"),u($,"href","https://pytorch.org/get-started/locally/#start-locally"),u($,"rel","nofollow")},m(c,v){l(c,d,v),a(d,T),a(d,m),a(m,A),a(d,D),a(d,$),a($,P),a(d,S)},d(c){c&&e(d)}}}function bs(Y){let d,T,m,A,D,$,P,S;return P=new M({props:{code:"sudo apt-get install libsndfile1",highlighted:"sudo apt-get install libsndfile1"}}),{c(){d=n("p"),T=r("On Linux, non-Python dependency on "),m=n("code"),A=r("libsndfile"),D=r(" package must be installed manually, using your distribution package manager, for example:"),$=f(),w(P.$$.fragment)},l(c){d=o(c,"P",{});var v=i(d);T=p(v,"On Linux, non-Python dependency on "),m=o(v,"CODE",{});var j=i(m);A=p(j,"libsndfile"),j.forEach(e),D=p(v," package must be installed manually, using your distribution package manager, for example:"),v.forEach(e),$=h(c),_(P.$$.fragment,c)},m(c,v){l(c,d,v),a(d,T),a(d,m),a(m,A),a(d,D),l(c,$,v),b(P,c,v),S=!0},p:ms,i(c){S||(x(P.$$.fragment,c),S=!0)},o(c){k(P.$$.fragment,c),S=!1},d(c){c&&e(d),c&&e($),E(P,c)}}}function xs(Y){let d,T,m,A,D,$,P,S,c,v,j,q,N,it,Q,B,I;return B=new M({props:{code:"sudo apt-get install sox",highlighted:"sudo apt-get install sox"}}),{c(){d=n("p"),T=r("torchaudio\u2019s "),m=n("code"),A=r("sox_io"),D=f(),$=n("a"),P=r("backend"),S=r(" supports decoding MP3 files. Unfortunately, the "),c=n("code"),v=r("sox_io"),j=r(" backend is only available on Linux/macOS and isn\u2019t supported by Windows."),q=f(),N=n("p"),it=r("You need to install it using your distribution package manager, for example:"),Q=f(),w(B.$$.fragment),this.h()},l(g){d=o(g,"P",{});var y=i(d);T=p(y,"torchaudio\u2019s "),m=o(y,"CODE",{});var L=i(m);A=p(L,"sox_io"),L.forEach(e),D=h(y),$=o(y,"A",{href:!0,rel:!0});var U=i($);P=p(U,"backend"),U.forEach(e),S=p(y," supports decoding MP3 files. Unfortunately, the "),c=o(y,"CODE",{});var O=i(c);v=p(O,"sox_io"),O.forEach(e),j=p(y," backend is only available on Linux/macOS and isn\u2019t supported by Windows."),y.forEach(e),q=h(g),N=o(g,"P",{});var Mt=i(N);it=p(Mt,"You need to install it using your distribution package manager, for example:"),Mt.forEach(e),Q=h(g),_(B.$$.fragment,g),this.h()},h(){u($,"href","https://pytorch.org/audio/stable/backend.html#"),u($,"rel","nofollow")},m(g,y){l(g,d,y),a(d,T),a(d,m),a(m,A),a(d,D),a(d,$),a($,P),a(d,S),a(d,c),a(c,v),a(d,j),l(g,q,y),l(g,N,y),a(N,it),l(g,Q,y),b(B,g,y),I=!0},p:ms,i(g){I||(x(B.$$.fragment,g),I=!0)},o(g){k(B.$$.fragment,g),I=!1},d(g){g&&e(d),g&&e(q),g&&e(N),g&&e(Q),E(B,g)}}}function ks(Y){let d,T,m,A,D,$,P,S,c,v,j,q,N,it,Q,B,I,g,y,L,U,O,Mt,Ft,We,ne,W,Je,lt,ze,Ke,oe,V,rt,Gt,Xe,Ze,pt,ta,ft,Rt,ea,aa,ht,sa,ut,Yt,na,oa,dt,ie,It,ia,le,C,J,Qt,ct,la,Ut,ra,re,Nt,pa,pe,mt,fe,Bt,fa,he,$t,ue,z,ha,vt,ua,da,de,gt,ce,H,K,Wt,yt,ca,Jt,ma,me,X,$a,qt,va,ga,$e,wt,ve,Z,ge,tt,ya,_t,wa,_a,ye,bt,we,et,_e,F,at,zt,xt,ba,Kt,xa,be,st,ka,Lt,Ea,Aa,xe,kt,ke,G,nt,Xt,Et,Pa,Zt,Sa,Ee,Ot,ja,Ae,At,Pe,Vt,Da,Se,Pt,je,R,ot,te,St,Ta,ee,Ma,De,Ct,Ia,Te,jt,Me;return $=new Tt({}),I=new Na({props:{$$slots:{default:[_s]},$$scope:{ctx:Y}}}),O=new Tt({}),pt=new M({props:{code:`mkdir ~/my-project
cd ~/my-project`,highlighted:`<span class="hljs-built_in">mkdir</span> ~/my-project
<span class="hljs-built_in">cd</span> ~/my-project`}}),ht=new M({props:{code:"python -m venv .env",highlighted:'python -m venv .<span class="hljs-built_in">env</span>'}}),dt=new M({props:{code:`# Activate the virtual environment
source .env/bin/activate

# Deactivate the virtual environment
source .env/bin/deactivate`,highlighted:`<span class="hljs-comment"># Activate the virtual environment</span>
<span class="hljs-built_in">source</span> .<span class="hljs-built_in">env</span>/bin/activate

<span class="hljs-comment"># Deactivate the virtual environment</span>
<span class="hljs-built_in">source</span> .<span class="hljs-built_in">env</span>/bin/deactivate`}}),ct=new Tt({}),mt=new M({props:{code:"pip install datasets",highlighted:"pip install datasets"}}),$t=new M({props:{code:`python -c "from datasets import load_dataset; print(load_dataset('squad', split='train')[0])"`,highlighted:'python -c <span class="hljs-string">&quot;from datasets import load_dataset; print(load_dataset(&#x27;squad&#x27;, split=&#x27;train&#x27;)[0])&quot;</span>'}}),gt=new M({props:{code:`{'answers': {'answer_start': [515], 'text': ['Saint Bernadette Soubirous']}, 'context': 'Architecturally, the school has a Catholic character. Atop the Main Building\\'s gold dome is a golden statue of the Virgin Mary. Immediately in front of the Main Building and facing it, is a copper statue of Christ with arms upraised with the legend "Venite Ad Me Omnes". Next to the Main Building is the Basilica of the Sacred Heart. Immediately behind the basilica is the Grotto, a Marian place of prayer and reflection. It is a replica of the grotto at Lourdes, France where the Virgin Mary reputedly appeared to Saint Bernadette Soubirous in 1858. At the end of the main drive (and in a direct line that connects through 3 statues and the Gold Dome), is a simple, modern stone statue of Mary.', 'id': '5733be284776f41900661182', 'question': 'To whom did the Virgin Mary allegedly appear in 1858 in Lourdes France?', 'title': 'University_of_Notre_Dame'}`,highlighted:'{<span class="hljs-string">&#x27;answers&#x27;</span>: {<span class="hljs-string">&#x27;answer_start&#x27;</span>: [<span class="hljs-number">515</span>], <span class="hljs-string">&#x27;text&#x27;</span>: [<span class="hljs-string">&#x27;Saint Bernadette Soubirous&#x27;</span>]}, <span class="hljs-string">&#x27;context&#x27;</span>: <span class="hljs-string">&#x27;Architecturally, the school has a Catholic character. Atop the Main Building\\&#x27;s gold dome is a golden statue of the Virgin Mary. Immediately in front of the Main Building and facing it, is a copper statue of Christ with arms upraised with the legend &quot;Venite Ad Me Omnes&quot;. Next to the Main Building is the Basilica of the Sacred Heart. Immediately behind the basilica is the Grotto, a Marian place of prayer and reflection. It is a replica of the grotto at Lourdes, France where the Virgin Mary reputedly appeared to Saint Bernadette Soubirous in 1858. At the end of the main drive (and in a direct line that connects through 3 statues and the Gold Dome), is a simple, modern stone statue of Mary.&#x27;</span>, <span class="hljs-string">&#x27;id&#x27;</span>: <span class="hljs-string">&#x27;5733be284776f41900661182&#x27;</span>, <span class="hljs-string">&#x27;question&#x27;</span>: <span class="hljs-string">&#x27;To whom did the Virgin Mary allegedly appear in 1858 in Lourdes France?&#x27;</span>, <span class="hljs-string">&#x27;title&#x27;</span>: <span class="hljs-string">&#x27;University_of_Notre_Dame&#x27;</span>}'}}),yt=new Tt({}),wt=new M({props:{code:"pip install datasets[audio]",highlighted:"pip install datasets[audio]"}}),Z=new Na({props:{warning:!0,$$slots:{default:[bs]},$$scope:{ctx:Y}}}),bt=new M({props:{code:"pip install 'torchaudio<0.12.0'",highlighted:'pip install <span class="hljs-string">&#x27;torchaudio&lt;0.12.0&#x27;</span>'}}),et=new Na({props:{warning:!0,$$slots:{default:[xs]},$$scope:{ctx:Y}}}),xt=new Tt({}),kt=new M({props:{code:"pip install datasets[vision]",highlighted:"pip install datasets[vision]"}}),Et=new Tt({}),At=new M({props:{code:`git clone https://github.com/huggingface/datasets.git
cd datasets
pip install -e .`,highlighted:`git <span class="hljs-built_in">clone</span> https://github.com/huggingface/datasets.git
<span class="hljs-built_in">cd</span> datasets
pip install -e .`}}),Pt=new M({props:{code:`python -c "from datasets import load_dataset; print(load_dataset('squad', split='train')[0])"`,highlighted:'python -c <span class="hljs-string">&quot;from datasets import load_dataset; print(load_dataset(&#x27;squad&#x27;, split=&#x27;train&#x27;)[0])&quot;</span>'}}),St=new Tt({}),jt=new M({props:{code:"conda install -c huggingface -c conda-forge datasets",highlighted:"conda install -c huggingface -c conda-forge datasets"}}),{c(){d=n("meta"),T=f(),m=n("h1"),A=n("a"),D=n("span"),w($.$$.fragment),P=f(),S=n("span"),c=r("Installation"),v=f(),j=n("p"),q=r("Before you start, you\u2019ll need to setup your environment and install the appropriate packages. \u{1F917} Datasets is tested on "),N=n("strong"),it=r("Python 3.7+"),Q=r("."),B=f(),w(I.$$.fragment),g=f(),y=n("h2"),L=n("a"),U=n("span"),w(O.$$.fragment),Mt=f(),Ft=n("span"),We=r("Virtual environment"),ne=f(),W=n("p"),Je=r("You should install \u{1F917} Datasets in a "),lt=n("a"),ze=r("virtual environment"),Ke=r(" to keep things tidy and avoid dependency conflicts."),oe=f(),V=n("ol"),rt=n("li"),Gt=n("p"),Xe=r("Create and navigate to your project directory:"),Ze=f(),w(pt.$$.fragment),ta=f(),ft=n("li"),Rt=n("p"),ea=r("Start a virtual environment inside your directory:"),aa=f(),w(ht.$$.fragment),sa=f(),ut=n("li"),Yt=n("p"),na=r("Activate and deactivate the virtual environment with the following commands:"),oa=f(),w(dt.$$.fragment),ie=f(),It=n("p"),ia=r("Once you\u2019ve created your virtual environment, you can install \u{1F917} Datasets in it."),le=f(),C=n("h2"),J=n("a"),Qt=n("span"),w(ct.$$.fragment),la=f(),Ut=n("span"),ra=r("pip"),re=f(),Nt=n("p"),pa=r("The most straightforward way to install \u{1F917} Datasets is with pip:"),pe=f(),w(mt.$$.fragment),fe=f(),Bt=n("p"),fa=r("Run the following command to check if \u{1F917} Datasets has been properly installed:"),he=f(),w($t.$$.fragment),ue=f(),z=n("p"),ha=r("This command downloads version 1 of the "),vt=n("a"),ua=r("Stanford Question Answering Dataset (SQuAD)"),da=r(", loads the training split, and prints the first training example. You should see:"),de=f(),w(gt.$$.fragment),ce=f(),H=n("h2"),K=n("a"),Wt=n("span"),w(yt.$$.fragment),ca=f(),Jt=n("span"),ma=r("Audio"),me=f(),X=n("p"),$a=r("To work with audio datasets, you need to install the "),qt=n("a"),va=r("Audio"),ga=r(" feature as an extra dependency:"),$e=f(),w(wt.$$.fragment),ve=f(),w(Z.$$.fragment),ge=f(),tt=n("p"),ya=r("To support loading audio datasets containing MP3 files, users should also install "),_t=n("a"),wa=r("torchaudio"),_a=r(" to handle the audio data with high performance:"),ye=f(),w(bt.$$.fragment),we=f(),w(et.$$.fragment),_e=f(),F=n("h2"),at=n("a"),zt=n("span"),w(xt.$$.fragment),ba=f(),Kt=n("span"),xa=r("Vision"),be=f(),st=n("p"),ka=r("To work with image datasets, you need to install the "),Lt=n("a"),Ea=r("Image"),Aa=r(" feature as an extra dependency:"),xe=f(),w(kt.$$.fragment),ke=f(),G=n("h2"),nt=n("a"),Xt=n("span"),w(Et.$$.fragment),Pa=f(),Zt=n("span"),Sa=r("source"),Ee=f(),Ot=n("p"),ja=r("Building \u{1F917} Datasets from source lets you make changes to the code base. To install from the source, clone the repository and install with the following commands:"),Ae=f(),w(At.$$.fragment),Pe=f(),Vt=n("p"),Da=r("Again, you can check if \u{1F917} Datasets was properly installed with the following command:"),Se=f(),w(Pt.$$.fragment),je=f(),R=n("h2"),ot=n("a"),te=n("span"),w(St.$$.fragment),Ta=f(),ee=n("span"),Ma=r("conda"),De=f(),Ct=n("p"),Ia=r("\u{1F917} Datasets can also be installed from conda, a package management system:"),Te=f(),w(jt.$$.fragment),this.h()},l(t){const s=ys('[data-svelte="svelte-1phssyn"]',document.head);d=o(s,"META",{name:!0,content:!0}),s.forEach(e),T=h(t),m=o(t,"H1",{class:!0});var Dt=i(m);A=o(Dt,"A",{id:!0,class:!0,href:!0});var ae=i(A);D=o(ae,"SPAN",{});var se=i(D);_($.$$.fragment,se),se.forEach(e),ae.forEach(e),P=h(Dt),S=o(Dt,"SPAN",{});var Ba=i(S);c=p(Ba,"Installation"),Ba.forEach(e),Dt.forEach(e),v=h(t),j=o(t,"P",{});var Ie=i(j);q=p(Ie,"Before you start, you\u2019ll need to setup your environment and install the appropriate packages. \u{1F917} Datasets is tested on "),N=o(Ie,"STRONG",{});var qa=i(N);it=p(qa,"Python 3.7+"),qa.forEach(e),Q=p(Ie,"."),Ie.forEach(e),B=h(t),_(I.$$.fragment,t),g=h(t),y=o(t,"H2",{class:!0});var Ne=i(y);L=o(Ne,"A",{id:!0,class:!0,href:!0});var La=i(L);U=o(La,"SPAN",{});var Oa=i(U);_(O.$$.fragment,Oa),Oa.forEach(e),La.forEach(e),Mt=h(Ne),Ft=o(Ne,"SPAN",{});var Va=i(Ft);We=p(Va,"Virtual environment"),Va.forEach(e),Ne.forEach(e),ne=h(t),W=o(t,"P",{});var Be=i(W);Je=p(Be,"You should install \u{1F917} Datasets in a "),lt=o(Be,"A",{href:!0,rel:!0});var Ca=i(lt);ze=p(Ca,"virtual environment"),Ca.forEach(e),Ke=p(Be," to keep things tidy and avoid dependency conflicts."),Be.forEach(e),oe=h(t),V=o(t,"OL",{});var Ht=i(V);rt=o(Ht,"LI",{});var qe=i(rt);Gt=o(qe,"P",{});var Ha=i(Gt);Xe=p(Ha,"Create and navigate to your project directory:"),Ha.forEach(e),Ze=h(qe),_(pt.$$.fragment,qe),qe.forEach(e),ta=h(Ht),ft=o(Ht,"LI",{});var Le=i(ft);Rt=o(Le,"P",{});var Fa=i(Rt);ea=p(Fa,"Start a virtual environment inside your directory:"),Fa.forEach(e),aa=h(Le),_(ht.$$.fragment,Le),Le.forEach(e),sa=h(Ht),ut=o(Ht,"LI",{});var Oe=i(ut);Yt=o(Oe,"P",{});var Ga=i(Yt);na=p(Ga,"Activate and deactivate the virtual environment with the following commands:"),Ga.forEach(e),oa=h(Oe),_(dt.$$.fragment,Oe),Oe.forEach(e),Ht.forEach(e),ie=h(t),It=o(t,"P",{});var Ra=i(It);ia=p(Ra,"Once you\u2019ve created your virtual environment, you can install \u{1F917} Datasets in it."),Ra.forEach(e),le=h(t),C=o(t,"H2",{class:!0});var Ve=i(C);J=o(Ve,"A",{id:!0,class:!0,href:!0});var Ya=i(J);Qt=o(Ya,"SPAN",{});var Qa=i(Qt);_(ct.$$.fragment,Qa),Qa.forEach(e),Ya.forEach(e),la=h(Ve),Ut=o(Ve,"SPAN",{});var Ua=i(Ut);ra=p(Ua,"pip"),Ua.forEach(e),Ve.forEach(e),re=h(t),Nt=o(t,"P",{});var Wa=i(Nt);pa=p(Wa,"The most straightforward way to install \u{1F917} Datasets is with pip:"),Wa.forEach(e),pe=h(t),_(mt.$$.fragment,t),fe=h(t),Bt=o(t,"P",{});var Ja=i(Bt);fa=p(Ja,"Run the following command to check if \u{1F917} Datasets has been properly installed:"),Ja.forEach(e),he=h(t),_($t.$$.fragment,t),ue=h(t),z=o(t,"P",{});var Ce=i(z);ha=p(Ce,"This command downloads version 1 of the "),vt=o(Ce,"A",{href:!0,rel:!0});var za=i(vt);ua=p(za,"Stanford Question Answering Dataset (SQuAD)"),za.forEach(e),da=p(Ce,", loads the training split, and prints the first training example. You should see:"),Ce.forEach(e),de=h(t),_(gt.$$.fragment,t),ce=h(t),H=o(t,"H2",{class:!0});var He=i(H);K=o(He,"A",{id:!0,class:!0,href:!0});var Ka=i(K);Wt=o(Ka,"SPAN",{});var Xa=i(Wt);_(yt.$$.fragment,Xa),Xa.forEach(e),Ka.forEach(e),ca=h(He),Jt=o(He,"SPAN",{});var Za=i(Jt);ma=p(Za,"Audio"),Za.forEach(e),He.forEach(e),me=h(t),X=o(t,"P",{});var Fe=i(X);$a=p(Fe,"To work with audio datasets, you need to install the "),qt=o(Fe,"A",{href:!0});var ts=i(qt);va=p(ts,"Audio"),ts.forEach(e),ga=p(Fe," feature as an extra dependency:"),Fe.forEach(e),$e=h(t),_(wt.$$.fragment,t),ve=h(t),_(Z.$$.fragment,t),ge=h(t),tt=o(t,"P",{});var Ge=i(tt);ya=p(Ge,"To support loading audio datasets containing MP3 files, users should also install "),_t=o(Ge,"A",{href:!0,rel:!0});var es=i(_t);wa=p(es,"torchaudio"),es.forEach(e),_a=p(Ge," to handle the audio data with high performance:"),Ge.forEach(e),ye=h(t),_(bt.$$.fragment,t),we=h(t),_(et.$$.fragment,t),_e=h(t),F=o(t,"H2",{class:!0});var Re=i(F);at=o(Re,"A",{id:!0,class:!0,href:!0});var as=i(at);zt=o(as,"SPAN",{});var ss=i(zt);_(xt.$$.fragment,ss),ss.forEach(e),as.forEach(e),ba=h(Re),Kt=o(Re,"SPAN",{});var ns=i(Kt);xa=p(ns,"Vision"),ns.forEach(e),Re.forEach(e),be=h(t),st=o(t,"P",{});var Ye=i(st);ka=p(Ye,"To work with image datasets, you need to install the "),Lt=o(Ye,"A",{href:!0});var os=i(Lt);Ea=p(os,"Image"),os.forEach(e),Aa=p(Ye," feature as an extra dependency:"),Ye.forEach(e),xe=h(t),_(kt.$$.fragment,t),ke=h(t),G=o(t,"H2",{class:!0});var Qe=i(G);nt=o(Qe,"A",{id:!0,class:!0,href:!0});var is=i(nt);Xt=o(is,"SPAN",{});var ls=i(Xt);_(Et.$$.fragment,ls),ls.forEach(e),is.forEach(e),Pa=h(Qe),Zt=o(Qe,"SPAN",{});var rs=i(Zt);Sa=p(rs,"source"),rs.forEach(e),Qe.forEach(e),Ee=h(t),Ot=o(t,"P",{});var ps=i(Ot);ja=p(ps,"Building \u{1F917} Datasets from source lets you make changes to the code base. To install from the source, clone the repository and install with the following commands:"),ps.forEach(e),Ae=h(t),_(At.$$.fragment,t),Pe=h(t),Vt=o(t,"P",{});var fs=i(Vt);Da=p(fs,"Again, you can check if \u{1F917} Datasets was properly installed with the following command:"),fs.forEach(e),Se=h(t),_(Pt.$$.fragment,t),je=h(t),R=o(t,"H2",{class:!0});var Ue=i(R);ot=o(Ue,"A",{id:!0,class:!0,href:!0});var hs=i(ot);te=o(hs,"SPAN",{});var us=i(te);_(St.$$.fragment,us),us.forEach(e),hs.forEach(e),Ta=h(Ue),ee=o(Ue,"SPAN",{});var ds=i(ee);Ma=p(ds,"conda"),ds.forEach(e),Ue.forEach(e),De=h(t),Ct=o(t,"P",{});var cs=i(Ct);Ia=p(cs,"\u{1F917} Datasets can also be installed from conda, a package management system:"),cs.forEach(e),Te=h(t),_(jt.$$.fragment,t),this.h()},h(){u(d,"name","hf:doc:metadata"),u(d,"content",JSON.stringify(Es)),u(A,"id","installation"),u(A,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(A,"href","#installation"),u(m,"class","relative group"),u(L,"id","virtual-environment"),u(L,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(L,"href","#virtual-environment"),u(y,"class","relative group"),u(lt,"href","https://docs.python.org/3/library/venv.html"),u(lt,"rel","nofollow"),u(J,"id","pip"),u(J,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(J,"href","#pip"),u(C,"class","relative group"),u(vt,"href","https://rajpurkar.github.io/SQuAD-explorer/"),u(vt,"rel","nofollow"),u(K,"id","audio"),u(K,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(K,"href","#audio"),u(H,"class","relative group"),u(qt,"href","/docs/datasets/v2.8.0/en/package_reference/main_classes#datasets.Audio"),u(_t,"href","https://pytorch.org/audio/stable/index.html"),u(_t,"rel","nofollow"),u(at,"id","vision"),u(at,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(at,"href","#vision"),u(F,"class","relative group"),u(Lt,"href","/docs/datasets/v2.8.0/en/package_reference/main_classes#datasets.Image"),u(nt,"id","source"),u(nt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(nt,"href","#source"),u(G,"class","relative group"),u(ot,"id","conda"),u(ot,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),u(ot,"href","#conda"),u(R,"class","relative group")},m(t,s){a(document.head,d),l(t,T,s),l(t,m,s),a(m,A),a(A,D),b($,D,null),a(m,P),a(m,S),a(S,c),l(t,v,s),l(t,j,s),a(j,q),a(j,N),a(N,it),a(j,Q),l(t,B,s),b(I,t,s),l(t,g,s),l(t,y,s),a(y,L),a(L,U),b(O,U,null),a(y,Mt),a(y,Ft),a(Ft,We),l(t,ne,s),l(t,W,s),a(W,Je),a(W,lt),a(lt,ze),a(W,Ke),l(t,oe,s),l(t,V,s),a(V,rt),a(rt,Gt),a(Gt,Xe),a(rt,Ze),b(pt,rt,null),a(V,ta),a(V,ft),a(ft,Rt),a(Rt,ea),a(ft,aa),b(ht,ft,null),a(V,sa),a(V,ut),a(ut,Yt),a(Yt,na),a(ut,oa),b(dt,ut,null),l(t,ie,s),l(t,It,s),a(It,ia),l(t,le,s),l(t,C,s),a(C,J),a(J,Qt),b(ct,Qt,null),a(C,la),a(C,Ut),a(Ut,ra),l(t,re,s),l(t,Nt,s),a(Nt,pa),l(t,pe,s),b(mt,t,s),l(t,fe,s),l(t,Bt,s),a(Bt,fa),l(t,he,s),b($t,t,s),l(t,ue,s),l(t,z,s),a(z,ha),a(z,vt),a(vt,ua),a(z,da),l(t,de,s),b(gt,t,s),l(t,ce,s),l(t,H,s),a(H,K),a(K,Wt),b(yt,Wt,null),a(H,ca),a(H,Jt),a(Jt,ma),l(t,me,s),l(t,X,s),a(X,$a),a(X,qt),a(qt,va),a(X,ga),l(t,$e,s),b(wt,t,s),l(t,ve,s),b(Z,t,s),l(t,ge,s),l(t,tt,s),a(tt,ya),a(tt,_t),a(_t,wa),a(tt,_a),l(t,ye,s),b(bt,t,s),l(t,we,s),b(et,t,s),l(t,_e,s),l(t,F,s),a(F,at),a(at,zt),b(xt,zt,null),a(F,ba),a(F,Kt),a(Kt,xa),l(t,be,s),l(t,st,s),a(st,ka),a(st,Lt),a(Lt,Ea),a(st,Aa),l(t,xe,s),b(kt,t,s),l(t,ke,s),l(t,G,s),a(G,nt),a(nt,Xt),b(Et,Xt,null),a(G,Pa),a(G,Zt),a(Zt,Sa),l(t,Ee,s),l(t,Ot,s),a(Ot,ja),l(t,Ae,s),b(At,t,s),l(t,Pe,s),l(t,Vt,s),a(Vt,Da),l(t,Se,s),b(Pt,t,s),l(t,je,s),l(t,R,s),a(R,ot),a(ot,te),b(St,te,null),a(R,Ta),a(R,ee),a(ee,Ma),l(t,De,s),l(t,Ct,s),a(Ct,Ia),l(t,Te,s),b(jt,t,s),Me=!0},p(t,[s]){const Dt={};s&2&&(Dt.$$scope={dirty:s,ctx:t}),I.$set(Dt);const ae={};s&2&&(ae.$$scope={dirty:s,ctx:t}),Z.$set(ae);const se={};s&2&&(se.$$scope={dirty:s,ctx:t}),et.$set(se)},i(t){Me||(x($.$$.fragment,t),x(I.$$.fragment,t),x(O.$$.fragment,t),x(pt.$$.fragment,t),x(ht.$$.fragment,t),x(dt.$$.fragment,t),x(ct.$$.fragment,t),x(mt.$$.fragment,t),x($t.$$.fragment,t),x(gt.$$.fragment,t),x(yt.$$.fragment,t),x(wt.$$.fragment,t),x(Z.$$.fragment,t),x(bt.$$.fragment,t),x(et.$$.fragment,t),x(xt.$$.fragment,t),x(kt.$$.fragment,t),x(Et.$$.fragment,t),x(At.$$.fragment,t),x(Pt.$$.fragment,t),x(St.$$.fragment,t),x(jt.$$.fragment,t),Me=!0)},o(t){k($.$$.fragment,t),k(I.$$.fragment,t),k(O.$$.fragment,t),k(pt.$$.fragment,t),k(ht.$$.fragment,t),k(dt.$$.fragment,t),k(ct.$$.fragment,t),k(mt.$$.fragment,t),k($t.$$.fragment,t),k(gt.$$.fragment,t),k(yt.$$.fragment,t),k(wt.$$.fragment,t),k(Z.$$.fragment,t),k(bt.$$.fragment,t),k(et.$$.fragment,t),k(xt.$$.fragment,t),k(kt.$$.fragment,t),k(Et.$$.fragment,t),k(At.$$.fragment,t),k(Pt.$$.fragment,t),k(St.$$.fragment,t),k(jt.$$.fragment,t),Me=!1},d(t){e(d),t&&e(T),t&&e(m),E($),t&&e(v),t&&e(j),t&&e(B),E(I,t),t&&e(g),t&&e(y),E(O),t&&e(ne),t&&e(W),t&&e(oe),t&&e(V),E(pt),E(ht),E(dt),t&&e(ie),t&&e(It),t&&e(le),t&&e(C),E(ct),t&&e(re),t&&e(Nt),t&&e(pe),E(mt,t),t&&e(fe),t&&e(Bt),t&&e(he),E($t,t),t&&e(ue),t&&e(z),t&&e(de),E(gt,t),t&&e(ce),t&&e(H),E(yt),t&&e(me),t&&e(X),t&&e($e),E(wt,t),t&&e(ve),E(Z,t),t&&e(ge),t&&e(tt),t&&e(ye),E(bt,t),t&&e(we),E(et,t),t&&e(_e),t&&e(F),E(xt),t&&e(be),t&&e(st),t&&e(xe),E(kt,t),t&&e(ke),t&&e(G),E(Et),t&&e(Ee),t&&e(Ot),t&&e(Ae),E(At,t),t&&e(Pe),t&&e(Vt),t&&e(Se),E(Pt,t),t&&e(je),t&&e(R),E(St),t&&e(De),t&&e(Ct),t&&e(Te),E(jt,t)}}}const Es={local:"installation",sections:[{local:"virtual-environment",title:"Virtual environment"},{local:"pip",title:"pip"},{local:"audio",title:"Audio"},{local:"vision",title:"Vision"},{local:"source",title:"source"},{local:"conda",title:"conda"}],title:"Installation"};function As(Y){return ws(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ts extends $s{constructor(d){super();vs(this,d,As,ks,gs,{})}}export{Ts as default,Es as metadata};
