import{s as ie,n as ne,o as le}from"../chunks/scheduler.d6170356.js";import{S as re,i as oe,g as l,s as i,r as M,A as fe,h as r,f as a,c as n,j as ae,u as x,x as T,k as se,y as pe,a as s,v as y,d as C,t as L,w as P}from"../chunks/index.fcd4cc08.js";import{C as de}from"../chunks/CodeBlock.7b16bdef.js";import{H as G,E as me}from"../chunks/EditOnGithub.da2b595c.js";function ue(N){let o,E,H,k,f,j,p,Z=`The Dataset Viewer supports many <a href="./datasets-adding#file-formats">data files formats</a>, from text to tabular and from image to audio formats.
It also separates the train/validation/test splits based on file and folder names.`,V,d,K='To configure the Dataset Viewer for your dataset, first make sure your dataset is in a <a href="./datasets-adding#files-formats">supported data format</a>.',A,m,I,u,Q='In the Dataset Viewer you can view the <a href="https://en.wikipedia.org/wiki/Training,_validation,_and_test_data_sets" rel="nofollow">train/validation/test</a> splits of datasets, and sometimes additionally choose between multiple subsets (e.g. one per language).',S,h,W=`To define those dropdowns, you can name the data files or their folder after their split names (train/validation/test).
It is also possible to customize your splits manually using YAML.`,z,c,X='For more information, feel free to check out the documentation on <a href="./datasets-data-files-configuration">Data files Configuration</a> and the <a href="https://huggingface.co/datasets-examples" rel="nofollow">collections of example datasets</a>. The <a href="./datasets-image">Image Dataset doc page</a> proposes various methods to structure a dataset with images.',B,g,q,$,ee="The dataset viewer can be disabled. To do this, add a YAML section to the dataset’s <code>README.md</code> file (create one if it does not already exist) and add a <code>viewer</code> property with the value <code>false</code>.",F,w,J,v,R,b,te='For <strong>private</strong> datasets, the Dataset Viewer is enabled for <a href="https://huggingface.co/pricing" rel="nofollow">PRO users</a> and <a href="https://huggingface.co/enterprise" rel="nofollow">Enterprise Hub organizations</a>.',O,_,U,D,Y;return f=new G({props:{title:"Configure the Dataset Viewer",local:"configure-the-dataset-viewer",headingTag:"h1"}}),m=new G({props:{title:"Configure dropdowns for splits or subsets",local:"configure-dropdowns-for-splits-or-subsets",headingTag:"h2"}}),g=new G({props:{title:"Disable the viewer",local:"disable-the-viewer",headingTag:"h2"}}),w=new de({props:{code:"LS0tJTBBdmlld2VyJTNBJTIwZmFsc2UlMEEtLS0=",highlighted:`<span class="hljs-meta">---</span>
<span class="hljs-attr">viewer:</span> <span class="hljs-literal">false</span>
<span class="hljs-meta">---</span>`,wrap:!1}}),v=new G({props:{title:"Private datasets",local:"private-datasets",headingTag:"h2"}}),_=new me({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/datasets-viewer-configure.md"}}),{c(){o=l("meta"),E=i(),H=l("p"),k=i(),M(f.$$.fragment),j=i(),p=l("p"),p.innerHTML=Z,V=i(),d=l("p"),d.innerHTML=K,A=i(),M(m.$$.fragment),I=i(),u=l("p"),u.innerHTML=Q,S=i(),h=l("p"),h.textContent=W,z=i(),c=l("p"),c.innerHTML=X,B=i(),M(g.$$.fragment),q=i(),$=l("p"),$.innerHTML=ee,F=i(),M(w.$$.fragment),J=i(),M(v.$$.fragment),R=i(),b=l("p"),b.innerHTML=te,O=i(),M(_.$$.fragment),U=i(),D=l("p"),this.h()},l(e){const t=fe("svelte-u9bgzb",document.head);o=r(t,"META",{name:!0,content:!0}),t.forEach(a),E=n(e),H=r(e,"P",{}),ae(H).forEach(a),k=n(e),x(f.$$.fragment,e),j=n(e),p=r(e,"P",{"data-svelte-h":!0}),T(p)!=="svelte-1v4t8a2"&&(p.innerHTML=Z),V=n(e),d=r(e,"P",{"data-svelte-h":!0}),T(d)!=="svelte-sq2zkj"&&(d.innerHTML=K),A=n(e),x(m.$$.fragment,e),I=n(e),u=r(e,"P",{"data-svelte-h":!0}),T(u)!=="svelte-1bgfkre"&&(u.innerHTML=Q),S=n(e),h=r(e,"P",{"data-svelte-h":!0}),T(h)!=="svelte-j8m9b3"&&(h.textContent=W),z=n(e),c=r(e,"P",{"data-svelte-h":!0}),T(c)!=="svelte-wysp7t"&&(c.innerHTML=X),B=n(e),x(g.$$.fragment,e),q=n(e),$=r(e,"P",{"data-svelte-h":!0}),T($)!=="svelte-17ntj7v"&&($.innerHTML=ee),F=n(e),x(w.$$.fragment,e),J=n(e),x(v.$$.fragment,e),R=n(e),b=r(e,"P",{"data-svelte-h":!0}),T(b)!=="svelte-1l3qyl4"&&(b.innerHTML=te),O=n(e),x(_.$$.fragment,e),U=n(e),D=r(e,"P",{}),ae(D).forEach(a),this.h()},h(){se(o,"name","hf:doc:metadata"),se(o,"content",he)},m(e,t){pe(document.head,o),s(e,E,t),s(e,H,t),s(e,k,t),y(f,e,t),s(e,j,t),s(e,p,t),s(e,V,t),s(e,d,t),s(e,A,t),y(m,e,t),s(e,I,t),s(e,u,t),s(e,S,t),s(e,h,t),s(e,z,t),s(e,c,t),s(e,B,t),y(g,e,t),s(e,q,t),s(e,$,t),s(e,F,t),y(w,e,t),s(e,J,t),y(v,e,t),s(e,R,t),s(e,b,t),s(e,O,t),y(_,e,t),s(e,U,t),s(e,D,t),Y=!0},p:ne,i(e){Y||(C(f.$$.fragment,e),C(m.$$.fragment,e),C(g.$$.fragment,e),C(w.$$.fragment,e),C(v.$$.fragment,e),C(_.$$.fragment,e),Y=!0)},o(e){L(f.$$.fragment,e),L(m.$$.fragment,e),L(g.$$.fragment,e),L(w.$$.fragment,e),L(v.$$.fragment,e),L(_.$$.fragment,e),Y=!1},d(e){e&&(a(E),a(H),a(k),a(j),a(p),a(V),a(d),a(A),a(I),a(u),a(S),a(h),a(z),a(c),a(B),a(q),a($),a(F),a(J),a(R),a(b),a(O),a(U),a(D)),a(o),P(f,e),P(m,e),P(g,e),P(w,e),P(v,e),P(_,e)}}}const he='{"title":"Configure the Dataset Viewer","local":"configure-the-dataset-viewer","sections":[{"title":"Configure dropdowns for splits or subsets","local":"configure-dropdowns-for-splits-or-subsets","sections":[],"depth":2},{"title":"Disable the viewer","local":"disable-the-viewer","sections":[],"depth":2},{"title":"Private datasets","local":"private-datasets","sections":[],"depth":2}],"depth":1}';function ce(N){return le(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class be extends re{constructor(o){super(),oe(this,o,ce,ue,ie,{})}}export{be as component};
