import{s as z,n as G,o as N}from"../chunks/scheduler.37c15a92.js";import{S as q,i as D,g as f,s as d,r as w,A as F,h as u,f as a,c as p,j as y,u as g,x as R,k as M,y as I,a as n,v as H,d as S,t as j,w as k}from"../chunks/index.2bf4358c.js";import{C as U}from"../chunks/CourseFloatingBanner.06521e8b.js";import{H as X}from"../chunks/Heading.8ada512a.js";function J(b){let s,T,c,_,r,$,l,C,o,L="在本章中，您瞭解瞭如何使用來自🤗Transformers 的函數 pipeline() 處理不同的 NLP 任務。您還了解了如何在模型中心（hub）中搜索和使用模型，以及如何使用推理API直接在瀏覽器中測試模型。",P,i,A="我們討論了Transformer模型如何在應用層上工作，並討論了遷移學習和微調的重要性。您可以使用完整的體系結構，也可以僅使用編碼器或解碼器，具體取決於您要解決的任務類型。下表總結了這一點：",v,m,B="<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>",x,h,E;return r=new X({props:{title:"總結",local:"總結",headingTag:"h1"}}),l=new U({props:{chapter:1,classNames:"absolute z-10 right-0 top-0"}}),{c(){s=f("meta"),T=d(),c=f("p"),_=d(),w(r.$$.fragment),$=d(),w(l.$$.fragment),C=d(),o=f("p"),o.textContent=L,P=d(),i=f("p"),i.textContent=A,v=d(),m=f("table"),m.innerHTML=B,x=d(),h=f("p"),this.h()},l(t){const e=F("svelte-u9bgzb",document.head);s=u(e,"META",{name:!0,content:!0}),e.forEach(a),T=p(t),c=u(t,"P",{}),y(c).forEach(a),_=p(t),g(r.$$.fragment,t),$=p(t),g(l.$$.fragment,t),C=p(t),o=u(t,"P",{"data-svelte-h":!0}),R(o)!=="svelte-1dynm68"&&(o.textContent=L),P=p(t),i=u(t,"P",{"data-svelte-h":!0}),R(i)!=="svelte-1k7vjim"&&(i.textContent=A),v=p(t),m=u(t,"TABLE",{"data-svelte-h":!0}),R(m)!=="svelte-72uu6r"&&(m.innerHTML=B),x=p(t),h=u(t,"P",{}),y(h).forEach(a),this.h()},h(){M(s,"name","hf:doc:metadata"),M(s,"content",K)},m(t,e){I(document.head,s),n(t,T,e),n(t,c,e),n(t,_,e),H(r,t,e),n(t,$,e),H(l,t,e),n(t,C,e),n(t,o,e),n(t,P,e),n(t,i,e),n(t,v,e),n(t,m,e),n(t,x,e),n(t,h,e),E=!0},p:G,i(t){E||(S(r.$$.fragment,t),S(l.$$.fragment,t),E=!0)},o(t){j(r.$$.fragment,t),j(l.$$.fragment,t),E=!1},d(t){t&&(a(T),a(c),a(_),a($),a(C),a(o),a(P),a(i),a(v),a(m),a(x),a(h)),a(s),k(r,t),k(l,t)}}}const K='{"title":"總結","local":"總結","sections":[],"depth":1}';function O(b){return N(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Z extends q{constructor(s){super(),D(this,s,O,J,z,{})}}export{Z as component};
