import{s as j,n as k,o as B}from"../chunks/scheduler.37c15a92.js";import{S as G,i as I,g as c,s as i,r as D,A as O,h as $,f as a,c as l,j as q,u as T,x as L,k as U,y as R,a as s,v as y,d as E,t as M,w as S}from"../chunks/index.2bf4358c.js";import{C as J}from"../chunks/CourseFloatingBanner.06521e8b.js";import{H as K,E as Q}from"../chunks/EditOnGithub.8916dc7c.js";function V(F){let n,g,h,d,r,b,m,v,o,N="这是对 🤗 Datasets 库的一次完整游览——祝贺你走到这一步！凭借从本章中获得的知识，您应该能够：",P,p,z="<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>",x,u,A='在<a href="/course/chapter7">第七章</a>，当我们深入研究 Transformer 模型非常适合的核心 NLP 任务时，我们将充分利用所有这些。',H,f,C,_,w;return r=new K({props:{title:"🤗 Datasets，回顾！",local:"🤗 Datasets，回顾！",headingTag:"h1"}}),m=new J({props:{chapter:5,classNames:"absolute z-10 right-0 top-0"}}),f=new Q({props:{source:"https://github.com/huggingface/course/blob/main/chapters/zh-CN/chapter5/7.mdx"}}),{c(){n=c("meta"),g=i(),h=c("p"),d=i(),D(r.$$.fragment),b=i(),D(m.$$.fragment),v=i(),o=c("p"),o.textContent=N,P=i(),p=c("ul"),p.innerHTML=z,x=i(),u=c("p"),u.innerHTML=A,H=i(),D(f.$$.fragment),C=i(),_=c("p"),this.h()},l(t){const e=O("svelte-u9bgzb",document.head);n=$(e,"META",{name:!0,content:!0}),e.forEach(a),g=l(t),h=$(t,"P",{}),q(h).forEach(a),d=l(t),T(r.$$.fragment,t),b=l(t),T(m.$$.fragment,t),v=l(t),o=$(t,"P",{"data-svelte-h":!0}),L(o)!=="svelte-1ypn5no"&&(o.textContent=N),P=l(t),p=$(t,"UL",{"data-svelte-h":!0}),L(p)!=="svelte-1q1d094"&&(p.innerHTML=z),x=l(t),u=$(t,"P",{"data-svelte-h":!0}),L(u)!=="svelte-1f01vp"&&(u.innerHTML=A),H=l(t),T(f.$$.fragment,t),C=l(t),_=$(t,"P",{}),q(_).forEach(a),this.h()},h(){U(n,"name","hf:doc:metadata"),U(n,"content",W)},m(t,e){R(document.head,n),s(t,g,e),s(t,h,e),s(t,d,e),y(r,t,e),s(t,b,e),y(m,t,e),s(t,v,e),s(t,o,e),s(t,P,e),s(t,p,e),s(t,x,e),s(t,u,e),s(t,H,e),y(f,t,e),s(t,C,e),s(t,_,e),w=!0},p:k,i(t){w||(E(r.$$.fragment,t),E(m.$$.fragment,t),E(f.$$.fragment,t),w=!0)},o(t){M(r.$$.fragment,t),M(m.$$.fragment,t),M(f.$$.fragment,t),w=!1},d(t){t&&(a(g),a(h),a(d),a(b),a(v),a(o),a(P),a(p),a(x),a(u),a(H),a(C),a(_)),a(n),S(r,t),S(m,t),S(f,t)}}}const W='{"title":"🤗 Datasets，回顾！","local":"🤗 Datasets，回顾！","sections":[],"depth":1}';function X(F){return B(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class at extends G{constructor(n){super(),I(this,n,X,V,j,{})}}export{at as component};
