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 w,A as O,h as $,f as a,c as l,j as A,u as T,x as L,k as U,y as R,a as s,v as E,d as M,t as y,w as S}from"../chunks/index.2bf4358c.js";import{C as J}from"../chunks/CourseFloatingBanner.9ff4c771.js";import{H as K,E as Q}from"../chunks/getInferenceSnippets.1837c472.js";function V(z){let n,_,d,g,r,b,m,x,o,F="这是对 🤗 Datasets 库的一次完整的探索——祝贺你走到这一步！凭借从本章中获得的知识，你应该能够：",P,u,N="<li>从任何地方加载数据集，无论是 Hugging Face Hub、你的笔记本电脑还是你公司的远程服务器。</li> <li>混合使用 <code>Dataset.map()</code> 和 <code>Dataset.filter()</code> 函数来整理数据。</li> <li>使用 <code>Dataset.set_format()</code> 在 Pandas 和 NumPy 等数据格式之间快速切换。</li> <li>创建你自己的数据集并将其推送到 Hugging Face Hub。</li> <li>使用 Transformer 模型为你的文档创建文本嵌入，并使用 FAISS 构建语义搜索引擎。</li>",v,p,q='在 <a href="/course/chapter7">第七章</a> ，我们将把所有这些用于深入研究 Transformer 模型擅长的核心 NLP 任务。不过，在跳到下一步之前，先用一次快速的小测验来检验你对 🤗 Datasets 的了解！',H,f,C,h,D;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"),_=i(),d=c("p"),g=i(),w(r.$$.fragment),b=i(),w(m.$$.fragment),x=i(),o=c("p"),o.textContent=F,P=i(),u=c("ul"),u.innerHTML=N,v=i(),p=c("p"),p.innerHTML=q,H=i(),w(f.$$.fragment),C=i(),h=c("p"),this.h()},l(t){const e=O("svelte-u9bgzb",document.head);n=$(e,"META",{name:!0,content:!0}),e.forEach(a),_=l(t),d=$(t,"P",{}),A(d).forEach(a),g=l(t),T(r.$$.fragment,t),b=l(t),T(m.$$.fragment,t),x=l(t),o=$(t,"P",{"data-svelte-h":!0}),L(o)!=="svelte-181z6qq"&&(o.textContent=F),P=l(t),u=$(t,"UL",{"data-svelte-h":!0}),L(u)!=="svelte-1be39x6"&&(u.innerHTML=N),v=l(t),p=$(t,"P",{"data-svelte-h":!0}),L(p)!=="svelte-d56mmd"&&(p.innerHTML=q),H=l(t),T(f.$$.fragment,t),C=l(t),h=$(t,"P",{}),A(h).forEach(a),this.h()},h(){U(n,"name","hf:doc:metadata"),U(n,"content",W)},m(t,e){R(document.head,n),s(t,_,e),s(t,d,e),s(t,g,e),E(r,t,e),s(t,b,e),E(m,t,e),s(t,x,e),s(t,o,e),s(t,P,e),s(t,u,e),s(t,v,e),s(t,p,e),s(t,H,e),E(f,t,e),s(t,C,e),s(t,h,e),D=!0},p:k,i(t){D||(M(r.$$.fragment,t),M(m.$$.fragment,t),M(f.$$.fragment,t),D=!0)},o(t){y(r.$$.fragment,t),y(m.$$.fragment,t),y(f.$$.fragment,t),D=!1},d(t){t&&(a(_),a(d),a(g),a(b),a(x),a(o),a(P),a(u),a(v),a(p),a(H),a(C),a(h)),a(n),S(r,t),S(m,t),S(f,t)}}}const W='{"title":"🤗 Datasets，完结！","local":"🤗 Datasets，完结！","sections":[],"depth":1}';function X(z){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};
