import{s as B,n as G,o as I}from"../chunks/scheduler.cc52f4b9.js";import{S as O,i as R,e as $,s as i,c as w,h as J,a as d,d as a,b as l,f as j,g as y,j as F,k,l as K,m as n,n as M,t as E,o as S,p as z}from"../chunks/index.9480bb2b.js";import{C as Q,H as V,E as W}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.009dc98d.js";import{C as X}from"../chunks/CourseFloatingBanner.6488bde3.js";function Y(N){let s,_,g,x,m,b,r,C,o,P,p,q="这是对 🤗 Datasets 库的一次完整的探索——祝贺你走到这一步！凭借从本章中获得的知识，你应该能够：",v,f,A="<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>",H,u,U='在 <a href="/course/chapter7">第七章</a> ，我们将把所有这些用于深入研究 Transformer 模型擅长的核心 NLP 任务。不过，在跳到下一步之前，先用一次快速的小测验来检验你对 🤗 Datasets 的了解！',D,c,L,h,T;return m=new Q({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),r=new V({props:{title:"🤗 Datasets，完结！",local:"🤗 Datasets，完结！",headingTag:"h1"}}),o=new X({props:{chapter:5,classNames:"absolute z-10 right-0 top-0"}}),c=new W({props:{source:"https://github.com/huggingface/course/blob/main/chapters/zh-CN/chapter5/7.mdx"}}),{c(){s=$("meta"),_=i(),g=$("p"),x=i(),w(m.$$.fragment),b=i(),w(r.$$.fragment),C=i(),w(o.$$.fragment),P=i(),p=$("p"),p.textContent=q,v=i(),f=$("ul"),f.innerHTML=A,H=i(),u=$("p"),u.innerHTML=U,D=i(),w(c.$$.fragment),L=i(),h=$("p"),this.h()},l(t){const e=J("svelte-u9bgzb",document.head);s=d(e,"META",{name:!0,content:!0}),e.forEach(a),_=l(t),g=d(t,"P",{}),j(g).forEach(a),x=l(t),y(m.$$.fragment,t),b=l(t),y(r.$$.fragment,t),C=l(t),y(o.$$.fragment,t),P=l(t),p=d(t,"P",{"data-svelte-h":!0}),F(p)!=="svelte-181z6qq"&&(p.textContent=q),v=l(t),f=d(t,"UL",{"data-svelte-h":!0}),F(f)!=="svelte-1be39x6"&&(f.innerHTML=A),H=l(t),u=d(t,"P",{"data-svelte-h":!0}),F(u)!=="svelte-d56mmd"&&(u.innerHTML=U),D=l(t),y(c.$$.fragment,t),L=l(t),h=d(t,"P",{}),j(h).forEach(a),this.h()},h(){k(s,"name","hf:doc:metadata"),k(s,"content",Z)},m(t,e){K(document.head,s),n(t,_,e),n(t,g,e),n(t,x,e),M(m,t,e),n(t,b,e),M(r,t,e),n(t,C,e),M(o,t,e),n(t,P,e),n(t,p,e),n(t,v,e),n(t,f,e),n(t,H,e),n(t,u,e),n(t,D,e),M(c,t,e),n(t,L,e),n(t,h,e),T=!0},p:G,i(t){T||(E(m.$$.fragment,t),E(r.$$.fragment,t),E(o.$$.fragment,t),E(c.$$.fragment,t),T=!0)},o(t){S(m.$$.fragment,t),S(r.$$.fragment,t),S(o.$$.fragment,t),S(c.$$.fragment,t),T=!1},d(t){t&&(a(_),a(g),a(x),a(b),a(C),a(P),a(p),a(v),a(f),a(H),a(u),a(D),a(L),a(h)),a(s),z(m,t),z(r,t),z(o,t),z(c,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};
