import{s as xt,n as Ht,o as Lt}from"../chunks/scheduler.d6170356.js";import{S as _t,i as kt,g as i,s as l,r as C,A as Ct,h as d,f as a,c as n,j as jt,u as E,x as r,k as rt,y as Et,a as s,v as I,d as P,t as J,w as B}from"../chunks/index.fcd4cc08.js";import{C as It}from"../chunks/CodeBlock.7b16bdef.js";import{H as R}from"../chunks/Heading.8660bd0e.js";function Pt(ot){let o,A,D,S,h,W,u,Y,m,ct="Each dataset may be documented by the <code>README.md</code> file in the repository. This file is called a <strong>dataset card</strong>, and the Hugging Face Hub will render its contents on the dataset’s main page. To inform users about how to responsibly use the data, it’s a good idea to include information about any potential biases within the dataset. Generally, dataset cards help users understand the contents of the dataset and give context for how the dataset should be used.",N,f,pt='You can also add dataset metadata to your card. The metadata describes important information about a dataset such as its license, language, and size. It also contains tags to help users discover a dataset on the Hub, and <a href="./datasets-manual-configuration">data files configuration</a> options. Tags are defined in a YAML metadata section at the top of the <code>README.md</code> file.',F,g,G,b,ht="A dataset repo will render its README.md as a dataset card. To control how the Hub displays the card, you should create a YAML section in the README file to define some metadata. Start by adding three --- at the top, then include all of the relevant metadata, and close the section with another group of --- like the example below:",z,M,Q,T,ut="The metadata that you add to the dataset card enables certain interactions on the Hub. For example:",q,v,mt='<li>Allow users to filter and discover datasets at <a href="https://huggingface.co/datasets" rel="nofollow">https://huggingface.co/datasets</a>.</li> <li>If you choose a license using the keywords listed in the right column of <a href="./repositories-licenses">this table</a>, the license will be displayed on the dataset page.</li>',V,w,ft="When creating a README.md file in a dataset repository on the Hub, use Metadata UI to fill the main metadata:",X,c,gt='<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/datasets-metadata-ui.png"/> <img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/datasets-metadata-ui-dark.png"/>',Z,$,bt='To see metadata fields, see the detailed <a href="https://github.com/huggingface/hub-docs/blob/main/datasetcard.md?plain=1" rel="nofollow">Dataset Card specifications</a>.',O,y,K,j,Mt='For a step-by-step guide on creating a dataset card, check out the <a href="https://huggingface.co/docs/datasets/dataset_card" rel="nofollow">Create a dataset card</a> guide.',tt,x,Tt='Reading through existing dataset cards, such as the <a href="https://huggingface.co/datasets/eli5/blob/main/README.md" rel="nofollow">ELI5 dataset card</a>, is a great way to familiarize yourself with the common conventions.',et,H,at,L,vt="If the dataset card includes a link to a paper on arXiv, the Hub will extract the arXiv ID and include it in the dataset tags with the format <code>arxiv:&lt;PAPER ID&gt;</code>. Clicking on the tag will let you:",st,_,wt="<li>Visit the Paper page</li> <li>Filter for other models on the Hub that cite the same paper.</li>",lt,p,$t='<img class="block dark:hidden" width="300" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/datasets-arxiv.png"/> <img class="hidden dark:block" width="300" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/datasets-arxiv-dark.png"/>',nt,k,yt='Read more about paper pages <a href="./paper-pages">here</a>.',it,U,dt;return h=new R({props:{title:"Dataset Cards",local:"dataset-cards",headingTag:"h1"}}),u=new R({props:{title:"What are Dataset Cards?",local:"what-are-dataset-cards",headingTag:"h2"}}),g=new R({props:{title:"Dataset card metadata",local:"dataset-card-metadata",headingTag:"h2"}}),M=new It({props:{code:"bGFuZ3VhZ2UlM0ElMjAlMEEtJTIwJTIyTGlzdCUyMG9mJTIwSVNPJTIwNjM5LTElMjBjb2RlJTIwZm9yJTIweW91ciUyMGxhbmd1YWdlJTIyJTBBLSUyMGxhbmcxJTBBLSUyMGxhbmcyJTBBcHJldHR5X25hbWUlM0ElMjAlMjJQcmV0dHklMjBOYW1lJTIwb2YlMjB0aGUlMjBEYXRhc2V0JTIyJTBBdGFncyUzQSUwQS0lMjB0YWcxJTBBLSUyMHRhZzIlMEFsaWNlbnNlJTNBJTIwJTIyYW55JTIwdmFsaWQlMjBsaWNlbnNlJTIwaWRlbnRpZmllciUyMiUwQXRhc2tfY2F0ZWdvcmllcyUzQSUwQS0lMjB0YXNrMSUwQS0lMjB0YXNrMg==",highlighted:`<span class="hljs-attr">language:</span> 
<span class="hljs-bullet">-</span> <span class="hljs-string">&quot;List of ISO 639-1 code for your language&quot;</span>
<span class="hljs-bullet">-</span> <span class="hljs-string">lang1</span>
<span class="hljs-bullet">-</span> <span class="hljs-string">lang2</span>
<span class="hljs-attr">pretty_name:</span> <span class="hljs-string">&quot;Pretty Name of the Dataset&quot;</span>
<span class="hljs-attr">tags:</span>
<span class="hljs-bullet">-</span> <span class="hljs-string">tag1</span>
<span class="hljs-bullet">-</span> <span class="hljs-string">tag2</span>
<span class="hljs-attr">license:</span> <span class="hljs-string">&quot;any valid license identifier&quot;</span>
<span class="hljs-attr">task_categories:</span>
<span class="hljs-bullet">-</span> <span class="hljs-string">task1</span>
<span class="hljs-bullet">-</span> <span class="hljs-string">task2</span>`,wrap:!1}}),y=new R({props:{title:"Dataset card creation guide",local:"dataset-card-creation-guide",headingTag:"h3"}}),H=new R({props:{title:"Linking a Paper",local:"linking-a-paper",headingTag:"h3"}}),{c(){o=i("meta"),A=l(),D=i("p"),S=l(),C(h.$$.fragment),W=l(),C(u.$$.fragment),Y=l(),m=i("p"),m.innerHTML=ct,N=l(),f=i("p"),f.innerHTML=pt,F=l(),C(g.$$.fragment),G=l(),b=i("p"),b.textContent=ht,z=l(),C(M.$$.fragment),Q=l(),T=i("p"),T.textContent=ut,q=l(),v=i("ul"),v.innerHTML=mt,V=l(),w=i("p"),w.textContent=ft,X=l(),c=i("div"),c.innerHTML=gt,Z=l(),$=i("p"),$.innerHTML=bt,O=l(),C(y.$$.fragment),K=l(),j=i("p"),j.innerHTML=Mt,tt=l(),x=i("p"),x.innerHTML=Tt,et=l(),C(H.$$.fragment),at=l(),L=i("p"),L.innerHTML=vt,st=l(),_=i("ul"),_.innerHTML=wt,lt=l(),p=i("div"),p.innerHTML=$t,nt=l(),k=i("p"),k.innerHTML=yt,it=l(),U=i("p"),this.h()},l(t){const e=Ct("svelte-u9bgzb",document.head);o=d(e,"META",{name:!0,content:!0}),e.forEach(a),A=n(t),D=d(t,"P",{}),jt(D).forEach(a),S=n(t),E(h.$$.fragment,t),W=n(t),E(u.$$.fragment,t),Y=n(t),m=d(t,"P",{"data-svelte-h":!0}),r(m)!=="svelte-peomh4"&&(m.innerHTML=ct),N=n(t),f=d(t,"P",{"data-svelte-h":!0}),r(f)!=="svelte-1lxwjh6"&&(f.innerHTML=pt),F=n(t),E(g.$$.fragment,t),G=n(t),b=d(t,"P",{"data-svelte-h":!0}),r(b)!=="svelte-lgina5"&&(b.textContent=ht),z=n(t),E(M.$$.fragment,t),Q=n(t),T=d(t,"P",{"data-svelte-h":!0}),r(T)!=="svelte-inb506"&&(T.textContent=ut),q=n(t),v=d(t,"UL",{"data-svelte-h":!0}),r(v)!=="svelte-ymkjlv"&&(v.innerHTML=mt),V=n(t),w=d(t,"P",{"data-svelte-h":!0}),r(w)!=="svelte-k739df"&&(w.textContent=ft),X=n(t),c=d(t,"DIV",{class:!0,"data-svelte-h":!0}),r(c)!=="svelte-78myk1"&&(c.innerHTML=gt),Z=n(t),$=d(t,"P",{"data-svelte-h":!0}),r($)!=="svelte-1s6sp3k"&&($.innerHTML=bt),O=n(t),E(y.$$.fragment,t),K=n(t),j=d(t,"P",{"data-svelte-h":!0}),r(j)!=="svelte-30whjw"&&(j.innerHTML=Mt),tt=n(t),x=d(t,"P",{"data-svelte-h":!0}),r(x)!=="svelte-ltjl3g"&&(x.innerHTML=Tt),et=n(t),E(H.$$.fragment,t),at=n(t),L=d(t,"P",{"data-svelte-h":!0}),r(L)!=="svelte-18s456i"&&(L.innerHTML=vt),st=n(t),_=d(t,"UL",{"data-svelte-h":!0}),r(_)!=="svelte-kiyzcw"&&(_.innerHTML=wt),lt=n(t),p=d(t,"DIV",{class:!0,"data-svelte-h":!0}),r(p)!=="svelte-10s06kx"&&(p.innerHTML=$t),nt=n(t),k=d(t,"P",{"data-svelte-h":!0}),r(k)!=="svelte-11dtj11"&&(k.innerHTML=yt),it=n(t),U=d(t,"P",{}),jt(U).forEach(a),this.h()},h(){rt(o,"name","hf:doc:metadata"),rt(o,"content",Jt),rt(c,"class","flex justify-center"),rt(p,"class","flex justify-center")},m(t,e){Et(document.head,o),s(t,A,e),s(t,D,e),s(t,S,e),I(h,t,e),s(t,W,e),I(u,t,e),s(t,Y,e),s(t,m,e),s(t,N,e),s(t,f,e),s(t,F,e),I(g,t,e),s(t,G,e),s(t,b,e),s(t,z,e),I(M,t,e),s(t,Q,e),s(t,T,e),s(t,q,e),s(t,v,e),s(t,V,e),s(t,w,e),s(t,X,e),s(t,c,e),s(t,Z,e),s(t,$,e),s(t,O,e),I(y,t,e),s(t,K,e),s(t,j,e),s(t,tt,e),s(t,x,e),s(t,et,e),I(H,t,e),s(t,at,e),s(t,L,e),s(t,st,e),s(t,_,e),s(t,lt,e),s(t,p,e),s(t,nt,e),s(t,k,e),s(t,it,e),s(t,U,e),dt=!0},p:Ht,i(t){dt||(P(h.$$.fragment,t),P(u.$$.fragment,t),P(g.$$.fragment,t),P(M.$$.fragment,t),P(y.$$.fragment,t),P(H.$$.fragment,t),dt=!0)},o(t){J(h.$$.fragment,t),J(u.$$.fragment,t),J(g.$$.fragment,t),J(M.$$.fragment,t),J(y.$$.fragment,t),J(H.$$.fragment,t),dt=!1},d(t){t&&(a(A),a(D),a(S),a(W),a(Y),a(m),a(N),a(f),a(F),a(G),a(b),a(z),a(Q),a(T),a(q),a(v),a(V),a(w),a(X),a(c),a(Z),a($),a(O),a(K),a(j),a(tt),a(x),a(et),a(at),a(L),a(st),a(_),a(lt),a(p),a(nt),a(k),a(it),a(U)),a(o),B(h,t),B(u,t),B(g,t),B(M,t),B(y,t),B(H,t)}}}const Jt='{"title":"Dataset Cards","local":"dataset-cards","sections":[{"title":"What are Dataset Cards?","local":"what-are-dataset-cards","sections":[],"depth":2},{"title":"Dataset card metadata","local":"dataset-card-metadata","sections":[{"title":"Dataset card creation guide","local":"dataset-card-creation-guide","sections":[],"depth":3},{"title":"Linking a Paper","local":"linking-a-paper","sections":[],"depth":3}],"depth":2}],"depth":1}';function Bt(ot){return Lt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class St extends _t{constructor(o){super(),kt(this,o,Bt,Pt,xt,{})}}export{St as component};
