import{s as F,n as J,o as G}from"../chunks/scheduler.37c15a92.js";import{S as K,i as O,g as r,s as l,r as y,A as V,h as s,f as o,c as n,j as Y,u as H,x as v,k as D,y as W,a,v as q,d as A,t as B,w as S}from"../chunks/index.2bf4358c.js";import{Y as X}from"../chunks/Youtube.1e50a667.js";import{C as Z}from"../chunks/CourseFloatingBanner.06521e8b.js";import{H as ee}from"../chunks/Heading.8ada512a.js";function te(I){let i,x,$,z,m,C,c,w,p,b,f,U="I modelli encoder utilizzano solo l’encoder di un modello Transformer. In ogni fase, gli attention layer hanno accesso a tutte le parole della frase di partenza. Questi modelli sono spesso caratterizzati come aventi attenzione “bi-direzionale” e chiamati <em>auto-encoding models</em>.",T,d,j="Solitamente, il pre-addestramento di questi modelli consiste nel corrompere una determinata frase (ad esempio, nascondendone casualmente alcune parole) e incaricare il modello di ritrovare o ricostruire la frase di partenza.",P,u,k="I modelli encoder sono particolarmente appropriati per compiti che richiedono la comprensione di frasi intere, quali la classificazione di frasi, riconoscimento delle entità nominate (e in senso più ampio, la classificazione di parole), e l’estrazione di risposte da un contesto.",E,h,N="Alcuni esempi di modelli di questo tipo includono:",M,_,Q='<li><a href="https://huggingface.co/transformers/model_doc/albert.html" rel="nofollow">ALBERT</a></li> <li><a href="https://huggingface.co/transformers/model_doc/bert.html" rel="nofollow">BERT</a></li> <li><a href="https://huggingface.co/transformers/model_doc/distilbert.html" rel="nofollow">DistilBERT</a></li> <li><a href="https://huggingface.co/transformers/model_doc/electra.html" rel="nofollow">ELECTRA</a></li> <li><a href="https://huggingface.co/transformers/model_doc/roberta.html" rel="nofollow">RoBERTa</a></li>',L,g,R;return m=new ee({props:{title:"Modelli encoder",local:"modelli-encoder",headingTag:"h1"}}),c=new Z({props:{chapter:1,classNames:"absolute z-10 right-0 top-0"}}),p=new X({props:{id:"MUqNwgPjJvQ"}}),{c(){i=r("meta"),x=l(),$=r("p"),z=l(),y(m.$$.fragment),C=l(),y(c.$$.fragment),w=l(),y(p.$$.fragment),b=l(),f=r("p"),f.innerHTML=U,T=l(),d=r("p"),d.textContent=j,P=l(),u=r("p"),u.textContent=k,E=l(),h=r("p"),h.textContent=N,M=l(),_=r("ul"),_.innerHTML=Q,L=l(),g=r("p"),this.h()},l(e){const t=V("svelte-u9bgzb",document.head);i=s(t,"META",{name:!0,content:!0}),t.forEach(o),x=n(e),$=s(e,"P",{}),Y($).forEach(o),z=n(e),H(m.$$.fragment,e),C=n(e),H(c.$$.fragment,e),w=n(e),H(p.$$.fragment,e),b=n(e),f=s(e,"P",{"data-svelte-h":!0}),v(f)!=="svelte-1x22878"&&(f.innerHTML=U),T=n(e),d=s(e,"P",{"data-svelte-h":!0}),v(d)!=="svelte-c8x68b"&&(d.textContent=j),P=n(e),u=s(e,"P",{"data-svelte-h":!0}),v(u)!=="svelte-tdphia"&&(u.textContent=k),E=n(e),h=s(e,"P",{"data-svelte-h":!0}),v(h)!=="svelte-11m5d4t"&&(h.textContent=N),M=n(e),_=s(e,"UL",{"data-svelte-h":!0}),v(_)!=="svelte-18kzzol"&&(_.innerHTML=Q),L=n(e),g=s(e,"P",{}),Y(g).forEach(o),this.h()},h(){D(i,"name","hf:doc:metadata"),D(i,"content",oe)},m(e,t){W(document.head,i),a(e,x,t),a(e,$,t),a(e,z,t),q(m,e,t),a(e,C,t),q(c,e,t),a(e,w,t),q(p,e,t),a(e,b,t),a(e,f,t),a(e,T,t),a(e,d,t),a(e,P,t),a(e,u,t),a(e,E,t),a(e,h,t),a(e,M,t),a(e,_,t),a(e,L,t),a(e,g,t),R=!0},p:J,i(e){R||(A(m.$$.fragment,e),A(c.$$.fragment,e),A(p.$$.fragment,e),R=!0)},o(e){B(m.$$.fragment,e),B(c.$$.fragment,e),B(p.$$.fragment,e),R=!1},d(e){e&&(o(x),o($),o(z),o(C),o(w),o(b),o(f),o(T),o(d),o(P),o(u),o(E),o(h),o(M),o(_),o(L),o(g)),o(i),S(m,e),S(c,e),S(p,e)}}}const oe='{"title":"Modelli encoder","local":"modelli-encoder","sections":[],"depth":1}';function ae(I){return G(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class me extends K{constructor(i){super(),O(this,i,ae,te,F,{})}}export{me as component};
