import{s as B,n as G,o as I}from"../chunks/scheduler.cc52f4b9.js";import{S as O,i as R,e as c,s as i,c as w,h as W,a as g,d as a,b as l,f as k,g as M,j as F,k as q,l as J,m as n,n as D,t as E,o as S,p as z}from"../chunks/index.9480bb2b.js";import{C as K,H as Q,E as V}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.52103c90.js";import{C as X}from"../chunks/CourseFloatingBanner.78fb31df.js";function Y(N){let s,d,h,b,r,x,m,y,o,P,p,A="這是對 🤗 Datasets 庫的一次完整遊覽——祝賀你走到這一步！憑藉從本章中獲得的知識，您應該能夠：",v,f,U="<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>",C,u,j='在<a href="/course/chapter7">第七章</a>，當我們深入研究 Transformer 模型非常適合的核心 NLP 任務時，我們將充分利用所有這些。',H,$,T,_,L;return r=new K({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),m=new Q({props:{title:"🤗 Datasets，回顧！",local:"-datasets回顧",headingTag:"h1"}}),o=new X({props:{chapter:5,classNames:"absolute z-10 right-0 top-0"}}),$=new V({props:{source:"https://github.com/huggingface/course/blob/main/chapters/zh-TW/chapter5/7.mdx"}}),{c(){s=c("meta"),d=i(),h=c("p"),b=i(),w(r.$$.fragment),x=i(),w(m.$$.fragment),y=i(),w(o.$$.fragment),P=i(),p=c("p"),p.textContent=A,v=i(),f=c("ul"),f.innerHTML=U,C=i(),u=c("p"),u.innerHTML=j,H=i(),w($.$$.fragment),T=i(),_=c("p"),this.h()},l(t){const e=W("svelte-u9bgzb",document.head);s=g(e,"META",{name:!0,content:!0}),e.forEach(a),d=l(t),h=g(t,"P",{}),k(h).forEach(a),b=l(t),M(r.$$.fragment,t),x=l(t),M(m.$$.fragment,t),y=l(t),M(o.$$.fragment,t),P=l(t),p=g(t,"P",{"data-svelte-h":!0}),F(p)!=="svelte-1nehlb"&&(p.textContent=A),v=l(t),f=g(t,"UL",{"data-svelte-h":!0}),F(f)!=="svelte-ymby1y"&&(f.innerHTML=U),C=l(t),u=g(t,"P",{"data-svelte-h":!0}),F(u)!=="svelte-f7tgz2"&&(u.innerHTML=j),H=l(t),M($.$$.fragment,t),T=l(t),_=g(t,"P",{}),k(_).forEach(a),this.h()},h(){q(s,"name","hf:doc:metadata"),q(s,"content",Z)},m(t,e){J(document.head,s),n(t,d,e),n(t,h,e),n(t,b,e),D(r,t,e),n(t,x,e),D(m,t,e),n(t,y,e),D(o,t,e),n(t,P,e),n(t,p,e),n(t,v,e),n(t,f,e),n(t,C,e),n(t,u,e),n(t,H,e),D($,t,e),n(t,T,e),n(t,_,e),L=!0},p:G,i(t){L||(E(r.$$.fragment,t),E(m.$$.fragment,t),E(o.$$.fragment,t),E($.$$.fragment,t),L=!0)},o(t){S(r.$$.fragment,t),S(m.$$.fragment,t),S(o.$$.fragment,t),S($.$$.fragment,t),L=!1},d(t){t&&(a(d),a(h),a(b),a(x),a(y),a(P),a(p),a(v),a(f),a(C),a(u),a(H),a(T),a(_)),a(s),z(r,t),z(m,t),z(o,t),z($,t)}}}const Z='{"title":"🤗 Datasets，回顧！","local":"-datasets回顧","sections":[],"depth":1}';function tt(N){return I(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class it extends O{constructor(s){super(),R(this,s,tt,Y,B,{})}}export{it as component};
