import{S as gt,i as yt,s as Pt,e as s,k as m,w as ht,t as i,M as wt,c as r,d as a,m as u,a as o,x as _t,h as f,b as y,G as e,g as _,y as dt,L as Dt,q as vt,o as $t,B as Et,v as Lt}from"../../chunks/vendor-hf-doc-builder.js";import{I as St}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as bt}from"../../chunks/CourseFloatingBanner-hf-doc-builder.js";import"../../chunks/DocNotebookDropdown-hf-doc-builder.js";function Ht(st){let p,x,h,d,D,$,O,L,U,A,E,F,P,z,k,l,S,G,J,b,R,j,g,K,H,Q,V,W,I,X,Y,N,Z,C,v,tt,w,et,at,T;return $=new St({}),E=new bt({props:{chapter:5,classNames:"absolute z-10 right-0 top-0"}}),{c(){p=s("meta"),x=m(),h=s("h1"),d=s("a"),D=s("span"),ht($.$$.fragment),O=m(),L=s("span"),U=i("\u{1F917} Datasets\uFF0C\u56DE\u987E\uFF01"),A=m(),ht(E.$$.fragment),F=m(),P=s("p"),z=i("\u8FD9\u662F\u5BF9 \u{1F917} Datasets \u5E93\u7684\u4E00\u6B21\u5B8C\u6574\u6E38\u89C8\u2014\u2014\u795D\u8D3A\u4F60\u8D70\u5230\u8FD9\u4E00\u6B65\uFF01\u51ED\u501F\u4ECE\u672C\u7AE0\u4E2D\u83B7\u5F97\u7684\u77E5\u8BC6\uFF0C\u60A8\u5E94\u8BE5\u80FD\u591F\uFF1A"),k=m(),l=s("ul"),S=s("li"),G=i("\u4ECE\u4EFB\u4F55\u5730\u65B9\u52A0\u8F7D\u6570\u636E\u96C6\uFF0C\u65E0\u8BBA\u662F Hugging Face Hub\u3001\u60A8\u7684\u7B14\u8BB0\u672C\u7535\u8111\u8FD8\u662F\u60A8\u516C\u53F8\u7684\u8FDC\u7A0B\u670D\u52A1\u5668\u3002"),J=m(),b=s("li"),R=i("\u6DF7\u5408\u4F7F\u7528Dataset.map()\u548CDataset.filter()\u51FD\u6570\u6765\u6574\u7406\u6570\u636E\u3002"),j=m(),g=s("li"),K=i("\u4F7F\u7528"),H=s("code"),Q=i("Dataset.set_format()"),V=i("\u5728 Pandas \u548C NumPy \u7B49\u6570\u636E\u683C\u5F0F\u4E4B\u95F4\u5FEB\u901F\u5207\u6362."),W=m(),I=s("li"),X=i("\u521B\u5EFA\u60A8\u81EA\u5DF1\u7684\u6570\u636E\u96C6\u5E76\u5C06\u5176\u63A8\u9001\u5230 Hugging Face Hub\u3002."),Y=m(),N=s("li"),Z=i("\u4F7F\u7528 Transformer \u6A21\u578B\u4E3A\u60A8\u7684\u6587\u6863\u521B\u5EFA\u8BCD\u5D4C\u5165\uFF0C\u5E76\u4F7F\u7528 FAISS \u6784\u5EFA\u8BED\u4E49\u641C\u7D22\u5F15\u64CE\u3002."),C=m(),v=s("p"),tt=i("\u5728"),w=s("a"),et=i("\u7B2C\u4E03\u7AE0"),at=i("\uFF0C\u5F53\u6211\u4EEC\u6DF1\u5165\u7814\u7A76 Transformer \u6A21\u578B\u975E\u5E38\u9002\u5408\u7684\u6838\u5FC3 NLP \u4EFB\u52A1\u65F6\uFF0C\u6211\u4EEC\u5C06\u5145\u5206\u5229\u7528\u6240\u6709\u8FD9\u4E9B\u3002"),this.h()},l(t){const n=wt('[data-svelte="svelte-1phssyn"]',document.head);p=r(n,"META",{name:!0,content:!0}),n.forEach(a),x=u(t),h=r(t,"H1",{class:!0});var q=o(h);d=r(q,"A",{id:!0,class:!0,href:!0});var rt=o(d);D=r(rt,"SPAN",{});var lt=o(D);_t($.$$.fragment,lt),lt.forEach(a),rt.forEach(a),O=u(q),L=r(q,"SPAN",{});var ot=o(L);U=f(ot,"\u{1F917} Datasets\uFF0C\u56DE\u987E\uFF01"),ot.forEach(a),q.forEach(a),A=u(t),_t(E.$$.fragment,t),F=u(t),P=r(t,"P",{});var nt=o(P);z=f(nt,"\u8FD9\u662F\u5BF9 \u{1F917} Datasets \u5E93\u7684\u4E00\u6B21\u5B8C\u6574\u6E38\u89C8\u2014\u2014\u795D\u8D3A\u4F60\u8D70\u5230\u8FD9\u4E00\u6B65\uFF01\u51ED\u501F\u4ECE\u672C\u7AE0\u4E2D\u83B7\u5F97\u7684\u77E5\u8BC6\uFF0C\u60A8\u5E94\u8BE5\u80FD\u591F\uFF1A"),nt.forEach(a),k=u(t),l=r(t,"UL",{});var c=o(l);S=r(c,"LI",{});var it=o(S);G=f(it,"\u4ECE\u4EFB\u4F55\u5730\u65B9\u52A0\u8F7D\u6570\u636E\u96C6\uFF0C\u65E0\u8BBA\u662F Hugging Face Hub\u3001\u60A8\u7684\u7B14\u8BB0\u672C\u7535\u8111\u8FD8\u662F\u60A8\u516C\u53F8\u7684\u8FDC\u7A0B\u670D\u52A1\u5668\u3002"),it.forEach(a),J=u(c),b=r(c,"LI",{});var ft=o(b);R=f(ft,"\u6DF7\u5408\u4F7F\u7528Dataset.map()\u548CDataset.filter()\u51FD\u6570\u6765\u6574\u7406\u6570\u636E\u3002"),ft.forEach(a),j=u(c),g=r(c,"LI",{});var M=o(g);K=f(M,"\u4F7F\u7528"),H=r(M,"CODE",{});var ct=o(H);Q=f(ct,"Dataset.set_format()"),ct.forEach(a),V=f(M,"\u5728 Pandas \u548C NumPy \u7B49\u6570\u636E\u683C\u5F0F\u4E4B\u95F4\u5FEB\u901F\u5207\u6362."),M.forEach(a),W=u(c),I=r(c,"LI",{});var mt=o(I);X=f(mt,"\u521B\u5EFA\u60A8\u81EA\u5DF1\u7684\u6570\u636E\u96C6\u5E76\u5C06\u5176\u63A8\u9001\u5230 Hugging Face Hub\u3002."),mt.forEach(a),Y=u(c),N=r(c,"LI",{});var ut=o(N);Z=f(ut,"\u4F7F\u7528 Transformer \u6A21\u578B\u4E3A\u60A8\u7684\u6587\u6863\u521B\u5EFA\u8BCD\u5D4C\u5165\uFF0C\u5E76\u4F7F\u7528 FAISS \u6784\u5EFA\u8BED\u4E49\u641C\u7D22\u5F15\u64CE\u3002."),ut.forEach(a),c.forEach(a),C=u(t),v=r(t,"P",{});var B=o(v);tt=f(B,"\u5728"),w=r(B,"A",{href:!0});var pt=o(w);et=f(pt,"\u7B2C\u4E03\u7AE0"),pt.forEach(a),at=f(B,"\uFF0C\u5F53\u6211\u4EEC\u6DF1\u5165\u7814\u7A76 Transformer \u6A21\u578B\u975E\u5E38\u9002\u5408\u7684\u6838\u5FC3 NLP \u4EFB\u52A1\u65F6\uFF0C\u6211\u4EEC\u5C06\u5145\u5206\u5229\u7528\u6240\u6709\u8FD9\u4E9B\u3002"),B.forEach(a),this.h()},h(){y(p,"name","hf:doc:metadata"),y(p,"content",JSON.stringify(It)),y(d,"id","datasets"),y(d,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),y(d,"href","#datasets"),y(h,"class","relative group"),y(w,"href","/course/chapter7")},m(t,n){e(document.head,p),_(t,x,n),_(t,h,n),e(h,d),e(d,D),dt($,D,null),e(h,O),e(h,L),e(L,U),_(t,A,n),dt(E,t,n),_(t,F,n),_(t,P,n),e(P,z),_(t,k,n),_(t,l,n),e(l,S),e(S,G),e(l,J),e(l,b),e(b,R),e(l,j),e(l,g),e(g,K),e(g,H),e(H,Q),e(g,V),e(l,W),e(l,I),e(I,X),e(l,Y),e(l,N),e(N,Z),_(t,C,n),_(t,v,n),e(v,tt),e(v,w),e(w,et),e(v,at),T=!0},p:Dt,i(t){T||(vt($.$$.fragment,t),vt(E.$$.fragment,t),T=!0)},o(t){$t($.$$.fragment,t),$t(E.$$.fragment,t),T=!1},d(t){a(p),t&&a(x),t&&a(h),Et($),t&&a(A),Et(E,t),t&&a(F),t&&a(P),t&&a(k),t&&a(l),t&&a(C),t&&a(v)}}}const It={local:"datasets",title:"\u{1F917} Datasets\uFF0C\u56DE\u987E\uFF01"};function Nt(st){return Lt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ct extends gt{constructor(p){super();yt(this,p,Nt,Ht,Pt,{})}}export{Ct as default,It as metadata};
