import{s as le,n as re,o as oe}from"../chunks/scheduler.9cda857a.js";import{S as fe,i as pe,e as l,s as i,c as x,h as me,a as r,d as a,b as n,f as ie,g as M,j as y,k as ne,l as de,m as s,n as C,t as L,o as P,p as H}from"../chunks/index.003612b0.js";import{C as ue}from"../chunks/CopyLLMTxtMenu.44d08a39.js";import{C as he}from"../chunks/CodeBlock.a90632f1.js";import{H as Z,E as $e}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.e5cfda8c.js";function ge(K){let o,k,D,j,f,V,p,S,m,Q=`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.`,I,d,W='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>.',z,u,A,h,X='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).',B,$,ee=`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.`,F,g,te='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.',J,c,R,w,ae="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>.",O,v,U,b,Y,T,se='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">Team or Enterprise organizations</a>.',q,_,G,E,N;return f=new ue({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),p=new Z({props:{title:"Configure the Dataset Viewer",local:"configure-the-dataset-viewer",headingTag:"h1"}}),u=new Z({props:{title:"Configure dropdowns for splits or subsets",local:"configure-dropdowns-for-splits-or-subsets",headingTag:"h2"}}),c=new Z({props:{title:"Disable the viewer",local:"disable-the-viewer",headingTag:"h2"}}),v=new he({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}}),b=new Z({props:{title:"Private datasets",local:"private-datasets",headingTag:"h2"}}),_=new $e({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/datasets-viewer-configure.md"}}),{c(){o=l("meta"),k=i(),D=l("p"),j=i(),x(f.$$.fragment),V=i(),x(p.$$.fragment),S=i(),m=l("p"),m.innerHTML=Q,I=i(),d=l("p"),d.innerHTML=W,z=i(),x(u.$$.fragment),A=i(),h=l("p"),h.innerHTML=X,B=i(),$=l("p"),$.textContent=ee,F=i(),g=l("p"),g.innerHTML=te,J=i(),x(c.$$.fragment),R=i(),w=l("p"),w.innerHTML=ae,O=i(),x(v.$$.fragment),U=i(),x(b.$$.fragment),Y=i(),T=l("p"),T.innerHTML=se,q=i(),x(_.$$.fragment),G=i(),E=l("p"),this.h()},l(e){const t=me("svelte-u9bgzb",document.head);o=r(t,"META",{name:!0,content:!0}),t.forEach(a),k=n(e),D=r(e,"P",{}),ie(D).forEach(a),j=n(e),M(f.$$.fragment,e),V=n(e),M(p.$$.fragment,e),S=n(e),m=r(e,"P",{"data-svelte-h":!0}),y(m)!=="svelte-1v4t8a2"&&(m.innerHTML=Q),I=n(e),d=r(e,"P",{"data-svelte-h":!0}),y(d)!=="svelte-w02d92"&&(d.innerHTML=W),z=n(e),M(u.$$.fragment,e),A=n(e),h=r(e,"P",{"data-svelte-h":!0}),y(h)!=="svelte-1bgfkre"&&(h.innerHTML=X),B=n(e),$=r(e,"P",{"data-svelte-h":!0}),y($)!=="svelte-j8m9b3"&&($.textContent=ee),F=n(e),g=r(e,"P",{"data-svelte-h":!0}),y(g)!=="svelte-wysp7t"&&(g.innerHTML=te),J=n(e),M(c.$$.fragment,e),R=n(e),w=r(e,"P",{"data-svelte-h":!0}),y(w)!=="svelte-17ntj7v"&&(w.innerHTML=ae),O=n(e),M(v.$$.fragment,e),U=n(e),M(b.$$.fragment,e),Y=n(e),T=r(e,"P",{"data-svelte-h":!0}),y(T)!=="svelte-ma851b"&&(T.innerHTML=se),q=n(e),M(_.$$.fragment,e),G=n(e),E=r(e,"P",{}),ie(E).forEach(a),this.h()},h(){ne(o,"name","hf:doc:metadata"),ne(o,"content",ce)},m(e,t){de(document.head,o),s(e,k,t),s(e,D,t),s(e,j,t),C(f,e,t),s(e,V,t),C(p,e,t),s(e,S,t),s(e,m,t),s(e,I,t),s(e,d,t),s(e,z,t),C(u,e,t),s(e,A,t),s(e,h,t),s(e,B,t),s(e,$,t),s(e,F,t),s(e,g,t),s(e,J,t),C(c,e,t),s(e,R,t),s(e,w,t),s(e,O,t),C(v,e,t),s(e,U,t),C(b,e,t),s(e,Y,t),s(e,T,t),s(e,q,t),C(_,e,t),s(e,G,t),s(e,E,t),N=!0},p:re,i(e){N||(L(f.$$.fragment,e),L(p.$$.fragment,e),L(u.$$.fragment,e),L(c.$$.fragment,e),L(v.$$.fragment,e),L(b.$$.fragment,e),L(_.$$.fragment,e),N=!0)},o(e){P(f.$$.fragment,e),P(p.$$.fragment,e),P(u.$$.fragment,e),P(c.$$.fragment,e),P(v.$$.fragment,e),P(b.$$.fragment,e),P(_.$$.fragment,e),N=!1},d(e){e&&(a(k),a(D),a(j),a(V),a(S),a(m),a(I),a(d),a(z),a(A),a(h),a(B),a($),a(F),a(g),a(J),a(R),a(w),a(O),a(U),a(Y),a(T),a(q),a(G),a(E)),a(o),H(f,e),H(p,e),H(u,e),H(c,e),H(v,e),H(b,e),H(_,e)}}}const ce='{"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 we(K){return oe(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Me extends fe{constructor(o){super(),pe(this,o,we,ge,le,{})}}export{Me as component};
