import{S as wt,i as kt,s as Et,e as o,k as m,w as bt,t as r,M as Dt,c as s,d as a,m as p,a as l,x as Lt,h as n,b as k,F as t,g as v,y as Pt,L as It,q as St,o as $t,B as qt,v as xt}from"../../chunks/vendor-1e8b365d.js";import{I as Ct}from"../../chunks/IconCopyLink-483c28ba.js";function Ht(it){let c,H,d,g,L,_,M,P,j,A,E,z,F,i,I,Q,U,f,J,S,R,G,$,K,V,X,w,Y,q,Z,tt,et,x,at,ot,C,st,N,y,rt,b,lt,nt,W;return _=new Ct({}),{c(){c=o("meta"),H=m(),d=o("h1"),g=o("a"),L=o("span"),bt(_.$$.fragment),M=m(),P=o("span"),j=r("\u{1F917} Datasets, check!"),A=m(),E=o("p"),z=r("Well, that was quite a tour through the \u{1F917} Datasets library \u2014 congratulations on making it this far! With the knowledge that you\u2019ve gained from this chapter, you should be able to:"),F=m(),i=o("ul"),I=o("li"),Q=r("Load datasets from anywhere, be it the Hugging Face Hub, your laptop, or a remote server at your company."),U=m(),f=o("li"),J=r("Wrangle your data using a mix of the "),S=o("code"),R=r("Dataset.map()"),G=r(" and "),$=o("code"),K=r("Dataset.filter()"),V=r(" functions."),X=m(),w=o("li"),Y=r("Quickly switch between data formats like Pandas and NumPy using "),q=o("code"),Z=r("Dataset.set_format()"),tt=r("."),et=m(),x=o("li"),at=r("Create your very own dataset and push it to the Hugging Face Hub."),ot=m(),C=o("li"),st=r("Embed your documents using a Transformer model and build a semantic search engine using FAISS."),N=m(),y=o("p"),rt=r("In "),b=o("a"),lt=r("Chapter 7"),nt=r(", we\u2019ll put all of this to good use as we take a deep dive into the core NLP tasks that Transformer models are great for. Before jumping ahead, though, put your knowledge of \u{1F917} Datasets to the test with a quick quiz!"),this.h()},l(e){const h=Dt('[data-svelte="svelte-1phssyn"]',document.head);c=s(h,"META",{name:!0,content:!0}),h.forEach(a),H=p(e),d=s(e,"H1",{class:!0});var T=l(d);g=s(T,"A",{id:!0,class:!0,href:!0});var ht=l(g);L=s(ht,"SPAN",{});var ut=l(L);Lt(_.$$.fragment,ut),ut.forEach(a),ht.forEach(a),M=p(T),P=s(T,"SPAN",{});var ct=l(P);j=n(ct,"\u{1F917} Datasets, check!"),ct.forEach(a),T.forEach(a),A=p(e),E=s(e,"P",{});var dt=l(E);z=n(dt,"Well, that was quite a tour through the \u{1F917} Datasets library \u2014 congratulations on making it this far! With the knowledge that you\u2019ve gained from this chapter, you should be able to:"),dt.forEach(a),F=p(e),i=s(e,"UL",{});var u=l(i);I=s(u,"LI",{});var ft=l(I);Q=n(ft,"Load datasets from anywhere, be it the Hugging Face Hub, your laptop, or a remote server at your company."),ft.forEach(a),U=p(u),f=s(u,"LI",{});var D=l(f);J=n(D,"Wrangle your data using a mix of the "),S=s(D,"CODE",{});var mt=l(S);R=n(mt,"Dataset.map()"),mt.forEach(a),G=n(D," and "),$=s(D,"CODE",{});var pt=l($);K=n(pt,"Dataset.filter()"),pt.forEach(a),V=n(D," functions."),D.forEach(a),X=p(u),w=s(u,"LI",{});var O=l(w);Y=n(O,"Quickly switch between data formats like Pandas and NumPy using "),q=s(O,"CODE",{});var gt=l(q);Z=n(gt,"Dataset.set_format()"),gt.forEach(a),tt=n(O,"."),O.forEach(a),et=p(u),x=s(u,"LI",{});var yt=l(x);at=n(yt,"Create your very own dataset and push it to the Hugging Face Hub."),yt.forEach(a),ot=p(u),C=s(u,"LI",{});var vt=l(C);st=n(vt,"Embed your documents using a Transformer model and build a semantic search engine using FAISS."),vt.forEach(a),u.forEach(a),N=p(e),y=s(e,"P",{});var B=l(y);rt=n(B,"In "),b=s(B,"A",{href:!0});var _t=l(b);lt=n(_t,"Chapter 7"),_t.forEach(a),nt=n(B,", we\u2019ll put all of this to good use as we take a deep dive into the core NLP tasks that Transformer models are great for. Before jumping ahead, though, put your knowledge of \u{1F917} Datasets to the test with a quick quiz!"),B.forEach(a),this.h()},h(){k(c,"name","hf:doc:metadata"),k(c,"content",JSON.stringify(At)),k(g,"id","datasets-check"),k(g,"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"),k(g,"href","#datasets-check"),k(d,"class","relative group"),k(b,"href","/course/chapter7")},m(e,h){t(document.head,c),v(e,H,h),v(e,d,h),t(d,g),t(g,L),Pt(_,L,null),t(d,M),t(d,P),t(P,j),v(e,A,h),v(e,E,h),t(E,z),v(e,F,h),v(e,i,h),t(i,I),t(I,Q),t(i,U),t(i,f),t(f,J),t(f,S),t(S,R),t(f,G),t(f,$),t($,K),t(f,V),t(i,X),t(i,w),t(w,Y),t(w,q),t(q,Z),t(w,tt),t(i,et),t(i,x),t(x,at),t(i,ot),t(i,C),t(C,st),v(e,N,h),v(e,y,h),t(y,rt),t(y,b),t(b,lt),t(y,nt),W=!0},p:It,i(e){W||(St(_.$$.fragment,e),W=!0)},o(e){$t(_.$$.fragment,e),W=!1},d(e){a(c),e&&a(H),e&&a(d),qt(_),e&&a(A),e&&a(E),e&&a(F),e&&a(i),e&&a(N),e&&a(y)}}}const At={local:"datasets-check",title:"\u{1F917} Datasets, check!"};function Ft(it){return xt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Tt extends wt{constructor(c){super();kt(this,c,Ft,Ht,Et,{})}}export{Tt as default,At as metadata};
