import{S as Wt,i as Xt,s as Yt,e as a,k as s,w as Ut,t as h,M as Zt,c as l,d as e,m as u,a as i,x as Vt,h as c,b as d,G as n,g as m,y as Jt,L as tn,q as jt,o as Kt,B as Qt,v as nn}from"../../chunks/vendor-hf-doc-builder.js";import{I as en}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as an}from"../../chunks/CourseFloatingBanner-hf-doc-builder.js";import"../../chunks/DocNotebookDropdown-hf-doc-builder.js";function ln(Ct){let g,F,b,_,P,E,Z,H,tt,O,$,R,y,nt,w,et,at,U,f,B,lt,ht,k,it,D,ct,rt,ot,M,st,V,x,ut,J,o,N,mt,ft,L,vt,S,pt,gt,bt,q,dt,_t,G,yt,Et,z,$t,j,v,kt,A,Lt,wt,C,xt,At,K;return E=new en({}),$=new an({props:{chapter:5,classNames:"absolute z-10 right-0 top-0"}}),{c(){g=a("meta"),F=s(),b=a("h1"),_=a("a"),P=a("span"),Ut(E.$$.fragment),Z=s(),H=a("span"),tt=h("Gi\u1EDBi thi\u1EC7u"),O=s(),Ut($.$$.fragment),R=s(),y=a("p"),nt=h("Trong "),w=a("a"),et=h("Ch\u01B0\u01A1ng 3"),at=h(", b\u1EA1n s\u1EBD l\u1EA7n \u0111\u1EA7u \u0111\u01B0\u1EE3c tr\u1EA3i nghi\u1EC7m th\u01B0 vi\u1EC7n \u{1F917} Datasets v\xE0 th\u1EA5y r\u1EB1ng c\xF3 ba b\u01B0\u1EDBc ch\xEDnh khi tinh ch\u1EC9nh m\u1ED9t m\xF4 h\xECnh:"),U=s(),f=a("ol"),B=a("li"),lt=h("T\u1EA3i t\u1EADp d\u1EEF li\u1EC7u t\u1EEB Hugging Face Hub."),ht=s(),k=a("li"),it=h("Ti\u1EC1n x\u1EED l\xFD d\u1EEF li\u1EC7u v\u1EDBi "),D=a("code"),ct=h("Dataset.map()"),rt=h("."),ot=s(),M=a("li"),st=h("T\u1EA3i v\xE0 t\xEDnh to\xE1n c\xE1c ch\u1EC9 s\u1ED1."),V=s(),x=a("p"),ut=h("Nh\u01B0ng \u0111\xE2y ch\u1EC9 l\xE0 b\u1EC1 n\u1ED5i c\u1EE7a nh\u1EEFng g\xEC \u{1F917} Datasets c\xF3 th\u1EC3 l\xE0m! Trong ch\u01B0\u01A1ng n\xE0y, ch\xFAng ta s\u1EBD \u0111i s\xE2u v\xE0o th\u01B0 vi\u1EC7n. Trong h\xE0nh tr\xECnh n\xE0y, ch\xFAng ta s\u1EBD t\xECm c\xE2u tr\u1EA3 l\u1EDDi cho nh\u1EEFng c\xE2u h\u1ECFi sau:"),J=s(),o=a("ul"),N=a("li"),mt=h("B\u1EA1n l\xE0m g\xEC khi b\u1ED9 d\u1EEF li\u1EC7u c\u1EE7a b\u1EA1n kh\xF4ng c\xF3 tr\xEAn Hub?"),ft=s(),L=a("li"),vt=h("L\xE0m th\u1EBF n\xE0o b\u1EA1n c\xF3 th\u1EC3 chia m\u1ED9t b\u1ED9 d\u1EEF li\u1EC7u? (V\xE0 \u0111i\u1EC1u g\xEC s\u1EBD x\u1EA3y ra n\u1EBFu b\u1EA1n "),S=a("em"),pt=h("th\u1EF1c s\u1EF1"),gt=h(" c\u1EA7n s\u1EED d\u1EE5ng Pandas?)"),bt=s(),q=a("li"),dt=h("B\u1EA1n s\u1EBD l\xE0m g\xEC khi b\u1ED9 d\u1EEF li\u1EC7u c\u1EE7a b\u1EA1n r\u1EA5t l\u1EDBn v\xE0 s\u1EBD l\xE0m tr\xE0n RAM c\u1EE7a m\xE1y t\xEDnh x\xE1ch tay c\u1EE7a b\u1EA1n?"),_t=s(),G=a("li"),yt=h("\u201CB\u1EA3n \u0111\u1ED3 b\u1ED9 nh\u1EDB\u201D v\xE0 Apache Arrow l\xE0 c\xE1i qu\xE1i g\xEC v\u1EADy?"),Et=s(),z=a("li"),$t=h("L\xE0m c\xE1ch n\xE0o b\u1EA1n c\xF3 th\u1EC3 t\u1EA1o b\u1ED9 d\u1EEF li\u1EC7u c\u1EE7a ri\xEAng m\xECnh v\xE0 \u0111\u1EA9y n\xF3 l\xEAn Hub?"),j=s(),v=a("p"),kt=h("C\xE1c k\u1EF9 thu\u1EADt b\u1EA1n h\u1ECDc \u0111\u01B0\u1EE3c \u1EDF \u0111\xE2y s\u1EBD gi\xFAp b\u1EA1n chu\u1EA9n b\u1ECB cho c\xE1c t\xE1c v\u1EE5 tinh ch\u1EC9nh v\xE0 tokenize n\xE2ng cao trong "),A=a("a"),Lt=h("Ch\u01B0\u01A1ng 6"),wt=h(" v\xE0 "),C=a("a"),xt=h("Ch\u01B0\u01A1ng 7"),At=h(" - v\xEC v\u1EADy h\xE3y u\u1ED1ng m\u1ED9t ly c\xE0 ph\xEA v\xE0 b\u1EAFt \u0111\u1EA7u th\xF4i!"),this.h()},l(t){const r=Zt('[data-svelte="svelte-1phssyn"]',document.head);g=l(r,"META",{name:!0,content:!0}),r.forEach(e),F=u(t),b=l(t,"H1",{class:!0});var Q=i(b);_=l(Q,"A",{id:!0,class:!0,href:!0});var Tt=i(_);P=l(Tt,"SPAN",{});var It=i(P);Vt(E.$$.fragment,It),It.forEach(e),Tt.forEach(e),Z=u(Q),H=l(Q,"SPAN",{});var Pt=i(H);tt=c(Pt,"Gi\u1EDBi thi\u1EC7u"),Pt.forEach(e),Q.forEach(e),O=u(t),Vt($.$$.fragment,t),R=u(t),y=l(t,"P",{});var W=i(y);nt=c(W,"Trong "),w=l(W,"A",{href:!0});var Ht=i(w);et=c(Ht,"Ch\u01B0\u01A1ng 3"),Ht.forEach(e),at=c(W,", b\u1EA1n s\u1EBD l\u1EA7n \u0111\u1EA7u \u0111\u01B0\u1EE3c tr\u1EA3i nghi\u1EC7m th\u01B0 vi\u1EC7n \u{1F917} Datasets v\xE0 th\u1EA5y r\u1EB1ng c\xF3 ba b\u01B0\u1EDBc ch\xEDnh khi tinh ch\u1EC9nh m\u1ED9t m\xF4 h\xECnh:"),W.forEach(e),U=u(t),f=l(t,"OL",{});var T=i(f);B=l(T,"LI",{});var Bt=i(B);lt=c(Bt,"T\u1EA3i t\u1EADp d\u1EEF li\u1EC7u t\u1EEB Hugging Face Hub."),Bt.forEach(e),ht=u(T),k=l(T,"LI",{});var X=i(k);it=c(X,"Ti\u1EC1n x\u1EED l\xFD d\u1EEF li\u1EC7u v\u1EDBi "),D=l(X,"CODE",{});var Dt=i(D);ct=c(Dt,"Dataset.map()"),Dt.forEach(e),rt=c(X,"."),X.forEach(e),ot=u(T),M=l(T,"LI",{});var Mt=i(M);st=c(Mt,"T\u1EA3i v\xE0 t\xEDnh to\xE1n c\xE1c ch\u1EC9 s\u1ED1."),Mt.forEach(e),T.forEach(e),V=u(t),x=l(t,"P",{});var Nt=i(x);ut=c(Nt,"Nh\u01B0ng \u0111\xE2y ch\u1EC9 l\xE0 b\u1EC1 n\u1ED5i c\u1EE7a nh\u1EEFng g\xEC \u{1F917} Datasets c\xF3 th\u1EC3 l\xE0m! Trong ch\u01B0\u01A1ng n\xE0y, ch\xFAng ta s\u1EBD \u0111i s\xE2u v\xE0o th\u01B0 vi\u1EC7n. Trong h\xE0nh tr\xECnh n\xE0y, ch\xFAng ta s\u1EBD t\xECm c\xE2u tr\u1EA3 l\u1EDDi cho nh\u1EEFng c\xE2u h\u1ECFi sau:"),Nt.forEach(e),J=u(t),o=l(t,"UL",{});var p=i(o);N=l(p,"LI",{});var St=i(N);mt=c(St,"B\u1EA1n l\xE0m g\xEC khi b\u1ED9 d\u1EEF li\u1EC7u c\u1EE7a b\u1EA1n kh\xF4ng c\xF3 tr\xEAn Hub?"),St.forEach(e),ft=u(p),L=l(p,"LI",{});var Y=i(L);vt=c(Y,"L\xE0m th\u1EBF n\xE0o b\u1EA1n c\xF3 th\u1EC3 chia m\u1ED9t b\u1ED9 d\u1EEF li\u1EC7u? (V\xE0 \u0111i\u1EC1u g\xEC s\u1EBD x\u1EA3y ra n\u1EBFu b\u1EA1n "),S=l(Y,"EM",{});var qt=i(S);pt=c(qt,"th\u1EF1c s\u1EF1"),qt.forEach(e),gt=c(Y," c\u1EA7n s\u1EED d\u1EE5ng Pandas?)"),Y.forEach(e),bt=u(p),q=l(p,"LI",{});var Gt=i(q);dt=c(Gt,"B\u1EA1n s\u1EBD l\xE0m g\xEC khi b\u1ED9 d\u1EEF li\u1EC7u c\u1EE7a b\u1EA1n r\u1EA5t l\u1EDBn v\xE0 s\u1EBD l\xE0m tr\xE0n RAM c\u1EE7a m\xE1y t\xEDnh x\xE1ch tay c\u1EE7a b\u1EA1n?"),Gt.forEach(e),_t=u(p),G=l(p,"LI",{});var zt=i(G);yt=c(zt,"\u201CB\u1EA3n \u0111\u1ED3 b\u1ED9 nh\u1EDB\u201D v\xE0 Apache Arrow l\xE0 c\xE1i qu\xE1i g\xEC v\u1EADy?"),zt.forEach(e),Et=u(p),z=l(p,"LI",{});var Ft=i(z);$t=c(Ft,"L\xE0m c\xE1ch n\xE0o b\u1EA1n c\xF3 th\u1EC3 t\u1EA1o b\u1ED9 d\u1EEF li\u1EC7u c\u1EE7a ri\xEAng m\xECnh v\xE0 \u0111\u1EA9y n\xF3 l\xEAn Hub?"),Ft.forEach(e),p.forEach(e),j=u(t),v=l(t,"P",{});var I=i(v);kt=c(I,"C\xE1c k\u1EF9 thu\u1EADt b\u1EA1n h\u1ECDc \u0111\u01B0\u1EE3c \u1EDF \u0111\xE2y s\u1EBD gi\xFAp b\u1EA1n chu\u1EA9n b\u1ECB cho c\xE1c t\xE1c v\u1EE5 tinh ch\u1EC9nh v\xE0 tokenize n\xE2ng cao trong "),A=l(I,"A",{href:!0});var Ot=i(A);Lt=c(Ot,"Ch\u01B0\u01A1ng 6"),Ot.forEach(e),wt=c(I," v\xE0 "),C=l(I,"A",{href:!0});var Rt=i(C);xt=c(Rt,"Ch\u01B0\u01A1ng 7"),Rt.forEach(e),At=c(I," - v\xEC v\u1EADy h\xE3y u\u1ED1ng m\u1ED9t ly c\xE0 ph\xEA v\xE0 b\u1EAFt \u0111\u1EA7u th\xF4i!"),I.forEach(e),this.h()},h(){d(g,"name","hf:doc:metadata"),d(g,"content",JSON.stringify(hn)),d(_,"id","gii-thiu"),d(_,"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"),d(_,"href","#gii-thiu"),d(b,"class","relative group"),d(w,"href","/course/chapter3"),d(A,"href","/course/chapter6"),d(C,"href","/course/chapter7")},m(t,r){n(document.head,g),m(t,F,r),m(t,b,r),n(b,_),n(_,P),Jt(E,P,null),n(b,Z),n(b,H),n(H,tt),m(t,O,r),Jt($,t,r),m(t,R,r),m(t,y,r),n(y,nt),n(y,w),n(w,et),n(y,at),m(t,U,r),m(t,f,r),n(f,B),n(B,lt),n(f,ht),n(f,k),n(k,it),n(k,D),n(D,ct),n(k,rt),n(f,ot),n(f,M),n(M,st),m(t,V,r),m(t,x,r),n(x,ut),m(t,J,r),m(t,o,r),n(o,N),n(N,mt),n(o,ft),n(o,L),n(L,vt),n(L,S),n(S,pt),n(L,gt),n(o,bt),n(o,q),n(q,dt),n(o,_t),n(o,G),n(G,yt),n(o,Et),n(o,z),n(z,$t),m(t,j,r),m(t,v,r),n(v,kt),n(v,A),n(A,Lt),n(v,wt),n(v,C),n(C,xt),n(v,At),K=!0},p:tn,i(t){K||(jt(E.$$.fragment,t),jt($.$$.fragment,t),K=!0)},o(t){Kt(E.$$.fragment,t),Kt($.$$.fragment,t),K=!1},d(t){e(g),t&&e(F),t&&e(b),Qt(E),t&&e(O),Qt($,t),t&&e(R),t&&e(y),t&&e(U),t&&e(f),t&&e(V),t&&e(x),t&&e(J),t&&e(o),t&&e(j),t&&e(v)}}}const hn={local:"gii-thiu",title:"Gi\u1EDBi thi\u1EC7u"};function cn(Ct){return nn(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class mn extends Wt{constructor(g){super();Xt(this,g,cn,ln,Yt,{})}}export{mn as default,hn as metadata};
