import{S as pt,i as mt,s as gt,e as r,k as P,w as _t,t as o,N as yt,c as l,d as a,m as $,a as i,x as vt,h as s,b as n,G as e,g as d,y as wt,L as bt,q as Et,o as St,B as Dt,v as kt}from"../chunks/vendor-hf-doc-builder.js";import{I as Pt}from"../chunks/IconCopyLink-hf-doc-builder.js";function $t(st){let f,N,p,m,A,y,G,x,I,O,g,R,H,T,V,U,h,Y,v,B,j,w,z,K,q,_,Q,b,W,X,C,u,Z,E,tt,et,S,at,ot,F;return y=new Pt({}),{c(){f=r("meta"),N=P(),p=r("h1"),m=r("a"),A=r("span"),_t(y.$$.fragment),G=P(),x=r("span"),I=o("Using \u{1F917} Datasets"),O=P(),g=r("p"),R=o("Once you\u2019ve found an interesting dataset on the Hugging Face Hub, you can load the dataset using \u{1F917} Datasets. You can click on the "),H=r("strong"),T=o("Use in dataset library"),V=o(" button to copy the code to load a dataset."),U=P(),h=r("p"),Y=o("Some datasets on the Hub contain a "),v=r("a"),B=o("loading script"),j=o(", which allows you to easily "),w=r("a"),z=o("load the dataset when you need it"),K=o("."),q=P(),_=r("p"),Q=o("Many datasets however do not need to include a loading script, for instance when their data is stored directly in the repository in formats such as CSV, JSON and Parquet. \u{1F917} Datasets can "),b=r("a"),W=o("load those kinds of datasets"),X=o(" automatically without a loading script."),C=P(),u=r("p"),Z=o("For more information about using \u{1F917} Datasets, check out the "),E=r("a"),tt=o("tutorials"),et=o(" and "),S=r("a"),at=o("how-to guides"),ot=o(" available in the \u{1F917} Datasets documentation."),this.h()},l(t){const c=yt('[data-svelte="svelte-1phssyn"]',document.head);f=l(c,"META",{name:!0,content:!0}),c.forEach(a),N=$(t),p=l(t,"H1",{class:!0});var M=i(p);m=l(M,"A",{id:!0,class:!0,href:!0});var nt=i(m);A=l(nt,"SPAN",{});var rt=i(A);vt(y.$$.fragment,rt),rt.forEach(a),nt.forEach(a),G=$(M),x=l(M,"SPAN",{});var lt=i(x);I=s(lt,"Using \u{1F917} Datasets"),lt.forEach(a),M.forEach(a),O=$(t),g=l(t,"P",{});var J=i(g);R=s(J,"Once you\u2019ve found an interesting dataset on the Hugging Face Hub, you can load the dataset using \u{1F917} Datasets. You can click on the "),H=l(J,"STRONG",{});var it=i(H);T=s(it,"Use in dataset library"),it.forEach(a),V=s(J," button to copy the code to load a dataset."),J.forEach(a),U=$(t),h=l(t,"P",{});var D=i(h);Y=s(D,"Some datasets on the Hub contain a "),v=l(D,"A",{href:!0,rel:!0});var ct=i(v);B=s(ct,"loading script"),ct.forEach(a),j=s(D,", which allows you to easily "),w=l(D,"A",{href:!0,rel:!0});var ht=i(w);z=s(ht,"load the dataset when you need it"),ht.forEach(a),K=s(D,"."),D.forEach(a),q=$(t),_=l(t,"P",{});var L=i(_);Q=s(L,"Many datasets however do not need to include a loading script, for instance when their data is stored directly in the repository in formats such as CSV, JSON and Parquet. \u{1F917} Datasets can "),b=l(L,"A",{href:!0,rel:!0});var ut=i(b);W=s(ut,"load those kinds of datasets"),ut.forEach(a),X=s(L," automatically without a loading script."),L.forEach(a),C=$(t),u=l(t,"P",{});var k=i(u);Z=s(k,"For more information about using \u{1F917} Datasets, check out the "),E=l(k,"A",{href:!0,rel:!0});var dt=i(E);tt=s(dt,"tutorials"),dt.forEach(a),et=s(k," and "),S=l(k,"A",{href:!0,rel:!0});var ft=i(S);at=s(ft,"how-to guides"),ft.forEach(a),ot=s(k," available in the \u{1F917} Datasets documentation."),k.forEach(a),this.h()},h(){n(f,"name","hf:doc:metadata"),n(f,"content",JSON.stringify(At)),n(m,"id","using-datasets"),n(m,"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"),n(m,"href","#using-datasets"),n(p,"class","relative group"),n(v,"href","https://huggingface.co/docs/datasets/dataset_script"),n(v,"rel","nofollow"),n(w,"href","https://huggingface.co/docs/datasets/load_hub"),n(w,"rel","nofollow"),n(b,"href","https://huggingface.co/docs/datasets/loading#hugging-face-hub"),n(b,"rel","nofollow"),n(E,"href","https://huggingface.co/docs/datasets/tutorial"),n(E,"rel","nofollow"),n(S,"href","https://huggingface.co/docs/datasets/how_to"),n(S,"rel","nofollow")},m(t,c){e(document.head,f),d(t,N,c),d(t,p,c),e(p,m),e(m,A),wt(y,A,null),e(p,G),e(p,x),e(x,I),d(t,O,c),d(t,g,c),e(g,R),e(g,H),e(H,T),e(g,V),d(t,U,c),d(t,h,c),e(h,Y),e(h,v),e(v,B),e(h,j),e(h,w),e(w,z),e(h,K),d(t,q,c),d(t,_,c),e(_,Q),e(_,b),e(b,W),e(_,X),d(t,C,c),d(t,u,c),e(u,Z),e(u,E),e(E,tt),e(u,et),e(u,S),e(S,at),e(u,ot),F=!0},p:bt,i(t){F||(Et(y.$$.fragment,t),F=!0)},o(t){St(y.$$.fragment,t),F=!1},d(t){a(f),t&&a(N),t&&a(p),Dt(y),t&&a(O),t&&a(g),t&&a(U),t&&a(h),t&&a(q),t&&a(_),t&&a(C),t&&a(u)}}}const At={local:"using-datasets",title:"Using \u{1F917} Datasets"};function xt(st){return kt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ot extends pt{constructor(f){super();mt(this,f,xt,$t,gt,{})}}export{Ot as default,At as metadata};
