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#file-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.`,B,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.',z,g,F,$,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>.",J,w,R,v,q,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,B=i(),c=l("p"),c.innerHTML=X,z=i(),M(g.$$.fragment),F=i(),$=l("p"),$.innerHTML=ee,J=i(),M(w.$$.fragment),R=i(),M(v.$$.fragment),q=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-w02d92"&&(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),B=n(e),c=r(e,"P",{"data-svelte-h":!0}),T(c)!=="svelte-wysp7t"&&(c.innerHTML=X),z=n(e),x(g.$$.fragment,e),F=n(e),$=r(e,"P",{"data-svelte-h":!0}),T($)!=="svelte-17ntj7v"&&($.innerHTML=ee),J=n(e),x(w.$$.fragment,e),R=n(e),x(v.$$.fragment,e),q=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,B,t),s(e,c,t),s(e,z,t),y(g,e,t),s(e,F,t),s(e,$,t),s(e,J,t),y(w,e,t),s(e,R,t),y(v,e,t),s(e,q,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(B),a(c),a(z),a(F),a($),a(J),a(R),a(q),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};
