import{s as N,n as q,o as D}from"../chunks/scheduler.37c15a92.js";import{S as F,i as I,g as d,s as r,r as R,A as O,h as c,f as a,c as m,j,u as L,x as w,k,y as U,a as n,v as A,d as B,t as y,w as M}from"../chunks/index.2bf4358c.js";import{C as W}from"../chunks/CourseFloatingBanner.9ff4c771.js";import{H as X,E as J}from"../chunks/getInferenceSnippets.7bb25a7f.js";function K(H){let s,T,h,_,i,b,l,E,o,z="在本章中，您瞭解瞭如何使用來自🤗Transformers 的函數 pipeline() 處理不同的 NLP 任務。您還了解了如何在模型中心（hub）中搜索和使用模型，以及如何使用推理API直接在瀏覽器中測試模型。",g,p,G="我們討論了Transformer模型如何在應用層上工作，並討論了遷移學習和微調的重要性。您可以使用完整的體系結構，也可以僅使用編碼器或解碼器，具體取決於您要解決的任務類型。下表總結了這一點：",x,f,S="<thead><tr><th>模型</th> <th>示例</th> <th>任務</th></tr></thead> <tbody><tr><td>編碼器</td> <td>ALBERT, BERT, DistilBERT, ELECTRA, RoBERTa</td> <td>句子分類、命名實體識別、從文本中提取答案</td></tr> <tr><td>解碼器</td> <td>CTRL, GPT, GPT-2, Transformer XL</td> <td>文本生成</td></tr> <tr><td>編碼器-解碼器</td> <td>BART, T5, Marian, mBART</td> <td>文本摘要、翻譯、生成問題的回答</td></tr></tbody>",C,u,P,$,v;return i=new X({props:{title:"總結",local:"總結",headingTag:"h1"}}),l=new W({props:{chapter:1,classNames:"absolute z-10 right-0 top-0"}}),u=new J({props:{source:"https://github.com/huggingface/course/blob/main/chapters/zh-TW/chapter1/9.mdx"}}),{c(){s=d("meta"),T=r(),h=d("p"),_=r(),R(i.$$.fragment),b=r(),R(l.$$.fragment),E=r(),o=d("p"),o.textContent=z,g=r(),p=d("p"),p.textContent=G,x=r(),f=d("table"),f.innerHTML=S,C=r(),R(u.$$.fragment),P=r(),$=d("p"),this.h()},l(t){const e=O("svelte-u9bgzb",document.head);s=c(e,"META",{name:!0,content:!0}),e.forEach(a),T=m(t),h=c(t,"P",{}),j(h).forEach(a),_=m(t),L(i.$$.fragment,t),b=m(t),L(l.$$.fragment,t),E=m(t),o=c(t,"P",{"data-svelte-h":!0}),w(o)!=="svelte-1dynm68"&&(o.textContent=z),g=m(t),p=c(t,"P",{"data-svelte-h":!0}),w(p)!=="svelte-1k7vjim"&&(p.textContent=G),x=m(t),f=c(t,"TABLE",{"data-svelte-h":!0}),w(f)!=="svelte-72uu6r"&&(f.innerHTML=S),C=m(t),L(u.$$.fragment,t),P=m(t),$=c(t,"P",{}),j($).forEach(a),this.h()},h(){k(s,"name","hf:doc:metadata"),k(s,"content",Q)},m(t,e){U(document.head,s),n(t,T,e),n(t,h,e),n(t,_,e),A(i,t,e),n(t,b,e),A(l,t,e),n(t,E,e),n(t,o,e),n(t,g,e),n(t,p,e),n(t,x,e),n(t,f,e),n(t,C,e),A(u,t,e),n(t,P,e),n(t,$,e),v=!0},p:q,i(t){v||(B(i.$$.fragment,t),B(l.$$.fragment,t),B(u.$$.fragment,t),v=!0)},o(t){y(i.$$.fragment,t),y(l.$$.fragment,t),y(u.$$.fragment,t),v=!1},d(t){t&&(a(T),a(h),a(_),a(b),a(E),a(o),a(g),a(p),a(x),a(f),a(C),a(P),a($)),a(s),M(i,t),M(l,t),M(u,t)}}}const Q='{"title":"總結","local":"總結","sections":[],"depth":1}';function V(H){return D(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class at extends F{constructor(s){super(),I(this,s,V,K,N,{})}}export{at as component};
