import{s as U,n as j,o as k}from"../chunks/scheduler.cc52f4b9.js";import{S as F,i as O,e as f,s as o,c as P,h as X,a as $,d as a,b as r,f as D,g as y,j as H,k as N,l as J,m as i,n as M,t as w,o as A,p as B}from"../chunks/index.d2856393.js";import{C as K,H as Q,E as V}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.8ffb7edb.js";import{C as W}from"../chunks/CourseFloatingBanner.59eb3fdc.js";function Y(G){let n,T,h,g,s,_,l,v,m,z,d,S="In questo capitolo, hai scoperto come approcciare diversi compiti di NLP utilizzando la funzione di alto livello <code>pipeline()</code> degli 🤗 Transformer. Abbiamo anche visto come cercare e utilizzare i modelli dell’Hub, nonché come usare l’Inference API per testare i modelli direttamente nel tuo browser.",E,p,q="Abbiamo discusso di come i modelli Transformer lavorino a livello alto, e parlato dell’importanza del transfer learning e dell’affinamento. Un aspetto chiave è che è possibile utilizzare l’architettuta completa oppure solo l’encoder o il decoder, dipendentemente dal compito a cui desideri lavorare. La tabella seguente riordina questi concetti:",x,c,I="<thead><tr><th>Modello</th> <th>Esempi</th> <th>Compiti</th></tr></thead> <tbody><tr><td>Encoder</td> <td>ALBERT, BERT, DistilBERT, ELECTRA, RoBERTa</td> <td>Classificazione frasale, riconoscimento delle entità nominate, estrazione di risposte a domande</td></tr> <tr><td>Decoder</td> <td>CTRL, GPT, GPT-2, Transformer XL</td> <td>Generazione di testi</td></tr> <tr><td>Encoder-decoder</td> <td>BART, T5, Marian, mBART</td> <td>Riassunti, traduzione, generazione di risposte a domande</td></tr></tbody>",C,u,L,b,R;return s=new K({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),l=new Q({props:{title:"Riassunto",local:"riassunto",headingTag:"h1"}}),m=new W({props:{chapter:1,classNames:"absolute z-10 right-0 top-0"}}),u=new V({props:{source:"https://github.com/huggingface/course/blob/main/chapters/it/chapter1/9.mdx"}}),{c(){n=f("meta"),T=o(),h=f("p"),g=o(),P(s.$$.fragment),_=o(),P(l.$$.fragment),v=o(),P(m.$$.fragment),z=o(),d=f("p"),d.innerHTML=S,E=o(),p=f("p"),p.textContent=q,x=o(),c=f("table"),c.innerHTML=I,C=o(),P(u.$$.fragment),L=o(),b=f("p"),this.h()},l(e){const t=X("svelte-u9bgzb",document.head);n=$(t,"META",{name:!0,content:!0}),t.forEach(a),T=r(e),h=$(e,"P",{}),D(h).forEach(a),g=r(e),y(s.$$.fragment,e),_=r(e),y(l.$$.fragment,e),v=r(e),y(m.$$.fragment,e),z=r(e),d=$(e,"P",{"data-svelte-h":!0}),H(d)!=="svelte-rcp72y"&&(d.innerHTML=S),E=r(e),p=$(e,"P",{"data-svelte-h":!0}),H(p)!=="svelte-1xp5tfc"&&(p.textContent=q),x=r(e),c=$(e,"TABLE",{"data-svelte-h":!0}),H(c)!=="svelte-9glssv"&&(c.innerHTML=I),C=r(e),y(u.$$.fragment,e),L=r(e),b=$(e,"P",{}),D(b).forEach(a),this.h()},h(){N(n,"name","hf:doc:metadata"),N(n,"content",Z)},m(e,t){J(document.head,n),i(e,T,t),i(e,h,t),i(e,g,t),M(s,e,t),i(e,_,t),M(l,e,t),i(e,v,t),M(m,e,t),i(e,z,t),i(e,d,t),i(e,E,t),i(e,p,t),i(e,x,t),i(e,c,t),i(e,C,t),M(u,e,t),i(e,L,t),i(e,b,t),R=!0},p:j,i(e){R||(w(s.$$.fragment,e),w(l.$$.fragment,e),w(m.$$.fragment,e),w(u.$$.fragment,e),R=!0)},o(e){A(s.$$.fragment,e),A(l.$$.fragment,e),A(m.$$.fragment,e),A(u.$$.fragment,e),R=!1},d(e){e&&(a(T),a(h),a(g),a(_),a(v),a(z),a(d),a(E),a(p),a(x),a(c),a(C),a(L),a(b)),a(n),B(s,e),B(l,e),B(m,e),B(u,e)}}}const Z='{"title":"Riassunto","local":"riassunto","sections":[],"depth":1}';function ee(G){return k(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class oe extends F{constructor(n){super(),O(this,n,ee,Y,U,{})}}export{oe as component};
