import{S as ct,i as ut,s as mt,e as r,k as d,w as ht,t as n,M as pt,c as a,d as t,m as i,a as s,x as ft,h as l,b as M,G as e,g as y,y as vt,L as Et,q as Tt,o as _t,B as Rt,v as bt}from"../../chunks/vendor-hf-doc-builder.js";import{I as At}from"../../chunks/IconCopyLink-hf-doc-builder.js";function yt(Oe){let h,W,p,R,g,D,se,$,ne,Z,c,le,C,de,ie,z,ce,ue,G,me,he,ee,m,pe,H,fe,ve,N,Ee,Te,te,b,S,f,k,_e,Re,I,be,Ae,O,ye,De,v,E,U,Le,qe,V,Be,Pe,X,xe,we,T,J,Me,ge,Y,$e,Ce,j,ze,Ge,_,F,He,Ne,K,Se,ke,Q,Ie,re;return D=new At({}),{c(){h=r("meta"),W=d(),p=r("h1"),R=r("a"),g=r("span"),ht(D.$$.fragment),se=d(),$=r("span"),ne=n("R\xE9sum\xE9 du chapitre"),Z=d(),c=r("p"),le=n("Au cours de ce chapitre, vous avez vu comment approcher diff\xE9rents probl\xE8mes de NLP en utilisant la fonction "),C=r("code"),de=n("pipeline()"),ie=n(" de la biblioth\xE8que \u{1F917} "),z=r("em"),ce=n("Transformers"),ue=n(". Vous avez \xE9galement vu comment rechercher et utiliser des mod\xE8les dans le "),G=r("em"),me=n("Hub"),he=n(" ainsi que comment utiliser l\u2019API d\u2019inf\xE9rence pour tester les mod\xE8les directement dans votre navigateur."),ee=d(),m=r("p"),pe=n("Nous avons pu aborder le fonctionnement des "),H=r("em"),fe=n("transformers"),ve=n(" de fa\xE7on g\xE9n\xE9rale et parler de l\u2019importance de l\u2019apprentissage par transfert et du "),N=r("em"),Ee=n("finetuning"),Te=n(". Un point important est que vous pouvez utiliser l\u2019architecture compl\xE8te ou seulement l\u2019encodeur ou le d\xE9codeur, selon le type de t\xE2che que vous souhaitez r\xE9soudre. Le tableau suivant r\xE9sume ceci :"),te=d(),b=r("table"),S=r("thead"),f=r("tr"),k=r("th"),_e=n("Mod\xE8le"),Re=d(),I=r("th"),be=n("Exemples"),Ae=d(),O=r("th"),ye=n("T\xE2ches"),De=d(),v=r("tbody"),E=r("tr"),U=r("td"),Le=n("Encodeur"),qe=d(),V=r("td"),Be=n("ALBERT, BERT, DistilBERT, ELECTRA, RoBERTa"),Pe=d(),X=r("td"),xe=n("Classification de phrase, reconnaissance d\u2019entit\xE9s nomm\xE9es, extraction de question-r\xE9ponse"),we=d(),T=r("tr"),J=r("td"),Me=n("D\xE9codeur"),ge=d(),Y=r("td"),$e=n("CTRL, GPT, GPT-2, Transformer XL"),Ce=d(),j=r("td"),ze=n("G\xE9n\xE9ration de texte"),Ge=d(),_=r("tr"),F=r("td"),He=n("Encodeur-d\xE9codeur"),Ne=d(),K=r("td"),Se=n("BART, T5, Marian, mBART"),ke=d(),Q=r("td"),Ie=n("R\xE9sum\xE9, traduction, g\xE9n\xE9ration de question-r\xE9ponse"),this.h()},l(o){const u=pt('[data-svelte="svelte-1phssyn"]',document.head);h=a(u,"META",{name:!0,content:!0}),u.forEach(t),W=i(o),p=a(o,"H1",{class:!0});var ae=s(p);R=a(ae,"A",{id:!0,class:!0,href:!0});var Ue=s(R);g=a(Ue,"SPAN",{});var Ve=s(g);ft(D.$$.fragment,Ve),Ve.forEach(t),Ue.forEach(t),se=i(ae),$=a(ae,"SPAN",{});var Xe=s($);ne=l(Xe,"R\xE9sum\xE9 du chapitre"),Xe.forEach(t),ae.forEach(t),Z=i(o),c=a(o,"P",{});var A=s(c);le=l(A,"Au cours de ce chapitre, vous avez vu comment approcher diff\xE9rents probl\xE8mes de NLP en utilisant la fonction "),C=a(A,"CODE",{});var Je=s(C);de=l(Je,"pipeline()"),Je.forEach(t),ie=l(A," de la biblioth\xE8que \u{1F917} "),z=a(A,"EM",{});var Ye=s(z);ce=l(Ye,"Transformers"),Ye.forEach(t),ue=l(A,". Vous avez \xE9galement vu comment rechercher et utiliser des mod\xE8les dans le "),G=a(A,"EM",{});var je=s(G);me=l(je,"Hub"),je.forEach(t),he=l(A," ainsi que comment utiliser l\u2019API d\u2019inf\xE9rence pour tester les mod\xE8les directement dans votre navigateur."),A.forEach(t),ee=i(o),m=a(o,"P",{});var L=s(m);pe=l(L,"Nous avons pu aborder le fonctionnement des "),H=a(L,"EM",{});var Fe=s(H);fe=l(Fe,"transformers"),Fe.forEach(t),ve=l(L," de fa\xE7on g\xE9n\xE9rale et parler de l\u2019importance de l\u2019apprentissage par transfert et du "),N=a(L,"EM",{});var Ke=s(N);Ee=l(Ke,"finetuning"),Ke.forEach(t),Te=l(L,". Un point important est que vous pouvez utiliser l\u2019architecture compl\xE8te ou seulement l\u2019encodeur ou le d\xE9codeur, selon le type de t\xE2che que vous souhaitez r\xE9soudre. Le tableau suivant r\xE9sume ceci :"),L.forEach(t),te=i(o),b=a(o,"TABLE",{});var oe=s(b);S=a(oe,"THEAD",{});var Qe=s(S);f=a(Qe,"TR",{});var q=s(f);k=a(q,"TH",{});var We=s(k);_e=l(We,"Mod\xE8le"),We.forEach(t),Re=i(q),I=a(q,"TH",{});var Ze=s(I);be=l(Ze,"Exemples"),Ze.forEach(t),Ae=i(q),O=a(q,"TH",{});var et=s(O);ye=l(et,"T\xE2ches"),et.forEach(t),q.forEach(t),Qe.forEach(t),De=i(oe),v=a(oe,"TBODY",{});var B=s(v);E=a(B,"TR",{});var P=s(E);U=a(P,"TD",{});var tt=s(U);Le=l(tt,"Encodeur"),tt.forEach(t),qe=i(P),V=a(P,"TD",{});var rt=s(V);Be=l(rt,"ALBERT, BERT, DistilBERT, ELECTRA, RoBERTa"),rt.forEach(t),Pe=i(P),X=a(P,"TD",{});var at=s(X);xe=l(at,"Classification de phrase, reconnaissance d\u2019entit\xE9s nomm\xE9es, extraction de question-r\xE9ponse"),at.forEach(t),P.forEach(t),we=i(B),T=a(B,"TR",{});var x=s(T);J=a(x,"TD",{});var ot=s(J);Me=l(ot,"D\xE9codeur"),ot.forEach(t),ge=i(x),Y=a(x,"TD",{});var st=s(Y);$e=l(st,"CTRL, GPT, GPT-2, Transformer XL"),st.forEach(t),Ce=i(x),j=a(x,"TD",{});var nt=s(j);ze=l(nt,"G\xE9n\xE9ration de texte"),nt.forEach(t),x.forEach(t),Ge=i(B),_=a(B,"TR",{});var w=s(_);F=a(w,"TD",{});var lt=s(F);He=l(lt,"Encodeur-d\xE9codeur"),lt.forEach(t),Ne=i(w),K=a(w,"TD",{});var dt=s(K);Se=l(dt,"BART, T5, Marian, mBART"),dt.forEach(t),ke=i(w),Q=a(w,"TD",{});var it=s(Q);Ie=l(it,"R\xE9sum\xE9, traduction, g\xE9n\xE9ration de question-r\xE9ponse"),it.forEach(t),w.forEach(t),B.forEach(t),oe.forEach(t),this.h()},h(){M(h,"name","hf:doc:metadata"),M(h,"content",JSON.stringify(Dt)),M(R,"id","rsum-du-chapitre"),M(R,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),M(R,"href","#rsum-du-chapitre"),M(p,"class","relative group")},m(o,u){e(document.head,h),y(o,W,u),y(o,p,u),e(p,R),e(R,g),vt(D,g,null),e(p,se),e(p,$),e($,ne),y(o,Z,u),y(o,c,u),e(c,le),e(c,C),e(C,de),e(c,ie),e(c,z),e(z,ce),e(c,ue),e(c,G),e(G,me),e(c,he),y(o,ee,u),y(o,m,u),e(m,pe),e(m,H),e(H,fe),e(m,ve),e(m,N),e(N,Ee),e(m,Te),y(o,te,u),y(o,b,u),e(b,S),e(S,f),e(f,k),e(k,_e),e(f,Re),e(f,I),e(I,be),e(f,Ae),e(f,O),e(O,ye),e(b,De),e(b,v),e(v,E),e(E,U),e(U,Le),e(E,qe),e(E,V),e(V,Be),e(E,Pe),e(E,X),e(X,xe),e(v,we),e(v,T),e(T,J),e(J,Me),e(T,ge),e(T,Y),e(Y,$e),e(T,Ce),e(T,j),e(j,ze),e(v,Ge),e(v,_),e(_,F),e(F,He),e(_,Ne),e(_,K),e(K,Se),e(_,ke),e(_,Q),e(Q,Ie),re=!0},p:Et,i(o){re||(Tt(D.$$.fragment,o),re=!0)},o(o){_t(D.$$.fragment,o),re=!1},d(o){t(h),o&&t(W),o&&t(p),Rt(D),o&&t(Z),o&&t(c),o&&t(ee),o&&t(m),o&&t(te),o&&t(b)}}}const Dt={local:"rsum-du-chapitre",title:"R\xE9sum\xE9 du chapitre"};function Lt(Oe){return bt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Pt extends ct{constructor(h){super();ut(this,h,Lt,yt,mt,{})}}export{Pt as default,Dt as metadata};
