import{s as D,n as W,o as J}from"../chunks/scheduler.37c15a92.js";import{S as Q,i as V,g as s,s as o,r as U,A as X,h as r,f as n,c as i,j as O,u as A,x as y,k as j,y as Z,a,v as F,d as K,t as q,w as z}from"../chunks/index.2bf4358c.js";import{Y as ee}from"../chunks/Youtube.1e50a667.js";import{C as te}from"../chunks/CourseFloatingBanner.15ba07e6.js";import{H as ne,E as ae}from"../chunks/EditOnGithub.8916dc7c.js";function oe(I){let l,b,w,x,u,_,m,P,f,R="If you’ve made it this far in the course, congratulations — you now have all the knowledge and tools you need to tackle (almost) any NLP task with 🤗 Transformers and the Hugging Face ecosystem!",C,h,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:",k,p,L,c,Y="After completing this lightning tour through the core NLP tasks, you should:",T,d,B="<li>Know which architectures (encoder, decoder, or encoder-decoder) are best suited for each task</li> <li>Understand the difference between pretraining and fine-tuning a language model</li> <li>Know how to train Transformer models using either the <code>Trainer</code> API and distributed training features of 🤗 Accelerate or TensorFlow and Keras, depending on which track you’ve been following</li> <li>Understand the meaning and limitations of metrics like ROUGE and BLEU for text generation tasks</li> <li>Know how to interact with your fine-tuned models, both on the Hub and using the <code>pipeline</code> from 🤗 Transformers</li>",E,g,G="Despite all this knowledge, there will come a time when you’ll 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’ll explore how you can debug your Transformer models and ask for help effectively.",H,$,M,v,N;return u=new ne({props:{title:"Mastering NLP",local:"mastering-nlp",headingTag:"h1"}}),m=new te({props:{chapter:7,classNames:"absolute z-10 right-0 top-0"}}),p=new ee({props:{id:"-RPeakdlHYo"}}),$=new ae({props:{source:"https://github.com/huggingface/course/blob/main/chapters/en/chapter7/8.mdx"}}),{c(){l=s("meta"),b=o(),w=s("p"),x=o(),U(u.$$.fragment),_=o(),U(m.$$.fragment),P=o(),f=s("p"),f.textContent=R,C=o(),h=s("p"),h.textContent=S,k=o(),U(p.$$.fragment),L=o(),c=s("p"),c.textContent=Y,T=o(),d=s("ul"),d.innerHTML=B,E=o(),g=s("p"),g.textContent=G,H=o(),U($.$$.fragment),M=o(),v=s("p"),this.h()},l(e){const t=X("svelte-u9bgzb",document.head);l=r(t,"META",{name:!0,content:!0}),t.forEach(n),b=i(e),w=r(e,"P",{}),O(w).forEach(n),x=i(e),A(u.$$.fragment,e),_=i(e),A(m.$$.fragment,e),P=i(e),f=r(e,"P",{"data-svelte-h":!0}),y(f)!=="svelte-1khv5eu"&&(f.textContent=R),C=i(e),h=r(e,"P",{"data-svelte-h":!0}),y(h)!=="svelte-13if1qi"&&(h.textContent=S),k=i(e),A(p.$$.fragment,e),L=i(e),c=r(e,"P",{"data-svelte-h":!0}),y(c)!=="svelte-6vdyiz"&&(c.textContent=Y),T=i(e),d=r(e,"UL",{"data-svelte-h":!0}),y(d)!=="svelte-11e1hxw"&&(d.innerHTML=B),E=i(e),g=r(e,"P",{"data-svelte-h":!0}),y(g)!=="svelte-lulsew"&&(g.textContent=G),H=i(e),A($.$$.fragment,e),M=i(e),v=r(e,"P",{}),O(v).forEach(n),this.h()},h(){j(l,"name","hf:doc:metadata"),j(l,"content",ie)},m(e,t){Z(document.head,l),a(e,b,t),a(e,w,t),a(e,x,t),F(u,e,t),a(e,_,t),F(m,e,t),a(e,P,t),a(e,f,t),a(e,C,t),a(e,h,t),a(e,k,t),F(p,e,t),a(e,L,t),a(e,c,t),a(e,T,t),a(e,d,t),a(e,E,t),a(e,g,t),a(e,H,t),F($,e,t),a(e,M,t),a(e,v,t),N=!0},p:W,i(e){N||(K(u.$$.fragment,e),K(m.$$.fragment,e),K(p.$$.fragment,e),K($.$$.fragment,e),N=!0)},o(e){q(u.$$.fragment,e),q(m.$$.fragment,e),q(p.$$.fragment,e),q($.$$.fragment,e),N=!1},d(e){e&&(n(b),n(w),n(x),n(_),n(P),n(f),n(C),n(h),n(k),n(L),n(c),n(T),n(d),n(E),n(g),n(H),n(M),n(v)),n(l),z(u,e),z(m,e),z(p,e),z($,e)}}}const ie='{"title":"Mastering NLP","local":"mastering-nlp","sections":[],"depth":1}';function le(I){return J(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class he extends Q{constructor(l){super(),V(this,l,le,oe,D,{})}}export{he as component};
