import{s as nt,n as it,o as st}from"../chunks/scheduler.37c15a92.js";import{S as at,i as mt,g as a,s as i,r as D,A as ut,h as m,f as l,c as s,j as et,u as F,x as r,k as lt,y as rt,a as n,v as G,d as I,t as N,w as O}from"../chunks/index.2bf4358c.js";import{C as ft}from"../chunks/CourseFloatingBanner.9ff4c771.js";import{H as pt,E as ot}from"../chunks/getInferenceSnippets.ebf8be91.js";function $t(R){let u,w,M,b,f,d,p,P,o,W="很好地完成了到這裡的課程！總而言之，在本章中，您可以：",U,$,J="<li>學習了Transformers模型的基本構造塊。</li>",E,_,K="<li>瞭解了標記化管道的組成。</li>",k,v,Q="<li>瞭解瞭如何在實踐中使用Transformers模型。</li>",y,L,V="<li>學習瞭如何利用分詞器將文本轉換為模型可以理解的張量。</li>",z,c,X="<li>將分詞器和模型一起設置，以從文本到預測。</li>",S,T,Y="<li>瞭解了inputs IDs的侷限性，並瞭解了attention mask。</li>",j,x,Z="<li>使用多功能和可配置的分詞器方法。</li>",q,C,tt="從現在起，您應該能夠自由瀏覽🤗 Transformers文檔：詞彙聽起來很熟悉，並且您已經看到了大部分時間將使用的方法。",A,H,g,h,B;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-TW/chapter2/7.mdx"}}),{c(){u=a("meta"),w=i(),M=a("p"),b=i(),D(f.$$.fragment),d=i(),D(p.$$.fragment),P=i(),o=a("p"),o.textContent=W,U=i(),$=a("ul"),$.innerHTML=J,E=i(),_=a("ul"),_.innerHTML=K,k=i(),v=a("ul"),v.innerHTML=Q,y=i(),L=a("ul"),L.innerHTML=V,z=i(),c=a("ul"),c.innerHTML=X,S=i(),T=a("ul"),T.innerHTML=Y,j=i(),x=a("ul"),x.innerHTML=Z,q=i(),C=a("p"),C.textContent=tt,A=i(),D(H.$$.fragment),g=i(),h=a("p"),this.h()},l(t){const e=ut("svelte-u9bgzb",document.head);u=m(e,"META",{name:!0,content:!0}),e.forEach(l),w=s(t),M=m(t,"P",{}),et(M).forEach(l),b=s(t),F(f.$$.fragment,t),d=s(t),F(p.$$.fragment,t),P=s(t),o=m(t,"P",{"data-svelte-h":!0}),r(o)!=="svelte-mdmo0"&&(o.textContent=W),U=s(t),$=m(t,"UL",{"data-svelte-h":!0}),r($)!=="svelte-8fsc0w"&&($.innerHTML=J),E=s(t),_=m(t,"UL",{"data-svelte-h":!0}),r(_)!=="svelte-1dmmvo"&&(_.innerHTML=K),k=s(t),v=m(t,"UL",{"data-svelte-h":!0}),r(v)!=="svelte-nq58gt"&&(v.innerHTML=Q),y=s(t),L=m(t,"UL",{"data-svelte-h":!0}),r(L)!=="svelte-1x3ntc9"&&(L.innerHTML=V),z=s(t),c=m(t,"UL",{"data-svelte-h":!0}),r(c)!=="svelte-1b7wjue"&&(c.innerHTML=X),S=s(t),T=m(t,"UL",{"data-svelte-h":!0}),r(T)!=="svelte-12oln4w"&&(T.innerHTML=Y),j=s(t),x=m(t,"UL",{"data-svelte-h":!0}),r(x)!=="svelte-8uk1ne"&&(x.innerHTML=Z),q=s(t),C=m(t,"P",{"data-svelte-h":!0}),r(C)!=="svelte-1k6v7ct"&&(C.textContent=tt),A=s(t),F(H.$$.fragment,t),g=s(t),h=m(t,"P",{}),et(h).forEach(l),this.h()},h(){lt(u,"name","hf:doc:metadata"),lt(u,"content",_t)},m(t,e){rt(document.head,u),n(t,w,e),n(t,M,e),n(t,b,e),G(f,t,e),n(t,d,e),G(p,t,e),n(t,P,e),n(t,o,e),n(t,U,e),n(t,$,e),n(t,E,e),n(t,_,e),n(t,k,e),n(t,v,e),n(t,y,e),n(t,L,e),n(t,z,e),n(t,c,e),n(t,S,e),n(t,T,e),n(t,j,e),n(t,x,e),n(t,q,e),n(t,C,e),n(t,A,e),G(H,t,e),n(t,g,e),n(t,h,e),B=!0},p:it,i(t){B||(I(f.$$.fragment,t),I(p.$$.fragment,t),I(H.$$.fragment,t),B=!0)},o(t){N(f.$$.fragment,t),N(p.$$.fragment,t),N(H.$$.fragment,t),B=!1},d(t){t&&(l(w),l(M),l(b),l(d),l(P),l(o),l(U),l($),l(E),l(_),l(k),l(v),l(y),l(L),l(z),l(c),l(S),l(T),l(j),l(x),l(q),l(C),l(A),l(g),l(h)),l(u),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(u){super(),mt(this,u,vt,$t,nt,{})}}export{Ct as component};
