import{S as Ye,i as je,s as Ke,e as a,k as d,w as Qe,t as n,M as We,c as o,d as t,m as i,a as s,x as Ze,h as l,b as x,F as e,g as b,y as et,L as tt,q as rt,o as at,B as ot,v as st}from"../../chunks/vendor-1e8b365d.js";import{I as nt}from"../../chunks/IconCopyLink-483c28ba.js";function lt(xe){let u,F,m,E,w,A,ee,$,te,J,_,re,C,ae,oe,Y,y,se,j,R,g,h,z,ne,le,H,de,ie,M,ce,ue,p,f,N,me,he,G,pe,fe,S,ve,Te,v,k,Ee,_e,I,Re,be,O,Ae,ye,T,U,De,Le,V,Be,Pe,X,qe,K;return A=new nt({}),{c(){u=a("meta"),F=d(),m=a("h1"),E=a("a"),w=a("span"),Qe(A.$$.fragment),ee=d(),$=a("span"),te=n("R\xE9sum\xE9 du chapitre"),J=d(),_=a("p"),re=n("Au cours de ce chapitre, vous avez vu comment approcher diff\xE9rents probl\xE8mes de NLP en utilisant la fonction "),C=a("code"),ae=n("pipeline()"),oe=n(" de la librairie \u{1F917} Transformers. Vous avez aussi vu comment rechercher et utiliser des mod\xE8les dans le Hub, ainsi que comment utiliser l\u2019API d\u2019inf\xE9rence pour tester les mod\xE8les directement dans votre navigateur."),Y=d(),y=a("p"),se=n("Nous avons pu aborder le fonctionnement des mod\xE8les Transformers de fa\xE7on g\xE9n\xE9rale, et nous avons parl\xE9 de l\u2019importance du transfer learning et du fine-tuning. Un aspect 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 suivante r\xE9sume ceci :"),j=d(),R=a("table"),g=a("thead"),h=a("tr"),z=a("th"),ne=n("Mod\xE8le"),le=d(),H=a("th"),de=n("Exemples"),ie=d(),M=a("th"),ce=n("T\xE2ches"),ue=d(),p=a("tbody"),f=a("tr"),N=a("td"),me=n("Encodeur"),he=d(),G=a("td"),pe=n("ALBERT, BERT, DistilBERT, ELECTRA, RoBERTa"),fe=d(),S=a("td"),ve=n("Classification de phrase, reconnaissance des entit\xE9s nomm\xE9es, extraction de question-r\xE9ponse"),Te=d(),v=a("tr"),k=a("td"),Ee=n("D\xE9codeur"),_e=d(),I=a("td"),Re=n("CTRL, GPT, GPT-2, Transformer XL"),be=d(),O=a("td"),Ae=n("G\xE9n\xE9ration de texte"),ye=d(),T=a("tr"),U=a("td"),De=n("Encodeur-d\xE9codeur"),Le=d(),V=a("td"),Be=n("BART, T5, Marian, mBART"),Pe=d(),X=a("td"),qe=n("R\xE9sum\xE9, traduction, g\xE9n\xE9ration de question-r\xE9ponse"),this.h()},l(r){const c=We('[data-svelte="svelte-1phssyn"]',document.head);u=o(c,"META",{name:!0,content:!0}),c.forEach(t),F=i(r),m=o(r,"H1",{class:!0});var Q=s(m);E=o(Q,"A",{id:!0,class:!0,href:!0});var we=s(E);w=o(we,"SPAN",{});var $e=s(w);Ze(A.$$.fragment,$e),$e.forEach(t),we.forEach(t),ee=i(Q),$=o(Q,"SPAN",{});var Ce=s($);te=l(Ce,"R\xE9sum\xE9 du chapitre"),Ce.forEach(t),Q.forEach(t),J=i(r),_=o(r,"P",{});var W=s(_);re=l(W,"Au cours de ce chapitre, vous avez vu comment approcher diff\xE9rents probl\xE8mes de NLP en utilisant la fonction "),C=o(W,"CODE",{});var ge=s(C);ae=l(ge,"pipeline()"),ge.forEach(t),oe=l(W," de la librairie \u{1F917} Transformers. Vous avez aussi vu comment rechercher et utiliser des mod\xE8les dans le Hub, ainsi que comment utiliser l\u2019API d\u2019inf\xE9rence pour tester les mod\xE8les directement dans votre navigateur."),W.forEach(t),Y=i(r),y=o(r,"P",{});var ze=s(y);se=l(ze,"Nous avons pu aborder le fonctionnement des mod\xE8les Transformers de fa\xE7on g\xE9n\xE9rale, et nous avons parl\xE9 de l\u2019importance du transfer learning et du fine-tuning. Un aspect 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 suivante r\xE9sume ceci :"),ze.forEach(t),j=i(r),R=o(r,"TABLE",{});var Z=s(R);g=o(Z,"THEAD",{});var He=s(g);h=o(He,"TR",{});var D=s(h);z=o(D,"TH",{});var Me=s(z);ne=l(Me,"Mod\xE8le"),Me.forEach(t),le=i(D),H=o(D,"TH",{});var Ne=s(H);de=l(Ne,"Exemples"),Ne.forEach(t),ie=i(D),M=o(D,"TH",{});var Ge=s(M);ce=l(Ge,"T\xE2ches"),Ge.forEach(t),D.forEach(t),He.forEach(t),ue=i(Z),p=o(Z,"TBODY",{});var L=s(p);f=o(L,"TR",{});var B=s(f);N=o(B,"TD",{});var Se=s(N);me=l(Se,"Encodeur"),Se.forEach(t),he=i(B),G=o(B,"TD",{});var ke=s(G);pe=l(ke,"ALBERT, BERT, DistilBERT, ELECTRA, RoBERTa"),ke.forEach(t),fe=i(B),S=o(B,"TD",{});var Ie=s(S);ve=l(Ie,"Classification de phrase, reconnaissance des entit\xE9s nomm\xE9es, extraction de question-r\xE9ponse"),Ie.forEach(t),B.forEach(t),Te=i(L),v=o(L,"TR",{});var P=s(v);k=o(P,"TD",{});var Oe=s(k);Ee=l(Oe,"D\xE9codeur"),Oe.forEach(t),_e=i(P),I=o(P,"TD",{});var Ue=s(I);Re=l(Ue,"CTRL, GPT, GPT-2, Transformer XL"),Ue.forEach(t),be=i(P),O=o(P,"TD",{});var Ve=s(O);Ae=l(Ve,"G\xE9n\xE9ration de texte"),Ve.forEach(t),P.forEach(t),ye=i(L),T=o(L,"TR",{});var q=s(T);U=o(q,"TD",{});var Xe=s(U);De=l(Xe,"Encodeur-d\xE9codeur"),Xe.forEach(t),Le=i(q),V=o(q,"TD",{});var Fe=s(V);Be=l(Fe,"BART, T5, Marian, mBART"),Fe.forEach(t),Pe=i(q),X=o(q,"TD",{});var Je=s(X);qe=l(Je,"R\xE9sum\xE9, traduction, g\xE9n\xE9ration de question-r\xE9ponse"),Je.forEach(t),q.forEach(t),L.forEach(t),Z.forEach(t),this.h()},h(){x(u,"name","hf:doc:metadata"),x(u,"content",JSON.stringify(dt)),x(E,"id","rsum-du-chapitre"),x(E,"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"),x(E,"href","#rsum-du-chapitre"),x(m,"class","relative group")},m(r,c){e(document.head,u),b(r,F,c),b(r,m,c),e(m,E),e(E,w),et(A,w,null),e(m,ee),e(m,$),e($,te),b(r,J,c),b(r,_,c),e(_,re),e(_,C),e(C,ae),e(_,oe),b(r,Y,c),b(r,y,c),e(y,se),b(r,j,c),b(r,R,c),e(R,g),e(g,h),e(h,z),e(z,ne),e(h,le),e(h,H),e(H,de),e(h,ie),e(h,M),e(M,ce),e(R,ue),e(R,p),e(p,f),e(f,N),e(N,me),e(f,he),e(f,G),e(G,pe),e(f,fe),e(f,S),e(S,ve),e(p,Te),e(p,v),e(v,k),e(k,Ee),e(v,_e),e(v,I),e(I,Re),e(v,be),e(v,O),e(O,Ae),e(p,ye),e(p,T),e(T,U),e(U,De),e(T,Le),e(T,V),e(V,Be),e(T,Pe),e(T,X),e(X,qe),K=!0},p:tt,i(r){K||(rt(A.$$.fragment,r),K=!0)},o(r){at(A.$$.fragment,r),K=!1},d(r){t(u),r&&t(F),r&&t(m),ot(A),r&&t(J),r&&t(_),r&&t(Y),r&&t(y),r&&t(j),r&&t(R)}}}const dt={local:"rsum-du-chapitre",title:"R\xE9sum\xE9 du chapitre"};function it(xe){return st(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class mt extends Ye{constructor(u){super();je(this,u,it,lt,Ke,{})}}export{mt as default,dt as metadata};
