import{S as Ct,i as It,s as St,e as o,k as c,w as bt,t as r,M as qt,c as s,d as a,m as d,a as n,x as Et,h as l,b,G as e,g,y as $t,L as xt,q as Dt,o as Lt,B as Pt,v as Ht}from"../../chunks/vendor-hf-doc-builder.js";import{I as Nt}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as At}from"../../chunks/CourseFloatingBanner-hf-doc-builder.js";function Ft(ht){let f,N,m,y,L,_,j,P,Q,A,w,F,E,U,W,i,C,G,J,p,R,I,K,V,S,X,Y,Z,k,tt,q,et,at,ot,x,st,rt,H,nt,T,v,lt,$,it,ut,B;return _=new Nt({}),w=new At({props:{chapter:5,classNames:"absolute z-10 right-0 top-0"}}),{c(){f=o("meta"),N=c(),m=o("h1"),y=o("a"),L=o("span"),bt(_.$$.fragment),j=c(),P=o("span"),Q=r("\u{1F917} Datasets, check!"),A=c(),bt(w.$$.fragment),F=c(),E=o("p"),U=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:"),W=c(),i=o("ul"),C=o("li"),G=r("Load datasets from anywhere, be it the Hugging Face Hub, your laptop, or a remote server at your company."),J=c(),p=o("li"),R=r("Wrangle your data using a mix of the "),I=o("code"),K=r("Dataset.map()"),V=r(" and "),S=o("code"),X=r("Dataset.filter()"),Y=r(" functions."),Z=c(),k=o("li"),tt=r("Quickly switch between data formats like Pandas and NumPy using "),q=o("code"),et=r("Dataset.set_format()"),at=r("."),ot=c(),x=o("li"),st=r("Create your very own dataset and push it to the Hugging Face Hub."),rt=c(),H=o("li"),nt=r("Embed your documents using a Transformer model and build a semantic search engine using FAISS."),T=c(),v=o("p"),lt=r("In "),$=o("a"),it=r("Chapter 7"),ut=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(t){const u=qt('[data-svelte="svelte-1phssyn"]',document.head);f=s(u,"META",{name:!0,content:!0}),u.forEach(a),N=d(t),m=s(t,"H1",{class:!0});var O=n(m);y=s(O,"A",{id:!0,class:!0,href:!0});var ct=n(y);L=s(ct,"SPAN",{});var dt=n(L);Et(_.$$.fragment,dt),dt.forEach(a),ct.forEach(a),j=d(O),P=s(O,"SPAN",{});var ft=n(P);Q=l(ft,"\u{1F917} Datasets, check!"),ft.forEach(a),O.forEach(a),A=d(t),Et(w.$$.fragment,t),F=d(t),E=s(t,"P",{});var mt=n(E);U=l(mt,"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:"),mt.forEach(a),W=d(t),i=s(t,"UL",{});var h=n(i);C=s(h,"LI",{});var pt=n(C);G=l(pt,"Load datasets from anywhere, be it the Hugging Face Hub, your laptop, or a remote server at your company."),pt.forEach(a),J=d(h),p=s(h,"LI",{});var D=n(p);R=l(D,"Wrangle your data using a mix of the "),I=s(D,"CODE",{});var gt=n(I);K=l(gt,"Dataset.map()"),gt.forEach(a),V=l(D," and "),S=s(D,"CODE",{});var yt=n(S);X=l(yt,"Dataset.filter()"),yt.forEach(a),Y=l(D," functions."),D.forEach(a),Z=d(h),k=s(h,"LI",{});var z=n(k);tt=l(z,"Quickly switch between data formats like Pandas and NumPy using "),q=s(z,"CODE",{});var vt=n(q);et=l(vt,"Dataset.set_format()"),vt.forEach(a),at=l(z,"."),z.forEach(a),ot=d(h),x=s(h,"LI",{});var _t=n(x);st=l(_t,"Create your very own dataset and push it to the Hugging Face Hub."),_t.forEach(a),rt=d(h),H=s(h,"LI",{});var wt=n(H);nt=l(wt,"Embed your documents using a Transformer model and build a semantic search engine using FAISS."),wt.forEach(a),h.forEach(a),T=d(t),v=s(t,"P",{});var M=n(v);lt=l(M,"In "),$=s(M,"A",{href:!0});var kt=n($);it=l(kt,"Chapter 7"),kt.forEach(a),ut=l(M,", 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!"),M.forEach(a),this.h()},h(){b(f,"name","hf:doc:metadata"),b(f,"content",JSON.stringify(Wt)),b(y,"id","datasets-check"),b(y,"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"),b(y,"href","#datasets-check"),b(m,"class","relative group"),b($,"href","/course/chapter7")},m(t,u){e(document.head,f),g(t,N,u),g(t,m,u),e(m,y),e(y,L),$t(_,L,null),e(m,j),e(m,P),e(P,Q),g(t,A,u),$t(w,t,u),g(t,F,u),g(t,E,u),e(E,U),g(t,W,u),g(t,i,u),e(i,C),e(C,G),e(i,J),e(i,p),e(p,R),e(p,I),e(I,K),e(p,V),e(p,S),e(S,X),e(p,Y),e(i,Z),e(i,k),e(k,tt),e(k,q),e(q,et),e(k,at),e(i,ot),e(i,x),e(x,st),e(i,rt),e(i,H),e(H,nt),g(t,T,u),g(t,v,u),e(v,lt),e(v,$),e($,it),e(v,ut),B=!0},p:xt,i(t){B||(Dt(_.$$.fragment,t),Dt(w.$$.fragment,t),B=!0)},o(t){Lt(_.$$.fragment,t),Lt(w.$$.fragment,t),B=!1},d(t){a(f),t&&a(N),t&&a(m),Pt(_),t&&a(A),Pt(w,t),t&&a(F),t&&a(E),t&&a(W),t&&a(i),t&&a(T),t&&a(v)}}}const Wt={local:"datasets-check",title:"\u{1F917} Datasets, check!"};function Tt(ht){return Ht(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Mt extends Ct{constructor(f){super();It(this,f,Tt,Ft,St,{})}}export{Mt as default,Wt as metadata};
