import{S as ho,i as co,s as ro,e as i,k as p,w as f,t as a,M as po,c as h,d as n,m as u,a as c,x as _,h as e,b as g,N as Un,G as s,g as r,y as v,q as b,o as x,B as y,v as uo}from"../../chunks/vendor-hf-doc-builder.js";import{T as rn}from"../../chunks/Tip-hf-doc-builder.js";import{Y as oo}from"../../chunks/Youtube-hf-doc-builder.js";import{I as pn}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C}from"../../chunks/CodeBlock-hf-doc-builder.js";import{C as go}from"../../chunks/CourseFloatingBanner-hf-doc-builder.js";import"../../chunks/DocNotebookDropdown-hf-doc-builder.js";function mo(M){let o,T,m,j,w;return{c(){o=i("p"),T=a("\u270F\uFE0F "),m=i("strong"),j=a("Th\u1EED nghi\u1EC7m th\xF4i!"),w=a(" Nh\u1EA5p v\xE0o m\u1ED9t v\xE0i URL trong t\u1EA3i tr\u1ECDng JSON \u1EDF tr\xEAn \u0111\u1EC3 bi\u1EBFt lo\u1EA1i th\xF4ng tin m\xE0 m\u1ED7i v\u1EA5n \u0111\u1EC1 GitHub \u0111\u01B0\u1EE3c li\xEAn k\u1EBFt v\u1EDBi.")},l(d){o=h(d,"P",{});var E=c(o);T=e(E,"\u270F\uFE0F "),m=h(E,"STRONG",{});var H=c(m);j=e(H,"Th\u1EED nghi\u1EC7m th\xF4i!"),H.forEach(n),w=e(E," Nh\u1EA5p v\xE0o m\u1ED9t v\xE0i URL trong t\u1EA3i tr\u1ECDng JSON \u1EDF tr\xEAn \u0111\u1EC3 bi\u1EBFt lo\u1EA1i th\xF4ng tin m\xE0 m\u1ED7i v\u1EA5n \u0111\u1EC1 GitHub \u0111\u01B0\u1EE3c li\xEAn k\u1EBFt v\u1EDBi."),E.forEach(n)},m(d,E){r(d,o,E),s(o,T),s(o,m),s(m,j),s(o,w)},d(d){d&&n(o)}}}function fo(M){let o,T,m,j,w,d,E,H,$,k,P,D,N;return{c(){o=i("p"),T=a("\u26A0\uFE0F Kh\xF4ng d\xF9ng chung notebook c\xF3 d\xE1n "),m=i("code"),j=a("GITHUB_TOKEN"),w=a(" c\u1EE7a b\u1EA1n trong \u0111\xF3. Ch\xFAng t\xF4i khuy\xEAn b\u1EA1n n\xEAn x\xF3a \xF4 cu\u1ED1i c\xF9ng sau khi b\u1EA1n \u0111\xE3 th\u1EF1c thi n\xF3 \u0111\u1EC3 tr\xE1nh v\xF4 t\xECnh l\xE0m r\xF2 r\u1EC9 th\xF4ng tin n\xE0y. T\u1ED1t h\u01A1n n\u1EEFa, h\xE3y l\u01B0u tr\u1EEF token trong t\u1EC7p "),d=i("em"),E=a(".env"),H=a(" v\xE0 s\u1EED d\u1EE5ng "),$=i("a"),k=a("th\u01B0 vi\u1EC7n "),P=i("code"),D=a("python-dotenv"),N=a(" \u0111\u1EC3 t\u1EA3i t\u1EF1 \u0111\u1ED9ng cho b\u1EA1n d\u01B0\u1EDBi d\u1EA1ng bi\u1EBFn m\xF4i tr\u01B0\u1EDDng."),this.h()},l(A){o=h(A,"P",{});var q=c(o);T=e(q,"\u26A0\uFE0F Kh\xF4ng d\xF9ng chung notebook c\xF3 d\xE1n "),m=h(q,"CODE",{});var O=c(m);j=e(O,"GITHUB_TOKEN"),O.forEach(n),w=e(q," c\u1EE7a b\u1EA1n trong \u0111\xF3. Ch\xFAng t\xF4i khuy\xEAn b\u1EA1n n\xEAn x\xF3a \xF4 cu\u1ED1i c\xF9ng sau khi b\u1EA1n \u0111\xE3 th\u1EF1c thi n\xF3 \u0111\u1EC3 tr\xE1nh v\xF4 t\xECnh l\xE0m r\xF2 r\u1EC9 th\xF4ng tin n\xE0y. T\u1ED1t h\u01A1n n\u1EEFa, h\xE3y l\u01B0u tr\u1EEF token trong t\u1EC7p "),d=h(q,"EM",{});var z=c(d);E=e(z,".env"),z.forEach(n),H=e(q," v\xE0 s\u1EED d\u1EE5ng "),$=h(q,"A",{href:!0,rel:!0});var R=c($);k=e(R,"th\u01B0 vi\u1EC7n "),P=h(R,"CODE",{});var G=c(P);D=e(G,"python-dotenv"),G.forEach(n),R.forEach(n),N=e(q," \u0111\u1EC3 t\u1EA3i t\u1EF1 \u0111\u1ED9ng cho b\u1EA1n d\u01B0\u1EDBi d\u1EA1ng bi\u1EBFn m\xF4i tr\u01B0\u1EDDng."),q.forEach(n),this.h()},h(){g($,"href","https://github.com/theskumar/python-dotenv"),g($,"rel","nofollow")},m(A,q){r(A,o,q),s(o,T),s(o,m),s(m,j),s(o,w),s(o,d),s(d,E),s(o,H),s(o,$),s($,k),s($,P),s(P,D),s(o,N)},d(A){A&&n(o)}}}function _o(M){let o,T,m,j,w,d,E,H,$,k,P,D,N,A,q,O,z,R,G,K;return{c(){o=i("p"),T=a("\u270F\uFE0F "),m=i("strong"),j=a("Th\u1EED nghi\u1EC7m th\xF4i!"),w=a(" T\xEDnh th\u1EDDi gian trung b\xECnh c\u1EA7n \u0111\u1EC3 \u0111\xF3ng c\xE1c v\u1EA5n \u0111\u1EC1 trong \u{1F917} Datasets. B\u1EA1n c\xF3 th\u1EC3 th\u1EA5y h\xE0m "),d=i("code"),E=a("Dataset.filter()"),H=a(" h\u1EEFu \xEDch \u0111\u1EC3 l\u1ECDc ra c\xE1c y\xEAu c\u1EA7u k\xE9o v\xE0 c\xE1c v\u1EA5n \u0111\u1EC1 \u0111ang m\u1EDF, \u0111\u1ED3ng th\u1EDDi b\u1EA1n c\xF3 th\u1EC3 s\u1EED d\u1EE5ng h\xE0m "),$=i("code"),k=a("Dataset.set_format()"),P=a(" \u0111\u1EC3 chuy\u1EC3n \u0111\u1ED5i t\u1EADp d\u1EEF li\u1EC7u th\xE0nh "),D=i("code"),N=a("DataFrame"),A=a(" \u0111\u1EC3 b\u1EA1n c\xF3 th\u1EC3 d\u1EC5 d\xE0ng thao t\xE1c d\u1EA5u th\u1EDDi gian "),q=i("code"),O=a("create_at"),z=a(" v\xE0 "),R=i("code"),G=a("closed_at"),K=a(". \u0110\u1ED1i v\u1EDBi \u0111i\u1EC3m th\u01B0\u1EDFng, h\xE3y t\xEDnh th\u1EDDi gian trung b\xECnh c\u1EA7n \u0111\u1EC3 \u0111\xF3ng c\xE1c y\xEAu c\u1EA7u k\xE9o.")},l(ut){o=h(ut,"P",{});var S=c(o);T=e(S,"\u270F\uFE0F "),m=h(S,"STRONG",{});var J=c(m);j=e(J,"Th\u1EED nghi\u1EC7m th\xF4i!"),J.forEach(n),w=e(S," T\xEDnh th\u1EDDi gian trung b\xECnh c\u1EA7n \u0111\u1EC3 \u0111\xF3ng c\xE1c v\u1EA5n \u0111\u1EC1 trong \u{1F917} Datasets. B\u1EA1n c\xF3 th\u1EC3 th\u1EA5y h\xE0m "),d=h(S,"CODE",{});var un=c(d);E=e(un,"Dataset.filter()"),un.forEach(n),H=e(S," h\u1EEFu \xEDch \u0111\u1EC3 l\u1ECDc ra c\xE1c y\xEAu c\u1EA7u k\xE9o v\xE0 c\xE1c v\u1EA5n \u0111\u1EC1 \u0111ang m\u1EDF, \u0111\u1ED3ng th\u1EDDi b\u1EA1n c\xF3 th\u1EC3 s\u1EED d\u1EE5ng h\xE0m "),$=h(S,"CODE",{});var yt=c($);k=e(yt,"Dataset.set_format()"),yt.forEach(n),P=e(S," \u0111\u1EC3 chuy\u1EC3n \u0111\u1ED5i t\u1EADp d\u1EEF li\u1EC7u th\xE0nh "),D=h(S,"CODE",{});var on=c(D);N=e(on,"DataFrame"),on.forEach(n),A=e(S," \u0111\u1EC3 b\u1EA1n c\xF3 th\u1EC3 d\u1EC5 d\xE0ng thao t\xE1c d\u1EA5u th\u1EDDi gian "),q=h(S,"CODE",{});var gn=c(q);O=e(gn,"create_at"),gn.forEach(n),z=e(S," v\xE0 "),R=h(S,"CODE",{});var $t=c(R);G=e($t,"closed_at"),$t.forEach(n),K=e(S,". \u0110\u1ED1i v\u1EDBi \u0111i\u1EC3m th\u01B0\u1EDFng, h\xE3y t\xEDnh th\u1EDDi gian trung b\xECnh c\u1EA7n \u0111\u1EC3 \u0111\xF3ng c\xE1c y\xEAu c\u1EA7u k\xE9o."),S.forEach(n)},m(ut,S){r(ut,o,S),s(o,T),s(o,m),s(m,j),s(o,w),s(o,d),s(d,E),s(o,H),s(o,$),s($,k),s(o,P),s(o,D),s(D,N),s(o,A),s(o,q),s(q,O),s(o,z),s(o,R),s(R,G),s(o,K)},d(ut){ut&&n(o)}}}function vo(M){let o,T,m,j,w,d,E,H,$,k,P;return{c(){o=i("p"),T=a("\u270F\uFE0F "),m=i("strong"),j=a("Th\u1EED nghi\u1EC7m th\xF4i!"),w=a(" S\u1EED d\u1EE5ng t\xEAn ng\u01B0\u1EDDi d\xF9ng v\xE0 m\u1EADt kh\u1EA9u Hugging Face Hub c\u1EE7a b\u1EA1n \u0111\u1EC3 l\u1EA5y token v\xE0 t\u1EA1o m\u1ED9t kho l\u01B0u tr\u1EEF tr\u1ED1ng c\xF3 t\xEAn l\xE0 "),d=i("code"),E=a("github-issue"),H=a(". H\xE3y nh\u1EDB "),$=i("strong"),k=a("kh\xF4ng bao gi\u1EDD l\u01B0u th\xF4ng tin \u0111\u0103ng nh\u1EADp c\u1EE7a b\u1EA1n"),P=a(" trong Colab ho\u1EB7c b\u1EA5t k\u1EF3 kho l\u01B0u tr\u1EEF n\xE0o kh\xE1c, v\xEC th\xF4ng tin n\xE0y c\xF3 th\u1EC3 b\u1ECB k\u1EBB x\u1EA5u l\u1EE3i d\u1EE5ng.")},l(D){o=h(D,"P",{});var N=c(o);T=e(N,"\u270F\uFE0F "),m=h(N,"STRONG",{});var A=c(m);j=e(A,"Th\u1EED nghi\u1EC7m th\xF4i!"),A.forEach(n),w=e(N," S\u1EED d\u1EE5ng t\xEAn ng\u01B0\u1EDDi d\xF9ng v\xE0 m\u1EADt kh\u1EA9u Hugging Face Hub c\u1EE7a b\u1EA1n \u0111\u1EC3 l\u1EA5y token v\xE0 t\u1EA1o m\u1ED9t kho l\u01B0u tr\u1EEF tr\u1ED1ng c\xF3 t\xEAn l\xE0 "),d=h(N,"CODE",{});var q=c(d);E=e(q,"github-issue"),q.forEach(n),H=e(N,". H\xE3y nh\u1EDB "),$=h(N,"STRONG",{});var O=c($);k=e(O,"kh\xF4ng bao gi\u1EDD l\u01B0u th\xF4ng tin \u0111\u0103ng nh\u1EADp c\u1EE7a b\u1EA1n"),O.forEach(n),P=e(N," trong Colab ho\u1EB7c b\u1EA5t k\u1EF3 kho l\u01B0u tr\u1EEF n\xE0o kh\xE1c, v\xEC th\xF4ng tin n\xE0y c\xF3 th\u1EC3 b\u1ECB k\u1EBB x\u1EA5u l\u1EE3i d\u1EE5ng."),N.forEach(n)},m(D,N){r(D,o,N),s(o,T),s(o,m),s(m,j),s(o,w),s(o,d),s(d,E),s(o,H),s(o,$),s($,k),s(o,P)},d(D){D&&n(o)}}}function bo(M){let o,T,m,j,w,d,E,H;return{c(){o=i("p"),T=a("\u{1F4A1} B\u1EA1n c\u0169ng c\xF3 th\u1EC3 t\u1EA3i t\u1EADp d\u1EEF li\u1EC7u l\xEAn Hugging Face Hub tr\u1EF1c ti\u1EBFp t\u1EEB thi\u1EBFt b\u1ECB \u0111\u1EA7u cu\u1ED1i b\u1EB1ng c\xE1ch s\u1EED d\u1EE5ng "),m=i("code"),j=a("huggingface-cli"),w=a(" v\xE0 m\u1ED9t ch\xFAt ph\xE9p thu\u1EADt t\u1EEB Git. Tham kh\u1EA3o "),d=i("a"),E=a("h\u01B0\u1EDBng d\u1EABn \u{1F917} Datasets"),H=a(" \u0111\u1EC3 bi\u1EBFt chi ti\u1EBFt v\u1EC1 c\xE1ch th\u1EF1c hi\u1EC7n vi\u1EC7c n\xE0y."),this.h()},l($){o=h($,"P",{});var k=c(o);T=e(k,"\u{1F4A1} B\u1EA1n c\u0169ng c\xF3 th\u1EC3 t\u1EA3i t\u1EADp d\u1EEF li\u1EC7u l\xEAn Hugging Face Hub tr\u1EF1c ti\u1EBFp t\u1EEB thi\u1EBFt b\u1ECB \u0111\u1EA7u cu\u1ED1i b\u1EB1ng c\xE1ch s\u1EED d\u1EE5ng "),m=h(k,"CODE",{});var P=c(m);j=e(P,"huggingface-cli"),P.forEach(n),w=e(k," v\xE0 m\u1ED9t ch\xFAt ph\xE9p thu\u1EADt t\u1EEB Git. Tham kh\u1EA3o "),d=h(k,"A",{href:!0,rel:!0});var D=c(d);E=e(D,"h\u01B0\u1EDBng d\u1EABn \u{1F917} Datasets"),D.forEach(n),H=e(k," \u0111\u1EC3 bi\u1EBFt chi ti\u1EBFt v\u1EC1 c\xE1ch th\u1EF1c hi\u1EC7n vi\u1EC7c n\xE0y."),k.forEach(n),this.h()},h(){g(d,"href","https://huggingface.co/docs/datasets/share.html#add-a-community-dataset"),g(d,"rel","nofollow")},m($,k){r($,o,k),s(o,T),s(o,m),s(m,j),s(o,w),s(o,d),s(d,E),s(o,H)},d($){$&&n(o)}}}function xo(M){let o,T,m,j,w,d,E,H,$,k,P,D,N,A;return{c(){o=i("p"),T=a("\u270F\uFE0F "),m=i("strong"),j=a("Th\u1EED nghi\u1EC7m th\xF4i!"),w=a(" S\u1EED d\u1EE5ng \u1EE9ng d\u1EE5ng "),d=i("code"),E=a("dataset-tagging"),H=a(" v\xE0 "),$=i("a"),k=a("h\u01B0\u1EDBng d\u1EABn \u{1F917} Datasets"),P=a(" \u0111\u1EC3 ho\xE0n th\xE0nh t\u1EC7p "),D=i("em"),N=a("README.md"),A=a(" cho v\u1EA5n \u0111\u1EC1 v\u1EC1 d\u1EEF li\u1EC7u tr\xEAn Github c\u1EE7a b\u1EA1n."),this.h()},l(q){o=h(q,"P",{});var O=c(o);T=e(O,"\u270F\uFE0F "),m=h(O,"STRONG",{});var z=c(m);j=e(z,"Th\u1EED nghi\u1EC7m th\xF4i!"),z.forEach(n),w=e(O," S\u1EED d\u1EE5ng \u1EE9ng d\u1EE5ng "),d=h(O,"CODE",{});var R=c(d);E=e(R,"dataset-tagging"),R.forEach(n),H=e(O," v\xE0 "),$=h(O,"A",{href:!0,rel:!0});var G=c($);k=e(G,"h\u01B0\u1EDBng d\u1EABn \u{1F917} Datasets"),G.forEach(n),P=e(O," \u0111\u1EC3 ho\xE0n th\xE0nh t\u1EC7p "),D=h(O,"EM",{});var K=c(D);N=e(K,"README.md"),K.forEach(n),A=e(O," cho v\u1EA5n \u0111\u1EC1 v\u1EC1 d\u1EEF li\u1EC7u tr\xEAn Github c\u1EE7a b\u1EA1n."),O.forEach(n),this.h()},h(){g($,"href","https://github.com/huggingface/datasets/blob/master/templates/README_guide.md"),g($,"rel","nofollow")},m(q,O){r(q,o,O),s(o,T),s(o,m),s(m,j),s(o,w),s(o,d),s(d,E),s(o,H),s(o,$),s($,k),s(o,P),s(o,D),s(D,N),s(o,A)},d(q){q&&n(o)}}}function yo(M){let o,T,m,j,w,d,E,H;return{c(){o=i("p"),T=a("\u270F\uFE0F "),m=i("strong"),j=a("Th\u1EED nghi\u1EC7m th\xF4i!"),w=a(" Th\u1EF1c hi\u1EC7n theo c\xE1c b\u01B0\u1EDBc ch\xFAng ta \u0111\xE3 th\u1EF1c hi\u1EC7n trong ph\u1EA7n n\xE0y \u0111\u1EC3 t\u1EA1o t\u1EADp d\u1EEF li\u1EC7u v\u1EC1 c\xE1c v\u1EA5n \u0111\u1EC1 GitHub cho th\u01B0 vi\u1EC7n m\xE3 ngu\u1ED3n m\u1EDF y\xEAu th\xEDch c\u1EE7a b\u1EA1n (t\u1EA5t nhi\xEAn l\xE0 ch\u1ECDn th\u1EE9 kh\xE1c ngo\xE0i \u{1F917} Datasets!). \u0110\u1EC3 c\xF3 \u0111i\u1EC3m th\u01B0\u1EDFng, h\xE3y tinh ch\u1EC9nh b\u1ED9 ph\xE2n lo\u1EA1i \u0111a nh\xE3n \u0111\u1EC3 d\u1EF1 \u0111o\xE1n c\xE1c th\u1EBB c\xF3 trong tr\u01B0\u1EDDng "),d=i("code"),E=a("labels"),H=a(".")},l($){o=h($,"P",{});var k=c(o);T=e(k,"\u270F\uFE0F "),m=h(k,"STRONG",{});var P=c(m);j=e(P,"Th\u1EED nghi\u1EC7m th\xF4i!"),P.forEach(n),w=e(k," Th\u1EF1c hi\u1EC7n theo c\xE1c b\u01B0\u1EDBc ch\xFAng ta \u0111\xE3 th\u1EF1c hi\u1EC7n trong ph\u1EA7n n\xE0y \u0111\u1EC3 t\u1EA1o t\u1EADp d\u1EEF li\u1EC7u v\u1EC1 c\xE1c v\u1EA5n \u0111\u1EC1 GitHub cho th\u01B0 vi\u1EC7n m\xE3 ngu\u1ED3n m\u1EDF y\xEAu th\xEDch c\u1EE7a b\u1EA1n (t\u1EA5t nhi\xEAn l\xE0 ch\u1ECDn th\u1EE9 kh\xE1c ngo\xE0i \u{1F917} Datasets!). \u0110\u1EC3 c\xF3 \u0111i\u1EC3m th\u01B0\u1EDFng, h\xE3y tinh ch\u1EC9nh b\u1ED9 ph\xE2n lo\u1EA1i \u0111a nh\xE3n \u0111\u1EC3 d\u1EF1 \u0111o\xE1n c\xE1c th\u1EBB c\xF3 trong tr\u01B0\u1EDDng "),d=h(k,"CODE",{});var D=c(d);E=e(D,"labels"),D.forEach(n),H=e(k,"."),k.forEach(n)},m($,k){r($,o,k),s(o,T),s(o,m),s(m,j),s(o,w),s(o,d),s(d,E),s(o,H)},d($){$&&n(o)}}}function $o(M){let o,T,m,j,w,d,E,H,$,k,P,D,N,A,q,O,z,R,G,K,ut,S,J,un,yt,on,gn,$t,vi,bi,xi,Fn,yi,re,mn,$i,pe,ot,kt,Vn,Wt,ki,zn,ji,ue,jt,Ei,Yt,wi,qi,oe,ts,ss,Xr,ge,dn,Ti,me,ns,as,Wr,de,W,Hi,es,Di,Pi,ls,Kn,Ni,Ci,fe,Et,Oi,Jn,Ai,Gi,_e,is,ve,Y,Si,Qn,Ii,Ri,Zn,Mi,Li,be,hs,xe,wt,Bi,Xn,Ui,Fi,ye,cs,$e,rs,ke,B,Vi,Wn,zi,Ki,ps,Ji,Qi,Yn,Zi,Xi,ta,Wi,Yi,je,us,Ee,os,we,Q,th,sa,sh,nh,na,ah,eh,aa,lh,ih,qe,qt,Te,L,hh,gs,ch,rh,ea,ph,uh,ms,oh,gh,la,mh,dh,ia,fh,_h,He,ds,De,Tt,Pe,fn,vh,Ne,fs,Ce,tt,bh,ha,xh,yh,ca,$h,kh,Oe,_s,Ae,Ht,jh,_n,Eh,wh,Ge,vs,Se,bs,Ie,st,qh,xs,Th,Hh,ys,Dh,Ph,Re,vn,gt,Nh,ra,Ch,Oh,pa,Ah,Gh,Me,bn,Sh,Le,mt,Dt,ua,$s,Ih,oa,Rh,Be,I,Mh,ga,Lh,Bh,xn,Uh,Fh,ma,Vh,zh,da,Kh,Jh,fa,Qh,Zh,_a,Xh,Wh,Ue,ks,Fe,js,Ve,U,Yh,va,tc,sc,ba,nc,ac,xa,ec,lc,ya,ic,hc,ze,Es,Ke,Pt,Je,yn,cc,Qe,$n,rc,Ze,dt,Nt,$a,ws,pc,ka,uc,Xe,kn,oc,We,jn,gc,Ye,ft,Ct,ja,qs,mc,Ea,dc,tl,En,fc,sl,Ts,Hs,Yr,nl,Ot,_c,Ds,wa,vc,bc,al,Ps,el,Ns,ll,Z,xc,qa,yc,$c,Ta,kc,jc,Ha,Ec,wc,il,Cs,hl,Os,cl,nt,qc,Da,Tc,Hc,Pa,Dc,Pc,rl,As,pl,wn,Nc,ul,Gs,ol,_t,At,Na,Ss,Cc,Ca,Oc,gl,Is,ml,at,Ac,Rs,Gc,Sc,Oa,Ic,Rc,dl,Ms,fl,Ls,_l,Gt,Mc,Aa,Lc,Bc,vl,St,Uc,Ga,Fc,Vc,bl,Bs,xl,It,zc,Sa,Kc,Jc,yl,Us,$l,Rt,Qc,Ia,Zc,Xc,kl,Fs,jl,Vs,El,et,Wc,Ra,Yc,tr,Ma,sr,nr,wl,Mt,ql,Lt,ar,La,er,lr,Tl,zs,Hl,F,ir,Ba,hr,cr,Ua,rr,pr,Fa,ur,or,Va,gr,mr,Dl,Ks,Pl,Bt,dr,za,fr,_r,Nl,Js,Cl,Ut,vr,Ka,br,xr,Ol,Qs,Zs,tp,Al,lt,yr,Ja,$r,kr,Qa,jr,Er,Gl,Xs,Sl,Ws,Il,it,wr,Za,qr,Tr,Xa,Hr,Dr,Rl,Ft,Ml,vt,Vt,Wa,Ys,Pr,Ya,Nr,Ll,qn,Cr,Bl,zt,Or,te,Ar,Gr,Ul,Tn,bt,Sr,tn,se,Ir,Rr,ne,Mr,Lr,Fl,sn,nn,sp,Vl,Kt,Br,an,Ur,Fr,zl,ht,Vr,ae,zr,Kr,ee,Jr,Qr,Kl,en,ln,np,Jl,Jt,Ql,Hn,Zr,Zl,Qt,Xl;return d=new pn({}),P=new go({props:{chapter:5,classNames:"absolute z-10 right-0 top-0",notebooks:[{label:"Google Colab",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/vi/chapter5/section5.ipynb"},{label:"Aws Studio",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/master/course/vi/chapter5/section5.ipynb"}]}}),Wt=new pn({}),is=new C({props:{code:"!pip install requests",highlighted:"!pip install requests"}}),hs=new C({props:{code:`import requests

url = "https://api.github.com/repos/huggingface/datasets/issues?page=1&per_page=1"
response = requests.get(url)`,highlighted:`<span class="hljs-keyword">import</span> requests

url = <span class="hljs-string">&quot;https://api.github.com/repos/huggingface/datasets/issues?page=1&amp;per_page=1&quot;</span>
response = requests.get(url)`}}),cs=new C({props:{code:"response.status_code",highlighted:"response.status_code"}}),rs=new C({props:{code:"200",highlighted:'<span class="hljs-number">200</span>'}}),us=new C({props:{code:"response.json()",highlighted:"response.json()"}}),os=new C({props:{code:`[{'url': 'https://api.github.com/repos/huggingface/datasets/issues/2792',
  'repository_url': 'https://api.github.com/repos/huggingface/datasets',
  'labels_url': 'https://api.github.com/repos/huggingface/datasets/issues/2792/labels{/name}',
  'comments_url': 'https://api.github.com/repos/huggingface/datasets/issues/2792/comments',
  'events_url': 'https://api.github.com/repos/huggingface/datasets/issues/2792/events',
  'html_url': 'https://github.com/huggingface/datasets/pull/2792',
  'id': 968650274,
  'node_id': 'MDExOlB1bGxSZXF1ZXN0NzEwNzUyMjc0',
  'number': 2792,
  'title': 'Update GooAQ',
  'user': {'login': 'bhavitvyamalik',
   'id': 19718818,
   'node_id': 'MDQ6VXNlcjE5NzE4ODE4',
   'avatar_url': 'https://avatars.githubusercontent.com/u/19718818?v=4',
   'gravatar_id': '',
   'url': 'https://api.github.com/users/bhavitvyamalik',
   'html_url': 'https://github.com/bhavitvyamalik',
   'followers_url': 'https://api.github.com/users/bhavitvyamalik/followers',
   'following_url': 'https://api.github.com/users/bhavitvyamalik/following{/other_user}',
   'gists_url': 'https://api.github.com/users/bhavitvyamalik/gists{/gist_id}',
   'starred_url': 'https://api.github.com/users/bhavitvyamalik/starred{/owner}{/repo}',
   'subscriptions_url': 'https://api.github.com/users/bhavitvyamalik/subscriptions',
   'organizations_url': 'https://api.github.com/users/bhavitvyamalik/orgs',
   'repos_url': 'https://api.github.com/users/bhavitvyamalik/repos',
   'events_url': 'https://api.github.com/users/bhavitvyamalik/events{/privacy}',
   'received_events_url': 'https://api.github.com/users/bhavitvyamalik/received_events',
   'type': 'User',
   'site_admin': False},
  'labels': [],
  'state': 'open',
  'locked': False,
  'assignee': None,
  'assignees': [],
  'milestone': None,
  'comments': 1,
  'created_at': '2021-08-12T11:40:18Z',
  'updated_at': '2021-08-12T12:31:17Z',
  'closed_at': None,
  'author_association': 'CONTRIBUTOR',
  'active_lock_reason': None,
  'pull_request': {'url': 'https://api.github.com/repos/huggingface/datasets/pulls/2792',
   'html_url': 'https://github.com/huggingface/datasets/pull/2792',
   'diff_url': 'https://github.com/huggingface/datasets/pull/2792.diff',
   'patch_url': 'https://github.com/huggingface/datasets/pull/2792.patch'},
  'body': '[GooAQ](https://github.com/allenai/gooaq) dataset was recently updated after splits were added for the same. This PR contains new updated GooAQ with train/val/test splits and updated README as well.',
  'performed_via_github_app': None}]`,highlighted:`[{<span class="hljs-string">&#x27;url&#x27;</span>: <span class="hljs-string">&#x27;https://api.github.com/repos/huggingface/datasets/issues/2792&#x27;</span>,
  <span class="hljs-string">&#x27;repository_url&#x27;</span>: <span class="hljs-string">&#x27;https://api.github.com/repos/huggingface/datasets&#x27;</span>,
  <span class="hljs-string">&#x27;labels_url&#x27;</span>: <span class="hljs-string">&#x27;https://api.github.com/repos/huggingface/datasets/issues/2792/labels{/name}&#x27;</span>,
  <span class="hljs-string">&#x27;comments_url&#x27;</span>: <span class="hljs-string">&#x27;https://api.github.com/repos/huggingface/datasets/issues/2792/comments&#x27;</span>,
  <span class="hljs-string">&#x27;events_url&#x27;</span>: <span class="hljs-string">&#x27;https://api.github.com/repos/huggingface/datasets/issues/2792/events&#x27;</span>,
  <span class="hljs-string">&#x27;html_url&#x27;</span>: <span class="hljs-string">&#x27;https://github.com/huggingface/datasets/pull/2792&#x27;</span>,
  <span class="hljs-string">&#x27;id&#x27;</span>: <span class="hljs-number">968650274</span>,
  <span class="hljs-string">&#x27;node_id&#x27;</span>: <span class="hljs-string">&#x27;MDExOlB1bGxSZXF1ZXN0NzEwNzUyMjc0&#x27;</span>,
  <span class="hljs-string">&#x27;number&#x27;</span>: <span class="hljs-number">2792</span>,
  <span class="hljs-string">&#x27;title&#x27;</span>: <span class="hljs-string">&#x27;Update GooAQ&#x27;</span>,
  <span class="hljs-string">&#x27;user&#x27;</span>: {<span class="hljs-string">&#x27;login&#x27;</span>: <span class="hljs-string">&#x27;bhavitvyamalik&#x27;</span>,
   <span class="hljs-string">&#x27;id&#x27;</span>: <span class="hljs-number">19718818</span>,
   <span class="hljs-string">&#x27;node_id&#x27;</span>: <span class="hljs-string">&#x27;MDQ6VXNlcjE5NzE4ODE4&#x27;</span>,
   <span class="hljs-string">&#x27;avatar_url&#x27;</span>: <span class="hljs-string">&#x27;https://avatars.githubusercontent.com/u/19718818?v=4&#x27;</span>,
   <span class="hljs-string">&#x27;gravatar_id&#x27;</span>: <span class="hljs-string">&#x27;&#x27;</span>,
   <span class="hljs-string">&#x27;url&#x27;</span>: <span class="hljs-string">&#x27;https://api.github.com/users/bhavitvyamalik&#x27;</span>,
   <span class="hljs-string">&#x27;html_url&#x27;</span>: <span class="hljs-string">&#x27;https://github.com/bhavitvyamalik&#x27;</span>,
   <span class="hljs-string">&#x27;followers_url&#x27;</span>: <span class="hljs-string">&#x27;https://api.github.com/users/bhavitvyamalik/followers&#x27;</span>,
   <span class="hljs-string">&#x27;following_url&#x27;</span>: <span class="hljs-string">&#x27;https://api.github.com/users/bhavitvyamalik/following{/other_user}&#x27;</span>,
   <span class="hljs-string">&#x27;gists_url&#x27;</span>: <span class="hljs-string">&#x27;https://api.github.com/users/bhavitvyamalik/gists{/gist_id}&#x27;</span>,
   <span class="hljs-string">&#x27;starred_url&#x27;</span>: <span class="hljs-string">&#x27;https://api.github.com/users/bhavitvyamalik/starred{/owner}{/repo}&#x27;</span>,
   <span class="hljs-string">&#x27;subscriptions_url&#x27;</span>: <span class="hljs-string">&#x27;https://api.github.com/users/bhavitvyamalik/subscriptions&#x27;</span>,
   <span class="hljs-string">&#x27;organizations_url&#x27;</span>: <span class="hljs-string">&#x27;https://api.github.com/users/bhavitvyamalik/orgs&#x27;</span>,
   <span class="hljs-string">&#x27;repos_url&#x27;</span>: <span class="hljs-string">&#x27;https://api.github.com/users/bhavitvyamalik/repos&#x27;</span>,
   <span class="hljs-string">&#x27;events_url&#x27;</span>: <span class="hljs-string">&#x27;https://api.github.com/users/bhavitvyamalik/events{/privacy}&#x27;</span>,
   <span class="hljs-string">&#x27;received_events_url&#x27;</span>: <span class="hljs-string">&#x27;https://api.github.com/users/bhavitvyamalik/received_events&#x27;</span>,
   <span class="hljs-string">&#x27;type&#x27;</span>: <span class="hljs-string">&#x27;User&#x27;</span>,
   <span class="hljs-string">&#x27;site_admin&#x27;</span>: <span class="hljs-literal">False</span>},
  <span class="hljs-string">&#x27;labels&#x27;</span>: [],
  <span class="hljs-string">&#x27;state&#x27;</span>: <span class="hljs-string">&#x27;open&#x27;</span>,
  <span class="hljs-string">&#x27;locked&#x27;</span>: <span class="hljs-literal">False</span>,
  <span class="hljs-string">&#x27;assignee&#x27;</span>: <span class="hljs-literal">None</span>,
  <span class="hljs-string">&#x27;assignees&#x27;</span>: [],
  <span class="hljs-string">&#x27;milestone&#x27;</span>: <span class="hljs-literal">None</span>,
  <span class="hljs-string">&#x27;comments&#x27;</span>: <span class="hljs-number">1</span>,
  <span class="hljs-string">&#x27;created_at&#x27;</span>: <span class="hljs-string">&#x27;2021-08-12T11:40:18Z&#x27;</span>,
  <span class="hljs-string">&#x27;updated_at&#x27;</span>: <span class="hljs-string">&#x27;2021-08-12T12:31:17Z&#x27;</span>,
  <span class="hljs-string">&#x27;closed_at&#x27;</span>: <span class="hljs-literal">None</span>,
  <span class="hljs-string">&#x27;author_association&#x27;</span>: <span class="hljs-string">&#x27;CONTRIBUTOR&#x27;</span>,
  <span class="hljs-string">&#x27;active_lock_reason&#x27;</span>: <span class="hljs-literal">None</span>,
  <span class="hljs-string">&#x27;pull_request&#x27;</span>: {<span class="hljs-string">&#x27;url&#x27;</span>: <span class="hljs-string">&#x27;https://api.github.com/repos/huggingface/datasets/pulls/2792&#x27;</span>,
   <span class="hljs-string">&#x27;html_url&#x27;</span>: <span class="hljs-string">&#x27;https://github.com/huggingface/datasets/pull/2792&#x27;</span>,
   <span class="hljs-string">&#x27;diff_url&#x27;</span>: <span class="hljs-string">&#x27;https://github.com/huggingface/datasets/pull/2792.diff&#x27;</span>,
   <span class="hljs-string">&#x27;patch_url&#x27;</span>: <span class="hljs-string">&#x27;https://github.com/huggingface/datasets/pull/2792.patch&#x27;</span>},
  <span class="hljs-string">&#x27;body&#x27;</span>: <span class="hljs-string">&#x27;[GooAQ](https://github.com/allenai/gooaq) dataset was recently updated after splits were added for the same. This PR contains new updated GooAQ with train/val/test splits and updated README as well.&#x27;</span>,
  <span class="hljs-string">&#x27;performed_via_github_app&#x27;</span>: <span class="hljs-literal">None</span>}]`}}),qt=new rn({props:{$$slots:{default:[mo]},$$scope:{ctx:M}}}),ds=new C({props:{code:`GITHUB_TOKEN = xxx  # Sao ch\xE9p token GitHub c\u1EE7a b\u1EA1n t\u1EA1i \u0111\xE2y
headers = {"Authorization": f"token {GITHUB_TOKEN}"}`,highlighted:`GITHUB_TOKEN = xxx  <span class="hljs-comment"># Sao ch\xE9p token GitHub c\u1EE7a b\u1EA1n t\u1EA1i \u0111\xE2y</span>
headers = {<span class="hljs-string">&quot;Authorization&quot;</span>: <span class="hljs-string">f&quot;token <span class="hljs-subst">{GITHUB_TOKEN}</span>&quot;</span>}`}}),Tt=new rn({props:{warning:!0,$$slots:{default:[fo]},$$scope:{ctx:M}}}),fs=new C({props:{code:`import time
import math
from pathlib import Path
import pandas as pd
from tqdm.notebook import tqdm


def fetch_issues(
    owner="huggingface",
    repo="datasets",
    num_issues=10_000,
    rate_limit=5_000,
    issues_path=Path("."),
):
    if not issues_path.is_dir():
        issues_path.mkdir(exist_ok=True)

    batch = []
    all_issues = []
    per_page = 100  # S\u1ED1 v\u1EA5n \u0111\u1EC1 ph\u1EA3i tr\u1EA3 v\u1EC1 tr\xEAn m\u1ED7i trang
    num_pages = math.ceil(num_issues / per_page)
    base_url = "https://api.github.com/repos"

    for page in tqdm(range(num_pages)):
        # Truy v\u1EA5n v\u1EDBi tr\u1EA1ng th\xE1i state=all \u0111\u1EC3 nh\u1EADn \u0111\u01B0\u1EE3c c\u1EA3 v\u1EA5n \u0111\u1EC1 m\u1EDF v\xE0 \u0111\xF3ng
        query = f"issues?page={page}&per_page={per_page}&state=all"
        issues = requests.get(f"{base_url}/{owner}/{repo}/{query}", headers=headers)
        batch.extend(issues.json())

        if len(batch) > rate_limit and len(all_issues) < num_issues:
            all_issues.extend(batch)
            batch = []  # X\u1EA3 l\xF4 cho kho\u1EA3ng th\u1EDDi gian ti\u1EBFp theo
            print(f"Reached GitHub rate limit. Sleeping for one hour ...")
            time.sleep(60 * 60 + 1)

    all_issues.extend(batch)
    df = pd.DataFrame.from_records(all_issues)
    df.to_json(f"{issues_path}/{repo}-issues.jsonl", orient="records", lines=True)
    print(
        f"Downloaded all the issues for {repo}! Dataset stored at {issues_path}/{repo}-issues.jsonl"
    )`,highlighted:`<span class="hljs-keyword">import</span> time
<span class="hljs-keyword">import</span> math
<span class="hljs-keyword">from</span> pathlib <span class="hljs-keyword">import</span> Path
<span class="hljs-keyword">import</span> pandas <span class="hljs-keyword">as</span> pd
<span class="hljs-keyword">from</span> tqdm.notebook <span class="hljs-keyword">import</span> tqdm


<span class="hljs-keyword">def</span> <span class="hljs-title function_">fetch_issues</span>(<span class="hljs-params">
    owner=<span class="hljs-string">&quot;huggingface&quot;</span>,
    repo=<span class="hljs-string">&quot;datasets&quot;</span>,
    num_issues=<span class="hljs-number">10_000</span>,
    rate_limit=<span class="hljs-number">5_000</span>,
    issues_path=Path(<span class="hljs-params"><span class="hljs-string">&quot;.&quot;</span></span>),
</span>):
    <span class="hljs-keyword">if</span> <span class="hljs-keyword">not</span> issues_path.is_dir():
        issues_path.mkdir(exist_ok=<span class="hljs-literal">True</span>)

    batch = []
    all_issues = []
    per_page = <span class="hljs-number">100</span>  <span class="hljs-comment"># S\u1ED1 v\u1EA5n \u0111\u1EC1 ph\u1EA3i tr\u1EA3 v\u1EC1 tr\xEAn m\u1ED7i trang</span>
    num_pages = math.ceil(num_issues / per_page)
    base_url = <span class="hljs-string">&quot;https://api.github.com/repos&quot;</span>

    <span class="hljs-keyword">for</span> page <span class="hljs-keyword">in</span> tqdm(<span class="hljs-built_in">range</span>(num_pages)):
        <span class="hljs-comment"># Truy v\u1EA5n v\u1EDBi tr\u1EA1ng th\xE1i state=all \u0111\u1EC3 nh\u1EADn \u0111\u01B0\u1EE3c c\u1EA3 v\u1EA5n \u0111\u1EC1 m\u1EDF v\xE0 \u0111\xF3ng</span>
        query = <span class="hljs-string">f&quot;issues?page=<span class="hljs-subst">{page}</span>&amp;per_page=<span class="hljs-subst">{per_page}</span>&amp;state=all&quot;</span>
        issues = requests.get(<span class="hljs-string">f&quot;<span class="hljs-subst">{base_url}</span>/<span class="hljs-subst">{owner}</span>/<span class="hljs-subst">{repo}</span>/<span class="hljs-subst">{query}</span>&quot;</span>, headers=headers)
        batch.extend(issues.json())

        <span class="hljs-keyword">if</span> <span class="hljs-built_in">len</span>(batch) &gt; rate_limit <span class="hljs-keyword">and</span> <span class="hljs-built_in">len</span>(all_issues) &lt; num_issues:
            all_issues.extend(batch)
            batch = []  <span class="hljs-comment"># X\u1EA3 l\xF4 cho kho\u1EA3ng th\u1EDDi gian ti\u1EBFp theo</span>
            <span class="hljs-built_in">print</span>(<span class="hljs-string">f&quot;Reached GitHub rate limit. Sleeping for one hour ...&quot;</span>)
            time.sleep(<span class="hljs-number">60</span> * <span class="hljs-number">60</span> + <span class="hljs-number">1</span>)

    all_issues.extend(batch)
    df = pd.DataFrame.from_records(all_issues)
    df.to_json(<span class="hljs-string">f&quot;<span class="hljs-subst">{issues_path}</span>/<span class="hljs-subst">{repo}</span>-issues.jsonl&quot;</span>, orient=<span class="hljs-string">&quot;records&quot;</span>, lines=<span class="hljs-literal">True</span>)
    <span class="hljs-built_in">print</span>(
        <span class="hljs-string">f&quot;Downloaded all the issues for <span class="hljs-subst">{repo}</span>! Dataset stored at <span class="hljs-subst">{issues_path}</span>/<span class="hljs-subst">{repo}</span>-issues.jsonl&quot;</span>
    )`}}),_s=new C({props:{code:`# T\xF9y thu\u1ED9c v\xE0o k\u1EBFt n\u1ED1i internet c\u1EE7a b\u1EA1n, qu\xE1 tr\xECnh n\xE0y c\xF3 th\u1EC3 m\u1EA5t v\xE0i ph\xFAt \u0111\u1EC3 ch\u1EA1y ...
fetch_issues()`,highlighted:`<span class="hljs-comment"># T\xF9y thu\u1ED9c v\xE0o k\u1EBFt n\u1ED1i internet c\u1EE7a b\u1EA1n, qu\xE1 tr\xECnh n\xE0y c\xF3 th\u1EC3 m\u1EA5t v\xE0i ph\xFAt \u0111\u1EC3 ch\u1EA1y ...</span>
fetch_issues()`}}),vs=new C({props:{code:`issues_dataset = load_dataset("json", data_files="datasets-issues.jsonl", split="train")
issues_dataset`,highlighted:`issues_dataset = load_dataset(<span class="hljs-string">&quot;json&quot;</span>, data_files=<span class="hljs-string">&quot;datasets-issues.jsonl&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>)
issues_dataset`}}),bs=new C({props:{code:`Dataset({
    features: ['url', 'repository_url', 'labels_url', 'comments_url', 'events_url', 'html_url', 'id', 'node_id', 'number', 'title', 'user', 'labels', 'state', 'locked', 'assignee', 'assignees', 'milestone', 'comments', 'created_at', 'updated_at', 'closed_at', 'author_association', 'active_lock_reason', 'pull_request', 'body', 'timeline_url', 'performed_via_github_app'],
    num_rows: 3019
})`,highlighted:`Dataset({
    features: [<span class="hljs-string">&#x27;url&#x27;</span>, <span class="hljs-string">&#x27;repository_url&#x27;</span>, <span class="hljs-string">&#x27;labels_url&#x27;</span>, <span class="hljs-string">&#x27;comments_url&#x27;</span>, <span class="hljs-string">&#x27;events_url&#x27;</span>, <span class="hljs-string">&#x27;html_url&#x27;</span>, <span class="hljs-string">&#x27;id&#x27;</span>, <span class="hljs-string">&#x27;node_id&#x27;</span>, <span class="hljs-string">&#x27;number&#x27;</span>, <span class="hljs-string">&#x27;title&#x27;</span>, <span class="hljs-string">&#x27;user&#x27;</span>, <span class="hljs-string">&#x27;labels&#x27;</span>, <span class="hljs-string">&#x27;state&#x27;</span>, <span class="hljs-string">&#x27;locked&#x27;</span>, <span class="hljs-string">&#x27;assignee&#x27;</span>, <span class="hljs-string">&#x27;assignees&#x27;</span>, <span class="hljs-string">&#x27;milestone&#x27;</span>, <span class="hljs-string">&#x27;comments&#x27;</span>, <span class="hljs-string">&#x27;created_at&#x27;</span>, <span class="hljs-string">&#x27;updated_at&#x27;</span>, <span class="hljs-string">&#x27;closed_at&#x27;</span>, <span class="hljs-string">&#x27;author_association&#x27;</span>, <span class="hljs-string">&#x27;active_lock_reason&#x27;</span>, <span class="hljs-string">&#x27;pull_request&#x27;</span>, <span class="hljs-string">&#x27;body&#x27;</span>, <span class="hljs-string">&#x27;timeline_url&#x27;</span>, <span class="hljs-string">&#x27;performed_via_github_app&#x27;</span>],
    num_rows: <span class="hljs-number">3019</span>
})`}}),$s=new pn({}),ks=new C({props:{code:`sample = issues_dataset.shuffle(seed=666).select(range(3))

# In ra URL v\xE0 k\xE9o v\u1EC1 c\xE1c m\u1EE5c y\xEAu c\u1EA7u
for url, pr in zip(sample["html_url"], sample["pull_request"]):
    print(f">> URL: {url}")
    print(f">> Pull request: {pr}\\n")`,highlighted:`sample = issues_dataset.shuffle(seed=<span class="hljs-number">666</span>).select(<span class="hljs-built_in">range</span>(<span class="hljs-number">3</span>))

<span class="hljs-comment"># In ra URL v\xE0 k\xE9o v\u1EC1 c\xE1c m\u1EE5c y\xEAu c\u1EA7u</span>
<span class="hljs-keyword">for</span> url, pr <span class="hljs-keyword">in</span> <span class="hljs-built_in">zip</span>(sample[<span class="hljs-string">&quot;html_url&quot;</span>], sample[<span class="hljs-string">&quot;pull_request&quot;</span>]):
    <span class="hljs-built_in">print</span>(<span class="hljs-string">f&quot;&gt;&gt; URL: <span class="hljs-subst">{url}</span>&quot;</span>)
    <span class="hljs-built_in">print</span>(<span class="hljs-string">f&quot;&gt;&gt; Pull request: <span class="hljs-subst">{pr}</span>\\n&quot;</span>)`}}),js=new C({props:{code:`>> URL: https://github.com/huggingface/datasets/pull/850
>> Pull request: {'url': 'https://api.github.com/repos/huggingface/datasets/pulls/850', 'html_url': 'https://github.com/huggingface/datasets/pull/850', 'diff_url': 'https://github.com/huggingface/datasets/pull/850.diff', 'patch_url': 'https://github.com/huggingface/datasets/pull/850.patch'}

>> URL: https://github.com/huggingface/datasets/issues/2773
>> Pull request: None

>> URL: https://github.com/huggingface/datasets/pull/783
>> Pull request: {'url': 'https://api.github.com/repos/huggingface/datasets/pulls/783', 'html_url': 'https://github.com/huggingface/datasets/pull/783', 'diff_url': 'https://github.com/huggingface/datasets/pull/783.diff', 'patch_url': 'https://github.com/huggingface/datasets/pull/783.patch'}`,highlighted:`&gt;&gt; URL: https://github.com/huggingface/datasets/pull/<span class="hljs-number">850</span>
&gt;&gt; Pull request: {<span class="hljs-string">&#x27;url&#x27;</span>: <span class="hljs-string">&#x27;https://api.github.com/repos/huggingface/datasets/pulls/850&#x27;</span>, <span class="hljs-string">&#x27;html_url&#x27;</span>: <span class="hljs-string">&#x27;https://github.com/huggingface/datasets/pull/850&#x27;</span>, <span class="hljs-string">&#x27;diff_url&#x27;</span>: <span class="hljs-string">&#x27;https://github.com/huggingface/datasets/pull/850.diff&#x27;</span>, <span class="hljs-string">&#x27;patch_url&#x27;</span>: <span class="hljs-string">&#x27;https://github.com/huggingface/datasets/pull/850.patch&#x27;</span>}

&gt;&gt; URL: https://github.com/huggingface/datasets/issues/<span class="hljs-number">2773</span>
&gt;&gt; Pull request: <span class="hljs-literal">None</span>

&gt;&gt; URL: https://github.com/huggingface/datasets/pull/<span class="hljs-number">783</span>
&gt;&gt; Pull request: {<span class="hljs-string">&#x27;url&#x27;</span>: <span class="hljs-string">&#x27;https://api.github.com/repos/huggingface/datasets/pulls/783&#x27;</span>, <span class="hljs-string">&#x27;html_url&#x27;</span>: <span class="hljs-string">&#x27;https://github.com/huggingface/datasets/pull/783&#x27;</span>, <span class="hljs-string">&#x27;diff_url&#x27;</span>: <span class="hljs-string">&#x27;https://github.com/huggingface/datasets/pull/783.diff&#x27;</span>, <span class="hljs-string">&#x27;patch_url&#x27;</span>: <span class="hljs-string">&#x27;https://github.com/huggingface/datasets/pull/783.patch&#x27;</span>}`}}),Es=new C({props:{code:`issues_dataset = issues_dataset.map(
    lambda x: {"is_pull_request": False if x["pull_request"] is None else True}
)`,highlighted:`issues_dataset = issues_dataset.<span class="hljs-built_in">map</span>(
    <span class="hljs-keyword">lambda</span> x: {<span class="hljs-string">&quot;is_pull_request&quot;</span>: <span class="hljs-literal">False</span> <span class="hljs-keyword">if</span> x[<span class="hljs-string">&quot;pull_request&quot;</span>] <span class="hljs-keyword">is</span> <span class="hljs-literal">None</span> <span class="hljs-keyword">else</span> <span class="hljs-literal">True</span>}
)`}}),Pt=new rn({props:{$$slots:{default:[_o]},$$scope:{ctx:M}}}),ws=new pn({}),qs=new pn({}),Ps=new C({props:{code:`issue_number = 2792
url = f"https://api.github.com/repos/huggingface/datasets/issues/{issue_number}/comments"
response = requests.get(url, headers=headers)
response.json()`,highlighted:`issue_number = <span class="hljs-number">2792</span>
url = <span class="hljs-string">f&quot;https://api.github.com/repos/huggingface/datasets/issues/<span class="hljs-subst">{issue_number}</span>/comments&quot;</span>
response = requests.get(url, headers=headers)
response.json()`}}),Ns=new C({props:{code:`[{'url': 'https://api.github.com/repos/huggingface/datasets/issues/comments/897594128',
  'html_url': 'https://github.com/huggingface/datasets/pull/2792#issuecomment-897594128',
  'issue_url': 'https://api.github.com/repos/huggingface/datasets/issues/2792',
  'id': 897594128,
  'node_id': 'IC_kwDODunzps41gDMQ',
  'user': {'login': 'bhavitvyamalik',
   'id': 19718818,
   'node_id': 'MDQ6VXNlcjE5NzE4ODE4',
   'avatar_url': 'https://avatars.githubusercontent.com/u/19718818?v=4',
   'gravatar_id': '',
   'url': 'https://api.github.com/users/bhavitvyamalik',
   'html_url': 'https://github.com/bhavitvyamalik',
   'followers_url': 'https://api.github.com/users/bhavitvyamalik/followers',
   'following_url': 'https://api.github.com/users/bhavitvyamalik/following{/other_user}',
   'gists_url': 'https://api.github.com/users/bhavitvyamalik/gists{/gist_id}',
   'starred_url': 'https://api.github.com/users/bhavitvyamalik/starred{/owner}{/repo}',
   'subscriptions_url': 'https://api.github.com/users/bhavitvyamalik/subscriptions',
   'organizations_url': 'https://api.github.com/users/bhavitvyamalik/orgs',
   'repos_url': 'https://api.github.com/users/bhavitvyamalik/repos',
   'events_url': 'https://api.github.com/users/bhavitvyamalik/events{/privacy}',
   'received_events_url': 'https://api.github.com/users/bhavitvyamalik/received_events',
   'type': 'User',
   'site_admin': False},
  'created_at': '2021-08-12T12:21:52Z',
  'updated_at': '2021-08-12T12:31:17Z',
  'author_association': 'CONTRIBUTOR',
  'body': "@albertvillanova my tests are failing here:\\r\\n\`\`\`\\r\\ndataset_name = 'gooaq'\\r\\n\\r\\n    def test_load_dataset(self, dataset_name):\\r\\n        configs = self.dataset_tester.load_all_configs(dataset_name, is_local=True)[:1]\\r\\n>       self.dataset_tester.check_load_dataset(dataset_name, configs, is_local=True, use_local_dummy_data=True)\\r\\n\\r\\ntests/test_dataset_common.py:234: \\r\\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \\r\\ntests/test_dataset_common.py:187: in check_load_dataset\\r\\n    self.parent.assertTrue(len(dataset[split]) > 0)\\r\\nE   AssertionError: False is not true\\r\\n\`\`\`\\r\\nWhen I try loading dataset on local machine it works fine. Any suggestions on how can I avoid this error?",
  'performed_via_github_app': None}]`,highlighted:`[{<span class="hljs-string">&#x27;url&#x27;</span>: <span class="hljs-string">&#x27;https://api.github.com/repos/huggingface/datasets/issues/comments/897594128&#x27;</span>,
  <span class="hljs-string">&#x27;html_url&#x27;</span>: <span class="hljs-string">&#x27;https://github.com/huggingface/datasets/pull/2792#issuecomment-897594128&#x27;</span>,
  <span class="hljs-string">&#x27;issue_url&#x27;</span>: <span class="hljs-string">&#x27;https://api.github.com/repos/huggingface/datasets/issues/2792&#x27;</span>,
  <span class="hljs-string">&#x27;id&#x27;</span>: <span class="hljs-number">897594128</span>,
  <span class="hljs-string">&#x27;node_id&#x27;</span>: <span class="hljs-string">&#x27;IC_kwDODunzps41gDMQ&#x27;</span>,
  <span class="hljs-string">&#x27;user&#x27;</span>: {<span class="hljs-string">&#x27;login&#x27;</span>: <span class="hljs-string">&#x27;bhavitvyamalik&#x27;</span>,
   <span class="hljs-string">&#x27;id&#x27;</span>: <span class="hljs-number">19718818</span>,
   <span class="hljs-string">&#x27;node_id&#x27;</span>: <span class="hljs-string">&#x27;MDQ6VXNlcjE5NzE4ODE4&#x27;</span>,
   <span class="hljs-string">&#x27;avatar_url&#x27;</span>: <span class="hljs-string">&#x27;https://avatars.githubusercontent.com/u/19718818?v=4&#x27;</span>,
   <span class="hljs-string">&#x27;gravatar_id&#x27;</span>: <span class="hljs-string">&#x27;&#x27;</span>,
   <span class="hljs-string">&#x27;url&#x27;</span>: <span class="hljs-string">&#x27;https://api.github.com/users/bhavitvyamalik&#x27;</span>,
   <span class="hljs-string">&#x27;html_url&#x27;</span>: <span class="hljs-string">&#x27;https://github.com/bhavitvyamalik&#x27;</span>,
   <span class="hljs-string">&#x27;followers_url&#x27;</span>: <span class="hljs-string">&#x27;https://api.github.com/users/bhavitvyamalik/followers&#x27;</span>,
   <span class="hljs-string">&#x27;following_url&#x27;</span>: <span class="hljs-string">&#x27;https://api.github.com/users/bhavitvyamalik/following{/other_user}&#x27;</span>,
   <span class="hljs-string">&#x27;gists_url&#x27;</span>: <span class="hljs-string">&#x27;https://api.github.com/users/bhavitvyamalik/gists{/gist_id}&#x27;</span>,
   <span class="hljs-string">&#x27;starred_url&#x27;</span>: <span class="hljs-string">&#x27;https://api.github.com/users/bhavitvyamalik/starred{/owner}{/repo}&#x27;</span>,
   <span class="hljs-string">&#x27;subscriptions_url&#x27;</span>: <span class="hljs-string">&#x27;https://api.github.com/users/bhavitvyamalik/subscriptions&#x27;</span>,
   <span class="hljs-string">&#x27;organizations_url&#x27;</span>: <span class="hljs-string">&#x27;https://api.github.com/users/bhavitvyamalik/orgs&#x27;</span>,
   <span class="hljs-string">&#x27;repos_url&#x27;</span>: <span class="hljs-string">&#x27;https://api.github.com/users/bhavitvyamalik/repos&#x27;</span>,
   <span class="hljs-string">&#x27;events_url&#x27;</span>: <span class="hljs-string">&#x27;https://api.github.com/users/bhavitvyamalik/events{/privacy}&#x27;</span>,
   <span class="hljs-string">&#x27;received_events_url&#x27;</span>: <span class="hljs-string">&#x27;https://api.github.com/users/bhavitvyamalik/received_events&#x27;</span>,
   <span class="hljs-string">&#x27;type&#x27;</span>: <span class="hljs-string">&#x27;User&#x27;</span>,
   <span class="hljs-string">&#x27;site_admin&#x27;</span>: <span class="hljs-literal">False</span>},
  <span class="hljs-string">&#x27;created_at&#x27;</span>: <span class="hljs-string">&#x27;2021-08-12T12:21:52Z&#x27;</span>,
  <span class="hljs-string">&#x27;updated_at&#x27;</span>: <span class="hljs-string">&#x27;2021-08-12T12:31:17Z&#x27;</span>,
  <span class="hljs-string">&#x27;author_association&#x27;</span>: <span class="hljs-string">&#x27;CONTRIBUTOR&#x27;</span>,
  <span class="hljs-string">&#x27;body&#x27;</span>: <span class="hljs-string">&quot;@albertvillanova my tests are failing here:\\r\\n\`\`\`\\r\\ndataset_name = &#x27;gooaq&#x27;\\r\\n\\r\\n    def test_load_dataset(self, dataset_name):\\r\\n        configs = self.dataset_tester.load_all_configs(dataset_name, is_local=True)[:1]\\r\\n&gt;       self.dataset_tester.check_load_dataset(dataset_name, configs, is_local=True, use_local_dummy_data=True)\\r\\n\\r\\ntests/test_dataset_common.py:234: \\r\\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \\r\\ntests/test_dataset_common.py:187: in check_load_dataset\\r\\n    self.parent.assertTrue(len(dataset[split]) &gt; 0)\\r\\nE   AssertionError: False is not true\\r\\n\`\`\`\\r\\nWhen I try loading dataset on local machine it works fine. Any suggestions on how can I avoid this error?&quot;</span>,
  <span class="hljs-string">&#x27;performed_via_github_app&#x27;</span>: <span class="hljs-literal">None</span>}]`}}),Cs=new C({props:{code:`def get_comments(issue_number):
    url = f"https://api.github.com/repos/huggingface/datasets/issues/{issue_number}/comments"
    response = requests.get(url, headers=headers)
    return [r["body"] for r in response.json()]


# Ki\u1EC3m tra h\xE0m c\xF3 ho\u1EA1t \u0111\u1ED9ng nh\u01B0 mong \u0111\u1EE3i kh\xF4ng
get_comments(2792)`,highlighted:`<span class="hljs-keyword">def</span> <span class="hljs-title function_">get_comments</span>(<span class="hljs-params">issue_number</span>):
    url = <span class="hljs-string">f&quot;https://api.github.com/repos/huggingface/datasets/issues/<span class="hljs-subst">{issue_number}</span>/comments&quot;</span>
    response = requests.get(url, headers=headers)
    <span class="hljs-keyword">return</span> [r[<span class="hljs-string">&quot;body&quot;</span>] <span class="hljs-keyword">for</span> r <span class="hljs-keyword">in</span> response.json()]


<span class="hljs-comment"># Ki\u1EC3m tra h\xE0m c\xF3 ho\u1EA1t \u0111\u1ED9ng nh\u01B0 mong \u0111\u1EE3i kh\xF4ng</span>
get_comments(<span class="hljs-number">2792</span>)`}}),Os=new C({props:{code:"[\"@albertvillanova my tests are failing here:\\r\\n```\\r\\ndataset_name = 'gooaq'\\r\\n\\r\\n    def test_load_dataset(self, dataset_name):\\r\\n        configs = self.dataset_tester.load_all_configs(dataset_name, is_local=True)[:1]\\r\\n>       self.dataset_tester.check_load_dataset(dataset_name, configs, is_local=True, use_local_dummy_data=True)\\r\\n\\r\\ntests/test_dataset_common.py:234: \\r\\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \\r\\ntests/test_dataset_common.py:187: in check_load_dataset\\r\\n    self.parent.assertTrue(len(dataset[split]) > 0)\\r\\nE   AssertionError: False is not true\\r\\n```\\r\\nWhen I try loading dataset on local machine it works fine. Any suggestions on how can I avoid this error?\"]",highlighted:'[<span class="hljs-string">&quot;@albertvillanova my tests are failing here:\\r\\n```\\r\\ndataset_name = &#x27;gooaq&#x27;\\r\\n\\r\\n    def test_load_dataset(self, dataset_name):\\r\\n        configs = self.dataset_tester.load_all_configs(dataset_name, is_local=True)[:1]\\r\\n&gt;       self.dataset_tester.check_load_dataset(dataset_name, configs, is_local=True, use_local_dummy_data=True)\\r\\n\\r\\ntests/test_dataset_common.py:234: \\r\\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \\r\\ntests/test_dataset_common.py:187: in check_load_dataset\\r\\n    self.parent.assertTrue(len(dataset[split]) &gt; 0)\\r\\nE   AssertionError: False is not true\\r\\n```\\r\\nWhen I try loading dataset on local machine it works fine. Any suggestions on how can I avoid this error?&quot;</span>]'}}),As=new C({props:{code:`# T\xF9y thu\u1ED9c v\xE0o k\u1EBFt n\u1ED1i internet c\u1EE7a b\u1EA1n, qu\xE1 tr\xECnh n\xE0y c\xF3 th\u1EC3 m\u1EA5t v\xE0i ph\xFAt ...
issues_with_comments_dataset = issues_dataset.map(
    lambda x: {"comments": get_comments(x["number"])}
)`,highlighted:`<span class="hljs-comment"># T\xF9y thu\u1ED9c v\xE0o k\u1EBFt n\u1ED1i internet c\u1EE7a b\u1EA1n, qu\xE1 tr\xECnh n\xE0y c\xF3 th\u1EC3 m\u1EA5t v\xE0i ph\xFAt ...</span>
issues_with_comments_dataset = issues_dataset.<span class="hljs-built_in">map</span>(
    <span class="hljs-keyword">lambda</span> x: {<span class="hljs-string">&quot;comments&quot;</span>: get_comments(x[<span class="hljs-string">&quot;number&quot;</span>])}
)`}}),Gs=new C({props:{code:'issues_with_comments_dataset.to_json("issues-datasets-with-hf-doc-builder.jsonl")',highlighted:'issues_with_comments_dataset.to_json(<span class="hljs-string">&quot;issues-datasets-with-hf-doc-builder.jsonl&quot;</span>)'}}),Ss=new pn({}),Is=new oo({props:{id:"HaN6qCr_Afc"}}),Ms=new C({props:{code:`from huggingface_hub import list_datasets

all_datasets = list_datasets()
print(f"Number of datasets on Hub: {len(all_datasets)}")
print(all_datasets[0])`,highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> list_datasets

all_datasets = list_datasets()
<span class="hljs-built_in">print</span>(<span class="hljs-string">f&quot;Number of datasets on Hub: <span class="hljs-subst">{<span class="hljs-built_in">len</span>(all_datasets)}</span>&quot;</span>)
<span class="hljs-built_in">print</span>(all_datasets[<span class="hljs-number">0</span>])`}}),Ls=new C({props:{code:`Number of datasets on Hub: 1487
Dataset Name: acronym_identification, Tags: ['annotations_creators:expert-generated', 'language_creators:found', 'languages:en', 'licenses:mit', 'multilinguality:monolingual', 'size_categories:10K<n<100K', 'source_datasets:original', 'task_categories:structure-prediction', 'task_ids:structure-prediction-other-acronym-identification']`,highlighted:`Number of datasets on Hub: <span class="hljs-number">1487</span>
Dataset Name: acronym_identification, Tags: [<span class="hljs-string">&#x27;annotations_creators:expert-generated&#x27;</span>, <span class="hljs-string">&#x27;language_creators:found&#x27;</span>, <span class="hljs-string">&#x27;languages:en&#x27;</span>, <span class="hljs-string">&#x27;licenses:mit&#x27;</span>, <span class="hljs-string">&#x27;multilinguality:monolingual&#x27;</span>, <span class="hljs-string">&#x27;size_categories:10K&lt;n&lt;100K&#x27;</span>, <span class="hljs-string">&#x27;source_datasets:original&#x27;</span>, <span class="hljs-string">&#x27;task_categories:structure-prediction&#x27;</span>, <span class="hljs-string">&#x27;task_ids:structure-prediction-other-acronym-identification&#x27;</span>]`}}),Bs=new C({props:{code:`from huggingface_hub import notebook_login

notebook_login()`,highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> notebook_login

notebook_login()`}}),Us=new C({props:{code:"huggingface-cli login",highlighted:"huggingface-cli login"}}),Fs=new C({props:{code:`from huggingface_hub import create_repo

repo_url = create_repo(name="github-issues", repo_type="dataset")
repo_url`,highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> create_repo

repo_url = create_repo(name=<span class="hljs-string">&quot;github-issues&quot;</span>, repo_type=<span class="hljs-string">&quot;dataset&quot;</span>)
repo_url`}}),Vs=new C({props:{code:"'https://huggingface.co/datasets/lewtun/github-issues'",highlighted:'<span class="hljs-string">&#x27;https://huggingface.co/datasets/lewtun/github-issues&#x27;</span>'}}),Mt=new rn({props:{$$slots:{default:[vo]},$$scope:{ctx:M}}}),zs=new C({props:{code:`from huggingface_hub import Repository

repo = Repository(local_dir="github-issues", clone_from=repo_url)
!cp issues-datasets-with-hf-doc-builder.jsonl github-issues/`,highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> Repository

repo = Repository(local_dir=<span class="hljs-string">&quot;github-issues&quot;</span>, clone_from=repo_url)
!cp issues-datasets-<span class="hljs-keyword">with</span>-hf-doc-builder.jsonl github-issues/`}}),Ks=new C({props:{code:'repo.lfs_track("*.jsonl")',highlighted:'repo.lfs_track(<span class="hljs-string">&quot;*.jsonl&quot;</span>)'}}),Js=new C({props:{code:"repo.push_to_hub()",highlighted:"repo.push_to_hub()"}}),Xs=new C({props:{code:`remote_dataset = load_dataset("lewtun/github-issues", split="train")
remote_dataset`,highlighted:`remote_dataset = load_dataset(<span class="hljs-string">&quot;lewtun/github-issues&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>)
remote_dataset`}}),Ws=new C({props:{code:`Dataset({
    features: ['url', 'repository_url', 'labels_url', 'comments_url', 'events_url', 'html_url', 'id', 'node_id', 'number', 'title', 'user', 'labels', 'state', 'locked', 'assignee', 'assignees', 'milestone', 'comments', 'created_at', 'updated_at', 'closed_at', 'author_association', 'active_lock_reason', 'pull_request', 'body', 'performed_via_github_app', 'is_pull_request'],
    num_rows: 2855
})`,highlighted:`Dataset({
    features: [<span class="hljs-string">&#x27;url&#x27;</span>, <span class="hljs-string">&#x27;repository_url&#x27;</span>, <span class="hljs-string">&#x27;labels_url&#x27;</span>, <span class="hljs-string">&#x27;comments_url&#x27;</span>, <span class="hljs-string">&#x27;events_url&#x27;</span>, <span class="hljs-string">&#x27;html_url&#x27;</span>, <span class="hljs-string">&#x27;id&#x27;</span>, <span class="hljs-string">&#x27;node_id&#x27;</span>, <span class="hljs-string">&#x27;number&#x27;</span>, <span class="hljs-string">&#x27;title&#x27;</span>, <span class="hljs-string">&#x27;user&#x27;</span>, <span class="hljs-string">&#x27;labels&#x27;</span>, <span class="hljs-string">&#x27;state&#x27;</span>, <span class="hljs-string">&#x27;locked&#x27;</span>, <span class="hljs-string">&#x27;assignee&#x27;</span>, <span class="hljs-string">&#x27;assignees&#x27;</span>, <span class="hljs-string">&#x27;milestone&#x27;</span>, <span class="hljs-string">&#x27;comments&#x27;</span>, <span class="hljs-string">&#x27;created_at&#x27;</span>, <span class="hljs-string">&#x27;updated_at&#x27;</span>, <span class="hljs-string">&#x27;closed_at&#x27;</span>, <span class="hljs-string">&#x27;author_association&#x27;</span>, <span class="hljs-string">&#x27;active_lock_reason&#x27;</span>, <span class="hljs-string">&#x27;pull_request&#x27;</span>, <span class="hljs-string">&#x27;body&#x27;</span>, <span class="hljs-string">&#x27;performed_via_github_app&#x27;</span>, <span class="hljs-string">&#x27;is_pull_request&#x27;</span>],
    num_rows: <span class="hljs-number">2855</span>
})`}}),Ft=new rn({props:{$$slots:{default:[bo]},$$scope:{ctx:M}}}),Ys=new pn({}),Jt=new rn({props:{$$slots:{default:[xo]},$$scope:{ctx:M}}}),Qt=new rn({props:{$$slots:{default:[yo]},$$scope:{ctx:M}}}),{c(){o=i("meta"),T=p(),m=i("h1"),j=i("a"),w=i("span"),f(d.$$.fragment),E=p(),H=i("span"),$=a("T\u1EA1o t\u1EADp d\u1EEF li\u1EC7u c\u1EE7a ri\xEAng b\u1EA1n"),k=p(),f(P.$$.fragment),D=p(),N=i("p"),A=a("\u0110\xF4i khi t\u1EADp d\u1EEF li\u1EC7u m\xE0 b\u1EA1n c\u1EA7n \u0111\u1EC3 x\xE2y d\u1EF1ng m\u1ED9t \u1EE9ng d\u1EE5ng NLP kh\xF4ng t\u1ED3n t\u1EA1i, v\xEC v\u1EADy b\u1EA1n s\u1EBD c\u1EA7n ph\u1EA3i t\u1EF1 t\u1EA1o. Trong ph\u1EA7n n\xE0y, ch\xFAng t\xF4i s\u1EBD h\u01B0\u1EDBng d\u1EABn b\u1EA1n c\xE1ch t\u1EA1o m\u1ED9t kho t\xE0i li\u1EC7u g\u1ED3m "),q=i("a"),O=a("C\xE1c v\u1EA5n \u0111\u1EC1 v\u1EC1 GitHub"),z=a(", th\u01B0\u1EDDng \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng \u0111\u1EC3 theo d\xF5i c\xE1c l\u1ED7i ho\u1EB7c t\xEDnh n\u0103ng trong kho l\u01B0u tr\u1EEF GitHub. Kho t\xE0i li\u1EC7u n\xE0y c\xF3 th\u1EC3 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng cho c\xE1c m\u1EE5c \u0111\xEDch kh\xE1c nhau, bao g\u1ED3m:"),R=p(),G=i("ul"),K=i("li"),ut=a("Kh\xE1m ph\xE1 m\u1EA5t bao l\xE2u \u0111\u1EC3 \u0111\xF3ng c\xE1c v\u1EA5n \u0111\u1EC1 \u0111ang m\u1EDF ho\u1EB7c y\xEAu c\u1EA7u k\xE9o v\u1EC1 (pull requests)"),S=p(),J=i("li"),un=a("\u0110\xE0o t\u1EA1o "),yt=i("em"),on=a("multilabel classifier"),gn=a(" hay "),$t=i("em"),vi=a("tr\xECnh ph\xE2n lo\u1EA1i \u0111a nh\xE3n"),bi=a(" c\xF3 th\u1EC3 g\u1EAFn th\u1EBB c\xE1c v\u1EA5n \u0111\u1EC1 v\u1EDBi si\xEAu d\u1EEF li\u1EC7u d\u1EF1a tr\xEAn m\xF4 t\u1EA3 c\u1EE7a v\u1EA5n \u0111\u1EC1 (v\xED d\u1EE5: \u201Cl\u1ED7i\u201D, \u201Cc\u1EA3i ti\u1EBFn\u201D ho\u1EB7c \u201Cc\xE2u h\u1ECFi\u201D)"),xi=p(),Fn=i("li"),yi=a("T\u1EA1o c\xF4ng c\u1EE5 t\xECm ki\u1EBFm ng\u1EEF ngh\u0129a \u0111\u1EC3 t\xECm nh\u1EEFng v\u1EA5n \u0111\u1EC1 n\xE0o ph\xF9 h\u1EE3p v\u1EDBi truy v\u1EA5n c\u1EE7a ng\u01B0\u1EDDi d\xF9ng"),re=p(),mn=i("p"),$i=a("\u1EDE \u0111\xE2y ch\xFAng ta s\u1EBD t\u1EADp trung v\xE0o vi\u1EC7c t\u1EA1o kho ng\u1EEF li\u1EC7u v\xE0 trong ph\u1EA7n ti\u1EBFp theo ch\xFAng ta s\u1EBD gi\u1EA3i quy\u1EBFt \u1EE9ng d\u1EE5ng t\xECm ki\u1EBFm ng\u1EEF ngh\u0129a. \u0110\u1EC3 gi\u1EEF m\u1ECDi th\u1EE9 \u0111\xFAng meta, ch\xFAng ta s\u1EBD s\u1EED d\u1EE5ng c\xE1c v\u1EA5n \u0111\u1EC1 GitHub li\xEAn quan \u0111\u1EBFn m\u1ED9t d\u1EF1 \xE1n ngu\u1ED3n m\u1EDF ph\u1ED5 bi\u1EBFn: \u{1F917} Datasets! Ch\xFAng ta h\xE3y xem c\xE1ch l\u1EA5y d\u1EEF li\u1EC7u v\xE0 kh\xE1m ph\xE1 th\xF4ng tin c\xF3 trong nh\u1EEFng v\u1EA5n \u0111\u1EC1 n\xE0y."),pe=p(),ot=i("h2"),kt=i("a"),Vn=i("span"),f(Wt.$$.fragment),ki=p(),zn=i("span"),ji=a("L\u1EA5y d\u1EEF li\u1EC7u"),ue=p(),jt=i("p"),Ei=a("B\u1EA1n c\xF3 th\u1EC3 t\xECm th\u1EA5y t\u1EA5t c\u1EA3 c\xE1c v\u1EA5n \u0111\u1EC1 trong \u{1F917} Datasets b\u1EB1ng c\xE1ch \u0111i\u1EC1u h\u01B0\u1EDBng \u0111\u1EBFn "),Yt=i("a"),wi=a("tab Issues"),qi=a(". Nh\u01B0 th\u1EC3 hi\u1EC7n trong \u1EA3nh ch\u1EE5p m\xE0n h\xECnh b\xEAn d\u01B0\u1EDBi, t\u1EA1i th\u1EDDi \u0111i\u1EC3m vi\u1EBFt b\xE0i, c\xF3 331 v\u1EA5n \u0111\u1EC1 \u0111ang m\u1EDF v\xE0 668 v\u1EA5n \u0111\u1EC1 \u0111\xE3 \u0111\xF3ng."),oe=p(),ts=i("div"),ss=i("img"),ge=p(),dn=i("p"),Ti=a("N\u1EBFu b\u1EA1n nh\u1EA5p v\xE0o m\u1ED9t trong nh\u1EEFng v\u1EA5n \u0111\u1EC1 n\xE0y, b\u1EA1n s\u1EBD th\u1EA5y n\xF3 ch\u1EE9a ti\xEAu \u0111\u1EC1, m\xF4 t\u1EA3 v\xE0 m\u1ED9t b\u1ED9 nh\xE3n m\xF4 t\u1EA3 \u0111\u1EB7c tr\u01B0ng cho v\u1EA5n \u0111\u1EC1. M\u1ED9t v\xED d\u1EE5 \u0111\u01B0\u1EE3c hi\u1EC3n th\u1ECB trong \u1EA3nh ch\u1EE5p m\xE0n h\xECnh b\xEAn d\u01B0\u1EDBi."),me=p(),ns=i("div"),as=i("img"),de=p(),W=i("p"),Hi=a("\u0110\u1EC3 t\u1EA3i xu\u1ED1ng t\u1EA5t c\u1EA3 c\xE1c v\u1EA5n \u0111\u1EC1 c\u1EE7a kho l\u01B0u tr\u1EEF, ch\xFAng t\xF4i s\u1EBD s\u1EED d\u1EE5ng "),es=i("a"),Di=a("GitHub REST API"),Pi=a(" \u0111\u1EC3 th\u0103m d\xF2 \u0111i\u1EC3m cu\u1ED1i "),ls=i("a"),Kn=i("code"),Ni=a("Issues"),Ci=a(". \u0110i\u1EC3m cu\u1ED1i n\xE0y tr\u1EA3 v\u1EC1 danh s\xE1ch c\xE1c \u0111\u1ED1i t\u01B0\u1EE3ng JSON, v\u1EDBi m\u1ED7i \u0111\u1ED1i t\u01B0\u1EE3ng ch\u1EE9a m\u1ED9t s\u1ED1 l\u01B0\u1EE3ng l\u1EDBn c\xE1c tr\u01B0\u1EDDng bao g\u1ED3m ti\xEAu \u0111\u1EC1 v\xE0 m\xF4 t\u1EA3 c\u0169ng nh\u01B0 si\xEAu d\u1EEF li\u1EC7u v\u1EC1 tr\u1EA1ng th\xE1i c\u1EE7a v\u1EA5n \u0111\u1EC1, v.v."),fe=p(),Et=i("p"),Oi=a("M\u1ED9t c\xE1ch thu\u1EADn ti\u1EC7n \u0111\u1EC3 t\u1EA3i c\xE1c v\u1EA5n \u0111\u1EC1 xu\u1ED1ng l\xE0 th\xF4ng qua th\u01B0 vi\u1EC7n "),Jn=i("code"),Ai=a("requests"),Gi=a(", \u0111\xE2y l\xE0 c\xE1ch ti\xEAu chu\u1EA9n \u0111\u1EC3 th\u1EF1c hi\u1EC7n c\xE1c y\xEAu c\u1EA7u HTTP trong Python. B\u1EA1n c\xF3 th\u1EC3 c\xE0i \u0111\u1EB7t th\u01B0 vi\u1EC7n b\u1EB1ng c\xE1ch ch\u1EA1y:"),_e=p(),f(is.$$.fragment),ve=p(),Y=i("p"),Si=a("Sau khi th\u01B0 vi\u1EC7n \u0111\u01B0\u1EE3c c\xE0i \u0111\u1EB7t, b\u1EA1n c\xF3 th\u1EC3 th\u1EF1c hi\u1EC7n c\xE1c y\xEAu c\u1EA7u GET t\u1EDBi \u0111i\u1EC3m cu\u1ED1i "),Qn=i("code"),Ii=a("Issues"),Ri=a(" b\u1EB1ng c\xE1ch g\u1ECDi h\xE0m "),Zn=i("code"),Mi=a("requests.get()"),Li=a(". V\xED d\u1EE5: b\u1EA1n c\xF3 th\u1EC3 ch\u1EA1y l\u1EC7nh sau \u0111\u1EC3 truy xu\u1EA5t v\u1EA5n \u0111\u1EC1 \u0111\u1EA7u ti\xEAn tr\xEAn trang \u0111\u1EA7u ti\xEAn:"),be=p(),f(hs.$$.fragment),xe=p(),wt=i("p"),Bi=a("\u0110\u1ED1i t\u01B0\u1EE3ng "),Xn=i("code"),Ui=a("response"),Fi=a(" ch\u1EE9a nhi\u1EC1u th\xF4ng tin h\u1EEFu \xEDch v\u1EC1 y\xEAu c\u1EA7u, bao g\u1ED3m m\xE3 tr\u1EA1ng th\xE1i HTTP:"),ye=p(),f(cs.$$.fragment),$e=p(),f(rs.$$.fragment),ke=p(),B=i("p"),Vi=a("trong \u0111\xF3 tr\u1EA1ng th\xE1i "),Wn=i("code"),zi=a("200"),Ki=a(" c\xF3 ngh\u0129a l\xE0 y\xEAu c\u1EA7u \u0111\xE3 th\xE0nh c\xF4ng (b\u1EA1n c\xF3 th\u1EC3 t\xECm th\u1EA5y danh s\xE1ch c\xE1c m\xE3 tr\u1EA1ng th\xE1i HTTP c\xF3 th\u1EC3 c\xF3 "),ps=i("a"),Ji=a("t\u1EA1i \u0111\xE2y"),Qi=a("). Tuy nhi\xEAn, \u0111i\u1EC1u ch\xFAng ta th\u1EF1c s\u1EF1 quan t\xE2m l\xE0 "),Yn=i("em"),Zi=a("payload"),Xi=a(" hay "),ta=i("em"),Wi=a("t\u1EA3i tr\u1ECDng"),Yi=a(", c\xF3 th\u1EC3 \u0111\u01B0\u1EE3c truy c\u1EADp \u1EDF nhi\u1EC1u \u0111\u1ECBnh d\u1EA1ng kh\xE1c nhau nh\u01B0 byte, chu\u1ED7i ho\u1EB7c JSON. V\xEC ch\xFAng ta bi\u1EBFt c\xE1c v\u1EA5n \u0111\u1EC1 c\u1EE7a ta \u1EDF \u0111\u1ECBnh d\u1EA1ng JSON, h\xE3y ki\u1EC3m tra t\u1EA3i tr\u1ECDng nh\u01B0 sau:"),je=p(),f(us.$$.fragment),Ee=p(),f(os.$$.fragment),we=p(),Q=i("p"),th=a("\u1ED2, \u0111\xF3 l\xE0 r\u1EA5t nhi\u1EC1u th\xF4ng tin! Ch\xFAng ta c\xF3 th\u1EC3 th\u1EA5y c\xE1c tr\u01B0\u1EDDng h\u1EEFu \xEDch nh\u01B0 "),sa=i("code"),sh=a("title"),nh=a(", "),na=i("code"),ah=a("body"),eh=a(",  v\xE0 "),aa=i("code"),lh=a("number"),ih=a(" m\xF4 t\u1EA3 s\u1EF1 c\u1ED1 c\u0169ng nh\u01B0 th\xF4ng tin v\u1EC1 ng\u01B0\u1EDDi d\xF9ng GitHub \u0111\xE3 m\u1EDF s\u1EF1 c\u1ED1."),qe=p(),f(qt.$$.fragment),Te=p(),L=i("p"),hh=a("Nh\u01B0 \u0111\xE3 m\xF4 t\u1EA3 trong "),gs=i("a"),ch=a("t\xE0i li\u1EC7u"),rh=a(" GitHub, c\xE1c y\xEAu c\u1EA7u ch\u01B0a \u0111\u01B0\u1EE3c x\xE1c th\u1EF1c \u0111\u01B0\u1EE3c gi\u1EDBi h\u1EA1n \u1EDF 60 y\xEAu c\u1EA7u m\u1ED7i gi\u1EDD. M\u1EB7c d\xF9 b\u1EA1n c\xF3 th\u1EC3 t\u0103ng tham s\u1ED1 truy v\u1EA5n "),ea=i("code"),ph=a("per_page"),uh=a(" \u0111\u1EC3 gi\u1EA3m s\u1ED1 l\u01B0\u1EE3ng y\xEAu c\u1EA7u b\u1EA1n th\u1EF1c hi\u1EC7n, nh\u01B0ng b\u1EA1n v\u1EABn s\u1EBD \u0111\u1EA1t \u0111\u1EBFn gi\u1EDBi h\u1EA1n t\u1EF7 l\u1EC7 tr\xEAn b\u1EA5t k\u1EF3 kho l\u01B0u tr\u1EEF n\xE0o c\xF3 nhi\u1EC1u h\u01A1n m\u1ED9t v\xE0i ngh\xECn v\u1EA5n \u0111\u1EC1. V\xEC v\u1EADy, thay v\xE0o \u0111\xF3, b\u1EA1n n\xEAn l\xE0m theo "),ms=i("a"),oh=a("h\u01B0\u1EDBng d\u1EABn"),gh=a(" c\u1EE7a GitHub v\u1EC1 c\xE1ch t\u1EA1o "),la=i("em"),mh=a("personal access token"),dh=a(" hay "),ia=i("em"),fh=a("token truy c\u1EADp c\xE1 nh\xE2n"),_h=a(" \u0111\u1EC3 b\u1EA1n c\xF3 th\u1EC3 t\u0103ng gi\u1EDBi h\u1EA1n t\u1ED1c \u0111\u1ED9 l\xEAn 5,000 y\xEAu c\u1EA7u m\u1ED7i gi\u1EDD. Khi b\u1EA1n c\xF3 token c\u1EE7a ri\xEAng m\xECnh, b\u1EA1n c\xF3 th\u1EC3 bao g\u1ED3m n\xF3 nh\u01B0 m\u1ED9t ph\u1EA7n c\u1EE7a ti\xEAu \u0111\u1EC1 y\xEAu c\u1EA7u:"),He=p(),f(ds.$$.fragment),De=p(),f(Tt.$$.fragment),Pe=p(),fn=i("p"),vh=a("B\xE2y gi\u1EDD ch\xFAng ta \u0111\xE3 c\xF3 token truy c\u1EADp c\u1EE7a m\xECnh, h\xE3y t\u1EA1o m\u1ED9t h\xE0m c\xF3 th\u1EC3 t\u1EA3i xu\u1ED1ng t\u1EA5t c\u1EA3 c\xE1c v\u1EA5n \u0111\u1EC1 t\u1EEB kho l\u01B0u tr\u1EEF GitHub:"),Ne=p(),f(fs.$$.fragment),Ce=p(),tt=i("p"),bh=a("B\xE2y gi\u1EDD khi ta g\u1ECDi "),ha=i("code"),xh=a("fetch_issues ()"),yh=a(", n\xF3 s\u1EBD t\u1EA3i xu\u1ED1ng t\u1EA5t c\u1EA3 c\xE1c v\u1EA5n \u0111\u1EC1 theo l\xF4 \u0111\u1EC3 tr\xE1nh v\u01B0\u1EE3t qu\xE1 gi\u1EDBi h\u1EA1n c\u1EE7a GitHub v\u1EC1 s\u1ED1 l\u01B0\u1EE3ng y\xEAu c\u1EA7u m\u1ED7i gi\u1EDD; k\u1EBFt qu\u1EA3 s\u1EBD \u0111\u01B0\u1EE3c l\u01B0u tr\u1EEF trong t\u1EC7p "),ca=i("em"),$h=a("repository_name-issues.jsonl"),kh=a(", trong \u0111\xF3 m\u1ED7i d\xF2ng l\xE0 m\u1ED9t \u0111\u1ED1i t\u01B0\u1EE3ng JSON \u0111\u1EA1i di\u1EC7n cho m\u1ED9t v\u1EA5n \u0111\u1EC1. H\xE3y s\u1EED d\u1EE5ng ch\u1EE9c n\u0103ng n\xE0y \u0111\u1EC3 l\u1EA5y t\u1EA5t c\u1EA3 c\xE1c v\u1EA5n \u0111\u1EC1 t\u1EEB \u{1F917} Datasets:"),Oe=p(),f(_s.$$.fragment),Ae=p(),Ht=i("p"),jh=a("Sau khi c\xE1c v\u1EA5n \u0111\u1EC1 \u0111\u01B0\u1EE3c t\u1EA3i xu\u1ED1ng, ch\xFAng t\xF4i c\xF3 th\u1EC3 l\xF4i ch\xFAng c\u1EE5c b\u1ED9 b\u1EB1ng c\xE1ch s\u1EED d\u1EE5ng c\xE1c k\u1EF9 n\u0103ng m\u1EDBi khai ph\xE1 t\u1EEB "),_n=i("a"),Eh=a("ph\u1EA7n 2"),wh=a(":"),Ge=p(),f(vs.$$.fragment),Se=p(),f(bs.$$.fragment),Ie=p(),st=i("p"),qh=a("Tuy\u1EC7t v\u1EDDi, ch\xFAng ta \u0111\xE3 t\u1EA1o t\u1EADp d\u1EEF li\u1EC7u \u0111\u1EA7u ti\xEAn c\u1EE7a m\xECnh t\u1EEB \u0111\u1EA7u! Nh\u01B0ng t\u1EA1i sao l\u1EA1i c\xF3 v\xE0i ngh\xECn v\u1EA5n \u0111\u1EC1 khi "),xs=i("a"),Th=a("tab S\u1EF1 c\u1ED1"),Hh=a(" c\u1EE7a kho l\u01B0u tr\u1EEF \u{1F917} Datasets ch\u1EC9 hi\u1EC3n th\u1ECB t\u1ED5ng s\u1ED1 1,000 v\u1EA5n \u0111\u1EC1 \u{1F914}? Nh\u01B0 \u0111\u01B0\u1EE3c m\xF4 t\u1EA3 trong "),ys=i("a"),Dh=a("t\xE0i li\u1EC7u"),Ph=a(" GitHub, \u0111\xF3 l\xE0 v\xEC ch\xFAng ta \u0111\xE3 t\u1EA3i xu\u1ED1ng t\u1EA5t c\u1EA3 k\xE9o c\xE1c y\xEAu c\u1EA7u:"),Re=p(),vn=i("blockquote"),gt=i("p"),Nh=a("REST API v3 c\u1EE7a GitHub coi m\u1ECDi y\xEAu c\u1EA7u k\xE9o v\u1EC1 l\xE0 m\u1ED9t v\u1EA5n \u0111\u1EC1, nh\u01B0ng kh\xF4ng ph\u1EA3i m\u1ECDi v\u1EA5n \u0111\u1EC1 \u0111\u1EC1u l\xE0 y\xEAu c\u1EA7u k\xE9o. V\xEC l\xFD do n\xE0y, \u0111i\u1EC3m cu\u1ED1i \u201CIssues\u201D c\xF3 th\u1EC3 tr\u1EA3 v\u1EC1 c\u1EA3 hai s\u1EF1 c\u1ED1 v\xE0 k\xE9o c\xE1c y\xEAu c\u1EA7u trong ph\u1EA3n h\u1ED3i. B\u1EA1n c\xF3 th\u1EC3 x\xE1c \u0111\u1ECBnh c\xE1c y\xEAu c\u1EA7u k\xE9o b\u1EB1ng ph\xEDm "),ra=i("code"),Ch=a("pull_request"),Oh=a(". L\u01B0u \xFD r\u1EB1ng "),pa=i("code"),Ah=a("id"),Gh=a(" c\u1EE7a m\u1ED9t y\xEAu c\u1EA7u k\xE9o \u0111\u01B0\u1EE3c tr\u1EA3 v\u1EC1 t\u1EEB c\xE1c \u0111i\u1EC3m cu\u1ED1i \u201CIssues\u201D s\u1EBD l\xE0 m\u1ED9t id v\u1EA5n \u0111\u1EC1."),Me=p(),bn=i("p"),Sh=a("V\xEC n\u1ED9i dung c\u1EE7a c\xE1c v\u1EA5n \u0111\u1EC1 v\xE0 y\xEAu c\u1EA7u k\xE9o kh\xE1 kh\xE1c nhau, ch\xFAng ta h\xE3y th\u1EF1c hi\u1EC7n m\u1ED9t s\u1ED1 x\u1EED l\xFD tr\u01B0\u1EDBc nh\u1ECF \u0111\u1EC3 cho ph\xE9p ch\xFAng ta ph\xE2n bi\u1EC7t gi\u1EEFa ch\xFAng."),Le=p(),mt=i("h2"),Dt=i("a"),ua=i("span"),f($s.$$.fragment),Ih=p(),oa=i("span"),Rh=a("L\xE0m s\u1EA1ch d\u1EEF li\u1EC7u"),Be=p(),I=i("p"),Mh=a("\u0110o\u1EA1n m\xE3 tr\xEAn t\u1EEB t\xE0i li\u1EC7u c\u1EE7a GitHub cho ch\xFAng ta bi\u1EBFt r\u1EB1ng c\u1ED9t "),ga=i("code"),Lh=a("pull_request"),Bh=a(" c\xF3 th\u1EC3 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng \u0111\u1EC3 ph\xE2n bi\u1EC7t gi\u1EEFa c\xE1c v\u1EA5n \u0111\u1EC1 v\xE0 c\xE1c y\xEAu c\u1EA7u k\xE9o. H\xE3y xem x\xE9t m\u1ED9t m\u1EABu ng\u1EABu nhi\xEAn \u0111\u1EC3 xem s\u1EF1 kh\xE1c bi\u1EC7t l\xE0 g\xEC. Nh\u01B0 ch\xFAng ta \u0111\xE3 l\xE0m trong "),xn=i("a"),Uh=a("ph\u1EA7n 3"),Fh=a(", ch\xFAng ta s\u1EBD x\xE2u chu\u1ED7i "),ma=i("code"),Vh=a("Dataset.shuffle()"),zh=a(" v\xE0 "),da=i("code"),Kh=a("Dataset.select()"),Jh=a(" \u0111\u1EC3 t\u1EA1o m\u1ED9t m\u1EABu ng\u1EABu nhi\xEAn v\xE0 sau \u0111\xF3 n\xE9n c\u1ED9t "),fa=i("code"),Qh=a("html_url"),Zh=a(" v\xE0 "),_a=i("code"),Xh=a("pull_request"),Wh=a(" \u0111\u1EC3 ch\xFAng t\xF4i c\xF3 th\u1EC3 so s\xE1nh c\xE1c URL kh\xE1c nhau:"),Ue=p(),f(ks.$$.fragment),Fe=p(),f(js.$$.fragment),Ve=p(),U=i("p"),Yh=a("\u1EDE \u0111\xE2y, ch\xFAng ta c\xF3 th\u1EC3 th\u1EA5y r\u1EB1ng m\u1ED7i y\xEAu c\u1EA7u k\xE9o \u0111\u01B0\u1EE3c li\xEAn k\u1EBFt v\u1EDBi c\xE1c URL kh\xE1c nhau, trong khi c\xE1c v\u1EA5n \u0111\u1EC1 th\xF4ng th\u01B0\u1EDDng c\xF3 m\u1EE5c nh\u1EADp "),va=i("code"),tc=a("None"),sc=a(". Ch\xFAng ta c\xF3 th\u1EC3 s\u1EED d\u1EE5ng s\u1EF1 ph\xE2n bi\u1EC7t n\xE0y \u0111\u1EC3 t\u1EA1o m\u1ED9t c\u1ED9t "),ba=i("code"),nc=a("is_pull_request"),ac=a(" m\u1EDBi \u0111\u1EC3 ki\u1EC3m tra xem tr\u01B0\u1EDDng "),xa=i("code"),ec=a("pull_request"),lc=a(" c\xF3 ph\u1EA3i l\xE0 "),ya=i("code"),ic=a("None"),hc=a(" hay kh\xF4ng:"),ze=p(),f(Es.$$.fragment),Ke=p(),f(Pt.$$.fragment),Je=p(),yn=i("p"),cc=a("M\u1EB7c d\xF9 ch\xFAng ta c\xF3 th\u1EC3 ti\u1EBFp t\u1EE5c d\u1ECDn d\u1EB9p t\u1EADp d\u1EEF li\u1EC7u b\u1EB1ng c\xE1ch lo\u1EA1i b\u1ECF ho\u1EB7c \u0111\u1ED5i t\xEAn m\u1ED9t s\u1ED1 c\u1ED9t, nh\u01B0ng th\xF4ng th\u01B0\u1EDDng t\u1ED1t nh\u1EA5t l\xE0 gi\u1EEF t\u1EADp d\u1EEF li\u1EC7u \u1EDF tr\u1EA1ng th\xE1i \u201Cth\xF4\u201D nh\u1EA5t c\xF3 th\u1EC3 \u1EDF giai \u0111o\u1EA1n n\xE0y \u0111\u1EC3 c\xF3 th\u1EC3 d\u1EC5 d\xE0ng s\u1EED d\u1EE5ng trong nhi\u1EC1u \u1EE9ng d\u1EE5ng."),Qe=p(),$n=i("p"),rc=a("Tr\u01B0\u1EDBc khi ch\xFAng t\xF4i \u0111\u1EA9y t\u1EADp d\u1EEF li\u1EC7u c\u1EE7a m\xECnh sang Hugging Face Hub, h\xE3y gi\u1EA3i quy\u1EBFt m\u1ED9t th\u1EE9 c\xF2n thi\u1EBFu trong n\xF3: c\xE1c nh\u1EADn x\xE9t li\xEAn quan \u0111\u1EBFn t\u1EEBng v\u1EA5n \u0111\u1EC1 v\xE0 y\xEAu c\u1EA7u k\xE9o. Ch\xFAng ta s\u1EBD th\xEAm ch\xFAng v\xE0o ph\u1EA7i ti\u1EBFp theo v\u1EDBi - b\u1EA1n \u0111o\xE1n \u0111\u01B0\u1EE3c kh\xF4ng - ch\xEDnh l\xE0 API GitHub REST!"),Ze=p(),dt=i("h2"),Nt=i("a"),$a=i("span"),f(ws.$$.fragment),pc=p(),ka=i("span"),uc=a("B\u1ED5 sung t\u1EADp d\u1EEF li\u1EC7u"),Xe=p(),kn=i("p"),oc=a("M\u1EB7c d\xF9 ch\xFAng t\xF4i c\xF3 th\u1EC3 ti\u1EBFp t\u1EE5c d\u1ECDn d\u1EB9p t\u1EADp d\u1EEF li\u1EC7u b\u1EB1ng c\xE1ch lo\u1EA1i b\u1ECF ho\u1EB7c \u0111\u1ED5i t\xEAn m\u1ED9t s\u1ED1 c\u1ED9t, nh\u01B0ng th\xF4ng th\u01B0\u1EDDng t\u1ED1t nh\u1EA5t l\xE0 gi\u1EEF t\u1EADp d\u1EEF li\u1EC7u \u1EDF tr\u1EA1ng th\xE1i \u201Cth\xF4\u201D nh\u1EA5t c\xF3 th\u1EC3 \u1EDF giai \u0111o\u1EA1n n\xE0y \u0111\u1EC3 c\xF3 th\u1EC3 d\u1EC5 d\xE0ng s\u1EED d\u1EE5ng trong nhi\u1EC1u \u1EE9ng d\u1EE5ng."),We=p(),jn=i("p"),gc=a("Tr\u01B0\u1EDBc khi ch\xFAng t\xF4i \u0111\u1EA9y t\u1EADp d\u1EEF li\u1EC7u c\u1EE7a m\xECnh sang Trung t\xE2m khu\xF4n m\u1EB7t \xF4m, h\xE3y gi\u1EA3i quy\u1EBFt m\u1ED9t th\u1EE9 c\xF2n thi\u1EBFu trong n\xF3: c\xE1c nh\u1EADn x\xE9t li\xEAn quan \u0111\u1EBFn t\u1EEBng v\u1EA5n \u0111\u1EC1 v\xE0 y\xEAu c\u1EA7u k\xE9o. Ch\xFAng t\xF4i s\u1EBD th\xEAm ch\xFAng v\xE0o l\u1EA7n ti\u1EBFp theo v\u1EDBi - b\u1EA1n \u0111o\xE1n kh\xF4ng - API GitHub REST!"),Ye=p(),ft=i("h2"),Ct=i("a"),ja=i("span"),f(qs.$$.fragment),mc=p(),Ea=i("span"),dc=a("B\u1ED5 sung t\u1EADp d\u1EEF li\u1EC7u"),tl=p(),En=i("p"),fc=a("Nh\u01B0 \u0111\u01B0\u1EE3c hi\u1EC3n th\u1ECB trong \u1EA3nh ch\u1EE5p m\xE0n h\xECnh sau, c\xE1c nh\u1EADn x\xE9t li\xEAn quan \u0111\u1EBFn v\u1EA5n \u0111\u1EC1 ho\u1EB7c y\xEAu c\u1EA7u k\xE9o cung c\u1EA5p ngu\u1ED3n th\xF4ng tin phong ph\xFA, \u0111\u1EB7c bi\u1EC7t n\u1EBFu ch\xFAng ta quan t\xE2m \u0111\u1EBFn vi\u1EC7c x\xE2y d\u1EF1ng m\u1ED9t c\xF4ng c\u1EE5 t\xECm ki\u1EBFm \u0111\u1EC3 tr\u1EA3 l\u1EDDi c\xE1c truy v\u1EA5n c\u1EE7a ng\u01B0\u1EDDi d\xF9ng v\u1EC1 th\u01B0 vi\u1EC7n."),sl=p(),Ts=i("div"),Hs=i("img"),nl=p(),Ot=i("p"),_c=a("API GitHub REST cung c\u1EA5p \u0111i\u1EC3m cu\u1ED1i "),Ds=i("a"),wa=i("code"),vc=a("Comments"),bc=a(" tr\u1EA3 v\u1EC1 t\u1EA5t c\u1EA3 c\xE1c nh\u1EADn x\xE9t \u0111\u01B0\u1EE3c li\xEAn k\u1EBFt v\u1EDBi s\u1ED1 v\u1EA5n \u0111\u1EC1. H\xE3y ki\u1EC3m tra \u0111i\u1EC3m cu\u1ED1i \u0111\u1EC3 xem n\xF3 tr\u1EA3 v\u1EC1 nh\u1EEFng g\xEC:"),al=p(),f(Ps.$$.fragment),el=p(),f(Ns.$$.fragment),ll=p(),Z=i("p"),xc=a("Ch\xFAng ta c\xF3 th\u1EC3 th\u1EA5y r\u1EB1ng nh\u1EADn x\xE9t \u0111\u01B0\u1EE3c l\u01B0u tr\u1EEF trong tr\u01B0\u1EDDng "),qa=i("code"),yc=a("body"),$c=a(", v\xEC v\u1EADy h\xE3y vi\u1EBFt m\u1ED9t h\xE0m \u0111\u01A1n gi\u1EA3n tr\u1EA3 v\u1EC1 t\u1EA5t c\u1EA3 c\xE1c nh\u1EADn x\xE9t li\xEAn quan \u0111\u1EBFn m\u1ED9t v\u1EA5n \u0111\u1EC1 b\u1EB1ng c\xE1ch ch\u1ECDn n\u1ED9i dung "),Ta=i("code"),kc=a("body"),jc=a(" cho m\u1ED7i ph\u1EA7n t\u1EED trong "),Ha=i("code"),Ec=a("response.json()"),wc=a(":"),il=p(),f(Cs.$$.fragment),hl=p(),f(Os.$$.fragment),cl=p(),nt=i("p"),qc=a("\u0110i\u1EC1u n\xE0y c\xF3 v\u1EBB \u1ED5n, v\xEC v\u1EADy h\xE3y s\u1EED d\u1EE5ng "),Da=i("code"),Tc=a("Dataset.map()"),Hc=a(" \u0111\u1EC3 th\xEAm c\u1ED9t "),Pa=i("code"),Dc=a("comments"),Pc=a(" m\u1EDBi cho t\u1EEBng v\u1EA5n \u0111\u1EC1 trong t\u1EADp d\u1EEF li\u1EC7u c\u1EE7a m\xECnh:"),rl=p(),f(As.$$.fragment),pl=p(),wn=i("p"),Nc=a("B\u01B0\u1EDBc cu\u1ED1i c\xF9ng l\xE0 l\u01B0u t\u1EADp d\u1EEF li\u1EC7u t\u0103ng c\u01B0\u1EDDng c\xF9ng v\u1EDBi d\u1EEF li\u1EC7u th\xF4 c\u1EE7a ch\xFAng ta \u0111\u1EC3 ta c\xF3 th\u1EC3 \u0111\u1EA9y c\u1EA3 hai v\xE0o Hub:"),ul=p(),f(Gs.$$.fragment),ol=p(),_t=i("h2"),At=i("a"),Na=i("span"),f(Ss.$$.fragment),Cc=p(),Ca=i("span"),Oc=a("T\u1EA3i t\u1EADp d\u1EEF li\u1EC7u l\xEAn Hugging Face Hub"),gl=p(),f(Is.$$.fragment),ml=p(),at=i("p"),Ac=a("B\xE2y gi\u1EDD ch\xFAng ta \u0111\xE3 c\xF3 t\u1EADp d\u1EEF li\u1EC7u t\u0103ng c\u01B0\u1EDDng c\u1EE7a m\xECnh, \u0111\xE3 \u0111\u1EBFn l\xFAc chuy\u1EC3n n\xF3 v\xE0o Hub \u0111\u1EC3 ch\xFAng ta c\xF3 th\u1EC3 chia s\u1EBB n\xF3 v\u1EDBi c\u1ED9ng \u0111\u1ED3ng! \u0110\u1EC3 t\u1EA3i t\u1EADp d\u1EEF li\u1EC7u l\xEAn, ch\xFAng t\xF4i s\u1EBD s\u1EED d\u1EE5ng "),Rs=i("a"),Gc=a("\u{1F917} th\u01B0 vi\u1EC7n Hub"),Sc=a(", cho ph\xE9p ch\xFAng ta t\u01B0\u01A1ng t\xE1c v\u1EDBi Hugging Face Hub th\xF4ng qua API Python. \u{1F917} Hub \u0111\u01B0\u1EE3c c\xE0i \u0111\u1EB7t s\u1EB5n v\u1EDBi \u{1F917} Transformers, v\xEC v\u1EADy ch\xFAng ta c\xF3 th\u1EC3 s\u1EED d\u1EE5ng tr\u1EF1c ti\u1EBFp. V\xED d\u1EE5: ch\xFAng ta c\xF3 th\u1EC3 s\u1EED d\u1EE5ng h\xE0m "),Oa=i("code"),Ic=a("list_datasets()"),Rc=a(" \u0111\u1EC3 l\u1EA5y th\xF4ng tin v\u1EC1 t\u1EA5t c\u1EA3 c\xE1c t\u1EADp d\u1EEF li\u1EC7u c\xF4ng khai hi\u1EC7n \u0111\u01B0\u1EE3c l\u01B0u tr\u1EEF tr\xEAn Hub:"),dl=p(),f(Ms.$$.fragment),fl=p(),f(Ls.$$.fragment),_l=p(),Gt=i("p"),Mc=a("Ch\xFAng ta c\xF3 th\u1EC3 th\u1EA5y r\u1EB1ng hi\u1EC7n c\xF3 g\u1EA7n 1,500 t\u1EADp d\u1EEF li\u1EC7u tr\xEAn Hub v\xE0 h\xE0m "),Aa=i("code"),Lc=a("list_datasets()"),Bc=a(" c\u0169ng cung c\u1EA5p m\u1ED9t s\u1ED1 si\xEAu d\u1EEF li\u1EC7u c\u01A1 b\u1EA3n v\u1EC1 t\u1EEBng kho l\u01B0u tr\u1EEF t\u1EADp d\u1EEF li\u1EC7u."),vl=p(),St=i("p"),Uc=a("\u0110\u1ED1i v\u1EDBi m\u1EE5c \u0111\xEDch c\u1EE7a m\xECnh, \u0111i\u1EC1u \u0111\u1EA7u ti\xEAn ch\xFAng ta c\u1EA7n l\xE0m l\xE0 t\u1EA1o m\u1ED9t kho l\u01B0u tr\u1EEF t\u1EADp d\u1EEF li\u1EC7u m\u1EDBi tr\xEAn Hub. \u0110\u1EC3 l\xE0m \u0111i\u1EC1u \u0111\xF3, ch\xFAng ta c\u1EA7n m\u1ED9t token x\xE1c th\u1EF1c, c\xF3 th\u1EC3 nh\u1EADn \u0111\u01B0\u1EE3c b\u1EB1ng c\xE1ch \u0111\u1EA7u ti\xEAn \u0111\u0103ng nh\u1EADp v\xE0o Hugging Face Hub b\u1EB1ng h\xE0m "),Ga=i("code"),Fc=a("notebook_login()"),Vc=a(":"),bl=p(),f(Bs.$$.fragment),xl=p(),It=i("p"),zc=a("Thao t\xE1c n\xE0y s\u1EBD t\u1EA1o m\u1ED9t ti\u1EC7n \xEDch m\xE0 b\u1EA1n c\xF3 th\u1EC3 nh\u1EADp t\xEAn ng\u01B0\u1EDDi d\xF9ng v\xE0 m\u1EADt kh\u1EA9u c\u1EE7a m\xECnh v\xE0 token API s\u1EBD \u0111\u01B0\u1EE3c l\u01B0u trong "),Sa=i("em"),Kc=a("~/.huggingface/token"),Jc=a(". N\u1EBFu b\u1EA1n \u0111ang ch\u1EA1y m\xE3 trong m\u1ED9t thi\u1EBFt b\u1ECB \u0111\u1EA7u cu\u1ED1i, b\u1EA1n c\xF3 th\u1EC3 \u0111\u0103ng nh\u1EADp qua CLI \u0111\u1EC3 thay th\u1EBF:"),yl=p(),f(Us.$$.fragment),$l=p(),Rt=i("p"),Qc=a("Sau khi th\u1EF1c hi\u1EC7n xong vi\u1EC7c n\xE0y, ch\xFAng ta c\xF3 th\u1EC3 t\u1EA1o m\u1ED9t kho l\u01B0u tr\u1EEF t\u1EADp d\u1EEF li\u1EC7u m\u1EDBi v\u1EDBi h\xE0m "),Ia=i("code"),Zc=a("create_repo()"),Xc=a(":"),kl=p(),f(Fs.$$.fragment),jl=p(),f(Vs.$$.fragment),El=p(),et=i("p"),Wc=a("Trong v\xED d\u1EE5 n\xE0y, ch\xFAng ta \u0111\xE3 t\u1EA1o m\u1ED9t kho l\u01B0u tr\u1EEF t\u1EADp d\u1EEF li\u1EC7u tr\u1ED1ng c\xF3 t\xEAn l\xE0 "),Ra=i("code"),Yc=a("github-issue"),tr=a(" v\u1EDBi t\xEAn ng\u01B0\u1EDDi d\xF9ng "),Ma=i("code"),sr=a("lewtun"),nr=a(" (t\xEAn ng\u01B0\u1EDDi d\xF9ng ph\u1EA3i l\xE0 t\xEAn ng\u01B0\u1EDDi d\xF9ng Hub c\u1EE7a b\u1EA1n khi b\u1EA1n \u0111ang ch\u1EA1y \u0111o\u1EA1n m\xE3 n\xE0y!)"),wl=p(),f(Mt.$$.fragment),ql=p(),Lt=i("p"),ar=a("Ti\u1EBFp theo, h\xE3y sao ch\xE9p kho l\u01B0u tr\u1EEF t\u1EEB Hub v\xE0o m\xE1y c\u1EE5c b\u1ED9 c\u1EE7a ch\xFAng ta v\xE0 sao ch\xE9p t\u1EC7p t\u1EADp d\u1EEF li\u1EC7u c\u1EE7a ch\xFAng ta v\xE0o \u0111\xF3. \u{1F917} Hub cung c\u1EA5p m\u1ED9t l\u1EDBp "),La=i("code"),er=a("Repository"),lr=a(" ti\u1EC7n d\u1EE5ng bao b\u1ECDc nhi\u1EC1u l\u1EC7nh Git ph\u1ED5 bi\u1EBFn, do \u0111\xF3, \u0111\u1EC3 sao ch\xE9p kho l\u01B0u tr\u1EEF t\u1EEB xa, ch\xFAng ta ch\u1EC9 c\u1EA7n cung c\u1EA5p URL v\xE0 \u0111\u01B0\u1EDDng d\u1EABn c\u1EE5c b\u1ED9 m\xE0 ta mu\u1ED1n sao ch\xE9p t\u1EDBi:"),Tl=p(),f(zs.$$.fragment),Hl=p(),F=i("p"),ir=a("Theo m\u1EB7c \u0111\u1ECBnh, c\xE1c ph\u1EA7n m\u1EDF r\u1ED9ng t\u1EC7p kh\xE1c nhau (ch\u1EB3ng h\u1EA1n nh\u01B0 "),Ba=i("em"),hr=a(".bin"),cr=a(", "),Ua=i("em"),rr=a(".gz"),pr=a(", v\xE0 "),Fa=i("em"),ur=a(".zip"),or=a(") \u0111\u01B0\u1EE3c theo d\xF5i b\u1EB1ng Git LFS \u0111\u1EC3 c\xE1c t\u1EC7p l\u1EDBn c\xF3 th\u1EC3 \u0111\u01B0\u1EE3c t\u1EA1o phi\xEAn b\u1EA3n trong c\xF9ng m\u1ED9t quy tr\xECnh l\xE0m vi\u1EC7c c\u1EE7a Git. B\u1EA1n c\xF3 th\u1EC3 t\xECm th\u1EA5y danh s\xE1ch c\xE1c ph\u1EA7n m\u1EDF r\u1ED9ng t\u1EC7p \u0111\u01B0\u1EE3c theo d\xF5i b\xEAn trong t\u1EC7p "),Va=i("em"),gr=a(".gitattributes"),mr=a(" c\u1EE7a kho l\u01B0u tr\u1EEF. \u0110\u1EC3 \u0111\u01B0a \u0111\u1ECBnh d\u1EA1ng JSON Lines v\xE0o danh s\xE1ch, ch\xFAng ta c\xF3 th\u1EC3 ch\u1EA1y l\u1EC7nh sau:"),Dl=p(),f(Ks.$$.fragment),Pl=p(),Bt=i("p"),dr=a("Sau \u0111\xF3 ta c\xF3 th\u1EC3 d\xF9ng "),za=i("code"),fr=a("Repository.push_to_hub()"),_r=a(" \u0111\u1EC3 \u0111\u1EA9y d\u1EEF li\u1EC7u l\xEAn Hub:"),Nl=p(),f(Js.$$.fragment),Cl=p(),Ut=i("p"),vr=a("N\u1EBFu ch\xFAng ta \u0111i\u1EC1u h\u01B0\u1EDBng \u0111\u1EBFn URL c\xF3 trong "),Ka=i("code"),br=a("repo_url"),xr=a(", b\xE2y gi\u1EDD ch\xFAng ta s\u1EBD th\u1EA5y r\u1EB1ng t\u1EC7p t\u1EADp d\u1EEF li\u1EC7u c\u1EE7a ch\xFAng ta \u0111\xE3 \u0111\u01B0\u1EE3c t\u1EA3i l\xEAn."),Ol=p(),Qs=i("div"),Zs=i("img"),Al=p(),lt=i("p"),yr=a("T\u1EEB \u0111\xE2y, b\u1EA5t k\u1EF3 ai c\u0169ng c\xF3 th\u1EC3 t\u1EA3i xu\u1ED1ng t\u1EADp d\u1EEF li\u1EC7u b\u1EB1ng c\xE1ch ch\u1EC9 c\u1EA7n cung c\u1EA5p "),Ja=i("code"),$r=a("load_dataset()"),kr=a(" v\u1EDBi ID kho l\u01B0u tr\u1EEF d\u01B0\u1EDBi d\u1EA1ng tham s\u1ED1 "),Qa=i("code"),jr=a("path"),Er=a(":"),Gl=p(),f(Xs.$$.fragment),Sl=p(),f(Ws.$$.fragment),Il=p(),it=i("p"),wr=a("Tuy\u1EC7t v\u1EDDi, ch\xFAng ta \u0111\xE3 \u0111\u01B0a t\u1EADp d\u1EEF li\u1EC7u c\u1EE7a m\xECnh v\xE0o Hub v\xE0 n\xF3 c\xF3 s\u1EB5n cho nh\u1EEFng ng\u01B0\u1EDDi kh\xE1c s\u1EED d\u1EE5ng! Ch\u1EC9 c\xF2n m\u1ED9t vi\u1EC7c quan tr\u1ECDng c\u1EA7n l\xE0m: th\xEAm "),Za=i("em"),qr=a("dataset card"),Tr=a("  hay "),Xa=i("em"),Hr=a("th\u1EBB d\u1EEF li\u1EC7u"),Dr=a(" gi\u1EA3i th\xEDch c\xE1ch t\u1EA1o kho t\xE0i li\u1EC7u v\xE0 cung c\u1EA5p th\xF4ng tin h\u1EEFu \xEDch kh\xE1c cho c\u1ED9ng \u0111\u1ED3ng."),Rl=p(),f(Ft.$$.fragment),Ml=p(),vt=i("h2"),Vt=i("a"),Wa=i("span"),f(Ys.$$.fragment),Pr=p(),Ya=i("span"),Nr=a("T\u1EA1o th\u1EBB d\u1EEF li\u1EC7u"),Ll=p(),qn=i("p"),Cr=a("T\u1EADp d\u1EEF li\u1EC7u \u0111\u01B0\u1EE3c ghi ch\xE9p \u0111\u1EA7y \u0111\u1EE7 c\xF3 nhi\u1EC1u kh\u1EA3 n\u0103ng h\u1EEFu \xEDch h\u01A1n cho ng\u01B0\u1EDDi kh\xE1c (bao g\u1ED3m c\u1EA3 t\u01B0\u01A1ng lai c\u1EE7a b\u1EA1n!), v\xEC ch\xFAng cung c\u1EA5p b\u1ED1i c\u1EA3nh \u0111\u1EC3 cho ph\xE9p ng\u01B0\u1EDDi d\xF9ng quy\u1EBFt \u0111\u1ECBnh xem t\u1EADp d\u1EEF li\u1EC7u c\xF3 li\xEAn quan \u0111\u1EBFn t\xE1c v\u1EE5 c\u1EE7a h\u1ECD hay kh\xF4ng v\xE0 \u0111\u1EC3 \u0111\xE1nh gi\xE1 b\u1EA5t k\u1EF3 sai l\u1EC7ch ho\u1EB7c r\u1EE7i ro ti\u1EC1m \u1EA9n n\xE0o li\xEAn quan \u0111\u1EBFn vi\u1EC7c s\u1EED d\u1EE5ng t\u1EADp d\u1EEF li\u1EC7u."),Bl=p(),zt=i("p"),Or=a("Tr\xEAn Hugging Face Hub, th\xF4ng tin n\xE0y \u0111\u01B0\u1EE3c l\u01B0u tr\u1EEF trong m\u1ED7i t\u1EC7p "),te=i("em"),Ar=a("README.md"),Gr=a(" c\u1EE7a kho l\u01B0u tr\u1EEF t\u1EADp d\u1EEF li\u1EC7u. C\xF3 hai b\u01B0\u1EDBc ch\xEDnh b\u1EA1n n\xEAn th\u1EF1c hi\u1EC7n tr\u01B0\u1EDBc khi t\u1EA1o t\u1EC7p n\xE0y:"),Ul=p(),Tn=i("ol"),bt=i("li"),Sr=a("S\u1EED d\u1EE5ng \u1EE9ng d\u1EE5ng "),tn=i("a"),se=i("code"),Ir=a("datasets-tagging"),Rr=a(" \u0111\u1EC3 t\u1EA1o th\u1EBB si\xEAu d\u1EEF li\u1EC7u \u1EDF \u0111\u1ECBnh d\u1EA1ng YAML. C\xE1c th\u1EBB n\xE0y \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng cho nhi\u1EC1u t\xEDnh n\u0103ng t\xECm ki\u1EBFm tr\xEAn Hugging Face Hub v\xE0 \u0111\u1EA3m b\u1EA3o c\xE1c th\xE0nh vi\xEAn c\u1EE7a c\u1ED9ng \u0111\u1ED3ng c\xF3 th\u1EC3 d\u1EC5 d\xE0ng t\xECm th\u1EA5y t\u1EADp d\u1EEF li\u1EC7u c\u1EE7a b\u1EA1n. V\xEC ch\xFAng ta \u0111\xE3 t\u1EA1o t\u1EADp d\u1EEF li\u1EC7u t\xF9y ch\u1EC9nh \u1EDF \u0111\xE2y, b\u1EA1n s\u1EBD c\u1EA7n sao ch\xE9p kho l\u01B0u tr\u1EEF "),ne=i("code"),Mr=a("datasets-tagging"),Lr=a(" v\xE0 ch\u1EA1y \u1EE9ng d\u1EE5ng c\u1EE5c b\u1ED9. \u0110\xE2y l\xE0 giao di\u1EC7n tr\xF4ng nh\u01B0 th\u1EBF n\xE0o:"),Fl=p(),sn=i("div"),nn=i("img"),Vl=p(),Kt=i("p"),Br=a("2.\u0110\u1ECDc "),an=i("a"),Ur=a("H\u01B0\u1EDBng d\u1EABn \u{1F917} Datasets"),Fr=a(" v\u1EC1 c\xE1ch t\u1EA1o th\u1EBB t\u1EADp d\u1EEF li\u1EC7u th\xF4ng tin v\xE0 s\u1EED d\u1EE5ng n\xF3 l\xE0m m\u1EABu."),zl=p(),ht=i("p"),Vr=a("B\u1EA1n c\xF3 th\u1EC3 t\u1EA1o t\u1EC7p "),ae=i("em"),zr=a("README.md"),Kr=a(" tr\u1EF1c ti\u1EBFp tr\xEAn Hub v\xE0 b\u1EA1n c\xF3 th\u1EC3 t\xECm th\u1EA5y m\u1EABu th\u1EBB d\u1EEF li\u1EC7u trong kho l\u01B0u tr\u1EEF d\u1EEF li\u1EC7u "),ee=i("code"),Jr=a("lewtun/github-issues"),Qr=a(". \u1EA2nh ch\u1EE5p m\xE0n h\xECnh c\u1EE7a th\u1EBB d\u1EEF li\u1EC7u \u0111\xE3 \u0111i\u1EC1n \u0111\u1EA7y \u0111\u1EE7 th\xF4ng tin \u0111\u01B0\u1EE3c hi\u1EC3n th\u1ECB b\xEAn d\u01B0\u1EDBi."),Kl=p(),en=i("div"),ln=i("img"),Jl=p(),f(Jt.$$.fragment),Ql=p(),Hn=i("p"),Zr=a("V\u1EADy \u0111\xF3! Trong ph\u1EA7n n\xE0y, ch\xFAng ta \u0111\xE3 th\u1EA5y r\u1EB1ng vi\u1EC7c t\u1EA1o m\u1ED9t t\u1EADp d\u1EEF li\u1EC7u t\u1ED1t c\xF3 th\u1EC3 kh\xE1 li\xEAn quan, nh\u01B0ng may m\u1EAFn thay, vi\u1EC7c t\u1EA3i n\xF3 l\xEAn v\xE0 chia s\u1EBB n\xF3 v\u1EDBi c\u1ED9ng \u0111\u1ED3ng th\xEC kh\xF4ng. Trong ph\u1EA7n ti\u1EBFp theo, ch\xFAng ta s\u1EBD s\u1EED d\u1EE5ng b\u1ED9 d\u1EEF li\u1EC7u m\u1EDBi c\u1EE7a m\xECnh \u0111\u1EC3 t\u1EA1o m\u1ED9t c\xF4ng c\u1EE5 t\xECm ki\u1EBFm ng\u1EEF ngh\u0129a v\u1EDBi \u{1F917} Datasets c\xF3 th\u1EC3 so kh\u1EDBp c\xE1c c\xE2u h\u1ECFi v\u1EDBi c\xE1c v\u1EA5n \u0111\u1EC1 v\xE0 nh\u1EADn x\xE9t c\xF3 li\xEAn quan nh\u1EA5t."),Zl=p(),f(Qt.$$.fragment),this.h()},l(t){const l=po('[data-svelte="svelte-1phssyn"]',document.head);o=h(l,"META",{name:!0,content:!0}),l.forEach(n),T=u(t),m=h(t,"H1",{class:!0});var hn=c(m);j=h(hn,"A",{id:!0,class:!0,href:!0});var le=c(j);w=h(le,"SPAN",{});var ie=c(w);_(d.$$.fragment,ie),ie.forEach(n),le.forEach(n),E=u(hn),H=h(hn,"SPAN",{});var he=c(H);$=e(he,"T\u1EA1o t\u1EADp d\u1EEF li\u1EC7u c\u1EE7a ri\xEAng b\u1EA1n"),he.forEach(n),hn.forEach(n),k=u(t),_(P.$$.fragment,t),D=u(t),N=h(t,"P",{});var cn=c(N);A=e(cn,"\u0110\xF4i khi t\u1EADp d\u1EEF li\u1EC7u m\xE0 b\u1EA1n c\u1EA7n \u0111\u1EC3 x\xE2y d\u1EF1ng m\u1ED9t \u1EE9ng d\u1EE5ng NLP kh\xF4ng t\u1ED3n t\u1EA1i, v\xEC v\u1EADy b\u1EA1n s\u1EBD c\u1EA7n ph\u1EA3i t\u1EF1 t\u1EA1o. Trong ph\u1EA7n n\xE0y, ch\xFAng t\xF4i s\u1EBD h\u01B0\u1EDBng d\u1EABn b\u1EA1n c\xE1ch t\u1EA1o m\u1ED9t kho t\xE0i li\u1EC7u g\u1ED3m "),q=h(cn,"A",{href:!0,rel:!0});var ce=c(q);O=e(ce,"C\xE1c v\u1EA5n \u0111\u1EC1 v\u1EC1 GitHub"),ce.forEach(n),z=e(cn,", th\u01B0\u1EDDng \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng \u0111\u1EC3 theo d\xF5i c\xE1c l\u1ED7i ho\u1EB7c t\xEDnh n\u0103ng trong kho l\u01B0u tr\u1EEF GitHub. Kho t\xE0i li\u1EC7u n\xE0y c\xF3 th\u1EC3 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng cho c\xE1c m\u1EE5c \u0111\xEDch kh\xE1c nhau, bao g\u1ED3m:"),cn.forEach(n),R=u(t),G=h(t,"UL",{});var xt=c(G);K=h(xt,"LI",{});var ap=c(K);ut=e(ap,"Kh\xE1m ph\xE1 m\u1EA5t bao l\xE2u \u0111\u1EC3 \u0111\xF3ng c\xE1c v\u1EA5n \u0111\u1EC1 \u0111ang m\u1EDF ho\u1EB7c y\xEAu c\u1EA7u k\xE9o v\u1EC1 (pull requests)"),ap.forEach(n),S=u(xt),J=h(xt,"LI",{});var Dn=c(J);un=e(Dn,"\u0110\xE0o t\u1EA1o "),yt=h(Dn,"EM",{});var ep=c(yt);on=e(ep,"multilabel classifier"),ep.forEach(n),gn=e(Dn," hay "),$t=h(Dn,"EM",{});var lp=c($t);vi=e(lp,"tr\xECnh ph\xE2n lo\u1EA1i \u0111a nh\xE3n"),lp.forEach(n),bi=e(Dn," c\xF3 th\u1EC3 g\u1EAFn th\u1EBB c\xE1c v\u1EA5n \u0111\u1EC1 v\u1EDBi si\xEAu d\u1EEF li\u1EC7u d\u1EF1a tr\xEAn m\xF4 t\u1EA3 c\u1EE7a v\u1EA5n \u0111\u1EC1 (v\xED d\u1EE5: \u201Cl\u1ED7i\u201D, \u201Cc\u1EA3i ti\u1EBFn\u201D ho\u1EB7c \u201Cc\xE2u h\u1ECFi\u201D)"),Dn.forEach(n),xi=u(xt),Fn=h(xt,"LI",{});var ip=c(Fn);yi=e(ip,"T\u1EA1o c\xF4ng c\u1EE5 t\xECm ki\u1EBFm ng\u1EEF ngh\u0129a \u0111\u1EC3 t\xECm nh\u1EEFng v\u1EA5n \u0111\u1EC1 n\xE0o ph\xF9 h\u1EE3p v\u1EDBi truy v\u1EA5n c\u1EE7a ng\u01B0\u1EDDi d\xF9ng"),ip.forEach(n),xt.forEach(n),re=u(t),mn=h(t,"P",{});var hp=c(mn);$i=e(hp,"\u1EDE \u0111\xE2y ch\xFAng ta s\u1EBD t\u1EADp trung v\xE0o vi\u1EC7c t\u1EA1o kho ng\u1EEF li\u1EC7u v\xE0 trong ph\u1EA7n ti\u1EBFp theo ch\xFAng ta s\u1EBD gi\u1EA3i quy\u1EBFt \u1EE9ng d\u1EE5ng t\xECm ki\u1EBFm ng\u1EEF ngh\u0129a. \u0110\u1EC3 gi\u1EEF m\u1ECDi th\u1EE9 \u0111\xFAng meta, ch\xFAng ta s\u1EBD s\u1EED d\u1EE5ng c\xE1c v\u1EA5n \u0111\u1EC1 GitHub li\xEAn quan \u0111\u1EBFn m\u1ED9t d\u1EF1 \xE1n ngu\u1ED3n m\u1EDF ph\u1ED5 bi\u1EBFn: \u{1F917} Datasets! Ch\xFAng ta h\xE3y xem c\xE1ch l\u1EA5y d\u1EEF li\u1EC7u v\xE0 kh\xE1m ph\xE1 th\xF4ng tin c\xF3 trong nh\u1EEFng v\u1EA5n \u0111\u1EC1 n\xE0y."),hp.forEach(n),pe=u(t),ot=h(t,"H2",{class:!0});var Wl=c(ot);kt=h(Wl,"A",{id:!0,class:!0,href:!0});var cp=c(kt);Vn=h(cp,"SPAN",{});var rp=c(Vn);_(Wt.$$.fragment,rp),rp.forEach(n),cp.forEach(n),ki=u(Wl),zn=h(Wl,"SPAN",{});var pp=c(zn);ji=e(pp,"L\u1EA5y d\u1EEF li\u1EC7u"),pp.forEach(n),Wl.forEach(n),ue=u(t),jt=h(t,"P",{});var Yl=c(jt);Ei=e(Yl,"B\u1EA1n c\xF3 th\u1EC3 t\xECm th\u1EA5y t\u1EA5t c\u1EA3 c\xE1c v\u1EA5n \u0111\u1EC1 trong \u{1F917} Datasets b\u1EB1ng c\xE1ch \u0111i\u1EC1u h\u01B0\u1EDBng \u0111\u1EBFn "),Yt=h(Yl,"A",{href:!0,rel:!0});var up=c(Yt);wi=e(up,"tab Issues"),up.forEach(n),qi=e(Yl,". Nh\u01B0 th\u1EC3 hi\u1EC7n trong \u1EA3nh ch\u1EE5p m\xE0n h\xECnh b\xEAn d\u01B0\u1EDBi, t\u1EA1i th\u1EDDi \u0111i\u1EC3m vi\u1EBFt b\xE0i, c\xF3 331 v\u1EA5n \u0111\u1EC1 \u0111ang m\u1EDF v\xE0 668 v\u1EA5n \u0111\u1EC1 \u0111\xE3 \u0111\xF3ng."),Yl.forEach(n),oe=u(t),ts=h(t,"DIV",{class:!0});var op=c(ts);ss=h(op,"IMG",{src:!0,alt:!0,width:!0}),op.forEach(n),ge=u(t),dn=h(t,"P",{});var gp=c(dn);Ti=e(gp,"N\u1EBFu b\u1EA1n nh\u1EA5p v\xE0o m\u1ED9t trong nh\u1EEFng v\u1EA5n \u0111\u1EC1 n\xE0y, b\u1EA1n s\u1EBD th\u1EA5y n\xF3 ch\u1EE9a ti\xEAu \u0111\u1EC1, m\xF4 t\u1EA3 v\xE0 m\u1ED9t b\u1ED9 nh\xE3n m\xF4 t\u1EA3 \u0111\u1EB7c tr\u01B0ng cho v\u1EA5n \u0111\u1EC1. M\u1ED9t v\xED d\u1EE5 \u0111\u01B0\u1EE3c hi\u1EC3n th\u1ECB trong \u1EA3nh ch\u1EE5p m\xE0n h\xECnh b\xEAn d\u01B0\u1EDBi."),gp.forEach(n),me=u(t),ns=h(t,"DIV",{class:!0});var mp=c(ns);as=h(mp,"IMG",{src:!0,alt:!0,width:!0}),mp.forEach(n),de=u(t),W=h(t,"P",{});var Pn=c(W);Hi=e(Pn,"\u0110\u1EC3 t\u1EA3i xu\u1ED1ng t\u1EA5t c\u1EA3 c\xE1c v\u1EA5n \u0111\u1EC1 c\u1EE7a kho l\u01B0u tr\u1EEF, ch\xFAng t\xF4i s\u1EBD s\u1EED d\u1EE5ng "),es=h(Pn,"A",{href:!0,rel:!0});var dp=c(es);Di=e(dp,"GitHub REST API"),dp.forEach(n),Pi=e(Pn," \u0111\u1EC3 th\u0103m d\xF2 \u0111i\u1EC3m cu\u1ED1i "),ls=h(Pn,"A",{href:!0,rel:!0});var fp=c(ls);Kn=h(fp,"CODE",{});var _p=c(Kn);Ni=e(_p,"Issues"),_p.forEach(n),fp.forEach(n),Ci=e(Pn,". \u0110i\u1EC3m cu\u1ED1i n\xE0y tr\u1EA3 v\u1EC1 danh s\xE1ch c\xE1c \u0111\u1ED1i t\u01B0\u1EE3ng JSON, v\u1EDBi m\u1ED7i \u0111\u1ED1i t\u01B0\u1EE3ng ch\u1EE9a m\u1ED9t s\u1ED1 l\u01B0\u1EE3ng l\u1EDBn c\xE1c tr\u01B0\u1EDDng bao g\u1ED3m ti\xEAu \u0111\u1EC1 v\xE0 m\xF4 t\u1EA3 c\u0169ng nh\u01B0 si\xEAu d\u1EEF li\u1EC7u v\u1EC1 tr\u1EA1ng th\xE1i c\u1EE7a v\u1EA5n \u0111\u1EC1, v.v."),Pn.forEach(n),fe=u(t),Et=h(t,"P",{});var ti=c(Et);Oi=e(ti,"M\u1ED9t c\xE1ch thu\u1EADn ti\u1EC7n \u0111\u1EC3 t\u1EA3i c\xE1c v\u1EA5n \u0111\u1EC1 xu\u1ED1ng l\xE0 th\xF4ng qua th\u01B0 vi\u1EC7n "),Jn=h(ti,"CODE",{});var vp=c(Jn);Ai=e(vp,"requests"),vp.forEach(n),Gi=e(ti,", \u0111\xE2y l\xE0 c\xE1ch ti\xEAu chu\u1EA9n \u0111\u1EC3 th\u1EF1c hi\u1EC7n c\xE1c y\xEAu c\u1EA7u HTTP trong Python. B\u1EA1n c\xF3 th\u1EC3 c\xE0i \u0111\u1EB7t th\u01B0 vi\u1EC7n b\u1EB1ng c\xE1ch ch\u1EA1y:"),ti.forEach(n),_e=u(t),_(is.$$.fragment,t),ve=u(t),Y=h(t,"P",{});var Nn=c(Y);Si=e(Nn,"Sau khi th\u01B0 vi\u1EC7n \u0111\u01B0\u1EE3c c\xE0i \u0111\u1EB7t, b\u1EA1n c\xF3 th\u1EC3 th\u1EF1c hi\u1EC7n c\xE1c y\xEAu c\u1EA7u GET t\u1EDBi \u0111i\u1EC3m cu\u1ED1i "),Qn=h(Nn,"CODE",{});var bp=c(Qn);Ii=e(bp,"Issues"),bp.forEach(n),Ri=e(Nn," b\u1EB1ng c\xE1ch g\u1ECDi h\xE0m "),Zn=h(Nn,"CODE",{});var xp=c(Zn);Mi=e(xp,"requests.get()"),xp.forEach(n),Li=e(Nn,". V\xED d\u1EE5: b\u1EA1n c\xF3 th\u1EC3 ch\u1EA1y l\u1EC7nh sau \u0111\u1EC3 truy xu\u1EA5t v\u1EA5n \u0111\u1EC1 \u0111\u1EA7u ti\xEAn tr\xEAn trang \u0111\u1EA7u ti\xEAn:"),Nn.forEach(n),be=u(t),_(hs.$$.fragment,t),xe=u(t),wt=h(t,"P",{});var si=c(wt);Bi=e(si,"\u0110\u1ED1i t\u01B0\u1EE3ng "),Xn=h(si,"CODE",{});var yp=c(Xn);Ui=e(yp,"response"),yp.forEach(n),Fi=e(si," ch\u1EE9a nhi\u1EC1u th\xF4ng tin h\u1EEFu \xEDch v\u1EC1 y\xEAu c\u1EA7u, bao g\u1ED3m m\xE3 tr\u1EA1ng th\xE1i HTTP:"),si.forEach(n),ye=u(t),_(cs.$$.fragment,t),$e=u(t),_(rs.$$.fragment,t),ke=u(t),B=h(t,"P",{});var ct=c(B);Vi=e(ct,"trong \u0111\xF3 tr\u1EA1ng th\xE1i "),Wn=h(ct,"CODE",{});var $p=c(Wn);zi=e($p,"200"),$p.forEach(n),Ki=e(ct," c\xF3 ngh\u0129a l\xE0 y\xEAu c\u1EA7u \u0111\xE3 th\xE0nh c\xF4ng (b\u1EA1n c\xF3 th\u1EC3 t\xECm th\u1EA5y danh s\xE1ch c\xE1c m\xE3 tr\u1EA1ng th\xE1i HTTP c\xF3 th\u1EC3 c\xF3 "),ps=h(ct,"A",{href:!0,rel:!0});var kp=c(ps);Ji=e(kp,"t\u1EA1i \u0111\xE2y"),kp.forEach(n),Qi=e(ct,"). Tuy nhi\xEAn, \u0111i\u1EC1u ch\xFAng ta th\u1EF1c s\u1EF1 quan t\xE2m l\xE0 "),Yn=h(ct,"EM",{});var jp=c(Yn);Zi=e(jp,"payload"),jp.forEach(n),Xi=e(ct," hay "),ta=h(ct,"EM",{});var Ep=c(ta);Wi=e(Ep,"t\u1EA3i tr\u1ECDng"),Ep.forEach(n),Yi=e(ct,", c\xF3 th\u1EC3 \u0111\u01B0\u1EE3c truy c\u1EADp \u1EDF nhi\u1EC1u \u0111\u1ECBnh d\u1EA1ng kh\xE1c nhau nh\u01B0 byte, chu\u1ED7i ho\u1EB7c JSON. V\xEC ch\xFAng ta bi\u1EBFt c\xE1c v\u1EA5n \u0111\u1EC1 c\u1EE7a ta \u1EDF \u0111\u1ECBnh d\u1EA1ng JSON, h\xE3y ki\u1EC3m tra t\u1EA3i tr\u1ECDng nh\u01B0 sau:"),ct.forEach(n),je=u(t),_(us.$$.fragment,t),Ee=u(t),_(os.$$.fragment,t),we=u(t),Q=h(t,"P",{});var Zt=c(Q);th=e(Zt,"\u1ED2, \u0111\xF3 l\xE0 r\u1EA5t nhi\u1EC1u th\xF4ng tin! Ch\xFAng ta c\xF3 th\u1EC3 th\u1EA5y c\xE1c tr\u01B0\u1EDDng h\u1EEFu \xEDch nh\u01B0 "),sa=h(Zt,"CODE",{});var wp=c(sa);sh=e(wp,"title"),wp.forEach(n),nh=e(Zt,", "),na=h(Zt,"CODE",{});var qp=c(na);ah=e(qp,"body"),qp.forEach(n),eh=e(Zt,",  v\xE0 "),aa=h(Zt,"CODE",{});var Tp=c(aa);lh=e(Tp,"number"),Tp.forEach(n),ih=e(Zt," m\xF4 t\u1EA3 s\u1EF1 c\u1ED1 c\u0169ng nh\u01B0 th\xF4ng tin v\u1EC1 ng\u01B0\u1EDDi d\xF9ng GitHub \u0111\xE3 m\u1EDF s\u1EF1 c\u1ED1."),Zt.forEach(n),qe=u(t),_(qt.$$.fragment,t),Te=u(t),L=h(t,"P",{});var X=c(L);hh=e(X,"Nh\u01B0 \u0111\xE3 m\xF4 t\u1EA3 trong "),gs=h(X,"A",{href:!0,rel:!0});var Hp=c(gs);ch=e(Hp,"t\xE0i li\u1EC7u"),Hp.forEach(n),rh=e(X," GitHub, c\xE1c y\xEAu c\u1EA7u ch\u01B0a \u0111\u01B0\u1EE3c x\xE1c th\u1EF1c \u0111\u01B0\u1EE3c gi\u1EDBi h\u1EA1n \u1EDF 60 y\xEAu c\u1EA7u m\u1ED7i gi\u1EDD. M\u1EB7c d\xF9 b\u1EA1n c\xF3 th\u1EC3 t\u0103ng tham s\u1ED1 truy v\u1EA5n "),ea=h(X,"CODE",{});var Dp=c(ea);ph=e(Dp,"per_page"),Dp.forEach(n),uh=e(X," \u0111\u1EC3 gi\u1EA3m s\u1ED1 l\u01B0\u1EE3ng y\xEAu c\u1EA7u b\u1EA1n th\u1EF1c hi\u1EC7n, nh\u01B0ng b\u1EA1n v\u1EABn s\u1EBD \u0111\u1EA1t \u0111\u1EBFn gi\u1EDBi h\u1EA1n t\u1EF7 l\u1EC7 tr\xEAn b\u1EA5t k\u1EF3 kho l\u01B0u tr\u1EEF n\xE0o c\xF3 nhi\u1EC1u h\u01A1n m\u1ED9t v\xE0i ngh\xECn v\u1EA5n \u0111\u1EC1. V\xEC v\u1EADy, thay v\xE0o \u0111\xF3, b\u1EA1n n\xEAn l\xE0m theo "),ms=h(X,"A",{href:!0,rel:!0});var Pp=c(ms);oh=e(Pp,"h\u01B0\u1EDBng d\u1EABn"),Pp.forEach(n),gh=e(X," c\u1EE7a GitHub v\u1EC1 c\xE1ch t\u1EA1o "),la=h(X,"EM",{});var Np=c(la);mh=e(Np,"personal access token"),Np.forEach(n),dh=e(X," hay "),ia=h(X,"EM",{});var Cp=c(ia);fh=e(Cp,"token truy c\u1EADp c\xE1 nh\xE2n"),Cp.forEach(n),_h=e(X," \u0111\u1EC3 b\u1EA1n c\xF3 th\u1EC3 t\u0103ng gi\u1EDBi h\u1EA1n t\u1ED1c \u0111\u1ED9 l\xEAn 5,000 y\xEAu c\u1EA7u m\u1ED7i gi\u1EDD. Khi b\u1EA1n c\xF3 token c\u1EE7a ri\xEAng m\xECnh, b\u1EA1n c\xF3 th\u1EC3 bao g\u1ED3m n\xF3 nh\u01B0 m\u1ED9t ph\u1EA7n c\u1EE7a ti\xEAu \u0111\u1EC1 y\xEAu c\u1EA7u:"),X.forEach(n),He=u(t),_(ds.$$.fragment,t),De=u(t),_(Tt.$$.fragment,t),Pe=u(t),fn=h(t,"P",{});var Op=c(fn);vh=e(Op,"B\xE2y gi\u1EDD ch\xFAng ta \u0111\xE3 c\xF3 token truy c\u1EADp c\u1EE7a m\xECnh, h\xE3y t\u1EA1o m\u1ED9t h\xE0m c\xF3 th\u1EC3 t\u1EA3i xu\u1ED1ng t\u1EA5t c\u1EA3 c\xE1c v\u1EA5n \u0111\u1EC1 t\u1EEB kho l\u01B0u tr\u1EEF GitHub:"),Op.forEach(n),Ne=u(t),_(fs.$$.fragment,t),Ce=u(t),tt=h(t,"P",{});var Cn=c(tt);bh=e(Cn,"B\xE2y gi\u1EDD khi ta g\u1ECDi "),ha=h(Cn,"CODE",{});var Ap=c(ha);xh=e(Ap,"fetch_issues ()"),Ap.forEach(n),yh=e(Cn,", n\xF3 s\u1EBD t\u1EA3i xu\u1ED1ng t\u1EA5t c\u1EA3 c\xE1c v\u1EA5n \u0111\u1EC1 theo l\xF4 \u0111\u1EC3 tr\xE1nh v\u01B0\u1EE3t qu\xE1 gi\u1EDBi h\u1EA1n c\u1EE7a GitHub v\u1EC1 s\u1ED1 l\u01B0\u1EE3ng y\xEAu c\u1EA7u m\u1ED7i gi\u1EDD; k\u1EBFt qu\u1EA3 s\u1EBD \u0111\u01B0\u1EE3c l\u01B0u tr\u1EEF trong t\u1EC7p "),ca=h(Cn,"EM",{});var Gp=c(ca);$h=e(Gp,"repository_name-issues.jsonl"),Gp.forEach(n),kh=e(Cn,", trong \u0111\xF3 m\u1ED7i d\xF2ng l\xE0 m\u1ED9t \u0111\u1ED1i t\u01B0\u1EE3ng JSON \u0111\u1EA1i di\u1EC7n cho m\u1ED9t v\u1EA5n \u0111\u1EC1. H\xE3y s\u1EED d\u1EE5ng ch\u1EE9c n\u0103ng n\xE0y \u0111\u1EC3 l\u1EA5y t\u1EA5t c\u1EA3 c\xE1c v\u1EA5n \u0111\u1EC1 t\u1EEB \u{1F917} Datasets:"),Cn.forEach(n),Oe=u(t),_(_s.$$.fragment,t),Ae=u(t),Ht=h(t,"P",{});var ni=c(Ht);jh=e(ni,"Sau khi c\xE1c v\u1EA5n \u0111\u1EC1 \u0111\u01B0\u1EE3c t\u1EA3i xu\u1ED1ng, ch\xFAng t\xF4i c\xF3 th\u1EC3 l\xF4i ch\xFAng c\u1EE5c b\u1ED9 b\u1EB1ng c\xE1ch s\u1EED d\u1EE5ng c\xE1c k\u1EF9 n\u0103ng m\u1EDBi khai ph\xE1 t\u1EEB "),_n=h(ni,"A",{href:!0});var Sp=c(_n);Eh=e(Sp,"ph\u1EA7n 2"),Sp.forEach(n),wh=e(ni,":"),ni.forEach(n),Ge=u(t),_(vs.$$.fragment,t),Se=u(t),_(bs.$$.fragment,t),Ie=u(t),st=h(t,"P",{});var On=c(st);qh=e(On,"Tuy\u1EC7t v\u1EDDi, ch\xFAng ta \u0111\xE3 t\u1EA1o t\u1EADp d\u1EEF li\u1EC7u \u0111\u1EA7u ti\xEAn c\u1EE7a m\xECnh t\u1EEB \u0111\u1EA7u! Nh\u01B0ng t\u1EA1i sao l\u1EA1i c\xF3 v\xE0i ngh\xECn v\u1EA5n \u0111\u1EC1 khi "),xs=h(On,"A",{href:!0,rel:!0});var Ip=c(xs);Th=e(Ip,"tab S\u1EF1 c\u1ED1"),Ip.forEach(n),Hh=e(On," c\u1EE7a kho l\u01B0u tr\u1EEF \u{1F917} Datasets ch\u1EC9 hi\u1EC3n th\u1ECB t\u1ED5ng s\u1ED1 1,000 v\u1EA5n \u0111\u1EC1 \u{1F914}? Nh\u01B0 \u0111\u01B0\u1EE3c m\xF4 t\u1EA3 trong "),ys=h(On,"A",{href:!0,rel:!0});var Rp=c(ys);Dh=e(Rp,"t\xE0i li\u1EC7u"),Rp.forEach(n),Ph=e(On," GitHub, \u0111\xF3 l\xE0 v\xEC ch\xFAng ta \u0111\xE3 t\u1EA3i xu\u1ED1ng t\u1EA5t c\u1EA3 k\xE9o c\xE1c y\xEAu c\u1EA7u:"),On.forEach(n),Re=u(t),vn=h(t,"BLOCKQUOTE",{});var Mp=c(vn);gt=h(Mp,"P",{});var An=c(gt);Nh=e(An,"REST API v3 c\u1EE7a GitHub coi m\u1ECDi y\xEAu c\u1EA7u k\xE9o v\u1EC1 l\xE0 m\u1ED9t v\u1EA5n \u0111\u1EC1, nh\u01B0ng kh\xF4ng ph\u1EA3i m\u1ECDi v\u1EA5n \u0111\u1EC1 \u0111\u1EC1u l\xE0 y\xEAu c\u1EA7u k\xE9o. V\xEC l\xFD do n\xE0y, \u0111i\u1EC3m cu\u1ED1i \u201CIssues\u201D c\xF3 th\u1EC3 tr\u1EA3 v\u1EC1 c\u1EA3 hai s\u1EF1 c\u1ED1 v\xE0 k\xE9o c\xE1c y\xEAu c\u1EA7u trong ph\u1EA3n h\u1ED3i. B\u1EA1n c\xF3 th\u1EC3 x\xE1c \u0111\u1ECBnh c\xE1c y\xEAu c\u1EA7u k\xE9o b\u1EB1ng ph\xEDm "),ra=h(An,"CODE",{});var Lp=c(ra);Ch=e(Lp,"pull_request"),Lp.forEach(n),Oh=e(An,". L\u01B0u \xFD r\u1EB1ng "),pa=h(An,"CODE",{});var Bp=c(pa);Ah=e(Bp,"id"),Bp.forEach(n),Gh=e(An," c\u1EE7a m\u1ED9t y\xEAu c\u1EA7u k\xE9o \u0111\u01B0\u1EE3c tr\u1EA3 v\u1EC1 t\u1EEB c\xE1c \u0111i\u1EC3m cu\u1ED1i \u201CIssues\u201D s\u1EBD l\xE0 m\u1ED9t id v\u1EA5n \u0111\u1EC1."),An.forEach(n),Mp.forEach(n),Me=u(t),bn=h(t,"P",{});var Up=c(bn);Sh=e(Up,"V\xEC n\u1ED9i dung c\u1EE7a c\xE1c v\u1EA5n \u0111\u1EC1 v\xE0 y\xEAu c\u1EA7u k\xE9o kh\xE1 kh\xE1c nhau, ch\xFAng ta h\xE3y th\u1EF1c hi\u1EC7n m\u1ED9t s\u1ED1 x\u1EED l\xFD tr\u01B0\u1EDBc nh\u1ECF \u0111\u1EC3 cho ph\xE9p ch\xFAng ta ph\xE2n bi\u1EC7t gi\u1EEFa ch\xFAng."),Up.forEach(n),Le=u(t),mt=h(t,"H2",{class:!0});var ai=c(mt);Dt=h(ai,"A",{id:!0,class:!0,href:!0});var Fp=c(Dt);ua=h(Fp,"SPAN",{});var Vp=c(ua);_($s.$$.fragment,Vp),Vp.forEach(n),Fp.forEach(n),Ih=u(ai),oa=h(ai,"SPAN",{});var zp=c(oa);Rh=e(zp,"L\xE0m s\u1EA1ch d\u1EEF li\u1EC7u"),zp.forEach(n),ai.forEach(n),Be=u(t),I=h(t,"P",{});var V=c(I);Mh=e(V,"\u0110o\u1EA1n m\xE3 tr\xEAn t\u1EEB t\xE0i li\u1EC7u c\u1EE7a GitHub cho ch\xFAng ta bi\u1EBFt r\u1EB1ng c\u1ED9t "),ga=h(V,"CODE",{});var Kp=c(ga);Lh=e(Kp,"pull_request"),Kp.forEach(n),Bh=e(V," c\xF3 th\u1EC3 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng \u0111\u1EC3 ph\xE2n bi\u1EC7t gi\u1EEFa c\xE1c v\u1EA5n \u0111\u1EC1 v\xE0 c\xE1c y\xEAu c\u1EA7u k\xE9o. H\xE3y xem x\xE9t m\u1ED9t m\u1EABu ng\u1EABu nhi\xEAn \u0111\u1EC3 xem s\u1EF1 kh\xE1c bi\u1EC7t l\xE0 g\xEC. Nh\u01B0 ch\xFAng ta \u0111\xE3 l\xE0m trong "),xn=h(V,"A",{href:!0});var Jp=c(xn);Uh=e(Jp,"ph\u1EA7n 3"),Jp.forEach(n),Fh=e(V,", ch\xFAng ta s\u1EBD x\xE2u chu\u1ED7i "),ma=h(V,"CODE",{});var Qp=c(ma);Vh=e(Qp,"Dataset.shuffle()"),Qp.forEach(n),zh=e(V," v\xE0 "),da=h(V,"CODE",{});var Zp=c(da);Kh=e(Zp,"Dataset.select()"),Zp.forEach(n),Jh=e(V," \u0111\u1EC3 t\u1EA1o m\u1ED9t m\u1EABu ng\u1EABu nhi\xEAn v\xE0 sau \u0111\xF3 n\xE9n c\u1ED9t "),fa=h(V,"CODE",{});var Xp=c(fa);Qh=e(Xp,"html_url"),Xp.forEach(n),Zh=e(V," v\xE0 "),_a=h(V,"CODE",{});var Wp=c(_a);Xh=e(Wp,"pull_request"),Wp.forEach(n),Wh=e(V," \u0111\u1EC3 ch\xFAng t\xF4i c\xF3 th\u1EC3 so s\xE1nh c\xE1c URL kh\xE1c nhau:"),V.forEach(n),Ue=u(t),_(ks.$$.fragment,t),Fe=u(t),_(js.$$.fragment,t),Ve=u(t),U=h(t,"P",{});var rt=c(U);Yh=e(rt,"\u1EDE \u0111\xE2y, ch\xFAng ta c\xF3 th\u1EC3 th\u1EA5y r\u1EB1ng m\u1ED7i y\xEAu c\u1EA7u k\xE9o \u0111\u01B0\u1EE3c li\xEAn k\u1EBFt v\u1EDBi c\xE1c URL kh\xE1c nhau, trong khi c\xE1c v\u1EA5n \u0111\u1EC1 th\xF4ng th\u01B0\u1EDDng c\xF3 m\u1EE5c nh\u1EADp "),va=h(rt,"CODE",{});var Yp=c(va);tc=e(Yp,"None"),Yp.forEach(n),sc=e(rt,". Ch\xFAng ta c\xF3 th\u1EC3 s\u1EED d\u1EE5ng s\u1EF1 ph\xE2n bi\u1EC7t n\xE0y \u0111\u1EC3 t\u1EA1o m\u1ED9t c\u1ED9t "),ba=h(rt,"CODE",{});var tu=c(ba);nc=e(tu,"is_pull_request"),tu.forEach(n),ac=e(rt," m\u1EDBi \u0111\u1EC3 ki\u1EC3m tra xem tr\u01B0\u1EDDng "),xa=h(rt,"CODE",{});var su=c(xa);ec=e(su,"pull_request"),su.forEach(n),lc=e(rt," c\xF3 ph\u1EA3i l\xE0 "),ya=h(rt,"CODE",{});var nu=c(ya);ic=e(nu,"None"),nu.forEach(n),hc=e(rt," hay kh\xF4ng:"),rt.forEach(n),ze=u(t),_(Es.$$.fragment,t),Ke=u(t),_(Pt.$$.fragment,t),Je=u(t),yn=h(t,"P",{});var au=c(yn);cc=e(au,"M\u1EB7c d\xF9 ch\xFAng ta c\xF3 th\u1EC3 ti\u1EBFp t\u1EE5c d\u1ECDn d\u1EB9p t\u1EADp d\u1EEF li\u1EC7u b\u1EB1ng c\xE1ch lo\u1EA1i b\u1ECF ho\u1EB7c \u0111\u1ED5i t\xEAn m\u1ED9t s\u1ED1 c\u1ED9t, nh\u01B0ng th\xF4ng th\u01B0\u1EDDng t\u1ED1t nh\u1EA5t l\xE0 gi\u1EEF t\u1EADp d\u1EEF li\u1EC7u \u1EDF tr\u1EA1ng th\xE1i \u201Cth\xF4\u201D nh\u1EA5t c\xF3 th\u1EC3 \u1EDF giai \u0111o\u1EA1n n\xE0y \u0111\u1EC3 c\xF3 th\u1EC3 d\u1EC5 d\xE0ng s\u1EED d\u1EE5ng trong nhi\u1EC1u \u1EE9ng d\u1EE5ng."),au.forEach(n),Qe=u(t),$n=h(t,"P",{});var eu=c($n);rc=e(eu,"Tr\u01B0\u1EDBc khi ch\xFAng t\xF4i \u0111\u1EA9y t\u1EADp d\u1EEF li\u1EC7u c\u1EE7a m\xECnh sang Hugging Face Hub, h\xE3y gi\u1EA3i quy\u1EBFt m\u1ED9t th\u1EE9 c\xF2n thi\u1EBFu trong n\xF3: c\xE1c nh\u1EADn x\xE9t li\xEAn quan \u0111\u1EBFn t\u1EEBng v\u1EA5n \u0111\u1EC1 v\xE0 y\xEAu c\u1EA7u k\xE9o. Ch\xFAng ta s\u1EBD th\xEAm ch\xFAng v\xE0o ph\u1EA7i ti\u1EBFp theo v\u1EDBi - b\u1EA1n \u0111o\xE1n \u0111\u01B0\u1EE3c kh\xF4ng - ch\xEDnh l\xE0 API GitHub REST!"),eu.forEach(n),Ze=u(t),dt=h(t,"H2",{class:!0});var ei=c(dt);Nt=h(ei,"A",{id:!0,class:!0,href:!0});var lu=c(Nt);$a=h(lu,"SPAN",{});var iu=c($a);_(ws.$$.fragment,iu),iu.forEach(n),lu.forEach(n),pc=u(ei),ka=h(ei,"SPAN",{});var hu=c(ka);uc=e(hu,"B\u1ED5 sung t\u1EADp d\u1EEF li\u1EC7u"),hu.forEach(n),ei.forEach(n),Xe=u(t),kn=h(t,"P",{});var cu=c(kn);oc=e(cu,"M\u1EB7c d\xF9 ch\xFAng t\xF4i c\xF3 th\u1EC3 ti\u1EBFp t\u1EE5c d\u1ECDn d\u1EB9p t\u1EADp d\u1EEF li\u1EC7u b\u1EB1ng c\xE1ch lo\u1EA1i b\u1ECF ho\u1EB7c \u0111\u1ED5i t\xEAn m\u1ED9t s\u1ED1 c\u1ED9t, nh\u01B0ng th\xF4ng th\u01B0\u1EDDng t\u1ED1t nh\u1EA5t l\xE0 gi\u1EEF t\u1EADp d\u1EEF li\u1EC7u \u1EDF tr\u1EA1ng th\xE1i \u201Cth\xF4\u201D nh\u1EA5t c\xF3 th\u1EC3 \u1EDF giai \u0111o\u1EA1n n\xE0y \u0111\u1EC3 c\xF3 th\u1EC3 d\u1EC5 d\xE0ng s\u1EED d\u1EE5ng trong nhi\u1EC1u \u1EE9ng d\u1EE5ng."),cu.forEach(n),We=u(t),jn=h(t,"P",{});var ru=c(jn);gc=e(ru,"Tr\u01B0\u1EDBc khi ch\xFAng t\xF4i \u0111\u1EA9y t\u1EADp d\u1EEF li\u1EC7u c\u1EE7a m\xECnh sang Trung t\xE2m khu\xF4n m\u1EB7t \xF4m, h\xE3y gi\u1EA3i quy\u1EBFt m\u1ED9t th\u1EE9 c\xF2n thi\u1EBFu trong n\xF3: c\xE1c nh\u1EADn x\xE9t li\xEAn quan \u0111\u1EBFn t\u1EEBng v\u1EA5n \u0111\u1EC1 v\xE0 y\xEAu c\u1EA7u k\xE9o. Ch\xFAng t\xF4i s\u1EBD th\xEAm ch\xFAng v\xE0o l\u1EA7n ti\u1EBFp theo v\u1EDBi - b\u1EA1n \u0111o\xE1n kh\xF4ng - API GitHub REST!"),ru.forEach(n),Ye=u(t),ft=h(t,"H2",{class:!0});var li=c(ft);Ct=h(li,"A",{id:!0,class:!0,href:!0});var pu=c(Ct);ja=h(pu,"SPAN",{});var uu=c(ja);_(qs.$$.fragment,uu),uu.forEach(n),pu.forEach(n),mc=u(li),Ea=h(li,"SPAN",{});var ou=c(Ea);dc=e(ou,"B\u1ED5 sung t\u1EADp d\u1EEF li\u1EC7u"),ou.forEach(n),li.forEach(n),tl=u(t),En=h(t,"P",{});var gu=c(En);fc=e(gu,"Nh\u01B0 \u0111\u01B0\u1EE3c hi\u1EC3n th\u1ECB trong \u1EA3nh ch\u1EE5p m\xE0n h\xECnh sau, c\xE1c nh\u1EADn x\xE9t li\xEAn quan \u0111\u1EBFn v\u1EA5n \u0111\u1EC1 ho\u1EB7c y\xEAu c\u1EA7u k\xE9o cung c\u1EA5p ngu\u1ED3n th\xF4ng tin phong ph\xFA, \u0111\u1EB7c bi\u1EC7t n\u1EBFu ch\xFAng ta quan t\xE2m \u0111\u1EBFn vi\u1EC7c x\xE2y d\u1EF1ng m\u1ED9t c\xF4ng c\u1EE5 t\xECm ki\u1EBFm \u0111\u1EC3 tr\u1EA3 l\u1EDDi c\xE1c truy v\u1EA5n c\u1EE7a ng\u01B0\u1EDDi d\xF9ng v\u1EC1 th\u01B0 vi\u1EC7n."),gu.forEach(n),sl=u(t),Ts=h(t,"DIV",{class:!0});var mu=c(Ts);Hs=h(mu,"IMG",{src:!0,alt:!0,width:!0}),mu.forEach(n),nl=u(t),Ot=h(t,"P",{});var ii=c(Ot);_c=e(ii,"API GitHub REST cung c\u1EA5p \u0111i\u1EC3m cu\u1ED1i "),Ds=h(ii,"A",{href:!0,rel:!0});var du=c(Ds);wa=h(du,"CODE",{});var fu=c(wa);vc=e(fu,"Comments"),fu.forEach(n),du.forEach(n),bc=e(ii," tr\u1EA3 v\u1EC1 t\u1EA5t c\u1EA3 c\xE1c nh\u1EADn x\xE9t \u0111\u01B0\u1EE3c li\xEAn k\u1EBFt v\u1EDBi s\u1ED1 v\u1EA5n \u0111\u1EC1. H\xE3y ki\u1EC3m tra \u0111i\u1EC3m cu\u1ED1i \u0111\u1EC3 xem n\xF3 tr\u1EA3 v\u1EC1 nh\u1EEFng g\xEC:"),ii.forEach(n),al=u(t),_(Ps.$$.fragment,t),el=u(t),_(Ns.$$.fragment,t),ll=u(t),Z=h(t,"P",{});var Xt=c(Z);xc=e(Xt,"Ch\xFAng ta c\xF3 th\u1EC3 th\u1EA5y r\u1EB1ng nh\u1EADn x\xE9t \u0111\u01B0\u1EE3c l\u01B0u tr\u1EEF trong tr\u01B0\u1EDDng "),qa=h(Xt,"CODE",{});var _u=c(qa);yc=e(_u,"body"),_u.forEach(n),$c=e(Xt,", v\xEC v\u1EADy h\xE3y vi\u1EBFt m\u1ED9t h\xE0m \u0111\u01A1n gi\u1EA3n tr\u1EA3 v\u1EC1 t\u1EA5t c\u1EA3 c\xE1c nh\u1EADn x\xE9t li\xEAn quan \u0111\u1EBFn m\u1ED9t v\u1EA5n \u0111\u1EC1 b\u1EB1ng c\xE1ch ch\u1ECDn n\u1ED9i dung "),Ta=h(Xt,"CODE",{});var vu=c(Ta);kc=e(vu,"body"),vu.forEach(n),jc=e(Xt," cho m\u1ED7i ph\u1EA7n t\u1EED trong "),Ha=h(Xt,"CODE",{});var bu=c(Ha);Ec=e(bu,"response.json()"),bu.forEach(n),wc=e(Xt,":"),Xt.forEach(n),il=u(t),_(Cs.$$.fragment,t),hl=u(t),_(Os.$$.fragment,t),cl=u(t),nt=h(t,"P",{});var Gn=c(nt);qc=e(Gn,"\u0110i\u1EC1u n\xE0y c\xF3 v\u1EBB \u1ED5n, v\xEC v\u1EADy h\xE3y s\u1EED d\u1EE5ng "),Da=h(Gn,"CODE",{});var xu=c(Da);Tc=e(xu,"Dataset.map()"),xu.forEach(n),Hc=e(Gn," \u0111\u1EC3 th\xEAm c\u1ED9t "),Pa=h(Gn,"CODE",{});var yu=c(Pa);Dc=e(yu,"comments"),yu.forEach(n),Pc=e(Gn," m\u1EDBi cho t\u1EEBng v\u1EA5n \u0111\u1EC1 trong t\u1EADp d\u1EEF li\u1EC7u c\u1EE7a m\xECnh:"),Gn.forEach(n),rl=u(t),_(As.$$.fragment,t),pl=u(t),wn=h(t,"P",{});var $u=c(wn);Nc=e($u,"B\u01B0\u1EDBc cu\u1ED1i c\xF9ng l\xE0 l\u01B0u t\u1EADp d\u1EEF li\u1EC7u t\u0103ng c\u01B0\u1EDDng c\xF9ng v\u1EDBi d\u1EEF li\u1EC7u th\xF4 c\u1EE7a ch\xFAng ta \u0111\u1EC3 ta c\xF3 th\u1EC3 \u0111\u1EA9y c\u1EA3 hai v\xE0o Hub:"),$u.forEach(n),ul=u(t),_(Gs.$$.fragment,t),ol=u(t),_t=h(t,"H2",{class:!0});var hi=c(_t);At=h(hi,"A",{id:!0,class:!0,href:!0});var ku=c(At);Na=h(ku,"SPAN",{});var ju=c(Na);_(Ss.$$.fragment,ju),ju.forEach(n),ku.forEach(n),Cc=u(hi),Ca=h(hi,"SPAN",{});var Eu=c(Ca);Oc=e(Eu,"T\u1EA3i t\u1EADp d\u1EEF li\u1EC7u l\xEAn Hugging Face Hub"),Eu.forEach(n),hi.forEach(n),gl=u(t),_(Is.$$.fragment,t),ml=u(t),at=h(t,"P",{});var Sn=c(at);Ac=e(Sn,"B\xE2y gi\u1EDD ch\xFAng ta \u0111\xE3 c\xF3 t\u1EADp d\u1EEF li\u1EC7u t\u0103ng c\u01B0\u1EDDng c\u1EE7a m\xECnh, \u0111\xE3 \u0111\u1EBFn l\xFAc chuy\u1EC3n n\xF3 v\xE0o Hub \u0111\u1EC3 ch\xFAng ta c\xF3 th\u1EC3 chia s\u1EBB n\xF3 v\u1EDBi c\u1ED9ng \u0111\u1ED3ng! \u0110\u1EC3 t\u1EA3i t\u1EADp d\u1EEF li\u1EC7u l\xEAn, ch\xFAng t\xF4i s\u1EBD s\u1EED d\u1EE5ng "),Rs=h(Sn,"A",{href:!0,rel:!0});var wu=c(Rs);Gc=e(wu,"\u{1F917} th\u01B0 vi\u1EC7n Hub"),wu.forEach(n),Sc=e(Sn,", cho ph\xE9p ch\xFAng ta t\u01B0\u01A1ng t\xE1c v\u1EDBi Hugging Face Hub th\xF4ng qua API Python. \u{1F917} Hub \u0111\u01B0\u1EE3c c\xE0i \u0111\u1EB7t s\u1EB5n v\u1EDBi \u{1F917} Transformers, v\xEC v\u1EADy ch\xFAng ta c\xF3 th\u1EC3 s\u1EED d\u1EE5ng tr\u1EF1c ti\u1EBFp. V\xED d\u1EE5: ch\xFAng ta c\xF3 th\u1EC3 s\u1EED d\u1EE5ng h\xE0m "),Oa=h(Sn,"CODE",{});var qu=c(Oa);Ic=e(qu,"list_datasets()"),qu.forEach(n),Rc=e(Sn," \u0111\u1EC3 l\u1EA5y th\xF4ng tin v\u1EC1 t\u1EA5t c\u1EA3 c\xE1c t\u1EADp d\u1EEF li\u1EC7u c\xF4ng khai hi\u1EC7n \u0111\u01B0\u1EE3c l\u01B0u tr\u1EEF tr\xEAn Hub:"),Sn.forEach(n),dl=u(t),_(Ms.$$.fragment,t),fl=u(t),_(Ls.$$.fragment,t),_l=u(t),Gt=h(t,"P",{});var ci=c(Gt);Mc=e(ci,"Ch\xFAng ta c\xF3 th\u1EC3 th\u1EA5y r\u1EB1ng hi\u1EC7n c\xF3 g\u1EA7n 1,500 t\u1EADp d\u1EEF li\u1EC7u tr\xEAn Hub v\xE0 h\xE0m "),Aa=h(ci,"CODE",{});var Tu=c(Aa);Lc=e(Tu,"list_datasets()"),Tu.forEach(n),Bc=e(ci," c\u0169ng cung c\u1EA5p m\u1ED9t s\u1ED1 si\xEAu d\u1EEF li\u1EC7u c\u01A1 b\u1EA3n v\u1EC1 t\u1EEBng kho l\u01B0u tr\u1EEF t\u1EADp d\u1EEF li\u1EC7u."),ci.forEach(n),vl=u(t),St=h(t,"P",{});var ri=c(St);Uc=e(ri,"\u0110\u1ED1i v\u1EDBi m\u1EE5c \u0111\xEDch c\u1EE7a m\xECnh, \u0111i\u1EC1u \u0111\u1EA7u ti\xEAn ch\xFAng ta c\u1EA7n l\xE0m l\xE0 t\u1EA1o m\u1ED9t kho l\u01B0u tr\u1EEF t\u1EADp d\u1EEF li\u1EC7u m\u1EDBi tr\xEAn Hub. \u0110\u1EC3 l\xE0m \u0111i\u1EC1u \u0111\xF3, ch\xFAng ta c\u1EA7n m\u1ED9t token x\xE1c th\u1EF1c, c\xF3 th\u1EC3 nh\u1EADn \u0111\u01B0\u1EE3c b\u1EB1ng c\xE1ch \u0111\u1EA7u ti\xEAn \u0111\u0103ng nh\u1EADp v\xE0o Hugging Face Hub b\u1EB1ng h\xE0m "),Ga=h(ri,"CODE",{});var Hu=c(Ga);Fc=e(Hu,"notebook_login()"),Hu.forEach(n),Vc=e(ri,":"),ri.forEach(n),bl=u(t),_(Bs.$$.fragment,t),xl=u(t),It=h(t,"P",{});var pi=c(It);zc=e(pi,"Thao t\xE1c n\xE0y s\u1EBD t\u1EA1o m\u1ED9t ti\u1EC7n \xEDch m\xE0 b\u1EA1n c\xF3 th\u1EC3 nh\u1EADp t\xEAn ng\u01B0\u1EDDi d\xF9ng v\xE0 m\u1EADt kh\u1EA9u c\u1EE7a m\xECnh v\xE0 token API s\u1EBD \u0111\u01B0\u1EE3c l\u01B0u trong "),Sa=h(pi,"EM",{});var Du=c(Sa);Kc=e(Du,"~/.huggingface/token"),Du.forEach(n),Jc=e(pi,". N\u1EBFu b\u1EA1n \u0111ang ch\u1EA1y m\xE3 trong m\u1ED9t thi\u1EBFt b\u1ECB \u0111\u1EA7u cu\u1ED1i, b\u1EA1n c\xF3 th\u1EC3 \u0111\u0103ng nh\u1EADp qua CLI \u0111\u1EC3 thay th\u1EBF:"),pi.forEach(n),yl=u(t),_(Us.$$.fragment,t),$l=u(t),Rt=h(t,"P",{});var ui=c(Rt);Qc=e(ui,"Sau khi th\u1EF1c hi\u1EC7n xong vi\u1EC7c n\xE0y, ch\xFAng ta c\xF3 th\u1EC3 t\u1EA1o m\u1ED9t kho l\u01B0u tr\u1EEF t\u1EADp d\u1EEF li\u1EC7u m\u1EDBi v\u1EDBi h\xE0m "),Ia=h(ui,"CODE",{});var Pu=c(Ia);Zc=e(Pu,"create_repo()"),Pu.forEach(n),Xc=e(ui,":"),ui.forEach(n),kl=u(t),_(Fs.$$.fragment,t),jl=u(t),_(Vs.$$.fragment,t),El=u(t),et=h(t,"P",{});var In=c(et);Wc=e(In,"Trong v\xED d\u1EE5 n\xE0y, ch\xFAng ta \u0111\xE3 t\u1EA1o m\u1ED9t kho l\u01B0u tr\u1EEF t\u1EADp d\u1EEF li\u1EC7u tr\u1ED1ng c\xF3 t\xEAn l\xE0 "),Ra=h(In,"CODE",{});var Nu=c(Ra);Yc=e(Nu,"github-issue"),Nu.forEach(n),tr=e(In," v\u1EDBi t\xEAn ng\u01B0\u1EDDi d\xF9ng "),Ma=h(In,"CODE",{});var Cu=c(Ma);sr=e(Cu,"lewtun"),Cu.forEach(n),nr=e(In," (t\xEAn ng\u01B0\u1EDDi d\xF9ng ph\u1EA3i l\xE0 t\xEAn ng\u01B0\u1EDDi d\xF9ng Hub c\u1EE7a b\u1EA1n khi b\u1EA1n \u0111ang ch\u1EA1y \u0111o\u1EA1n m\xE3 n\xE0y!)"),In.forEach(n),wl=u(t),_(Mt.$$.fragment,t),ql=u(t),Lt=h(t,"P",{});var oi=c(Lt);ar=e(oi,"Ti\u1EBFp theo, h\xE3y sao ch\xE9p kho l\u01B0u tr\u1EEF t\u1EEB Hub v\xE0o m\xE1y c\u1EE5c b\u1ED9 c\u1EE7a ch\xFAng ta v\xE0 sao ch\xE9p t\u1EC7p t\u1EADp d\u1EEF li\u1EC7u c\u1EE7a ch\xFAng ta v\xE0o \u0111\xF3. \u{1F917} Hub cung c\u1EA5p m\u1ED9t l\u1EDBp "),La=h(oi,"CODE",{});var Ou=c(La);er=e(Ou,"Repository"),Ou.forEach(n),lr=e(oi," ti\u1EC7n d\u1EE5ng bao b\u1ECDc nhi\u1EC1u l\u1EC7nh Git ph\u1ED5 bi\u1EBFn, do \u0111\xF3, \u0111\u1EC3 sao ch\xE9p kho l\u01B0u tr\u1EEF t\u1EEB xa, ch\xFAng ta ch\u1EC9 c\u1EA7n cung c\u1EA5p URL v\xE0 \u0111\u01B0\u1EDDng d\u1EABn c\u1EE5c b\u1ED9 m\xE0 ta mu\u1ED1n sao ch\xE9p t\u1EDBi:"),oi.forEach(n),Tl=u(t),_(zs.$$.fragment,t),Hl=u(t),F=h(t,"P",{});var pt=c(F);ir=e(pt,"Theo m\u1EB7c \u0111\u1ECBnh, c\xE1c ph\u1EA7n m\u1EDF r\u1ED9ng t\u1EC7p kh\xE1c nhau (ch\u1EB3ng h\u1EA1n nh\u01B0 "),Ba=h(pt,"EM",{});var Au=c(Ba);hr=e(Au,".bin"),Au.forEach(n),cr=e(pt,", "),Ua=h(pt,"EM",{});var Gu=c(Ua);rr=e(Gu,".gz"),Gu.forEach(n),pr=e(pt,", v\xE0 "),Fa=h(pt,"EM",{});var Su=c(Fa);ur=e(Su,".zip"),Su.forEach(n),or=e(pt,") \u0111\u01B0\u1EE3c theo d\xF5i b\u1EB1ng Git LFS \u0111\u1EC3 c\xE1c t\u1EC7p l\u1EDBn c\xF3 th\u1EC3 \u0111\u01B0\u1EE3c t\u1EA1o phi\xEAn b\u1EA3n trong c\xF9ng m\u1ED9t quy tr\xECnh l\xE0m vi\u1EC7c c\u1EE7a Git. B\u1EA1n c\xF3 th\u1EC3 t\xECm th\u1EA5y danh s\xE1ch c\xE1c ph\u1EA7n m\u1EDF r\u1ED9ng t\u1EC7p \u0111\u01B0\u1EE3c theo d\xF5i b\xEAn trong t\u1EC7p "),Va=h(pt,"EM",{});var Iu=c(Va);gr=e(Iu,".gitattributes"),Iu.forEach(n),mr=e(pt," c\u1EE7a kho l\u01B0u tr\u1EEF. \u0110\u1EC3 \u0111\u01B0a \u0111\u1ECBnh d\u1EA1ng JSON Lines v\xE0o danh s\xE1ch, ch\xFAng ta c\xF3 th\u1EC3 ch\u1EA1y l\u1EC7nh sau:"),pt.forEach(n),Dl=u(t),_(Ks.$$.fragment,t),Pl=u(t),Bt=h(t,"P",{});var gi=c(Bt);dr=e(gi,"Sau \u0111\xF3 ta c\xF3 th\u1EC3 d\xF9ng "),za=h(gi,"CODE",{});var Ru=c(za);fr=e(Ru,"Repository.push_to_hub()"),Ru.forEach(n),_r=e(gi," \u0111\u1EC3 \u0111\u1EA9y d\u1EEF li\u1EC7u l\xEAn Hub:"),gi.forEach(n),Nl=u(t),_(Js.$$.fragment,t),Cl=u(t),Ut=h(t,"P",{});var mi=c(Ut);vr=e(mi,"N\u1EBFu ch\xFAng ta \u0111i\u1EC1u h\u01B0\u1EDBng \u0111\u1EBFn URL c\xF3 trong "),Ka=h(mi,"CODE",{});var Mu=c(Ka);br=e(Mu,"repo_url"),Mu.forEach(n),xr=e(mi,", b\xE2y gi\u1EDD ch\xFAng ta s\u1EBD th\u1EA5y r\u1EB1ng t\u1EC7p t\u1EADp d\u1EEF li\u1EC7u c\u1EE7a ch\xFAng ta \u0111\xE3 \u0111\u01B0\u1EE3c t\u1EA3i l\xEAn."),mi.forEach(n),Ol=u(t),Qs=h(t,"DIV",{class:!0});var Lu=c(Qs);Zs=h(Lu,"IMG",{src:!0,alt:!0,width:!0}),Lu.forEach(n),Al=u(t),lt=h(t,"P",{});var Rn=c(lt);yr=e(Rn,"T\u1EEB \u0111\xE2y, b\u1EA5t k\u1EF3 ai c\u0169ng c\xF3 th\u1EC3 t\u1EA3i xu\u1ED1ng t\u1EADp d\u1EEF li\u1EC7u b\u1EB1ng c\xE1ch ch\u1EC9 c\u1EA7n cung c\u1EA5p "),Ja=h(Rn,"CODE",{});var Bu=c(Ja);$r=e(Bu,"load_dataset()"),Bu.forEach(n),kr=e(Rn," v\u1EDBi ID kho l\u01B0u tr\u1EEF d\u01B0\u1EDBi d\u1EA1ng tham s\u1ED1 "),Qa=h(Rn,"CODE",{});var Uu=c(Qa);jr=e(Uu,"path"),Uu.forEach(n),Er=e(Rn,":"),Rn.forEach(n),Gl=u(t),_(Xs.$$.fragment,t),Sl=u(t),_(Ws.$$.fragment,t),Il=u(t),it=h(t,"P",{});var Mn=c(it);wr=e(Mn,"Tuy\u1EC7t v\u1EDDi, ch\xFAng ta \u0111\xE3 \u0111\u01B0a t\u1EADp d\u1EEF li\u1EC7u c\u1EE7a m\xECnh v\xE0o Hub v\xE0 n\xF3 c\xF3 s\u1EB5n cho nh\u1EEFng ng\u01B0\u1EDDi kh\xE1c s\u1EED d\u1EE5ng! Ch\u1EC9 c\xF2n m\u1ED9t vi\u1EC7c quan tr\u1ECDng c\u1EA7n l\xE0m: th\xEAm "),Za=h(Mn,"EM",{});var Fu=c(Za);qr=e(Fu,"dataset card"),Fu.forEach(n),Tr=e(Mn,"  hay "),Xa=h(Mn,"EM",{});var Vu=c(Xa);Hr=e(Vu,"th\u1EBB d\u1EEF li\u1EC7u"),Vu.forEach(n),Dr=e(Mn," gi\u1EA3i th\xEDch c\xE1ch t\u1EA1o kho t\xE0i li\u1EC7u v\xE0 cung c\u1EA5p th\xF4ng tin h\u1EEFu \xEDch kh\xE1c cho c\u1ED9ng \u0111\u1ED3ng."),Mn.forEach(n),Rl=u(t),_(Ft.$$.fragment,t),Ml=u(t),vt=h(t,"H2",{class:!0});var di=c(vt);Vt=h(di,"A",{id:!0,class:!0,href:!0});var zu=c(Vt);Wa=h(zu,"SPAN",{});var Ku=c(Wa);_(Ys.$$.fragment,Ku),Ku.forEach(n),zu.forEach(n),Pr=u(di),Ya=h(di,"SPAN",{});var Ju=c(Ya);Nr=e(Ju,"T\u1EA1o th\u1EBB d\u1EEF li\u1EC7u"),Ju.forEach(n),di.forEach(n),Ll=u(t),qn=h(t,"P",{});var Qu=c(qn);Cr=e(Qu,"T\u1EADp d\u1EEF li\u1EC7u \u0111\u01B0\u1EE3c ghi ch\xE9p \u0111\u1EA7y \u0111\u1EE7 c\xF3 nhi\u1EC1u kh\u1EA3 n\u0103ng h\u1EEFu \xEDch h\u01A1n cho ng\u01B0\u1EDDi kh\xE1c (bao g\u1ED3m c\u1EA3 t\u01B0\u01A1ng lai c\u1EE7a b\u1EA1n!), v\xEC ch\xFAng cung c\u1EA5p b\u1ED1i c\u1EA3nh \u0111\u1EC3 cho ph\xE9p ng\u01B0\u1EDDi d\xF9ng quy\u1EBFt \u0111\u1ECBnh xem t\u1EADp d\u1EEF li\u1EC7u c\xF3 li\xEAn quan \u0111\u1EBFn t\xE1c v\u1EE5 c\u1EE7a h\u1ECD hay kh\xF4ng v\xE0 \u0111\u1EC3 \u0111\xE1nh gi\xE1 b\u1EA5t k\u1EF3 sai l\u1EC7ch ho\u1EB7c r\u1EE7i ro ti\u1EC1m \u1EA9n n\xE0o li\xEAn quan \u0111\u1EBFn vi\u1EC7c s\u1EED d\u1EE5ng t\u1EADp d\u1EEF li\u1EC7u."),Qu.forEach(n),Bl=u(t),zt=h(t,"P",{});var fi=c(zt);Or=e(fi,"Tr\xEAn Hugging Face Hub, th\xF4ng tin n\xE0y \u0111\u01B0\u1EE3c l\u01B0u tr\u1EEF trong m\u1ED7i t\u1EC7p "),te=h(fi,"EM",{});var Zu=c(te);Ar=e(Zu,"README.md"),Zu.forEach(n),Gr=e(fi," c\u1EE7a kho l\u01B0u tr\u1EEF t\u1EADp d\u1EEF li\u1EC7u. C\xF3 hai b\u01B0\u1EDBc ch\xEDnh b\u1EA1n n\xEAn th\u1EF1c hi\u1EC7n tr\u01B0\u1EDBc khi t\u1EA1o t\u1EC7p n\xE0y:"),fi.forEach(n),Ul=u(t),Tn=h(t,"OL",{});var Xu=c(Tn);bt=h(Xu,"LI",{});var Ln=c(bt);Sr=e(Ln,"S\u1EED d\u1EE5ng \u1EE9ng d\u1EE5ng "),tn=h(Ln,"A",{href:!0,rel:!0});var Wu=c(tn);se=h(Wu,"CODE",{});var Yu=c(se);Ir=e(Yu,"datasets-tagging"),Yu.forEach(n),Wu.forEach(n),Rr=e(Ln," \u0111\u1EC3 t\u1EA1o th\u1EBB si\xEAu d\u1EEF li\u1EC7u \u1EDF \u0111\u1ECBnh d\u1EA1ng YAML. C\xE1c th\u1EBB n\xE0y \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng cho nhi\u1EC1u t\xEDnh n\u0103ng t\xECm ki\u1EBFm tr\xEAn Hugging Face Hub v\xE0 \u0111\u1EA3m b\u1EA3o c\xE1c th\xE0nh vi\xEAn c\u1EE7a c\u1ED9ng \u0111\u1ED3ng c\xF3 th\u1EC3 d\u1EC5 d\xE0ng t\xECm th\u1EA5y t\u1EADp d\u1EEF li\u1EC7u c\u1EE7a b\u1EA1n. V\xEC ch\xFAng ta \u0111\xE3 t\u1EA1o t\u1EADp d\u1EEF li\u1EC7u t\xF9y ch\u1EC9nh \u1EDF \u0111\xE2y, b\u1EA1n s\u1EBD c\u1EA7n sao ch\xE9p kho l\u01B0u tr\u1EEF "),ne=h(Ln,"CODE",{});var to=c(ne);Mr=e(to,"datasets-tagging"),to.forEach(n),Lr=e(Ln," v\xE0 ch\u1EA1y \u1EE9ng d\u1EE5ng c\u1EE5c b\u1ED9. \u0110\xE2y l\xE0 giao di\u1EC7n tr\xF4ng nh\u01B0 th\u1EBF n\xE0o:"),Ln.forEach(n),Xu.forEach(n),Fl=u(t),sn=h(t,"DIV",{class:!0});var so=c(sn);nn=h(so,"IMG",{src:!0,alt:!0,width:!0}),so.forEach(n),Vl=u(t),Kt=h(t,"P",{});var _i=c(Kt);Br=e(_i,"2.\u0110\u1ECDc "),an=h(_i,"A",{href:!0,rel:!0});var no=c(an);Ur=e(no,"H\u01B0\u1EDBng d\u1EABn \u{1F917} Datasets"),no.forEach(n),Fr=e(_i," v\u1EC1 c\xE1ch t\u1EA1o th\u1EBB t\u1EADp d\u1EEF li\u1EC7u th\xF4ng tin v\xE0 s\u1EED d\u1EE5ng n\xF3 l\xE0m m\u1EABu."),_i.forEach(n),zl=u(t),ht=h(t,"P",{});var Bn=c(ht);Vr=e(Bn,"B\u1EA1n c\xF3 th\u1EC3 t\u1EA1o t\u1EC7p "),ae=h(Bn,"EM",{});var ao=c(ae);zr=e(ao,"README.md"),ao.forEach(n),Kr=e(Bn," tr\u1EF1c ti\u1EBFp tr\xEAn Hub v\xE0 b\u1EA1n c\xF3 th\u1EC3 t\xECm th\u1EA5y m\u1EABu th\u1EBB d\u1EEF li\u1EC7u trong kho l\u01B0u tr\u1EEF d\u1EEF li\u1EC7u "),ee=h(Bn,"CODE",{});var eo=c(ee);Jr=e(eo,"lewtun/github-issues"),eo.forEach(n),Qr=e(Bn,". \u1EA2nh ch\u1EE5p m\xE0n h\xECnh c\u1EE7a th\u1EBB d\u1EEF li\u1EC7u \u0111\xE3 \u0111i\u1EC1n \u0111\u1EA7y \u0111\u1EE7 th\xF4ng tin \u0111\u01B0\u1EE3c hi\u1EC3n th\u1ECB b\xEAn d\u01B0\u1EDBi."),Bn.forEach(n),Kl=u(t),en=h(t,"DIV",{class:!0});var lo=c(en);ln=h(lo,"IMG",{src:!0,alt:!0,width:!0}),lo.forEach(n),Jl=u(t),_(Jt.$$.fragment,t),Ql=u(t),Hn=h(t,"P",{});var io=c(Hn);Zr=e(io,"V\u1EADy \u0111\xF3! Trong ph\u1EA7n n\xE0y, ch\xFAng ta \u0111\xE3 th\u1EA5y r\u1EB1ng vi\u1EC7c t\u1EA1o m\u1ED9t t\u1EADp d\u1EEF li\u1EC7u t\u1ED1t c\xF3 th\u1EC3 kh\xE1 li\xEAn quan, nh\u01B0ng may m\u1EAFn thay, vi\u1EC7c t\u1EA3i n\xF3 l\xEAn v\xE0 chia s\u1EBB n\xF3 v\u1EDBi c\u1ED9ng \u0111\u1ED3ng th\xEC kh\xF4ng. Trong ph\u1EA7n ti\u1EBFp theo, ch\xFAng ta s\u1EBD s\u1EED d\u1EE5ng b\u1ED9 d\u1EEF li\u1EC7u m\u1EDBi c\u1EE7a m\xECnh \u0111\u1EC3 t\u1EA1o m\u1ED9t c\xF4ng c\u1EE5 t\xECm ki\u1EBFm ng\u1EEF ngh\u0129a v\u1EDBi \u{1F917} Datasets c\xF3 th\u1EC3 so kh\u1EDBp c\xE1c c\xE2u h\u1ECFi v\u1EDBi c\xE1c v\u1EA5n \u0111\u1EC1 v\xE0 nh\u1EADn x\xE9t c\xF3 li\xEAn quan nh\u1EA5t."),io.forEach(n),Zl=u(t),_(Qt.$$.fragment,t),this.h()},h(){g(o,"name","hf:doc:metadata"),g(o,"content",JSON.stringify(ko)),g(j,"id","to-tp-d-liu-ca-ring-bn"),g(j,"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"),g(j,"href","#to-tp-d-liu-ca-ring-bn"),g(m,"class","relative group"),g(q,"href","https://github.com/features/issues/"),g(q,"rel","nofollow"),g(kt,"id","ly-d-liu"),g(kt,"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"),g(kt,"href","#ly-d-liu"),g(ot,"class","relative group"),g(Yt,"href","https://github.com/huggingface/datasets/issues"),g(Yt,"rel","nofollow"),Un(ss.src,Xr="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter5/datasets-issues.png")||g(ss,"src",Xr),g(ss,"alt","The GitHub issues associated with \u{1F917} Datasets."),g(ss,"width","80%"),g(ts,"class","flex justify-center"),Un(as.src,Wr="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter5/datasets-issues-single.png")||g(as,"src",Wr),g(as,"alt","A typical GitHub issue in the \u{1F917} Datasets repository."),g(as,"width","80%"),g(ns,"class","flex justify-center"),g(es,"href","https://docs.github.com/en/rest"),g(es,"rel","nofollow"),g(ls,"href","https://docs.github.com/en/rest/reference/issues#list-repository-issues"),g(ls,"rel","nofollow"),g(ps,"href","https://en.wikipedia.org/wiki/List_of_HTTP_status_codes"),g(ps,"rel","nofollow"),g(gs,"href","https://docs.github.com/en/rest/overview/resources-in-the-rest-api#rate-limiting"),g(gs,"rel","nofollow"),g(ms,"href","https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token"),g(ms,"rel","nofollow"),g(_n,"href","/course/chaper5/2"),g(xs,"href","https://github.com/huggingface/datasets/issues"),g(xs,"rel","nofollow"),g(ys,"href","https://docs.github.com/en/rest/reference/issues#list-issues-assigned-to-the-authenticated-user"),g(ys,"rel","nofollow"),g(Dt,"id","lm-sch-d-liu"),g(Dt,"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"),g(Dt,"href","#lm-sch-d-liu"),g(mt,"class","relative group"),g(xn,"href","/course/chapter5/3"),g(Nt,"id","b-sung-tp-d-liu"),g(Nt,"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"),g(Nt,"href","#b-sung-tp-d-liu"),g(dt,"class","relative group"),g(Ct,"id","b-sung-tp-d-liu"),g(Ct,"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"),g(Ct,"href","#b-sung-tp-d-liu"),g(ft,"class","relative group"),Un(Hs.src,Yr="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter5/datasets-issues-comment.png")||g(Hs,"src",Yr),g(Hs,"alt","Comments associated with an issue about \u{1F917} Datasets."),g(Hs,"width","80%"),g(Ts,"class","flex justify-center"),g(Ds,"href","https://docs.github.com/en/rest/reference/issues#list-issue-comments"),g(Ds,"rel","nofollow"),g(At,"id","ti-tp-d-liu-ln-hugging-face-hub"),g(At,"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"),g(At,"href","#ti-tp-d-liu-ln-hugging-face-hub"),g(_t,"class","relative group"),g(Rs,"href","https://github.com/huggingface/huggingface_hub"),g(Rs,"rel","nofollow"),Un(Zs.src,tp="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter5/hub-repo.png")||g(Zs,"src",tp),g(Zs,"alt","Our dataset repository on the Hugging Face Hub."),g(Zs,"width","80%"),g(Qs,"class","flex justify-center"),g(Vt,"id","to-th-d-liu"),g(Vt,"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"),g(Vt,"href","#to-th-d-liu"),g(vt,"class","relative group"),g(tn,"href","https://huggingface.co/datasets/tagging/"),g(tn,"rel","nofollow"),Un(nn.src,sp="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter5/datasets-tagger.png")||g(nn,"src",sp),g(nn,"alt","The `datasets-tagging` interface."),g(nn,"width","80%"),g(sn,"class","flex justify-center"),g(an,"href","https://github.com/huggingface/datasets/blob/master/templates/README_guide.md"),g(an,"rel","nofollow"),Un(ln.src,np="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter5/dataset-card.png")||g(ln,"src",np),g(ln,"alt","A dataset card."),g(ln,"width","80%"),g(en,"class","flex justify-center")},m(t,l){s(document.head,o),r(t,T,l),r(t,m,l),s(m,j),s(j,w),v(d,w,null),s(m,E),s(m,H),s(H,$),r(t,k,l),v(P,t,l),r(t,D,l),r(t,N,l),s(N,A),s(N,q),s(q,O),s(N,z),r(t,R,l),r(t,G,l),s(G,K),s(K,ut),s(G,S),s(G,J),s(J,un),s(J,yt),s(yt,on),s(J,gn),s(J,$t),s($t,vi),s(J,bi),s(G,xi),s(G,Fn),s(Fn,yi),r(t,re,l),r(t,mn,l),s(mn,$i),r(t,pe,l),r(t,ot,l),s(ot,kt),s(kt,Vn),v(Wt,Vn,null),s(ot,ki),s(ot,zn),s(zn,ji),r(t,ue,l),r(t,jt,l),s(jt,Ei),s(jt,Yt),s(Yt,wi),s(jt,qi),r(t,oe,l),r(t,ts,l),s(ts,ss),r(t,ge,l),r(t,dn,l),s(dn,Ti),r(t,me,l),r(t,ns,l),s(ns,as),r(t,de,l),r(t,W,l),s(W,Hi),s(W,es),s(es,Di),s(W,Pi),s(W,ls),s(ls,Kn),s(Kn,Ni),s(W,Ci),r(t,fe,l),r(t,Et,l),s(Et,Oi),s(Et,Jn),s(Jn,Ai),s(Et,Gi),r(t,_e,l),v(is,t,l),r(t,ve,l),r(t,Y,l),s(Y,Si),s(Y,Qn),s(Qn,Ii),s(Y,Ri),s(Y,Zn),s(Zn,Mi),s(Y,Li),r(t,be,l),v(hs,t,l),r(t,xe,l),r(t,wt,l),s(wt,Bi),s(wt,Xn),s(Xn,Ui),s(wt,Fi),r(t,ye,l),v(cs,t,l),r(t,$e,l),v(rs,t,l),r(t,ke,l),r(t,B,l),s(B,Vi),s(B,Wn),s(Wn,zi),s(B,Ki),s(B,ps),s(ps,Ji),s(B,Qi),s(B,Yn),s(Yn,Zi),s(B,Xi),s(B,ta),s(ta,Wi),s(B,Yi),r(t,je,l),v(us,t,l),r(t,Ee,l),v(os,t,l),r(t,we,l),r(t,Q,l),s(Q,th),s(Q,sa),s(sa,sh),s(Q,nh),s(Q,na),s(na,ah),s(Q,eh),s(Q,aa),s(aa,lh),s(Q,ih),r(t,qe,l),v(qt,t,l),r(t,Te,l),r(t,L,l),s(L,hh),s(L,gs),s(gs,ch),s(L,rh),s(L,ea),s(ea,ph),s(L,uh),s(L,ms),s(ms,oh),s(L,gh),s(L,la),s(la,mh),s(L,dh),s(L,ia),s(ia,fh),s(L,_h),r(t,He,l),v(ds,t,l),r(t,De,l),v(Tt,t,l),r(t,Pe,l),r(t,fn,l),s(fn,vh),r(t,Ne,l),v(fs,t,l),r(t,Ce,l),r(t,tt,l),s(tt,bh),s(tt,ha),s(ha,xh),s(tt,yh),s(tt,ca),s(ca,$h),s(tt,kh),r(t,Oe,l),v(_s,t,l),r(t,Ae,l),r(t,Ht,l),s(Ht,jh),s(Ht,_n),s(_n,Eh),s(Ht,wh),r(t,Ge,l),v(vs,t,l),r(t,Se,l),v(bs,t,l),r(t,Ie,l),r(t,st,l),s(st,qh),s(st,xs),s(xs,Th),s(st,Hh),s(st,ys),s(ys,Dh),s(st,Ph),r(t,Re,l),r(t,vn,l),s(vn,gt),s(gt,Nh),s(gt,ra),s(ra,Ch),s(gt,Oh),s(gt,pa),s(pa,Ah),s(gt,Gh),r(t,Me,l),r(t,bn,l),s(bn,Sh),r(t,Le,l),r(t,mt,l),s(mt,Dt),s(Dt,ua),v($s,ua,null),s(mt,Ih),s(mt,oa),s(oa,Rh),r(t,Be,l),r(t,I,l),s(I,Mh),s(I,ga),s(ga,Lh),s(I,Bh),s(I,xn),s(xn,Uh),s(I,Fh),s(I,ma),s(ma,Vh),s(I,zh),s(I,da),s(da,Kh),s(I,Jh),s(I,fa),s(fa,Qh),s(I,Zh),s(I,_a),s(_a,Xh),s(I,Wh),r(t,Ue,l),v(ks,t,l),r(t,Fe,l),v(js,t,l),r(t,Ve,l),r(t,U,l),s(U,Yh),s(U,va),s(va,tc),s(U,sc),s(U,ba),s(ba,nc),s(U,ac),s(U,xa),s(xa,ec),s(U,lc),s(U,ya),s(ya,ic),s(U,hc),r(t,ze,l),v(Es,t,l),r(t,Ke,l),v(Pt,t,l),r(t,Je,l),r(t,yn,l),s(yn,cc),r(t,Qe,l),r(t,$n,l),s($n,rc),r(t,Ze,l),r(t,dt,l),s(dt,Nt),s(Nt,$a),v(ws,$a,null),s(dt,pc),s(dt,ka),s(ka,uc),r(t,Xe,l),r(t,kn,l),s(kn,oc),r(t,We,l),r(t,jn,l),s(jn,gc),r(t,Ye,l),r(t,ft,l),s(ft,Ct),s(Ct,ja),v(qs,ja,null),s(ft,mc),s(ft,Ea),s(Ea,dc),r(t,tl,l),r(t,En,l),s(En,fc),r(t,sl,l),r(t,Ts,l),s(Ts,Hs),r(t,nl,l),r(t,Ot,l),s(Ot,_c),s(Ot,Ds),s(Ds,wa),s(wa,vc),s(Ot,bc),r(t,al,l),v(Ps,t,l),r(t,el,l),v(Ns,t,l),r(t,ll,l),r(t,Z,l),s(Z,xc),s(Z,qa),s(qa,yc),s(Z,$c),s(Z,Ta),s(Ta,kc),s(Z,jc),s(Z,Ha),s(Ha,Ec),s(Z,wc),r(t,il,l),v(Cs,t,l),r(t,hl,l),v(Os,t,l),r(t,cl,l),r(t,nt,l),s(nt,qc),s(nt,Da),s(Da,Tc),s(nt,Hc),s(nt,Pa),s(Pa,Dc),s(nt,Pc),r(t,rl,l),v(As,t,l),r(t,pl,l),r(t,wn,l),s(wn,Nc),r(t,ul,l),v(Gs,t,l),r(t,ol,l),r(t,_t,l),s(_t,At),s(At,Na),v(Ss,Na,null),s(_t,Cc),s(_t,Ca),s(Ca,Oc),r(t,gl,l),v(Is,t,l),r(t,ml,l),r(t,at,l),s(at,Ac),s(at,Rs),s(Rs,Gc),s(at,Sc),s(at,Oa),s(Oa,Ic),s(at,Rc),r(t,dl,l),v(Ms,t,l),r(t,fl,l),v(Ls,t,l),r(t,_l,l),r(t,Gt,l),s(Gt,Mc),s(Gt,Aa),s(Aa,Lc),s(Gt,Bc),r(t,vl,l),r(t,St,l),s(St,Uc),s(St,Ga),s(Ga,Fc),s(St,Vc),r(t,bl,l),v(Bs,t,l),r(t,xl,l),r(t,It,l),s(It,zc),s(It,Sa),s(Sa,Kc),s(It,Jc),r(t,yl,l),v(Us,t,l),r(t,$l,l),r(t,Rt,l),s(Rt,Qc),s(Rt,Ia),s(Ia,Zc),s(Rt,Xc),r(t,kl,l),v(Fs,t,l),r(t,jl,l),v(Vs,t,l),r(t,El,l),r(t,et,l),s(et,Wc),s(et,Ra),s(Ra,Yc),s(et,tr),s(et,Ma),s(Ma,sr),s(et,nr),r(t,wl,l),v(Mt,t,l),r(t,ql,l),r(t,Lt,l),s(Lt,ar),s(Lt,La),s(La,er),s(Lt,lr),r(t,Tl,l),v(zs,t,l),r(t,Hl,l),r(t,F,l),s(F,ir),s(F,Ba),s(Ba,hr),s(F,cr),s(F,Ua),s(Ua,rr),s(F,pr),s(F,Fa),s(Fa,ur),s(F,or),s(F,Va),s(Va,gr),s(F,mr),r(t,Dl,l),v(Ks,t,l),r(t,Pl,l),r(t,Bt,l),s(Bt,dr),s(Bt,za),s(za,fr),s(Bt,_r),r(t,Nl,l),v(Js,t,l),r(t,Cl,l),r(t,Ut,l),s(Ut,vr),s(Ut,Ka),s(Ka,br),s(Ut,xr),r(t,Ol,l),r(t,Qs,l),s(Qs,Zs),r(t,Al,l),r(t,lt,l),s(lt,yr),s(lt,Ja),s(Ja,$r),s(lt,kr),s(lt,Qa),s(Qa,jr),s(lt,Er),r(t,Gl,l),v(Xs,t,l),r(t,Sl,l),v(Ws,t,l),r(t,Il,l),r(t,it,l),s(it,wr),s(it,Za),s(Za,qr),s(it,Tr),s(it,Xa),s(Xa,Hr),s(it,Dr),r(t,Rl,l),v(Ft,t,l),r(t,Ml,l),r(t,vt,l),s(vt,Vt),s(Vt,Wa),v(Ys,Wa,null),s(vt,Pr),s(vt,Ya),s(Ya,Nr),r(t,Ll,l),r(t,qn,l),s(qn,Cr),r(t,Bl,l),r(t,zt,l),s(zt,Or),s(zt,te),s(te,Ar),s(zt,Gr),r(t,Ul,l),r(t,Tn,l),s(Tn,bt),s(bt,Sr),s(bt,tn),s(tn,se),s(se,Ir),s(bt,Rr),s(bt,ne),s(ne,Mr),s(bt,Lr),r(t,Fl,l),r(t,sn,l),s(sn,nn),r(t,Vl,l),r(t,Kt,l),s(Kt,Br),s(Kt,an),s(an,Ur),s(Kt,Fr),r(t,zl,l),r(t,ht,l),s(ht,Vr),s(ht,ae),s(ae,zr),s(ht,Kr),s(ht,ee),s(ee,Jr),s(ht,Qr),r(t,Kl,l),r(t,en,l),s(en,ln),r(t,Jl,l),v(Jt,t,l),r(t,Ql,l),r(t,Hn,l),s(Hn,Zr),r(t,Zl,l),v(Qt,t,l),Xl=!0},p(t,[l]){const hn={};l&2&&(hn.$$scope={dirty:l,ctx:t}),qt.$set(hn);const le={};l&2&&(le.$$scope={dirty:l,ctx:t}),Tt.$set(le);const ie={};l&2&&(ie.$$scope={dirty:l,ctx:t}),Pt.$set(ie);const he={};l&2&&(he.$$scope={dirty:l,ctx:t}),Mt.$set(he);const cn={};l&2&&(cn.$$scope={dirty:l,ctx:t}),Ft.$set(cn);const ce={};l&2&&(ce.$$scope={dirty:l,ctx:t}),Jt.$set(ce);const xt={};l&2&&(xt.$$scope={dirty:l,ctx:t}),Qt.$set(xt)},i(t){Xl||(b(d.$$.fragment,t),b(P.$$.fragment,t),b(Wt.$$.fragment,t),b(is.$$.fragment,t),b(hs.$$.fragment,t),b(cs.$$.fragment,t),b(rs.$$.fragment,t),b(us.$$.fragment,t),b(os.$$.fragment,t),b(qt.$$.fragment,t),b(ds.$$.fragment,t),b(Tt.$$.fragment,t),b(fs.$$.fragment,t),b(_s.$$.fragment,t),b(vs.$$.fragment,t),b(bs.$$.fragment,t),b($s.$$.fragment,t),b(ks.$$.fragment,t),b(js.$$.fragment,t),b(Es.$$.fragment,t),b(Pt.$$.fragment,t),b(ws.$$.fragment,t),b(qs.$$.fragment,t),b(Ps.$$.fragment,t),b(Ns.$$.fragment,t),b(Cs.$$.fragment,t),b(Os.$$.fragment,t),b(As.$$.fragment,t),b(Gs.$$.fragment,t),b(Ss.$$.fragment,t),b(Is.$$.fragment,t),b(Ms.$$.fragment,t),b(Ls.$$.fragment,t),b(Bs.$$.fragment,t),b(Us.$$.fragment,t),b(Fs.$$.fragment,t),b(Vs.$$.fragment,t),b(Mt.$$.fragment,t),b(zs.$$.fragment,t),b(Ks.$$.fragment,t),b(Js.$$.fragment,t),b(Xs.$$.fragment,t),b(Ws.$$.fragment,t),b(Ft.$$.fragment,t),b(Ys.$$.fragment,t),b(Jt.$$.fragment,t),b(Qt.$$.fragment,t),Xl=!0)},o(t){x(d.$$.fragment,t),x(P.$$.fragment,t),x(Wt.$$.fragment,t),x(is.$$.fragment,t),x(hs.$$.fragment,t),x(cs.$$.fragment,t),x(rs.$$.fragment,t),x(us.$$.fragment,t),x(os.$$.fragment,t),x(qt.$$.fragment,t),x(ds.$$.fragment,t),x(Tt.$$.fragment,t),x(fs.$$.fragment,t),x(_s.$$.fragment,t),x(vs.$$.fragment,t),x(bs.$$.fragment,t),x($s.$$.fragment,t),x(ks.$$.fragment,t),x(js.$$.fragment,t),x(Es.$$.fragment,t),x(Pt.$$.fragment,t),x(ws.$$.fragment,t),x(qs.$$.fragment,t),x(Ps.$$.fragment,t),x(Ns.$$.fragment,t),x(Cs.$$.fragment,t),x(Os.$$.fragment,t),x(As.$$.fragment,t),x(Gs.$$.fragment,t),x(Ss.$$.fragment,t),x(Is.$$.fragment,t),x(Ms.$$.fragment,t),x(Ls.$$.fragment,t),x(Bs.$$.fragment,t),x(Us.$$.fragment,t),x(Fs.$$.fragment,t),x(Vs.$$.fragment,t),x(Mt.$$.fragment,t),x(zs.$$.fragment,t),x(Ks.$$.fragment,t),x(Js.$$.fragment,t),x(Xs.$$.fragment,t),x(Ws.$$.fragment,t),x(Ft.$$.fragment,t),x(Ys.$$.fragment,t),x(Jt.$$.fragment,t),x(Qt.$$.fragment,t),Xl=!1},d(t){n(o),t&&n(T),t&&n(m),y(d),t&&n(k),y(P,t),t&&n(D),t&&n(N),t&&n(R),t&&n(G),t&&n(re),t&&n(mn),t&&n(pe),t&&n(ot),y(Wt),t&&n(ue),t&&n(jt),t&&n(oe),t&&n(ts),t&&n(ge),t&&n(dn),t&&n(me),t&&n(ns),t&&n(de),t&&n(W),t&&n(fe),t&&n(Et),t&&n(_e),y(is,t),t&&n(ve),t&&n(Y),t&&n(be),y(hs,t),t&&n(xe),t&&n(wt),t&&n(ye),y(cs,t),t&&n($e),y(rs,t),t&&n(ke),t&&n(B),t&&n(je),y(us,t),t&&n(Ee),y(os,t),t&&n(we),t&&n(Q),t&&n(qe),y(qt,t),t&&n(Te),t&&n(L),t&&n(He),y(ds,t),t&&n(De),y(Tt,t),t&&n(Pe),t&&n(fn),t&&n(Ne),y(fs,t),t&&n(Ce),t&&n(tt),t&&n(Oe),y(_s,t),t&&n(Ae),t&&n(Ht),t&&n(Ge),y(vs,t),t&&n(Se),y(bs,t),t&&n(Ie),t&&n(st),t&&n(Re),t&&n(vn),t&&n(Me),t&&n(bn),t&&n(Le),t&&n(mt),y($s),t&&n(Be),t&&n(I),t&&n(Ue),y(ks,t),t&&n(Fe),y(js,t),t&&n(Ve),t&&n(U),t&&n(ze),y(Es,t),t&&n(Ke),y(Pt,t),t&&n(Je),t&&n(yn),t&&n(Qe),t&&n($n),t&&n(Ze),t&&n(dt),y(ws),t&&n(Xe),t&&n(kn),t&&n(We),t&&n(jn),t&&n(Ye),t&&n(ft),y(qs),t&&n(tl),t&&n(En),t&&n(sl),t&&n(Ts),t&&n(nl),t&&n(Ot),t&&n(al),y(Ps,t),t&&n(el),y(Ns,t),t&&n(ll),t&&n(Z),t&&n(il),y(Cs,t),t&&n(hl),y(Os,t),t&&n(cl),t&&n(nt),t&&n(rl),y(As,t),t&&n(pl),t&&n(wn),t&&n(ul),y(Gs,t),t&&n(ol),t&&n(_t),y(Ss),t&&n(gl),y(Is,t),t&&n(ml),t&&n(at),t&&n(dl),y(Ms,t),t&&n(fl),y(Ls,t),t&&n(_l),t&&n(Gt),t&&n(vl),t&&n(St),t&&n(bl),y(Bs,t),t&&n(xl),t&&n(It),t&&n(yl),y(Us,t),t&&n($l),t&&n(Rt),t&&n(kl),y(Fs,t),t&&n(jl),y(Vs,t),t&&n(El),t&&n(et),t&&n(wl),y(Mt,t),t&&n(ql),t&&n(Lt),t&&n(Tl),y(zs,t),t&&n(Hl),t&&n(F),t&&n(Dl),y(Ks,t),t&&n(Pl),t&&n(Bt),t&&n(Nl),y(Js,t),t&&n(Cl),t&&n(Ut),t&&n(Ol),t&&n(Qs),t&&n(Al),t&&n(lt),t&&n(Gl),y(Xs,t),t&&n(Sl),y(Ws,t),t&&n(Il),t&&n(it),t&&n(Rl),y(Ft,t),t&&n(Ml),t&&n(vt),y(Ys),t&&n(Ll),t&&n(qn),t&&n(Bl),t&&n(zt),t&&n(Ul),t&&n(Tn),t&&n(Fl),t&&n(sn),t&&n(Vl),t&&n(Kt),t&&n(zl),t&&n(ht),t&&n(Kl),t&&n(en),t&&n(Jl),y(Jt,t),t&&n(Ql),t&&n(Hn),t&&n(Zl),y(Qt,t)}}}const ko={local:"to-tp-d-liu-ca-ring-bn",sections:[{local:"ly-d-liu",title:"L\u1EA5y d\u1EEF li\u1EC7u"},{local:"lm-sch-d-liu",title:"L\xE0m s\u1EA1ch d\u1EEF li\u1EC7u"},{local:"b-sung-tp-d-liu",title:"B\u1ED5 sung t\u1EADp d\u1EEF li\u1EC7u"},{local:"b-sung-tp-d-liu",title:"B\u1ED5 sung t\u1EADp d\u1EEF li\u1EC7u"},{local:"ti-tp-d-liu-ln-hugging-face-hub",title:"T\u1EA3i t\u1EADp d\u1EEF li\u1EC7u l\xEAn Hugging Face Hub"},{local:"to-th-d-liu",title:"T\u1EA1o th\u1EBB d\u1EEF li\u1EC7u"}],title:"T\u1EA1o t\u1EADp d\u1EEF li\u1EC7u c\u1EE7a ri\xEAng b\u1EA1n"};function jo(M){return uo(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class No extends ho{constructor(o){super();co(this,o,jo,$o,ro,{})}}export{No as default,ko as metadata};
