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