import{s as st,n as at,o as mt}from"../chunks/scheduler.cc52f4b9.js";import{S as ut,i as rt,e as a,s as i,c as G,h as ft,a as m,d as l,b as s,f as nt,g as I,j as r,k as it,l as pt,m as n,n as N,t as O,o as R,p as W}from"../chunks/index.9480bb2b.js";import{C as ot,H as $t,E as _t}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.52103c90.js";import{C as vt}from"../chunks/CourseFloatingBanner.78fb31df.js";function Lt(J){let u,w,h,d,f,P,p,U,o,y,$,K="很好地完成了到這裡的課程！總而言之，在本章中，您可以：",E,_,Q="<li>學習了Transformers模型的基本構造塊。</li>",g,v,V="<li>瞭解了標記化管道的組成。</li>",k,L,X="<li>瞭解瞭如何在實踐中使用Transformers模型。</li>",z,x,Y="<li>學習瞭如何利用分詞器將文本轉換為模型可以理解的張量。</li>",S,T,Z="<li>將分詞器和模型一起設置，以從文本到預測。</li>",j,C,tt="<li>瞭解了inputs IDs的侷限性，並瞭解了attention mask。</li>",q,M,et="<li>使用多功能和可配置的分詞器方法。</li>",A,c,lt="從現在起，您應該能夠自由瀏覽🤗 Transformers文檔：詞彙聽起來很熟悉，並且您已經看到了大部分時間將使用的方法。",B,H,D,b,F;return f=new ot({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),p=new $t({props:{title:"基本用法完成！",local:"基本用法完成",headingTag:"h1"}}),o=new vt({props:{chapter:2,classNames:"absolute z-10 right-0 top-0"}}),H=new _t({props:{source:"https://github.com/huggingface/course/blob/main/chapters/zh-TW/chapter2/7.mdx"}}),{c(){u=a("meta"),w=i(),h=a("p"),d=i(),G(f.$$.fragment),P=i(),G(p.$$.fragment),U=i(),G(o.$$.fragment),y=i(),$=a("p"),$.textContent=K,E=i(),_=a("ul"),_.innerHTML=Q,g=i(),v=a("ul"),v.innerHTML=V,k=i(),L=a("ul"),L.innerHTML=X,z=i(),x=a("ul"),x.innerHTML=Y,S=i(),T=a("ul"),T.innerHTML=Z,j=i(),C=a("ul"),C.innerHTML=tt,q=i(),M=a("ul"),M.innerHTML=et,A=i(),c=a("p"),c.textContent=lt,B=i(),G(H.$$.fragment),D=i(),b=a("p"),this.h()},l(t){const e=ft("svelte-u9bgzb",document.head);u=m(e,"META",{name:!0,content:!0}),e.forEach(l),w=s(t),h=m(t,"P",{}),nt(h).forEach(l),d=s(t),I(f.$$.fragment,t),P=s(t),I(p.$$.fragment,t),U=s(t),I(o.$$.fragment,t),y=s(t),$=m(t,"P",{"data-svelte-h":!0}),r($)!=="svelte-mdmo0"&&($.textContent=K),E=s(t),_=m(t,"UL",{"data-svelte-h":!0}),r(_)!=="svelte-8fsc0w"&&(_.innerHTML=Q),g=s(t),v=m(t,"UL",{"data-svelte-h":!0}),r(v)!=="svelte-1dmmvo"&&(v.innerHTML=V),k=s(t),L=m(t,"UL",{"data-svelte-h":!0}),r(L)!=="svelte-nq58gt"&&(L.innerHTML=X),z=s(t),x=m(t,"UL",{"data-svelte-h":!0}),r(x)!=="svelte-1x3ntc9"&&(x.innerHTML=Y),S=s(t),T=m(t,"UL",{"data-svelte-h":!0}),r(T)!=="svelte-1b7wjue"&&(T.innerHTML=Z),j=s(t),C=m(t,"UL",{"data-svelte-h":!0}),r(C)!=="svelte-12oln4w"&&(C.innerHTML=tt),q=s(t),M=m(t,"UL",{"data-svelte-h":!0}),r(M)!=="svelte-8uk1ne"&&(M.innerHTML=et),A=s(t),c=m(t,"P",{"data-svelte-h":!0}),r(c)!=="svelte-1k6v7ct"&&(c.textContent=lt),B=s(t),I(H.$$.fragment,t),D=s(t),b=m(t,"P",{}),nt(b).forEach(l),this.h()},h(){it(u,"name","hf:doc:metadata"),it(u,"content",xt)},m(t,e){pt(document.head,u),n(t,w,e),n(t,h,e),n(t,d,e),N(f,t,e),n(t,P,e),N(p,t,e),n(t,U,e),N(o,t,e),n(t,y,e),n(t,$,e),n(t,E,e),n(t,_,e),n(t,g,e),n(t,v,e),n(t,k,e),n(t,L,e),n(t,z,e),n(t,x,e),n(t,S,e),n(t,T,e),n(t,j,e),n(t,C,e),n(t,q,e),n(t,M,e),n(t,A,e),n(t,c,e),n(t,B,e),N(H,t,e),n(t,D,e),n(t,b,e),F=!0},p:at,i(t){F||(O(f.$$.fragment,t),O(p.$$.fragment,t),O(o.$$.fragment,t),O(H.$$.fragment,t),F=!0)},o(t){R(f.$$.fragment,t),R(p.$$.fragment,t),R(o.$$.fragment,t),R(H.$$.fragment,t),F=!1},d(t){t&&(l(w),l(h),l(d),l(P),l(U),l(y),l($),l(E),l(_),l(g),l(v),l(k),l(L),l(z),l(x),l(S),l(T),l(j),l(C),l(q),l(M),l(A),l(c),l(B),l(D),l(b)),l(u),W(f,t),W(p,t),W(o,t),W(H,t)}}}const xt='{"title":"基本用法完成！","local":"基本用法完成","sections":[],"depth":1}';function Tt(J){return mt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ht extends ut{constructor(u){super(),rt(this,u,Tt,Lt,st,{})}}export{ht as component};
