import{s as U,n as j,o as k}from"../chunks/scheduler.37c15a92.js";import{S as q,i as B,g as u,s as f,r as D,A as I,h as c,f as a,c as p,j as M,u as S,x as y,k as E,y as R,a as s,v as F,d as z,t as A,w as N}from"../chunks/index.2bf4358c.js";import{C as G}from"../chunks/CourseFloatingBanner.06521e8b.js";import{H as J}from"../chunks/Heading.8ada512a.js";function K(C){let n,h,_,$,l,g,i,P,r,T="這是對 🤗 Datasets 庫的一次完整遊覽——祝賀你走到這一步！憑藉從本章中獲得的知識，您應該能夠：",v,o,w="<li>從任何地方加載數據集，無論是 Hugging Face Hub、您的筆記本電腦還是您公司的遠程服務器。</li> <li>混合使用Dataset.map()和Dataset.filter()函數來整理數據。</li> <li>使用<code>Dataset.set_format()</code>在 Pandas 和 NumPy 等數據格式之間快速切換.</li> <li>創建您自己的數據集並將其推送到 Hugging Face Hub。.</li> <li>使用 Transformer 模型為您的文檔創建詞嵌入，並使用 FAISS 構建語義搜索引擎。.</li>",H,m,L='在<a href="/course/chapter7">第七章</a>，當我們深入研究 Transformer 模型非常適合的核心 NLP 任務時，我們將充分利用所有這些。',x,d,b;return l=new J({props:{title:"🤗 Datasets，回顧！",local:"-datasets回顧",headingTag:"h1"}}),i=new G({props:{chapter:5,classNames:"absolute z-10 right-0 top-0"}}),{c(){n=u("meta"),h=f(),_=u("p"),$=f(),D(l.$$.fragment),g=f(),D(i.$$.fragment),P=f(),r=u("p"),r.textContent=T,v=f(),o=u("ul"),o.innerHTML=w,H=f(),m=u("p"),m.innerHTML=L,x=f(),d=u("p"),this.h()},l(t){const e=I("svelte-u9bgzb",document.head);n=c(e,"META",{name:!0,content:!0}),e.forEach(a),h=p(t),_=c(t,"P",{}),M(_).forEach(a),$=p(t),S(l.$$.fragment,t),g=p(t),S(i.$$.fragment,t),P=p(t),r=c(t,"P",{"data-svelte-h":!0}),y(r)!=="svelte-1nehlb"&&(r.textContent=T),v=p(t),o=c(t,"UL",{"data-svelte-h":!0}),y(o)!=="svelte-ymby1y"&&(o.innerHTML=w),H=p(t),m=c(t,"P",{"data-svelte-h":!0}),y(m)!=="svelte-f7tgz2"&&(m.innerHTML=L),x=p(t),d=c(t,"P",{}),M(d).forEach(a),this.h()},h(){E(n,"name","hf:doc:metadata"),E(n,"content",O)},m(t,e){R(document.head,n),s(t,h,e),s(t,_,e),s(t,$,e),F(l,t,e),s(t,g,e),F(i,t,e),s(t,P,e),s(t,r,e),s(t,v,e),s(t,o,e),s(t,H,e),s(t,m,e),s(t,x,e),s(t,d,e),b=!0},p:j,i(t){b||(z(l.$$.fragment,t),z(i.$$.fragment,t),b=!0)},o(t){A(l.$$.fragment,t),A(i.$$.fragment,t),b=!1},d(t){t&&(a(h),a(_),a($),a(g),a(P),a(r),a(v),a(o),a(H),a(m),a(x),a(d)),a(n),N(l,t),N(i,t)}}}const O='{"title":"🤗 Datasets，回顧！","local":"-datasets回顧","sections":[],"depth":1}';function Q(C){return k(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Z extends q{constructor(n){super(),B(this,n,Q,K,U,{})}}export{Z as component};
