import{S as Te,i as Ne,s as xe,e as n,k as f,w as be,t as s,M as Ae,c as r,d as t,m as c,a as i,x as Ee,h,b as L,F as o,g as u,y as Pe,L as Ue,q as Le,o as $e,B as Ie,v as Fe}from"../../chunks/vendor-1e8b365d.js";import{Y as He}from"../../chunks/Youtube-c2a8cc39.js";import{I as Ke}from"../../chunks/IconCopyLink-483c28ba.js";function Me(he){let m,F,p,w,$,g,Y,I,G,H,k,W,K,b,J,M,y,S,E,j,q,l,T,z,Q,N,V,X,v,Z,x,ee,te,oe,A,ae,ne,_,re,U,ie,le,O,P,se,C;return g=new Ke({}),y=new He({props:{id:"-RPeakdlHYo"}}),{c(){m=n("meta"),F=f(),p=n("h1"),w=n("a"),$=n("span"),be(g.$$.fragment),Y=f(),I=n("span"),G=s("Mastering NLP"),H=f(),k=n("p"),W=s("If you\u2019ve made it this far in the course, congratulations \u2014 you now have all the knowledge and tools you need to tackle (almost) any NLP task with \u{1F917} Transformers and the Hugging Face ecosystem!"),K=f(),b=n("p"),J=s("We have seen a lot of different data collators, so we made this little video to help you find which one to use for each task:"),M=f(),be(y.$$.fragment),S=f(),E=n("p"),j=s("After completing this lightning tour through the core NLP tasks, you should:"),q=f(),l=n("ul"),T=n("li"),z=s("Know which architectures (encoder, decoder, or encoder-decoder) are best suited for each task"),Q=f(),N=n("li"),V=s("Understand the difference between pretraining and fine-tuning a language model"),X=f(),v=n("li"),Z=s("Know how to train Transformer models using either the "),x=n("code"),ee=s("Trainer"),te=s(" API and distributed training features of \u{1F917} Accelerate or TensorFlow and Keras, depending on which track you\u2019ve been following"),oe=f(),A=n("li"),ae=s("Understand the meaning and limitations of metrics like ROUGE and BLEU for text generation tasks"),ne=f(),_=n("li"),re=s("Know how to interact with your fine-tuned models, both on the Hub and using the "),U=n("code"),ie=s("pipeline"),le=s(" from \u{1F917} Transformers"),O=f(),P=n("p"),se=s("Despite all this knowledge, there will come a time when you\u2019ll either encounter a difficult bug in your code or have a question about how to solve a particular NLP problem. Fortunately, the Hugging Face community is here to help you! In the final chapter of this part of the course, we\u2019ll explore how you can debug your Transformer models and ask for help effectively."),this.h()},l(e){const a=Ae('[data-svelte="svelte-1phssyn"]',document.head);m=r(a,"META",{name:!0,content:!0}),a.forEach(t),F=c(e),p=r(e,"H1",{class:!0});var D=i(p);w=r(D,"A",{id:!0,class:!0,href:!0});var ue=i(w);$=r(ue,"SPAN",{});var fe=i($);Ee(g.$$.fragment,fe),fe.forEach(t),ue.forEach(t),Y=c(D),I=r(D,"SPAN",{});var ce=i(I);G=h(ce,"Mastering NLP"),ce.forEach(t),D.forEach(t),H=c(e),k=r(e,"P",{});var de=i(k);W=h(de,"If you\u2019ve made it this far in the course, congratulations \u2014 you now have all the knowledge and tools you need to tackle (almost) any NLP task with \u{1F917} Transformers and the Hugging Face ecosystem!"),de.forEach(t),K=c(e),b=r(e,"P",{});var me=i(b);J=h(me,"We have seen a lot of different data collators, so we made this little video to help you find which one to use for each task:"),me.forEach(t),M=c(e),Ee(y.$$.fragment,e),S=c(e),E=r(e,"P",{});var pe=i(E);j=h(pe,"After completing this lightning tour through the core NLP tasks, you should:"),pe.forEach(t),q=c(e),l=r(e,"UL",{});var d=i(l);T=r(d,"LI",{});var we=i(T);z=h(we,"Know which architectures (encoder, decoder, or encoder-decoder) are best suited for each task"),we.forEach(t),Q=c(d),N=r(d,"LI",{});var ge=i(N);V=h(ge,"Understand the difference between pretraining and fine-tuning a language model"),ge.forEach(t),X=c(d),v=r(d,"LI",{});var R=i(v);Z=h(R,"Know how to train Transformer models using either the "),x=r(R,"CODE",{});var ye=i(x);ee=h(ye,"Trainer"),ye.forEach(t),te=h(R," API and distributed training features of \u{1F917} Accelerate or TensorFlow and Keras, depending on which track you\u2019ve been following"),R.forEach(t),oe=c(d),A=r(d,"LI",{});var ve=i(A);ae=h(ve,"Understand the meaning and limitations of metrics like ROUGE and BLEU for text generation tasks"),ve.forEach(t),ne=c(d),_=r(d,"LI",{});var B=i(_);re=h(B,"Know how to interact with your fine-tuned models, both on the Hub and using the "),U=r(B,"CODE",{});var _e=i(U);ie=h(_e,"pipeline"),_e.forEach(t),le=h(B," from \u{1F917} Transformers"),B.forEach(t),d.forEach(t),O=c(e),P=r(e,"P",{});var ke=i(P);se=h(ke,"Despite all this knowledge, there will come a time when you\u2019ll either encounter a difficult bug in your code or have a question about how to solve a particular NLP problem. Fortunately, the Hugging Face community is here to help you! In the final chapter of this part of the course, we\u2019ll explore how you can debug your Transformer models and ask for help effectively."),ke.forEach(t),this.h()},h(){L(m,"name","hf:doc:metadata"),L(m,"content",JSON.stringify(Se)),L(w,"id","mastering-nlp"),L(w,"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"),L(w,"href","#mastering-nlp"),L(p,"class","relative group")},m(e,a){o(document.head,m),u(e,F,a),u(e,p,a),o(p,w),o(w,$),Pe(g,$,null),o(p,Y),o(p,I),o(I,G),u(e,H,a),u(e,k,a),o(k,W),u(e,K,a),u(e,b,a),o(b,J),u(e,M,a),Pe(y,e,a),u(e,S,a),u(e,E,a),o(E,j),u(e,q,a),u(e,l,a),o(l,T),o(T,z),o(l,Q),o(l,N),o(N,V),o(l,X),o(l,v),o(v,Z),o(v,x),o(x,ee),o(v,te),o(l,oe),o(l,A),o(A,ae),o(l,ne),o(l,_),o(_,re),o(_,U),o(U,ie),o(_,le),u(e,O,a),u(e,P,a),o(P,se),C=!0},p:Ue,i(e){C||(Le(g.$$.fragment,e),Le(y.$$.fragment,e),C=!0)},o(e){$e(g.$$.fragment,e),$e(y.$$.fragment,e),C=!1},d(e){t(m),e&&t(F),e&&t(p),Ie(g),e&&t(H),e&&t(k),e&&t(K),e&&t(b),e&&t(M),Ie(y,e),e&&t(S),e&&t(E),e&&t(q),e&&t(l),e&&t(O),e&&t(P)}}}const Se={local:"mastering-nlp",title:"Mastering NLP"};function qe(he){return Fe(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Re extends Te{constructor(m){super();Ne(this,m,qe,Me,xe,{})}}export{Re as default,Se as metadata};
