import{S as Ve,i as Ze,s as et,e as o,k as h,w as d,t as B,l as je,M as tt,c as l,d as r,m as c,x as w,a as i,h as U,b as n,G as a,g as p,y as _,o as v,p as rt,q as x,B as g,v as at,n as st}from"../../chunks/vendor-hf-doc-builder.js";import{I as xe}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as ot}from"../../chunks/CourseFloatingBanner-hf-doc-builder.js";import{Q as $e}from"../../chunks/Question-hf-doc-builder.js";import{F as lt}from"../../chunks/FrameworkSwitchCourse-hf-doc-builder.js";import"../../chunks/DocNotebookDropdown-hf-doc-builder.js";function nt(be){let m,E,b,P,R,q,oe,W,z,j,y,S,F,H,re,V,he,L,I,Q,k,N,J,A,ce,T,me,X,M,le;return P=new xe({}),z=new $e({props:{choices:[{text:"\u4EC0\u4E48\u90FD\u6CA1\u6709\uFF0C\u4F46\u662F\u4F60\u5F97\u5230\u4E86\u4E00\u4E2A\u8B66\u544A\u3002",explain:"\u4F60\u786E\u5B9E\u5F97\u5230\u4E86\u8B66\u544A\uFF0C\u4F46\u8FD9\u8FD8\u4E0D\u662F\u5168\u90E8\uFF01"},{text:"\u4E22\u5F03\u9884\u8BAD\u7EC3\u6A21\u578B\u7684\u5934\u90E8\uFF0C\u5E76\u63D2\u5165\u4E00\u4E2A\u65B0\u7684\u5934\u90E8\u9002\u5408\u7684\u4EFB\u52A1\u3002",explain:"\u9700\u8981\u4E00\u4E2A\u7279\u6B8A\u7684\u6807\u8BB0\u6765\u5206\u9694\u8FD9\u4E24\u4E2A\u53E5\u5B50\uFF0C\u4F46\u8FD9\u4E0D\u662F\u552F\u4E00\u7684\u4E8B\u60C5\uFF01",correct:!0},{text:"\u4E22\u5F03\u9884\u5148\u8BAD\u7EC3\u597D\u7684\u6A21\u578B\u5934\u90E8\u3002",explain:"Something else needs to happen. \u518D\u8BD5\u4E00\u6B21\uFF01"},{text:"\u6CA1\u6709\uFF0C\u56E0\u4E3A\u6A21\u578B\u4ECD\u7136\u53EF\u4EE5\u9488\u5BF9\u4E0D\u540C\u7684\u4EFB\u52A1\u8FDB\u884C\u5FAE\u8C03\u3002",explain:"\u8FD9\u4E2A\u7ECF\u8FC7\u8BAD\u7EC3\u7684\u6A21\u7279\u7684\u5934\u6CA1\u6709\u7ECF\u8FC7\u8BAD\u7EC3\u6765\u89E3\u51B3\u8FD9\u4E2A\u95EE\u9898\uFF0C\u6240\u4EE5\u6211\u4EEC\u5E94\u8BE5\u4E22\u6389\u8FD9\u4E2A\u5934\uFF01"}]}}),H=new xe({}),I=new $e({props:{choices:[{text:"\u8BE5\u6A21\u578B\u7684\u5DE5\u4F5C\u5728\u4E00\u4E2A TPU \u7684\u76D2\u5B50\u3002",explain:"\u5DEE\u4E0D\u591A\uFF01\u8FD8\u9700\u8981\u8FDB\u884C\u4E00\u4E9B\u5C0F\u7684\u989D\u5916\u4FEE\u6539\u3002\u4F8B\u5982\uFF0C\u60A8\u9700\u8981\u8FD0\u884C &amp;lt; code > TPUStrategy &amp;lt;/code > scope \u4E2D\u7684\u6240\u6709\u5185\u5BB9\uFF0C\u5305\u62EC\u6A21\u578B\u7684\u521D\u59CB\u5316\u3002"},{text:"\u60A8\u53EF\u4EE5\u5229\u7528\u73B0\u6709\u7684\u65B9\u6CD5\uFF0C\u5982 &amp;lt; code > compile () &amp;lt;/code > \u3001 &amp;lt; code > fit () &amp;lt; c/ode > \u548C &amp;lt; code > predict () &amp;lt;/code > \u3002",explain:"\u6B63\u786E! \u4E00\u65E6\u4F60\u6709\u4E86\u8FD9\u4E9B\u6570\u636E\uFF0C\u5728\u8FD9\u4E9B\u6570\u636E\u4E0A\u8FDB\u884C\u57F9\u8BAD\u53EA\u9700\u8981\u5F88\u5C11\u7684\u5DE5\u4F5C\u3002",correct:!0},{text:"\u4F60\u53EF\u4EE5\u5B66\u4E60 Keras \u548C\u53D8\u5F62\u91D1\u521A\u3002",explain:"\u6CA1\u9519\uFF0C\u4F46\u6211\u4EEC\u8981\u627E\u7684\u662F\u522B\u7684\u4E1C\u897F:)",correct:!0},{text:"\u56F0\u60D1",explain:"Keras \u5E2E\u52A9\u6211\u4EEC\u8BAD\u7EC3\u548C\u8BC4\u4F30\u6A21\u578B\uFF0C\u800C\u4E0D\u662F\u8BA1\u7B97\u4E0E\u6570\u636E\u96C6\u76F8\u5173\u7684\u5EA6\u91CF\u3002"}]}}),A=new xe({}),M=new $e({props:{choices:[{text:"\u901A\u8FC7\u5B50\u7C7B\u5316 &amp;lt; code > tfkeras.metrics. Metric &amp;lt;/code > \u3002",explain:"\u592A\u597D\u4E86\uFF01",correct:!0},{text:"\u4F7F\u7528 Keras \u51FD\u6570 API\u3002",explain:"\u518D\u8BD5\u4E00\u6B21\uFF01"},{text:"\u901A\u8FC7\u4F7F\u7528\u5E26\u7B7E\u540D\u7684\u53EF\u8C03\u7528 &amp;lt; code > metric _ fn (y _ true\uFF0Cy _ pred) &amp;lt;/code > \u3002",explain:"\u6B63\u786E\uFF01",correct:!0},{text:"\u901A\u8FC7\u8C37\u6B4C\u641C\u7D22\u3002",explain:"\u8FD9\u4E0D\u662F\u6211\u4EEC\u8981\u627E\u7684\u7B54\u6848\uFF0C\u4F46\u5B83\u5E94\u8BE5\u80FD\u5E2E\u52A9\u4F60\u627E\u5230\u7B54\u6848\u3002",correct:!0}]}}),{c(){m=o("h3"),E=o("a"),b=o("span"),d(P.$$.fragment),R=h(),q=o("span"),oe=B("4.\u5F53\u4F60\u7528\u4E00\u4E2A\u9884\u5148\u8BAD\u7EC3\u8FC7\u7684\u8BED\u8A00\u6A21\u578B(\u4F8B\u5982\u2018 bert-base-uncased\u2019)\u5B9E\u4F8B\u5316\u4E00\u4E2A\u2018 tfautoodelforxxx\u2019\u7C7B\u65F6\uFF0C\u4F1A\u53D1\u751F\u4EC0\u4E48\uFF1F"),W=h(),d(z.$$.fragment),j=h(),y=o("h3"),S=o("a"),F=o("span"),d(H.$$.fragment),re=h(),V=o("span"),he=B("5.\u6765\u81EA\u201C\u53D8\u538B\u5668\u201D\u7684 TensorFlow \u6A21\u578B\u5DF2\u7ECF\u662F Keras \u6A21\u578B\uFF0C\u8FD9\u6709\u4EC0\u4E48\u597D\u5904\uFF1F"),L=h(),d(I.$$.fragment),Q=h(),k=o("h3"),N=o("a"),J=o("span"),d(A.$$.fragment),ce=h(),T=o("span"),me=B("6.\u5982\u4F55\u5B9A\u4E49\u81EA\u5DF1\u7684\u5B9A\u5236\u5EA6\u91CF\uFF1F"),X=h(),d(M.$$.fragment),this.h()},l(s){m=l(s,"H3",{class:!0});var u=i(m);E=l(u,"A",{id:!0,class:!0,href:!0});var ne=i(E);b=l(ne,"SPAN",{});var C=i(b);w(P.$$.fragment,C),C.forEach(r),ne.forEach(r),R=c(u),q=l(u,"SPAN",{});var Z=i(q);oe=U(Z,"4.\u5F53\u4F60\u7528\u4E00\u4E2A\u9884\u5148\u8BAD\u7EC3\u8FC7\u7684\u8BED\u8A00\u6A21\u578B(\u4F8B\u5982\u2018 bert-base-uncased\u2019)\u5B9E\u4F8B\u5316\u4E00\u4E2A\u2018 tfautoodelforxxx\u2019\u7C7B\u65F6\uFF0C\u4F1A\u53D1\u751F\u4EC0\u4E48\uFF1F"),Z.forEach(r),u.forEach(r),W=c(s),w(z.$$.fragment,s),j=c(s),y=l(s,"H3",{class:!0});var O=i(y);S=l(O,"A",{id:!0,class:!0,href:!0});var ae=i(S);F=l(ae,"SPAN",{});var ve=i(F);w(H.$$.fragment,ve),ve.forEach(r),ae.forEach(r),re=c(O),V=l(O,"SPAN",{});var Y=i(V);he=U(Y,"5.\u6765\u81EA\u201C\u53D8\u538B\u5668\u201D\u7684 TensorFlow \u6A21\u578B\u5DF2\u7ECF\u662F Keras \u6A21\u578B\uFF0C\u8FD9\u6709\u4EC0\u4E48\u597D\u5904\uFF1F"),Y.forEach(r),O.forEach(r),L=c(s),w(I.$$.fragment,s),Q=c(s),k=l(s,"H3",{class:!0});var ie=i(k);N=l(ie,"A",{id:!0,class:!0,href:!0});var G=i(N);J=l(G,"SPAN",{});var D=i(J);w(A.$$.fragment,D),D.forEach(r),G.forEach(r),ce=c(ie),T=l(ie,"SPAN",{});var pe=i(T);me=U(pe,"6.\u5982\u4F55\u5B9A\u4E49\u81EA\u5DF1\u7684\u5B9A\u5236\u5EA6\u91CF\uFF1F"),pe.forEach(r),ie.forEach(r),X=c(s),w(M.$$.fragment,s),this.h()},h(){n(E,"id","4.\u5F53\u4F60\u7528\u4E00\u4E2A\u9884\u5148\u8BAD\u7EC3\u8FC7\u7684\u8BED\u8A00\u6A21\u578B(\u4F8B\u5982\u2018-bert-base-uncased\u2019)\u5B9E\u4F8B\u5316\u4E00\u4E2A\u2018-tfautoodelforxxx\u2019\u7C7B\u65F6\uFF0C\u4F1A\u53D1\u751F\u4EC0\u4E48\uFF1F"),n(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"),n(E,"href","#4.\u5F53\u4F60\u7528\u4E00\u4E2A\u9884\u5148\u8BAD\u7EC3\u8FC7\u7684\u8BED\u8A00\u6A21\u578B(\u4F8B\u5982\u2018-bert-base-uncased\u2019)\u5B9E\u4F8B\u5316\u4E00\u4E2A\u2018-tfautoodelforxxx\u2019\u7C7B\u65F6\uFF0C\u4F1A\u53D1\u751F\u4EC0\u4E48\uFF1F"),n(m,"class","relative group"),n(S,"id","5.\u6765\u81EA\u201C\u53D8\u538B\u5668\u201D\u7684-tensorflow-\u6A21\u578B\u5DF2\u7ECF\u662F-keras-\u6A21\u578B\uFF0C\u8FD9\u6709\u4EC0\u4E48\u597D\u5904\uFF1F"),n(S,"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"),n(S,"href","#5.\u6765\u81EA\u201C\u53D8\u538B\u5668\u201D\u7684-tensorflow-\u6A21\u578B\u5DF2\u7ECF\u662F-keras-\u6A21\u578B\uFF0C\u8FD9\u6709\u4EC0\u4E48\u597D\u5904\uFF1F"),n(y,"class","relative group"),n(N,"id","6.\u5982\u4F55\u5B9A\u4E49\u81EA\u5DF1\u7684\u5B9A\u5236\u5EA6\u91CF\uFF1F"),n(N,"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"),n(N,"href","#6.\u5982\u4F55\u5B9A\u4E49\u81EA\u5DF1\u7684\u5B9A\u5236\u5EA6\u91CF\uFF1F"),n(k,"class","relative group")},m(s,u){p(s,m,u),a(m,E),a(E,b),_(P,b,null),a(m,R),a(m,q),a(q,oe),p(s,W,u),_(z,s,u),p(s,j,u),p(s,y,u),a(y,S),a(S,F),_(H,F,null),a(y,re),a(y,V),a(V,he),p(s,L,u),_(I,s,u),p(s,Q,u),p(s,k,u),a(k,N),a(N,J),_(A,J,null),a(k,ce),a(k,T),a(T,me),p(s,X,u),_(M,s,u),le=!0},i(s){le||(x(P.$$.fragment,s),x(z.$$.fragment,s),x(H.$$.fragment,s),x(I.$$.fragment,s),x(A.$$.fragment,s),x(M.$$.fragment,s),le=!0)},o(s){v(P.$$.fragment,s),v(z.$$.fragment,s),v(H.$$.fragment,s),v(I.$$.fragment,s),v(A.$$.fragment,s),v(M.$$.fragment,s),le=!1},d(s){s&&r(m),g(P),s&&r(W),g(z,s),s&&r(j),s&&r(y),g(H),s&&r(L),g(I,s),s&&r(Q),s&&r(k),g(A),s&&r(X),g(M,s)}}}function it(be){let m,E,b,P,R,q,oe,W,z,j,y,S,F,H,re,V,he,L,I,Q,k,N,J,A,ce,T,me,X,M,le,s,u,ne,C,Z,O,ae,ve,Y,ie,G,D,pe,K,ee,ue,ge,ye,te,ke,e,f,fe,se,Ae,Ee,Pe,we,de,_e;return P=new xe({}),z=new $e({props:{choices:[{text:"\u51FD\u6570\u7684\u7ED3\u679C\u662F\u7F13\u5B58\u7684\uFF0C\u56E0\u6B64\u5982\u679C\u6211\u4EEC\u91CD\u65B0\u6267\u884C\u4EE3\u7801\uFF0C\u4E0D\u4F1A\u82B1\u8D39\u4EFB\u4F55\u65F6\u95F4\u3002",explain:"\u8FD9\u786E\u5B9E\u662F\u8FD9\u79CD\u65B9\u6CD5\u7684\u4F18\u70B9\u4E4B\u4E00! \u5C3D\u7BA1\u5B83\u4E0D\u662F\u552F\u4E00\u7684\u4E00\u4E2A..\u3002",correct:!0},{text:"\u5B83\u53EF\u4EE5\u5E94\u7528\u591A\u91CD\u5904\u7406\uFF0C\u6BD4\u5728\u6570\u636E\u96C6\u7684\u6BCF\u4E2A\u5143\u7D20\u4E0A\u5E94\u7528\u51FD\u6570\u66F4\u5FEB\u3002",explain:"\u8FD9\u662F\u8FD9\u4E2A\u65B9\u6CD5\u7684\u4E00\u4E2A\u4F18\u96C5\u7684\u7279\u6027\uFF0C\u4F46\u5B83\u4E0D\u662F\u552F\u4E00\u7684\u4E00\u4E2A\uFF01",correct:!0},{text:"\u5B83\u53EA\u5305\u542B\u7528\u4E8E\u8BAD\u7EC3\u7684\u8D85\u53C2\u6570\u3002",explain:"\u8FD9\u662F\u8FD9\u79CD\u65B9\u6CD5\u7684\u4E00\u4E2A\u4F18\u70B9\uFF0C\u5C3D\u7BA1\u8FD8\u6709\u5176\u4ED6\u7684\u4F18\u70B9\uFF01",correct:!0}]}}),H=new xe({}),I=new $e({props:{choices:[{text:"\u5C31\u662F\u5C06\u6BCF\u4E2A\u6279\u5904\u7406\u7684\u8F93\u5165\u586B\u5145\u5230\u6574\u4E2A\u6570\u636E\u96C6\u4E2D\u7684\u6700\u5927\u957F\u5EA6\u3002",explain:"\u5728\u793A\u4F8B\u4E2D\uFF0C\u6211\u4EEC\u6307\u5B9A\u4E86\u4FDD\u5B58\u6A21\u578B\u53CA\u5176\u68C0\u67E5\u70B9\u7684\u4F4D\u7F6E\u3002\u8BF7\u518D\u8BD5\u4E00\u6B21\uFF01"},{text:"\u8FD9\u662F\u5F53\u4F60\u586B\u8865\u4F60\u7684\u8F93\u5165\u65F6\uFF0C\u6279\u5904\u7406\u521B\u5EFA\uFF0C\u5230\u6700\u5927\u957F\u5EA6\u7684\u53E5\u5B50\u91CC\u9762\u7684\u6279\u5904\u7406\u3002",explain:"\u6CA1\u9519\uFF01\u201C\u52A8\u6001\u201D\u90E8\u5206\u6765\u81EA\u8FD9\u6837\u4E00\u4E2A\u4E8B\u5B9E\uFF0C\u5373\u6BCF\u4E2A\u6279\u7684\u5927\u5C0F\u662F\u5728\u521B\u5EFA\u65F6\u786E\u5B9A\u7684\uFF0C\u56E0\u6B64\u6240\u6709\u6279\u53EF\u80FD\u5177\u6709\u4E0D\u540C\u7684\u5F62\u72B6\u3002",correct:!0},{text:"\u5C31\u662F\u5F53\u60A8\u586B\u5145\u8F93\u5165\u65F6\uFF0C\u4F7F\u6BCF\u4E2A\u53E5\u5B50\u5177\u6709\u4E0E\u6570\u636E\u96C6\u4E2D\u7684\u524D\u4E00\u4E2A\u76F8\u540C\u7684\u6807\u8BB0\u6570\u91CF\u3002",explain:"\u8FD9\u662F\u4E0D\u6B63\u786E\u7684\uFF0C\u800C\u4E14\u7531\u4E8E\u6211\u4EEC\u5728\u8BAD\u7EC3\u8FC7\u7A0B\u4E2D\u5BF9\u6570\u636E\u96C6\u8FDB\u884C\u4E86\u6D17\u724C\uFF0C\u56E0\u6B64\u67E5\u770B\u6570\u636E\u96C6\u4E2D\u7684\u987A\u5E8F\u662F\u6CA1\u6709\u610F\u4E49\u7684\u3002"}]}}),A=new xe({}),M=new $e({props:{choices:[{text:"\u5B83\u786E\u4FDD\u6570\u636E\u96C6\u4E2D\u7684\u6240\u6709\u5E8F\u5217\u5177\u6709\u76F8\u540C\u7684\u957F\u5EA6\u3002",explain:"\u6821\u5BF9\u51FD\u6570\u7528\u4E8E\u5904\u7406\u5355\u4E2A\u6279\u5904\u7406\uFF0C\u800C\u4E0D\u662F\u6574\u4E2A\u6570\u636E\u96C6\u3002\u6B64\u5916\uFF0C\u6211\u4EEC\u8BA8\u8BBA\u7684\u662F\u901A\u7528\u7684\u6821\u5BF9\u51FD\u6570\uFF0C\u800C\u4E0D\u662F\u7279\u5B9A\u7684 &amp;lt; code > > DataCollatorWithPadding &amp;lt;/code > \u3002"},{text:"\u5B83\u628A\u6240\u6709\u7684\u6837\u54C1\u4E00\u6279\u4E00\u6279\u5730\u653E\u5728\u4E00\u8D77\u3002",explain:"\u6B63\u786E\uFF01 You can pass the collate function as an argument of a <code>DataLoader</code>. We used the <code>DataCollatorWithPadding</code> function, which pads all items in a batch so they have the same length.",correct:!0},{text:"\u5B83\u9884\u5904\u7406\u6574\u4E2A\u6570\u636E\u96C6\u3002",explain:"\u8FD9\u5C06\u662F\u4E00\u4E2A\u9884\u5904\u7406\u51FD\u6570\uFF0C\u800C\u4E0D\u662F\u6821\u5BF9\u51FD\u6570\u3002"},{text:"\u5B83\u622A\u65AD\u6570\u636E\u96C6\u4E2D\u7684\u5E8F\u5217\u3002",explain:"\u6821\u5BF9\u51FD\u6570\u7528\u4E8E\u5904\u7406\u5355\u4E2A\u6279\u5904\u7406\uFF0C\u800C\u4E0D\u662F\u6574\u4E2A\u6570\u636E\u96C6\u3002\u5982\u679C\u60A8\u5BF9\u622A\u65AD\u611F\u5174\u8DA3\uFF0C\u53EF\u4EE5\u4F7F\u7528 &amp;lt; code > tokenizer &amp;lt;/code > \u7684 &amp;lt; truncate &amp;lt;/code > \u53C2\u6570\u3002"}]}}),C=new xe({}),Y=new $e({props:{choices:[{text:"\u4EC0\u4E48\u90FD\u6CA1\u6709\uFF0C\u4F46\u662F\u4F60\u5F97\u5230\u4E86\u4E00\u4E2A\u8B66\u544A\u3002",explain:"\u4F60\u786E\u5B9E\u5F97\u5230\u4E86\u8B66\u544A\uFF0C\u4F46\u8FD9\u8FD8\u4E0D\u662F\u5168\u90E8\uFF01"},{text:"\u4E22\u5F03\u9884\u8BAD\u7EC3\u6A21\u578B\u7684\u5934\u90E8\uFF0C\u5E76\u63D2\u5165\u4E00\u4E2A\u65B0\u7684\u5934\u90E8\u9002\u5408\u7684\u4EFB\u52A1\u3002",explain:"\u8FD9\u5C31\u662F\u6211\u4EEC\u5BF9 &amp;lt; code > Trainer &amp;lt;/code > \u6240\u505A\u7684\uFF0C\u800C\u4E0D\u662F Accelerate \u5E93\u3002\u518D\u8BD5\u4E00\u6B21\uFF01",correct:!0},{text:"\u4E22\u5F03\u9884\u5148\u8BAD\u7EC3\u597D\u7684\u6A21\u578B\u5934\u90E8\u3002",explain:"Something else needs to happen. \u518D\u8BD5\u4E00\u6B21\uFF01"},{text:"\u6CA1\u6709\uFF0C\u56E0\u4E3A\u6A21\u578B\u4ECD\u7136\u53EF\u4EE5\u9488\u5BF9\u4E0D\u540C\u7684\u4EFB\u52A1\u8FDB\u884C\u5FAE\u8C03\u3002",explain:"\u8FD9\u4E2A\u7ECF\u8FC7\u8BAD\u7EC3\u7684\u6A21\u7279\u7684\u5934\u6CA1\u6709\u7ECF\u8FC7\u8BAD\u7EC3\u6765\u89E3\u51B3\u8FD9\u4E2A\u95EE\u9898\uFF0C\u6240\u4EE5\u6211\u4EEC\u5E94\u8BE5\u4E22\u6389\u8FD9\u4E2A\u5934\uFF01"}]}}),K=new xe({}),te=new $e({props:{choices:[{text:"\u5B83\u5305\u542B\u4E86\u6240\u6709\u7528\u4E8E\u8BAD\u7EC3\u548C\u8BC4\u4F30\u7684\u8D85\u53C2\u6570\u3002",explain:"\u6B63\u786E\uFF01",correct:!0},{text:"\u5B83\u6307\u5B9A\u6A21\u578B\u7684\u5927\u5C0F\u3002",explain:"\u6A21\u578B\u5927\u5C0F\u662F\u7531\u6A21\u578B\u914D\u7F6E\u5B9A\u4E49\u7684\uFF0C\u800C\u4E0D\u662F\u7C7B &amp;lt; code > TrainingArguments &amp;lt;/code > \u3002"},{text:"\u5B83\u53EA\u5305\u542B\u7528\u4E8E\u8BC4\u4F30\u7684\u8D85\u53C2\u6570\u3002",explain:"In the example, we specified where the model and its checkpoints will be saved. \u518D\u8BD5\u4E00\u6B21\uFF01"},{text:"\u60A8\u53EF\u4EE5\u8F7B\u677E\u5730\u8BA1\u7B97\u4E0E\u6570\u636E\u96C6\u76F8\u5173\u7684\u6307\u6807\u3002",explain:"In the example, we used an <code>evaluation_strategy</code> as well, so this impacts evaluation. \u518D\u8BD5\u4E00\u6B21\uFF01"}]}}),se=new xe({}),de=new $e({props:{choices:[{text:"\u5B83\u63D0\u4F9B\u4E86\u5BF9\u66F4\u5FEB\u7684\u6A21\u578B\u7684\u8BBF\u95EE\u3002",explain:"\u4E0D\uFF0CAccelerate \u5E93\u4E0D\u63D0\u4F9B\u4EFB\u4F55\u6A21\u578B\u3002"},{text:"\u5B83\u63D0\u4F9B\u4E86\u4E00\u4E2A\u9AD8\u7EA7 API\uFF0C\u56E0\u6B64\u6211\u4E0D\u5FC5\u5B9E\u73B0\u81EA\u5DF1\u7684\u57F9\u8BAD\u5FAA\u73AF\u3002",explain:"This is what we did with <code>Trainer</code>, not the \u{1F917} Accelerate library. \u518D\u8BD5\u4E00\u6B21\uFF01"},{text:"\u5B83\u4F7F\u6211\u4EEC\u7684\u8BAD\u7EC3\u5FAA\u73AF\u5DE5\u4F5C\u5728\u5206\u5E03\u5F0F\u7B56\u7565\u4E0A",explain:"\u6B63\u786E! \u968F\u7740\u52A0\u901F\uFF0C\u4F60\u7684\u8BAD\u7EC3\u5FAA\u73AF\u5C06\u4E3A\u591A\u4E2A gpu \u548C TPUs \u5DE5\u4F5C\u3002",correct:!0},{text:"\u5B83\u63D0\u4F9B\u4E86\u66F4\u591A\u7684\u4F18\u5316\u529F\u80FD\u3002",explain:"\u4E0D\uFF0CAccelerate \u5E93\u4E0D\u63D0\u4F9B\u4EFB\u4F55\u4F18\u5316\u529F\u80FD\u3002"}]}}),{c(){m=o("h3"),E=o("a"),b=o("span"),d(P.$$.fragment),R=h(),q=o("span"),oe=B("4.\u2018 Dataset.map ()\u2019\u65B9\u6CD5\u7684\u597D\u5904\u662F\u4EC0\u4E48\uFF1F"),W=h(),d(z.$$.fragment),j=h(),y=o("h3"),S=o("a"),F=o("span"),d(H.$$.fragment),re=h(),V=o("span"),he=B("5.\u4EC0\u4E48\u662F\u52A8\u6001\u586B\u5145\uFF1F"),L=h(),d(I.$$.fragment),Q=h(),k=o("h3"),N=o("a"),J=o("span"),d(A.$$.fragment),ce=h(),T=o("span"),me=B("6.\u6821\u5BF9\u51FD\u6570\u7684\u7528\u9014\u662F\u4EC0\u4E48\uFF1F"),X=h(),d(M.$$.fragment),le=h(),s=o("h3"),u=o("a"),ne=o("span"),d(C.$$.fragment),Z=h(),O=o("span"),ae=B("7.\u5F53\u4F60\u7528\u4E00\u4E2A\u9884\u5148\u8BAD\u7EC3\u8FC7\u7684\u8BED\u8A00\u6A21\u578B(\u4F8B\u5982\u2018 bert-base-uncased\u2019)\u5B9E\u4F8B\u5316\u4E00\u4E2A\u2018 AutoModelForXxx\u2019\u7C7B\uFF0C\u8FD9\u4E2A\u7C7B\u5BF9\u5E94\u4E8E\u4E00\u4E2A\u4E0D\u540C\u4E8E\u5B83\u6240\u88AB\u8BAD\u7EC3\u7684\u4EFB\u52A1\u65F6\u4F1A\u53D1\u751F\u4EC0\u4E48\uFF1F"),ve=h(),d(Y.$$.fragment),ie=h(),G=o("h3"),D=o("a"),pe=o("span"),d(K.$$.fragment),ee=h(),ue=o("span"),ge=B("8.\u8BAD\u7EC3\u4E89\u8BBA\u7684\u76EE\u7684\u662F\u4EC0\u4E48\uFF1F"),ye=h(),d(te.$$.fragment),ke=h(),e=o("h3"),f=o("a"),fe=o("span"),d(se.$$.fragment),Ae=h(),Ee=o("span"),Pe=B("9.\u4E3A\u4EC0\u4E48\u8981\u4F7F\u7528 Accelerate \u5E93\uFF1F"),we=h(),d(de.$$.fragment),this.h()},l(t){m=l(t,"H3",{class:!0});var $=i(m);E=l($,"A",{id:!0,class:!0,href:!0});var Se=i(E);b=l(Se,"SPAN",{});var Ne=i(b);w(P.$$.fragment,Ne),Ne.forEach(r),Se.forEach(r),R=c($),q=l($,"SPAN",{});var qe=i(q);oe=U(qe,"4.\u2018 Dataset.map ()\u2019\u65B9\u6CD5\u7684\u597D\u5904\u662F\u4EC0\u4E48\uFF1F"),qe.forEach(r),$.forEach(r),W=c(t),w(z.$$.fragment,t),j=c(t),y=l(t,"H3",{class:!0});var He=i(y);S=l(He,"A",{id:!0,class:!0,href:!0});var Ie=i(S);F=l(Ie,"SPAN",{});var Me=i(F);w(H.$$.fragment,Me),Me.forEach(r),Ie.forEach(r),re=c(He),V=l(He,"SPAN",{});var De=i(V);he=U(De,"5.\u4EC0\u4E48\u662F\u52A8\u6001\u586B\u5145\uFF1F"),De.forEach(r),He.forEach(r),L=c(t),w(I.$$.fragment,t),Q=c(t),k=l(t,"H3",{class:!0});var Te=i(k);N=l(Te,"A",{id:!0,class:!0,href:!0});var Ke=i(N);J=l(Ke,"SPAN",{});var Le=i(J);w(A.$$.fragment,Le),Le.forEach(r),Ke.forEach(r),ce=c(Te),T=l(Te,"SPAN",{});var Be=i(T);me=U(Be,"6.\u6821\u5BF9\u51FD\u6570\u7684\u7528\u9014\u662F\u4EC0\u4E48\uFF1F"),Be.forEach(r),Te.forEach(r),X=c(t),w(M.$$.fragment,t),le=c(t),s=l(t,"H3",{class:!0});var Ce=i(s);u=l(Ce,"A",{id:!0,class:!0,href:!0});var Ue=i(u);ne=l(Ue,"SPAN",{});var Re=i(ne);w(C.$$.fragment,Re),Re.forEach(r),Ue.forEach(r),Z=c(Ce),O=l(Ce,"SPAN",{});var We=i(O);ae=U(We,"7.\u5F53\u4F60\u7528\u4E00\u4E2A\u9884\u5148\u8BAD\u7EC3\u8FC7\u7684\u8BED\u8A00\u6A21\u578B(\u4F8B\u5982\u2018 bert-base-uncased\u2019)\u5B9E\u4F8B\u5316\u4E00\u4E2A\u2018 AutoModelForXxx\u2019\u7C7B\uFF0C\u8FD9\u4E2A\u7C7B\u5BF9\u5E94\u4E8E\u4E00\u4E2A\u4E0D\u540C\u4E8E\u5B83\u6240\u88AB\u8BAD\u7EC3\u7684\u4EFB\u52A1\u65F6\u4F1A\u53D1\u751F\u4EC0\u4E48\uFF1F"),We.forEach(r),Ce.forEach(r),ve=c(t),w(Y.$$.fragment,t),ie=c(t),G=l(t,"H3",{class:!0});var ze=i(G);D=l(ze,"A",{id:!0,class:!0,href:!0});var Qe=i(D);pe=l(Qe,"SPAN",{});var Xe=i(pe);w(K.$$.fragment,Xe),Xe.forEach(r),Qe.forEach(r),ee=c(ze),ue=l(ze,"SPAN",{});var Ge=i(ue);ge=U(Ge,"8.\u8BAD\u7EC3\u4E89\u8BBA\u7684\u76EE\u7684\u662F\u4EC0\u4E48\uFF1F"),Ge.forEach(r),ze.forEach(r),ye=c(t),w(te.$$.fragment,t),ke=c(t),e=l(t,"H3",{class:!0});var Fe=i(e);f=l(Fe,"A",{id:!0,class:!0,href:!0});var Je=i(f);fe=l(Je,"SPAN",{});var Oe=i(fe);w(se.$$.fragment,Oe),Oe.forEach(r),Je.forEach(r),Ae=c(Fe),Ee=l(Fe,"SPAN",{});var Ye=i(Ee);Pe=U(Ye,"9.\u4E3A\u4EC0\u4E48\u8981\u4F7F\u7528 Accelerate \u5E93\uFF1F"),Ye.forEach(r),Fe.forEach(r),we=c(t),w(de.$$.fragment,t),this.h()},h(){n(E,"id","4.\u2018-dataset.map-()\u2019\u65B9\u6CD5\u7684\u597D\u5904\u662F\u4EC0\u4E48\uFF1F"),n(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"),n(E,"href","#4.\u2018-dataset.map-()\u2019\u65B9\u6CD5\u7684\u597D\u5904\u662F\u4EC0\u4E48\uFF1F"),n(m,"class","relative group"),n(S,"id","5.\u4EC0\u4E48\u662F\u52A8\u6001\u586B\u5145\uFF1F"),n(S,"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"),n(S,"href","#5.\u4EC0\u4E48\u662F\u52A8\u6001\u586B\u5145\uFF1F"),n(y,"class","relative group"),n(N,"id","6.\u6821\u5BF9\u51FD\u6570\u7684\u7528\u9014\u662F\u4EC0\u4E48\uFF1F"),n(N,"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"),n(N,"href","#6.\u6821\u5BF9\u51FD\u6570\u7684\u7528\u9014\u662F\u4EC0\u4E48\uFF1F"),n(k,"class","relative group"),n(u,"id","7.\u5F53\u4F60\u7528\u4E00\u4E2A\u9884\u5148\u8BAD\u7EC3\u8FC7\u7684\u8BED\u8A00\u6A21\u578B(\u4F8B\u5982\u2018-bert-base-uncased\u2019)\u5B9E\u4F8B\u5316\u4E00\u4E2A\u2018-automodelforxxx\u2019\u7C7B\uFF0C\u8FD9\u4E2A\u7C7B\u5BF9\u5E94\u4E8E\u4E00\u4E2A\u4E0D\u540C\u4E8E\u5B83\u6240\u88AB\u8BAD\u7EC3\u7684\u4EFB\u52A1\u65F6\u4F1A\u53D1\u751F\u4EC0\u4E48\uFF1F"),n(u,"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"),n(u,"href","#7.\u5F53\u4F60\u7528\u4E00\u4E2A\u9884\u5148\u8BAD\u7EC3\u8FC7\u7684\u8BED\u8A00\u6A21\u578B(\u4F8B\u5982\u2018-bert-base-uncased\u2019)\u5B9E\u4F8B\u5316\u4E00\u4E2A\u2018-automodelforxxx\u2019\u7C7B\uFF0C\u8FD9\u4E2A\u7C7B\u5BF9\u5E94\u4E8E\u4E00\u4E2A\u4E0D\u540C\u4E8E\u5B83\u6240\u88AB\u8BAD\u7EC3\u7684\u4EFB\u52A1\u65F6\u4F1A\u53D1\u751F\u4EC0\u4E48\uFF1F"),n(s,"class","relative group"),n(D,"id","8.\u8BAD\u7EC3\u4E89\u8BBA\u7684\u76EE\u7684\u662F\u4EC0\u4E48\uFF1F"),n(D,"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"),n(D,"href","#8.\u8BAD\u7EC3\u4E89\u8BBA\u7684\u76EE\u7684\u662F\u4EC0\u4E48\uFF1F"),n(G,"class","relative group"),n(f,"id","9.\u4E3A\u4EC0\u4E48\u8981\u4F7F\u7528-accelerate-\u5E93\uFF1F"),n(f,"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"),n(f,"href","#9.\u4E3A\u4EC0\u4E48\u8981\u4F7F\u7528-accelerate-\u5E93\uFF1F"),n(e,"class","relative group")},m(t,$){p(t,m,$),a(m,E),a(E,b),_(P,b,null),a(m,R),a(m,q),a(q,oe),p(t,W,$),_(z,t,$),p(t,j,$),p(t,y,$),a(y,S),a(S,F),_(H,F,null),a(y,re),a(y,V),a(V,he),p(t,L,$),_(I,t,$),p(t,Q,$),p(t,k,$),a(k,N),a(N,J),_(A,J,null),a(k,ce),a(k,T),a(T,me),p(t,X,$),_(M,t,$),p(t,le,$),p(t,s,$),a(s,u),a(u,ne),_(C,ne,null),a(s,Z),a(s,O),a(O,ae),p(t,ve,$),_(Y,t,$),p(t,ie,$),p(t,G,$),a(G,D),a(D,pe),_(K,pe,null),a(G,ee),a(G,ue),a(ue,ge),p(t,ye,$),_(te,t,$),p(t,ke,$),p(t,e,$),a(e,f),a(f,fe),_(se,fe,null),a(e,Ae),a(e,Ee),a(Ee,Pe),p(t,we,$),_(de,t,$),_e=!0},i(t){_e||(x(P.$$.fragment,t),x(z.$$.fragment,t),x(H.$$.fragment,t),x(I.$$.fragment,t),x(A.$$.fragment,t),x(M.$$.fragment,t),x(C.$$.fragment,t),x(Y.$$.fragment,t),x(K.$$.fragment,t),x(te.$$.fragment,t),x(se.$$.fragment,t),x(de.$$.fragment,t),_e=!0)},o(t){v(P.$$.fragment,t),v(z.$$.fragment,t),v(H.$$.fragment,t),v(I.$$.fragment,t),v(A.$$.fragment,t),v(M.$$.fragment,t),v(C.$$.fragment,t),v(Y.$$.fragment,t),v(K.$$.fragment,t),v(te.$$.fragment,t),v(se.$$.fragment,t),v(de.$$.fragment,t),_e=!1},d(t){t&&r(m),g(P),t&&r(W),g(z,t),t&&r(j),t&&r(y),g(H),t&&r(L),g(I,t),t&&r(Q),t&&r(k),g(A),t&&r(X),g(M,t),t&&r(le),t&&r(s),g(C),t&&r(ve),g(Y,t),t&&r(ie),t&&r(G),g(K),t&&r(ye),g(te,t),t&&r(ke),t&&r(e),g(se),t&&r(we),g(de,t)}}}function pt(be){let m,E,b,P,R,q,oe,W,z,j,y,S,F,H,re,V,he,L,I,Q,k,N,J,A,ce,T,me,X,M,le,s,u,ne,C,Z,O,ae,ve,Y,ie,G,D,pe,K,ee,ue,ge;b=new lt({props:{fw:be[0]}}),W=new xe({}),F=new ot({props:{chapter:3,classNames:"absolute z-10 right-0 top-0"}}),A=new $e({props:{choices:[{text:"\u4E54\u4F0A",explain:"\u518D\u8BD5\u4E00\u6B21\u30FC\u30FC\u8FD9\u79CD\u60C5\u7EEA\u51FA\u73B0\u5728\u90A3\u4E2A\u6570\u636E\u96C6\u4E2D\uFF01"},{text:"\u7231",explain:"\u518D\u8BD5\u4E00\u6B21\u30FC\u30FC\u8FD9\u79CD\u60C5\u7EEA\u51FA\u73B0\u5728\u90A3\u4E2A\u6570\u636E\u96C6\u4E2D\uFF01"},{text:"\u901A\u8FC7\u8C37\u6B4C\u641C\u7D22\u3002",explain:"\u6B63\u786E! \u56F0\u60D1\u4E0D\u662F\u516D\u79CD\u57FA\u672C\u60C5\u7EEA\u4E4B\u4E00\u3002",correct:!0},{text:"\u60CA\u559C\u5427",explain:"\u60CA\u559C! \u518D\u8BD5\u4E00\u4E2A\uFF01"}]}}),u=new $e({props:{choices:[{text:"\u60C5\u7EEA\u5206\u7C7B",explain:"\u6CA1\u9519! \u4F60\u53EF\u4EE5\u611F\u8C22\u8FD9\u4E9B\u6807\u7B7E\u3002",correct:!0},{text:"\u673A\u5668\u7FFB\u8BD1",explain:"\u4E0D\u662F\u8FD9\u6837\u7684\u30FC\u30FC\u518D\u770B\u770B &amp;lt; a href =\u2019https://huggingface.co/datasets/ar _ sarcasm\u2019> dataset card &amp;lt;/a > \uFF01"},{text:"\u547D\u540D\u5B9E\u4F53\u8BC6\u522B",explain:"\u4E0D\u662F\u8FD9\u6837\u7684\u30FC\u30FC\u518D\u770B\u770B &amp;lt; a href =\u2019https://huggingface.co/datasets/ar _ sarcasm\u2019> dataset card &amp;lt;/a > \uFF01"},{text:"\u56DE\u7B54\u95EE\u9898",explain:"Alas, this question was not answered correctly. \u518D\u8BD5\u4E00\u6B21\uFF01"}]}}),ae=new xe({}),D=new $e({props:{choices:[{text:"\u8868\u793A\u53E5\u5B50\u7684\u8BB0\u53F71[ SEP ]\u8868\u793A\u53E5\u5B50\u7684\u8BB0\u53F72",explain:"\u5728\u521B\u5EFA\u6279\u5904\u7406\u65F6\u786E\u5B9E\u610F\u5473\u7740\u586B\u5145\uFF0C\u4F46\u4E0D\u610F\u5473\u7740\u586B\u5145\u5230\u6574\u4E2A\u6570\u636E\u96C6\u4E2D\u7684\u6700\u5927\u957F\u5EA6\u3002"},{text:"\u8868\u793A\u53E5\u5B50\u7684\u8BB0\u53F7\u8868\u793A\u53E5\u5B50\u7684\u8BB0\u53F7",explain:"\u4E00\u4E2A &amp;lt; code > [ CLS ] &amp;lt;/code > \u7279\u6B8A\u4EE4\u724C\u5728\u5F00\u59CB\u65F6\u662F\u5FC5\u9700\u7684\uFF0C\u4F46\u662F\u8FD9\u4E0D\u662F\u552F\u4E00\u7684\u4E8B\u60C5\uFF01"},{text:"\u8868\u793A\u53E5\u5B501[ SEP ]\u7684\u7B26\u53F7\u8868\u793A\u53E5\u5B502[ SEP ]",explain:"\u6CA1\u9519\uFF01",correct:!0},{text:"\u8868\u793A\u53E5\u5B501[ SEP ]\u7684\u7B26\u53F7\u8868\u793A\u53E5\u5B502",explain:"\u5F00\u5934\u9700\u8981\u4E00\u4E2A &amp;lt; code > [ CLS ] &amp;lt;/code > \u7279\u6B8A\u6807\u8BB0\uFF0C\u8FD8\u9700\u8981\u4E00\u4E2A &amp;lt; code > [ SEP ] &amp;lt;/code > \u7279\u6B8A\u6807\u8BB0\u6765\u5206\u9694\u4E24\u4E2A\u53E5\u5B50\uFF0C\u4F46\u8FD9\u8FD8\u4E0D\u662F\u5168\u90E8\uFF01"}]}});const ye=[it,nt],te=[];function ke(e,f){return e[0]==="pt"?0:1}return K=ke(be),ee=te[K]=ye[K](be),{c(){m=o("meta"),E=h(),d(b.$$.fragment),P=h(),R=o("h1"),q=o("a"),oe=o("span"),d(W.$$.fragment),z=h(),j=o("span"),y=B("End-of-chapter quiz"),S=h(),d(F.$$.fragment),H=h(),re=o("p"),V=B("Test what you learned in this chapter!"),he=h(),L=o("h3"),I=B("1.\u201C\u60C5\u7EEA\u201D\u6570\u636E\u96C6\u5305\u542B\u6807\u8BB0\u6709\u60C5\u7EEA\u7684 Twitter \u6D88\u606F\u3002\u5728[ Hub ]( "),Q=o("a"),k=B("https://huggingface.co/datasets"),N=B(" \u96C6\u7EBF\u5668)\u4E2D\u641C\u7D22\u5B83\uFF0C\u7136\u540E\u8BFB\u53D6\u6570\u636E\u96C6\u5361\u3002\u54EA\u4E00\u4E2A\u4E0D\u662F\u5B83\u7684\u57FA\u672C\u60C5\u611F\uFF1F"),J=h(),d(A.$$.fragment),ce=h(),T=o("h3"),me=B("2.\u5728[ Hub ]( "),X=o("a"),M=B("https://huggingface.co/datasets"),le=B(" \u96C6\u7EBF\u5668)\u4E2D\u641C\u7D22\u2018 ar _ sarcasm\u2019\u6570\u636E\u96C6\uFF0C\u5B83\u652F\u6301\u54EA\u4E2A\u4EFB\u52A1\uFF1F"),s=h(),d(u.$$.fragment),ne=h(),C=o("h3"),Z=o("a"),O=o("span"),d(ae.$$.fragment),ve=h(),Y=o("span"),ie=B("3.BERT \u6A21\u578B\u671F\u671B\u5982\u4F55\u5904\u7406\u4E00\u5BF9\u53E5\u5B50\uFF1F"),G=h(),d(D.$$.fragment),pe=h(),ee.c(),ue=je(),this.h()},l(e){const f=tt('[data-svelte="svelte-1phssyn"]',document.head);m=l(f,"META",{name:!0,content:!0}),f.forEach(r),E=c(e),w(b.$$.fragment,e),P=c(e),R=l(e,"H1",{class:!0});var fe=i(R);q=l(fe,"A",{id:!0,class:!0,href:!0});var se=i(q);oe=l(se,"SPAN",{});var Ae=i(oe);w(W.$$.fragment,Ae),Ae.forEach(r),se.forEach(r),z=c(fe),j=l(fe,"SPAN",{});var Ee=i(j);y=U(Ee,"End-of-chapter quiz"),Ee.forEach(r),fe.forEach(r),S=c(e),w(F.$$.fragment,e),H=c(e),re=l(e,"P",{});var Pe=i(re);V=U(Pe,"Test what you learned in this chapter!"),Pe.forEach(r),he=c(e),L=l(e,"H3",{});var we=i(L);I=U(we,"1.\u201C\u60C5\u7EEA\u201D\u6570\u636E\u96C6\u5305\u542B\u6807\u8BB0\u6709\u60C5\u7EEA\u7684 Twitter \u6D88\u606F\u3002\u5728[ Hub ]( "),Q=l(we,"A",{href:!0,rel:!0});var de=i(Q);k=U(de,"https://huggingface.co/datasets"),de.forEach(r),N=U(we," \u96C6\u7EBF\u5668)\u4E2D\u641C\u7D22\u5B83\uFF0C\u7136\u540E\u8BFB\u53D6\u6570\u636E\u96C6\u5361\u3002\u54EA\u4E00\u4E2A\u4E0D\u662F\u5B83\u7684\u57FA\u672C\u60C5\u611F\uFF1F"),we.forEach(r),J=c(e),w(A.$$.fragment,e),ce=c(e),T=l(e,"H3",{});var _e=i(T);me=U(_e,"2.\u5728[ Hub ]( "),X=l(_e,"A",{href:!0,rel:!0});var t=i(X);M=U(t,"https://huggingface.co/datasets"),t.forEach(r),le=U(_e," \u96C6\u7EBF\u5668)\u4E2D\u641C\u7D22\u2018 ar _ sarcasm\u2019\u6570\u636E\u96C6\uFF0C\u5B83\u652F\u6301\u54EA\u4E2A\u4EFB\u52A1\uFF1F"),_e.forEach(r),s=c(e),w(u.$$.fragment,e),ne=c(e),C=l(e,"H3",{class:!0});var $=i(C);Z=l($,"A",{id:!0,class:!0,href:!0});var Se=i(Z);O=l(Se,"SPAN",{});var Ne=i(O);w(ae.$$.fragment,Ne),Ne.forEach(r),Se.forEach(r),ve=c($),Y=l($,"SPAN",{});var qe=i(Y);ie=U(qe,"3.BERT \u6A21\u578B\u671F\u671B\u5982\u4F55\u5904\u7406\u4E00\u5BF9\u53E5\u5B50\uFF1F"),qe.forEach(r),$.forEach(r),G=c(e),w(D.$$.fragment,e),pe=c(e),ee.l(e),ue=je(),this.h()},h(){n(m,"name","hf:doc:metadata"),n(m,"content",JSON.stringify(ft)),n(q,"id","endofchapter-quiz"),n(q,"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"),n(q,"href","#endofchapter-quiz"),n(R,"class","relative group"),n(Q,"href","https://huggingface.co/datasets"),n(Q,"rel","nofollow"),n(X,"href","https://huggingface.co/datasets"),n(X,"rel","nofollow"),n(Z,"id","3.bert-\u6A21\u578B\u671F\u671B\u5982\u4F55\u5904\u7406\u4E00\u5BF9\u53E5\u5B50\uFF1F"),n(Z,"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"),n(Z,"href","#3.bert-\u6A21\u578B\u671F\u671B\u5982\u4F55\u5904\u7406\u4E00\u5BF9\u53E5\u5B50\uFF1F"),n(C,"class","relative group")},m(e,f){a(document.head,m),p(e,E,f),_(b,e,f),p(e,P,f),p(e,R,f),a(R,q),a(q,oe),_(W,oe,null),a(R,z),a(R,j),a(j,y),p(e,S,f),_(F,e,f),p(e,H,f),p(e,re,f),a(re,V),p(e,he,f),p(e,L,f),a(L,I),a(L,Q),a(Q,k),a(L,N),p(e,J,f),_(A,e,f),p(e,ce,f),p(e,T,f),a(T,me),a(T,X),a(X,M),a(T,le),p(e,s,f),_(u,e,f),p(e,ne,f),p(e,C,f),a(C,Z),a(Z,O),_(ae,O,null),a(C,ve),a(C,Y),a(Y,ie),p(e,G,f),_(D,e,f),p(e,pe,f),te[K].m(e,f),p(e,ue,f),ge=!0},p(e,[f]){const fe={};f&1&&(fe.fw=e[0]),b.$set(fe);let se=K;K=ke(e),K!==se&&(st(),v(te[se],1,1,()=>{te[se]=null}),rt(),ee=te[K],ee||(ee=te[K]=ye[K](e),ee.c()),x(ee,1),ee.m(ue.parentNode,ue))},i(e){ge||(x(b.$$.fragment,e),x(W.$$.fragment,e),x(F.$$.fragment,e),x(A.$$.fragment,e),x(u.$$.fragment,e),x(ae.$$.fragment,e),x(D.$$.fragment,e),x(ee),ge=!0)},o(e){v(b.$$.fragment,e),v(W.$$.fragment,e),v(F.$$.fragment,e),v(A.$$.fragment,e),v(u.$$.fragment,e),v(ae.$$.fragment,e),v(D.$$.fragment,e),v(ee),ge=!1},d(e){r(m),e&&r(E),g(b,e),e&&r(P),e&&r(R),g(W),e&&r(S),g(F,e),e&&r(H),e&&r(re),e&&r(he),e&&r(L),e&&r(J),g(A,e),e&&r(ce),e&&r(T),e&&r(s),g(u,e),e&&r(ne),e&&r(C),g(ae),e&&r(G),g(D,e),e&&r(pe),te[K].d(e),e&&r(ue)}}}const ft={local:"endofchapter-quiz",title:"End-of-chapter quiz"};function ht(be,m,E){let b="pt";return at(()=>{const P=new URLSearchParams(window.location.search);E(0,b=P.get("fw")||"pt")}),[b]}class dt extends Ve{constructor(m){super();Ze(this,m,ht,pt,et,{})}}export{dt as default,ft as metadata};
