import{s as nt,n as it,o as st}from"../chunks/scheduler.37c15a92.js";import{S as at,i as ut,g as a,s as i,r as B,A as mt,h as u,f as l,c as s,j as et,u as D,x as r,k as lt,y as rt,a as n,v as F,d as G,t as I,w as O}from"../chunks/index.2bf4358c.js";import{C as ft}from"../chunks/CourseFloatingBanner.06521e8b.js";import{H as pt,E as ot}from"../chunks/EditOnGithub.8916dc7c.js";function $t(R){let m,b,M,w,f,P,p,U,o,J="很好地完成了到这里的课程！总而言之，在本章中，您可以：",d,$,K="<li>学习了Transformers模型的基本构造块。</li>",E,_,Q="<li>了解了标记化管道的组成。</li>",g,v,V="<li>了解了如何在实践中使用Transformers模型。</li>",y,L,W="<li>学习了如何利用分词器将文本转换为模型可以理解的张量。</li>",z,x,X="<li>将分词器和模型一起设置，以从文本到预测。</li>",S,c,Y="<li>了解了inputs IDs的局限性，并了解了attention mask。</li>",j,T,Z="<li>使用多功能和可配置的分词器方法。</li>",k,C,tt="从现在起，您应该能够自由浏览🤗 Transformers文档：词汇听起来很熟悉，并且您已经看到了大部分时间将使用的方法。",q,H,A,h,N;return f=new pt({props:{title:"基本用法完成！",local:"基本用法完成！",headingTag:"h1"}}),p=new ft({props:{chapter:2,classNames:"absolute z-10 right-0 top-0"}}),H=new ot({props:{source:"https://github.com/huggingface/course/blob/main/chapters/zh-CN/chapter2/7.mdx"}}),{c(){m=a("meta"),b=i(),M=a("p"),w=i(),B(f.$$.fragment),P=i(),B(p.$$.fragment),U=i(),o=a("p"),o.textContent=J,d=i(),$=a("ul"),$.innerHTML=K,E=i(),_=a("ul"),_.innerHTML=Q,g=i(),v=a("ul"),v.innerHTML=V,y=i(),L=a("ul"),L.innerHTML=W,z=i(),x=a("ul"),x.innerHTML=X,S=i(),c=a("ul"),c.innerHTML=Y,j=i(),T=a("ul"),T.innerHTML=Z,k=i(),C=a("p"),C.textContent=tt,q=i(),B(H.$$.fragment),A=i(),h=a("p"),this.h()},l(t){const e=mt("svelte-u9bgzb",document.head);m=u(e,"META",{name:!0,content:!0}),e.forEach(l),b=s(t),M=u(t,"P",{}),et(M).forEach(l),w=s(t),D(f.$$.fragment,t),P=s(t),D(p.$$.fragment,t),U=s(t),o=u(t,"P",{"data-svelte-h":!0}),r(o)!=="svelte-1x5xbr9"&&(o.textContent=J),d=s(t),$=u(t,"UL",{"data-svelte-h":!0}),r($)!=="svelte-3u49pe"&&($.innerHTML=K),E=s(t),_=u(t,"UL",{"data-svelte-h":!0}),r(_)!=="svelte-9850bj"&&(_.innerHTML=Q),g=s(t),v=u(t,"UL",{"data-svelte-h":!0}),r(v)!=="svelte-93cxeo"&&(v.innerHTML=V),y=s(t),L=u(t,"UL",{"data-svelte-h":!0}),r(L)!=="svelte-ggg8p9"&&(L.innerHTML=W),z=s(t),x=u(t,"UL",{"data-svelte-h":!0}),r(x)!=="svelte-t1zg56"&&(x.innerHTML=X),S=s(t),c=u(t,"UL",{"data-svelte-h":!0}),r(c)!=="svelte-1tu57qr"&&(c.innerHTML=Y),j=s(t),T=u(t,"UL",{"data-svelte-h":!0}),r(T)!=="svelte-y5pgc9"&&(T.innerHTML=Z),k=s(t),C=u(t,"P",{"data-svelte-h":!0}),r(C)!=="svelte-npr1vt"&&(C.textContent=tt),q=s(t),D(H.$$.fragment,t),A=s(t),h=u(t,"P",{}),et(h).forEach(l),this.h()},h(){lt(m,"name","hf:doc:metadata"),lt(m,"content",_t)},m(t,e){rt(document.head,m),n(t,b,e),n(t,M,e),n(t,w,e),F(f,t,e),n(t,P,e),F(p,t,e),n(t,U,e),n(t,o,e),n(t,d,e),n(t,$,e),n(t,E,e),n(t,_,e),n(t,g,e),n(t,v,e),n(t,y,e),n(t,L,e),n(t,z,e),n(t,x,e),n(t,S,e),n(t,c,e),n(t,j,e),n(t,T,e),n(t,k,e),n(t,C,e),n(t,q,e),F(H,t,e),n(t,A,e),n(t,h,e),N=!0},p:it,i(t){N||(G(f.$$.fragment,t),G(p.$$.fragment,t),G(H.$$.fragment,t),N=!0)},o(t){I(f.$$.fragment,t),I(p.$$.fragment,t),I(H.$$.fragment,t),N=!1},d(t){t&&(l(b),l(M),l(w),l(P),l(U),l(o),l(d),l($),l(E),l(_),l(g),l(v),l(y),l(L),l(z),l(x),l(S),l(c),l(j),l(T),l(k),l(C),l(q),l(A),l(h)),l(m),O(f,t),O(p,t),O(H,t)}}}const _t='{"title":"基本用法完成！","local":"基本用法完成！","sections":[],"depth":1}';function vt(R){return st(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ct extends at{constructor(m){super(),ut(this,m,vt,$t,nt,{})}}export{Ct as component};
