import{S as wr,i as gr,s as vr,e as r,k as y,w as v,t as l,M as Ur,c as o,d as s,m as b,a as n,x as U,h as a,b as _,G as t,g as m,y as E,q as k,o as T,B as J,v as Er,L as bl}from"../../chunks/vendor-hf-doc-builder.js";import{T as yl}from"../../chunks/Tip-hf-doc-builder.js";import{Y as kr}from"../../chunks/Youtube-hf-doc-builder.js";import{I as ts}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as q}from"../../chunks/CodeBlock-hf-doc-builder.js";import{D as Tr}from"../../chunks/DocNotebookDropdown-hf-doc-builder.js";import{F as va,M as ss}from"../../chunks/Markdown-hf-doc-builder.js";function Jr(Y){let p,f,i,$,j,g,G,B,w,V,R,F,z,W,S,se,O,X,L,Q,D,P,N,x,h,Z,le,A,I,ae,H,Be,he,de,We,je,ue,ie,Me,Ce,pe,$e,ce,Te,K,_e,me,ne,Xe,Je,ee,ye,M,C,we,ge,re,oe,ve,Ee,be,Ve,fe,ke,Re,te,Ze,Ue,Ge,Fe;return{c(){p=l(`\uC774 \uD29C\uD1A0\uB9AC\uC5BC\uC5D0\uC11C \uC124\uBA85\uD558\uB294 \uC791\uC5C5\uC740 \uB2E4\uC74C \uBAA8\uB378 \uC544\uD0A4\uD14D\uCC98\uC5D0\uC11C \uC9C0\uC6D0\uB429\uB2C8\uB2E4:

`),f=r("p"),i=r("a"),$=l("BART"),j=l(", "),g=r("a"),G=l("BigBird-Pegasus"),B=l(", "),w=r("a"),V=l("Blenderbot"),R=l(", "),F=r("a"),z=l("BlenderbotSmall"),W=l(", "),S=r("a"),se=l("Encoder decoder"),O=l(", "),X=r("a"),L=l("FairSeq Machine-Translation"),Q=l(", "),D=r("a"),P=l("GPTSAN-japanese"),N=l(", "),x=r("a"),h=l("LED"),Z=l(", "),le=r("a"),A=l("LongT5"),I=l(", "),ae=r("a"),H=l("M2M100"),Be=l(", "),he=r("a"),de=l("Marian"),We=l(", "),je=r("a"),ue=l("mBART"),ie=l(", "),Me=r("a"),Ce=l("MT5"),pe=l(", "),$e=r("a"),ce=l("MVP"),Te=l(", "),K=r("a"),_e=l("NLLB"),me=l(", "),ne=r("a"),Xe=l("NLLB-MOE"),Je=l(", "),ee=r("a"),ye=l("Pegasus"),M=l(", "),C=r("a"),we=l("PEGASUS-X"),ge=l(", "),re=r("a"),oe=l("PLBart"),ve=l(", "),Ee=r("a"),be=l("ProphetNet"),Ve=l(", "),fe=r("a"),ke=l("SwitchTransformers"),Re=l(", "),te=r("a"),Ze=l("T5"),Ue=l(", "),Ge=r("a"),Fe=l("XLM-ProphetNet"),this.h()},l(c){p=a(c,`\uC774 \uD29C\uD1A0\uB9AC\uC5BC\uC5D0\uC11C \uC124\uBA85\uD558\uB294 \uC791\uC5C5\uC740 \uB2E4\uC74C \uBAA8\uB378 \uC544\uD0A4\uD14D\uCC98\uC5D0\uC11C \uC9C0\uC6D0\uB429\uB2C8\uB2E4:

`),f=o(c,"P",{});var u=n(f);i=o(u,"A",{href:!0});var Se=n(i);$=a(Se,"BART"),Se.forEach(s),j=a(u,", "),g=o(u,"A",{href:!0});var He=n(g);G=a(He,"BigBird-Pegasus"),He.forEach(s),B=a(u,", "),w=o(u,"A",{href:!0});var et=n(w);V=a(et,"Blenderbot"),et.forEach(s),R=a(u,", "),F=o(u,"A",{href:!0});var ze=n(F);z=a(ze,"BlenderbotSmall"),ze.forEach(s),W=a(u,", "),S=o(u,"A",{href:!0});var Le=n(S);se=a(Le,"Encoder decoder"),Le.forEach(s),O=a(u,", "),X=o(u,"A",{href:!0});var Ye=n(X);L=a(Ye,"FairSeq Machine-Translation"),Ye.forEach(s),Q=a(u,", "),D=o(u,"A",{href:!0});var ot=n(D);P=a(ot,"GPTSAN-japanese"),ot.forEach(s),N=a(u,", "),x=o(u,"A",{href:!0});var qe=n(x);h=a(qe,"LED"),qe.forEach(s),Z=a(u,", "),le=o(u,"A",{href:!0});var Ne=n(le);A=a(Ne,"LongT5"),Ne.forEach(s),I=a(u,", "),ae=o(u,"A",{href:!0});var Ie=n(ae);H=a(Ie,"M2M100"),Ie.forEach(s),Be=a(u,", "),he=o(u,"A",{href:!0});var Oe=n(he);de=a(Oe,"Marian"),Oe.forEach(s),We=a(u,", "),je=o(u,"A",{href:!0});var nt=n(je);ue=a(nt,"mBART"),nt.forEach(s),ie=a(u,", "),Me=o(u,"A",{href:!0});var tt=n(Me);Ce=a(tt,"MT5"),tt.forEach(s),pe=a(u,", "),$e=o(u,"A",{href:!0});var it=n($e);ce=a(it,"MVP"),it.forEach(s),Te=a(u,", "),K=o(u,"A",{href:!0});var Ae=n(K);_e=a(Ae,"NLLB"),Ae.forEach(s),me=a(u,", "),ne=o(u,"A",{href:!0});var xe=n(ne);Xe=a(xe,"NLLB-MOE"),xe.forEach(s),Je=a(u,", "),ee=o(u,"A",{href:!0});var pt=n(ee);ye=a(pt,"Pegasus"),pt.forEach(s),M=a(u,", "),C=o(u,"A",{href:!0});var ct=n(C);we=a(ct,"PEGASUS-X"),ct.forEach(s),ge=a(u,", "),re=o(u,"A",{href:!0});var Ke=n(re);oe=a(Ke,"PLBart"),Ke.forEach(s),ve=a(u,", "),Ee=o(u,"A",{href:!0});var xt=n(Ee);be=a(xt,"ProphetNet"),xt.forEach(s),Ve=a(u,", "),fe=o(u,"A",{href:!0});var Ht=n(fe);ke=a(Ht,"SwitchTransformers"),Ht.forEach(s),Re=a(u,", "),te=o(u,"A",{href:!0});var kt=n(te);Ze=a(kt,"T5"),kt.forEach(s),Ue=a(u,", "),Ge=o(u,"A",{href:!0});var Qe=n(Ge);Fe=a(Qe,"XLM-ProphetNet"),Qe.forEach(s),u.forEach(s),this.h()},h(){_(i,"href","../model_doc/bart"),_(g,"href","../model_doc/bigbird_pegasus"),_(w,"href","../model_doc/blenderbot"),_(F,"href","../model_doc/blenderbot-small"),_(S,"href","../model_doc/encoder-decoder"),_(X,"href","../model_doc/fsmt"),_(D,"href","../model_doc/gptsan-japanese"),_(x,"href","../model_doc/led"),_(le,"href","../model_doc/longt5"),_(ae,"href","../model_doc/m2m_100"),_(he,"href","../model_doc/marian"),_(je,"href","../model_doc/mbart"),_(Me,"href","../model_doc/mt5"),_($e,"href","../model_doc/mvp"),_(K,"href","../model_doc/nllb"),_(ne,"href","../model_doc/nllb-moe"),_(ee,"href","../model_doc/pegasus"),_(C,"href","../model_doc/pegasus_x"),_(re,"href","../model_doc/plbart"),_(Ee,"href","../model_doc/prophetnet"),_(fe,"href","../model_doc/switch_transformers"),_(te,"href","../model_doc/t5"),_(Ge,"href","../model_doc/xlm-prophetnet")},m(c,u){m(c,p,u),m(c,f,u),t(f,i),t(i,$),t(f,j),t(f,g),t(g,G),t(f,B),t(f,w),t(w,V),t(f,R),t(f,F),t(F,z),t(f,W),t(f,S),t(S,se),t(f,O),t(f,X),t(X,L),t(f,Q),t(f,D),t(D,P),t(f,N),t(f,x),t(x,h),t(f,Z),t(f,le),t(le,A),t(f,I),t(f,ae),t(ae,H),t(f,Be),t(f,he),t(he,de),t(f,We),t(f,je),t(je,ue),t(f,ie),t(f,Me),t(Me,Ce),t(f,pe),t(f,$e),t($e,ce),t(f,Te),t(f,K),t(K,_e),t(f,me),t(f,ne),t(ne,Xe),t(f,Je),t(f,ee),t(ee,ye),t(f,M),t(f,C),t(C,we),t(f,ge),t(f,re),t(re,oe),t(f,ve),t(f,Ee),t(Ee,be),t(f,Ve),t(f,fe),t(fe,ke),t(f,Re),t(f,te),t(te,Ze),t(f,Ue),t(f,Ge),t(Ge,Fe)},d(c){c&&s(p),c&&s(f)}}}function Zr(Y){let p,f;return p=new q({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMERhdGFDb2xsYXRvckZvclNlcTJTZXElMEElMEFkYXRhX2NvbGxhdG9yJTIwJTNEJTIwRGF0YUNvbGxhdG9yRm9yU2VxMlNlcSh0b2tlbml6ZXIlM0R0b2tlbml6ZXIlMkMlMjBtb2RlbCUzRGNoZWNrcG9pbnQp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> DataCollatorForSeq2Seq

<span class="hljs-meta">&gt;&gt;&gt; </span>data_collator = DataCollatorForSeq2Seq(tokenizer=tokenizer, model=checkpoint)`}}),{c(){v(p.$$.fragment)},l(i){U(p.$$.fragment,i)},m(i,$){E(p,i,$),f=!0},p:bl,i(i){f||(k(p.$$.fragment,i),f=!0)},o(i){T(p.$$.fragment,i),f=!1},d(i){J(p,i)}}}function Gr(Y){let p,f;return p=new ss({props:{$$slots:{default:[Zr]},$$scope:{ctx:Y}}}),{c(){v(p.$$.fragment)},l(i){U(p.$$.fragment,i)},m(i,$){E(p,i,$),f=!0},p(i,$){const j={};$&2&&(j.$$scope={dirty:$,ctx:i}),p.$set(j)},i(i){f||(k(p.$$.fragment,i),f=!0)},o(i){T(p.$$.fragment,i),f=!1},d(i){J(p,i)}}}function Cr(Y){let p,f;return p=new q({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMERhdGFDb2xsYXRvckZvclNlcTJTZXElMEElMEFkYXRhX2NvbGxhdG9yJTIwJTNEJTIwRGF0YUNvbGxhdG9yRm9yU2VxMlNlcSh0b2tlbml6ZXIlM0R0b2tlbml6ZXIlMkMlMjBtb2RlbCUzRGNoZWNrcG9pbnQlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnRmJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> DataCollatorForSeq2Seq

<span class="hljs-meta">&gt;&gt;&gt; </span>data_collator = DataCollatorForSeq2Seq(tokenizer=tokenizer, model=checkpoint, return_tensors=<span class="hljs-string">&quot;tf&quot;</span>)`}}),{c(){v(p.$$.fragment)},l(i){U(p.$$.fragment,i)},m(i,$){E(p,i,$),f=!0},p:bl,i(i){f||(k(p.$$.fragment,i),f=!0)},o(i){T(p.$$.fragment,i),f=!1},d(i){J(p,i)}}}function Vr(Y){let p,f;return p=new ss({props:{$$slots:{default:[Cr]},$$scope:{ctx:Y}}}),{c(){v(p.$$.fragment)},l(i){U(p.$$.fragment,i)},m(i,$){E(p,i,$),f=!0},p(i,$){const j={};$&2&&(j.$$scope={dirty:$,ctx:i}),p.$set(j)},i(i){f||(k(p.$$.fragment,i),f=!0)},o(i){T(p.$$.fragment,i),f=!1},d(i){J(p,i)}}}function Rr(Y){let p,f,i,$,j,g,G,B;return{c(){p=r("p"),f=l("\uBAA8\uB378\uC744 "),i=r("code"),$=l("Trainer"),j=l("\uB85C \uD30C\uC778\uD29C\uB2DD \uD558\uB294 \uAC83\uC774 \uC775\uC219\uD558\uC9C0 \uC54A\uB2E4\uBA74, "),g=r("a"),G=l("\uC5EC\uAE30"),B=l("\uC5D0\uC11C \uAE30\uBCF8 \uD29C\uD1A0\uB9AC\uC5BC\uC744 \uD655\uC778\uD574\uBCF4\uC138\uC694!"),this.h()},l(w){p=o(w,"P",{});var V=n(p);f=a(V,"\uBAA8\uB378\uC744 "),i=o(V,"CODE",{});var R=n(i);$=a(R,"Trainer"),R.forEach(s),j=a(V,"\uB85C \uD30C\uC778\uD29C\uB2DD \uD558\uB294 \uAC83\uC774 \uC775\uC219\uD558\uC9C0 \uC54A\uB2E4\uBA74, "),g=o(V,"A",{href:!0});var F=n(g);G=a(F,"\uC5EC\uAE30"),F.forEach(s),B=a(V,"\uC5D0\uC11C \uAE30\uBCF8 \uD29C\uD1A0\uB9AC\uC5BC\uC744 \uD655\uC778\uD574\uBCF4\uC138\uC694!"),V.forEach(s),this.h()},h(){_(g,"href","../training#train-with-pytorch-trainer")},m(w,V){m(w,p,V),t(p,f),t(p,i),t(i,$),t(p,j),t(p,g),t(g,G),t(p,B)},d(w){w&&s(p)}}}function Br(Y){let p,f,i,$,j,g,G,B,w,V,R,F,z,W,S,se,O,X,L,Q,D,P,N,x,h,Z,le,A,I,ae,H,Be,he,de,We,je,ue,ie,Me,Ce,pe,$e,ce,Te,K,_e,me,ne,Xe,Je,ee,ye;return p=new yl({props:{$$slots:{default:[Rr]},$$scope:{ctx:Y}}}),w=new q({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbEZvclNlcTJTZXFMTSUyQyUyMFNlcTJTZXFUcmFpbmluZ0FyZ3VtZW50cyUyQyUyMFNlcTJTZXFUcmFpbmVyJTBBJTBBbW9kZWwlMjAlM0QlMjBBdXRvTW9kZWxGb3JTZXEyU2VxTE0uZnJvbV9wcmV0cmFpbmVkKGNoZWNrcG9pbnQp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoModelForSeq2SeqLM, Seq2SeqTrainingArguments, Seq2SeqTrainer

<span class="hljs-meta">&gt;&gt;&gt; </span>model = AutoModelForSeq2SeqLM.from_pretrained(checkpoint)`}}),ce=new q({props:{code:"dHJhaW5pbmdfYXJncyUyMCUzRCUyMFNlcTJTZXFUcmFpbmluZ0FyZ3VtZW50cyglMEElMjAlMjAlMjAlMjBvdXRwdXRfZGlyJTNEJTIybXlfYXdlc29tZV9iaWxsc3VtX21vZGVsJTIyJTJDJTBBJTIwJTIwJTIwJTIwZXZhbHVhdGlvbl9zdHJhdGVneSUzRCUyMmVwb2NoJTIyJTJDJTBBJTIwJTIwJTIwJTIwbGVhcm5pbmdfcmF0ZSUzRDJlLTUlMkMlMEElMjAlMjAlMjAlMjBwZXJfZGV2aWNlX3RyYWluX2JhdGNoX3NpemUlM0QxNiUyQyUwQSUyMCUyMCUyMCUyMHBlcl9kZXZpY2VfZXZhbF9iYXRjaF9zaXplJTNEMTYlMkMlMEElMjAlMjAlMjAlMjB3ZWlnaHRfZGVjYXklM0QwLjAxJTJDJTBBJTIwJTIwJTIwJTIwc2F2ZV90b3RhbF9saW1pdCUzRDMlMkMlMEElMjAlMjAlMjAlMjBudW1fdHJhaW5fZXBvY2hzJTNENCUyQyUwQSUyMCUyMCUyMCUyMHByZWRpY3Rfd2l0aF9nZW5lcmF0ZSUzRFRydWUlMkMlMEElMjAlMjAlMjAlMjBmcDE2JTNEVHJ1ZSUyQyUwQSUyMCUyMCUyMCUyMHB1c2hfdG9faHViJTNEVHJ1ZSUyQyUwQSklMEElMEF0cmFpbmVyJTIwJTNEJTIwU2VxMlNlcVRyYWluZXIoJTBBJTIwJTIwJTIwJTIwbW9kZWwlM0Rtb2RlbCUyQyUwQSUyMCUyMCUyMCUyMGFyZ3MlM0R0cmFpbmluZ19hcmdzJTJDJTBBJTIwJTIwJTIwJTIwdHJhaW5fZGF0YXNldCUzRHRva2VuaXplZF9iaWxsc3VtJTVCJTIydHJhaW4lMjIlNUQlMkMlMEElMjAlMjAlMjAlMjBldmFsX2RhdGFzZXQlM0R0b2tlbml6ZWRfYmlsbHN1bSU1QiUyMnRlc3QlMjIlNUQlMkMlMEElMjAlMjAlMjAlMjB0b2tlbml6ZXIlM0R0b2tlbml6ZXIlMkMlMEElMjAlMjAlMjAlMjBkYXRhX2NvbGxhdG9yJTNEZGF0YV9jb2xsYXRvciUyQyUwQSUyMCUyMCUyMCUyMGNvbXB1dGVfbWV0cmljcyUzRGNvbXB1dGVfbWV0cmljcyUyQyUwQSklMEElMEF0cmFpbmVyLnRyYWluKCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>training_args = Seq2SeqTrainingArguments(
<span class="hljs-meta">... </span>    output_dir=<span class="hljs-string">&quot;my_awesome_billsum_model&quot;</span>,
<span class="hljs-meta">... </span>    evaluation_strategy=<span class="hljs-string">&quot;epoch&quot;</span>,
<span class="hljs-meta">... </span>    learning_rate=<span class="hljs-number">2e-5</span>,
<span class="hljs-meta">... </span>    per_device_train_batch_size=<span class="hljs-number">16</span>,
<span class="hljs-meta">... </span>    per_device_eval_batch_size=<span class="hljs-number">16</span>,
<span class="hljs-meta">... </span>    weight_decay=<span class="hljs-number">0.01</span>,
<span class="hljs-meta">... </span>    save_total_limit=<span class="hljs-number">3</span>,
<span class="hljs-meta">... </span>    num_train_epochs=<span class="hljs-number">4</span>,
<span class="hljs-meta">... </span>    predict_with_generate=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>    fp16=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>    push_to_hub=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>trainer = Seq2SeqTrainer(
<span class="hljs-meta">... </span>    model=model,
<span class="hljs-meta">... </span>    args=training_args,
<span class="hljs-meta">... </span>    train_dataset=tokenized_billsum[<span class="hljs-string">&quot;train&quot;</span>],
<span class="hljs-meta">... </span>    eval_dataset=tokenized_billsum[<span class="hljs-string">&quot;test&quot;</span>],
<span class="hljs-meta">... </span>    tokenizer=tokenizer,
<span class="hljs-meta">... </span>    data_collator=data_collator,
<span class="hljs-meta">... </span>    compute_metrics=compute_metrics,
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>trainer.train()`}}),ee=new q({props:{code:"dHJhaW5lci5wdXNoX3RvX2h1Yigp",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>trainer.push_to_hub()'}}),{c(){v(p.$$.fragment),f=y(),i=r("p"),$=l("\uC774\uC81C \uBAA8\uB378 \uD559\uC2B5\uC744 \uC2DC\uC791\uD560 \uC900\uBE44\uAC00 \uB418\uC5C8\uC2B5\uB2C8\uB2E4! "),j=r("code"),g=l("AutoModelForSeq2SeqLM"),G=l("\uB85C T5\uB97C \uAC00\uC838\uC624\uC138\uC694:"),B=y(),v(w.$$.fragment),V=y(),R=r("p"),F=l("\uC774\uC81C \uC138 \uB2E8\uACC4\uB9CC \uB0A8\uC558\uC2B5\uB2C8\uB2E4:"),z=y(),W=r("ol"),S=r("li"),se=r("code"),O=l("Seq2SeqTrainingArguments"),X=l(`\uC5D0\uC11C \uD559\uC2B5 \uD558\uC774\uD37C\uD30C\uB77C\uBBF8\uD130\uB97C \uC815\uC758\uD558\uC138\uC694.
\uC720\uC77C\uD55C \uD544\uC218 \uB9E4\uAC1C\uBCC0\uC218\uB294 \uBAA8\uB378\uC744 \uC800\uC7A5\uD560 \uC704\uCE58\uB97C \uC9C0\uC815\uD558\uB294 `),L=r("code"),Q=l("output_dir"),D=l(`\uC785\uB2C8\uB2E4.
`),P=r("code"),N=l("push_to_hub=True"),x=l(`\uB97C \uC124\uC815\uD558\uC5EC \uC774 \uBAA8\uB378\uC744 Hub\uC5D0 \uD478\uC2DC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4(\uBAA8\uB378\uC744 \uC5C5\uB85C\uB4DC\uD558\uB824\uBA74 Hugging Face\uC5D0 \uB85C\uADF8\uC778\uD574\uC57C \uD569\uB2C8\uB2E4.)
`),h=r("code"),Z=l("Trainer"),le=l("\uB294 \uAC01 \uC5D0\uD3ED\uC774 \uB05D\uB0A0 \uB54C\uB9C8\uB2E4 ROUGE \uC9C0\uD45C\uB97C \uD3C9\uAC00\uD558\uACE0 \uD559\uC2B5 \uCCB4\uD06C\uD3EC\uC778\uD2B8\uB97C \uC800\uC7A5\uD569\uB2C8\uB2E4."),A=y(),I=r("li"),ae=l("\uBAA8\uB378, \uB370\uC774\uD130\uC14B, \uD1A0\uD06C\uB098\uC774\uC800, \uB370\uC774\uD130 \uCF5C\uB808\uC774\uD130 \uBC0F "),H=r("code"),Be=l("compute_metrics"),he=l(" \uD568\uC218\uC640 \uD568\uAED8 \uD559\uC2B5 \uC778\uC218\uB97C "),de=r("code"),We=l("Seq2SeqTrainer"),je=l("\uC5D0 \uC804\uB2EC\uD558\uC138\uC694."),ue=y(),ie=r("li"),Me=r("code"),Ce=l("train()"),pe=l("\uC744 \uD638\uCD9C\uD558\uC5EC \uBAA8\uB378\uC744 \uD30C\uC778\uD29C\uB2DD\uD558\uC138\uC694."),$e=y(),v(ce.$$.fragment),Te=y(),K=r("p"),_e=l("\uD559\uC2B5\uC774 \uC644\uB8CC\uB418\uBA74, \uB204\uAD6C\uB098 \uBAA8\uB378\uC744 \uC0AC\uC6A9\uD560 \uC218 \uC788\uB3C4\uB85D "),me=r("code"),ne=l("push_to_hub()"),Xe=l(" \uBA54\uC18C\uB4DC\uB85C Hub\uC5D0 \uACF5\uC720\uD569\uB2C8\uB2E4:"),Je=y(),v(ee.$$.fragment)},l(M){U(p.$$.fragment,M),f=b(M),i=o(M,"P",{});var C=n(i);$=a(C,"\uC774\uC81C \uBAA8\uB378 \uD559\uC2B5\uC744 \uC2DC\uC791\uD560 \uC900\uBE44\uAC00 \uB418\uC5C8\uC2B5\uB2C8\uB2E4! "),j=o(C,"CODE",{});var we=n(j);g=a(we,"AutoModelForSeq2SeqLM"),we.forEach(s),G=a(C,"\uB85C T5\uB97C \uAC00\uC838\uC624\uC138\uC694:"),C.forEach(s),B=b(M),U(w.$$.fragment,M),V=b(M),R=o(M,"P",{});var ge=n(R);F=a(ge,"\uC774\uC81C \uC138 \uB2E8\uACC4\uB9CC \uB0A8\uC558\uC2B5\uB2C8\uB2E4:"),ge.forEach(s),z=b(M),W=o(M,"OL",{});var re=n(W);S=o(re,"LI",{});var oe=n(S);se=o(oe,"CODE",{});var ve=n(se);O=a(ve,"Seq2SeqTrainingArguments"),ve.forEach(s),X=a(oe,`\uC5D0\uC11C \uD559\uC2B5 \uD558\uC774\uD37C\uD30C\uB77C\uBBF8\uD130\uB97C \uC815\uC758\uD558\uC138\uC694.
\uC720\uC77C\uD55C \uD544\uC218 \uB9E4\uAC1C\uBCC0\uC218\uB294 \uBAA8\uB378\uC744 \uC800\uC7A5\uD560 \uC704\uCE58\uB97C \uC9C0\uC815\uD558\uB294 `),L=o(oe,"CODE",{});var Ee=n(L);Q=a(Ee,"output_dir"),Ee.forEach(s),D=a(oe,`\uC785\uB2C8\uB2E4.
`),P=o(oe,"CODE",{});var be=n(P);N=a(be,"push_to_hub=True"),be.forEach(s),x=a(oe,`\uB97C \uC124\uC815\uD558\uC5EC \uC774 \uBAA8\uB378\uC744 Hub\uC5D0 \uD478\uC2DC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4(\uBAA8\uB378\uC744 \uC5C5\uB85C\uB4DC\uD558\uB824\uBA74 Hugging Face\uC5D0 \uB85C\uADF8\uC778\uD574\uC57C \uD569\uB2C8\uB2E4.)
`),h=o(oe,"CODE",{});var Ve=n(h);Z=a(Ve,"Trainer"),Ve.forEach(s),le=a(oe,"\uB294 \uAC01 \uC5D0\uD3ED\uC774 \uB05D\uB0A0 \uB54C\uB9C8\uB2E4 ROUGE \uC9C0\uD45C\uB97C \uD3C9\uAC00\uD558\uACE0 \uD559\uC2B5 \uCCB4\uD06C\uD3EC\uC778\uD2B8\uB97C \uC800\uC7A5\uD569\uB2C8\uB2E4."),oe.forEach(s),A=b(re),I=o(re,"LI",{});var fe=n(I);ae=a(fe,"\uBAA8\uB378, \uB370\uC774\uD130\uC14B, \uD1A0\uD06C\uB098\uC774\uC800, \uB370\uC774\uD130 \uCF5C\uB808\uC774\uD130 \uBC0F "),H=o(fe,"CODE",{});var ke=n(H);Be=a(ke,"compute_metrics"),ke.forEach(s),he=a(fe," \uD568\uC218\uC640 \uD568\uAED8 \uD559\uC2B5 \uC778\uC218\uB97C "),de=o(fe,"CODE",{});var Re=n(de);We=a(Re,"Seq2SeqTrainer"),Re.forEach(s),je=a(fe,"\uC5D0 \uC804\uB2EC\uD558\uC138\uC694."),fe.forEach(s),ue=b(re),ie=o(re,"LI",{});var te=n(ie);Me=o(te,"CODE",{});var Ze=n(Me);Ce=a(Ze,"train()"),Ze.forEach(s),pe=a(te,"\uC744 \uD638\uCD9C\uD558\uC5EC \uBAA8\uB378\uC744 \uD30C\uC778\uD29C\uB2DD\uD558\uC138\uC694."),te.forEach(s),re.forEach(s),$e=b(M),U(ce.$$.fragment,M),Te=b(M),K=o(M,"P",{});var Ue=n(K);_e=a(Ue,"\uD559\uC2B5\uC774 \uC644\uB8CC\uB418\uBA74, \uB204\uAD6C\uB098 \uBAA8\uB378\uC744 \uC0AC\uC6A9\uD560 \uC218 \uC788\uB3C4\uB85D "),me=o(Ue,"CODE",{});var Ge=n(me);ne=a(Ge,"push_to_hub()"),Ge.forEach(s),Xe=a(Ue," \uBA54\uC18C\uB4DC\uB85C Hub\uC5D0 \uACF5\uC720\uD569\uB2C8\uB2E4:"),Ue.forEach(s),Je=b(M),U(ee.$$.fragment,M)},m(M,C){E(p,M,C),m(M,f,C),m(M,i,C),t(i,$),t(i,j),t(j,g),t(i,G),m(M,B,C),E(w,M,C),m(M,V,C),m(M,R,C),t(R,F),m(M,z,C),m(M,W,C),t(W,S),t(S,se),t(se,O),t(S,X),t(S,L),t(L,Q),t(S,D),t(S,P),t(P,N),t(S,x),t(S,h),t(h,Z),t(S,le),t(W,A),t(W,I),t(I,ae),t(I,H),t(H,Be),t(I,he),t(I,de),t(de,We),t(I,je),t(W,ue),t(W,ie),t(ie,Me),t(Me,Ce),t(ie,pe),m(M,$e,C),E(ce,M,C),m(M,Te,C),m(M,K,C),t(K,_e),t(K,me),t(me,ne),t(K,Xe),m(M,Je,C),E(ee,M,C),ye=!0},p(M,C){const we={};C&2&&(we.$$scope={dirty:C,ctx:M}),p.$set(we)},i(M){ye||(k(p.$$.fragment,M),k(w.$$.fragment,M),k(ce.$$.fragment,M),k(ee.$$.fragment,M),ye=!0)},o(M){T(p.$$.fragment,M),T(w.$$.fragment,M),T(ce.$$.fragment,M),T(ee.$$.fragment,M),ye=!1},d(M){J(p,M),M&&s(f),M&&s(i),M&&s(B),J(w,M),M&&s(V),M&&s(R),M&&s(z),M&&s(W),M&&s($e),J(ce,M),M&&s(Te),M&&s(K),M&&s(Je),J(ee,M)}}}function Wr(Y){let p,f;return p=new ss({props:{$$slots:{default:[Br]},$$scope:{ctx:Y}}}),{c(){v(p.$$.fragment)},l(i){U(p.$$.fragment,i)},m(i,$){E(p,i,$),f=!0},p(i,$){const j={};$&2&&(j.$$scope={dirty:$,ctx:i}),p.$set(j)},i(i){f||(k(p.$$.fragment,i),f=!0)},o(i){T(p.$$.fragment,i),f=!1},d(i){J(p,i)}}}function Xr(Y){let p,f,i,$,j;return{c(){p=r("p"),f=l("Keras\uB85C \uBAA8\uB378 \uD30C\uC778\uD29C\uB2DD\uC744 \uD558\uB294 \uAC83\uC774 \uC775\uC219\uD558\uC9C0 \uC54A\uB2E4\uBA74, "),i=r("a"),$=l("\uC5EC\uAE30"),j=l("\uC5D0\uC11C \uAE30\uBCF8\uC801\uC778 \uD29C\uD1A0\uB9AC\uC5BC\uC744 \uD655\uC778\uD558\uC138\uC694!"),this.h()},l(g){p=o(g,"P",{});var G=n(p);f=a(G,"Keras\uB85C \uBAA8\uB378 \uD30C\uC778\uD29C\uB2DD\uC744 \uD558\uB294 \uAC83\uC774 \uC775\uC219\uD558\uC9C0 \uC54A\uB2E4\uBA74, "),i=o(G,"A",{href:!0});var B=n(i);$=a(B,"\uC5EC\uAE30"),B.forEach(s),j=a(G,"\uC5D0\uC11C \uAE30\uBCF8\uC801\uC778 \uD29C\uD1A0\uB9AC\uC5BC\uC744 \uD655\uC778\uD558\uC138\uC694!"),G.forEach(s),this.h()},h(){_(i,"href","../training#train-a-tensorflow-model-with-keras")},m(g,G){m(g,p,G),t(p,f),t(p,i),t(i,$),t(p,j)},d(g){g&&s(p)}}}function Sr(Y){let p,f,i,$,j,g,G,B,w,V,R,F,z,W,S,se,O,X,L,Q,D,P,N,x,h,Z,le,A,I,ae,H,Be,he,de,We,je,ue,ie,Me,Ce,pe,$e,ce,Te,K,_e,me,ne,Xe,Je,ee,ye,M,C,we,ge,re,oe,ve,Ee,be,Ve,fe,ke,Re,te,Ze,Ue,Ge,Fe;return p=new yl({props:{$$slots:{default:[Xr]},$$scope:{ctx:Y}}}),i=new q({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMGNyZWF0ZV9vcHRpbWl6ZXIlMkMlMjBBZGFtV2VpZ2h0RGVjYXklMEElMEFvcHRpbWl6ZXIlMjAlM0QlMjBBZGFtV2VpZ2h0RGVjYXkobGVhcm5pbmdfcmF0ZSUzRDJlLTUlMkMlMjB3ZWlnaHRfZGVjYXlfcmF0ZSUzRDAuMDEp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> create_optimizer, AdamWeightDecay

<span class="hljs-meta">&gt;&gt;&gt; </span>optimizer = AdamWeightDecay(learning_rate=<span class="hljs-number">2e-5</span>, weight_decay_rate=<span class="hljs-number">0.01</span>)`}}),R=new q({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFRGQXV0b01vZGVsRm9yU2VxMlNlcUxNJTBBJTBBbW9kZWwlMjAlM0QlMjBURkF1dG9Nb2RlbEZvclNlcTJTZXFMTS5mcm9tX3ByZXRyYWluZWQoY2hlY2twb2ludCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> TFAutoModelForSeq2SeqLM

<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFAutoModelForSeq2SeqLM.from_pretrained(checkpoint)`}}),D=new q({props:{code:"dGZfdHJhaW5fc2V0JTIwJTNEJTIwbW9kZWwucHJlcGFyZV90Zl9kYXRhc2V0KCUwQSUyMCUyMCUyMCUyMHRva2VuaXplZF9iaWxsc3VtJTVCJTIydHJhaW4lMjIlNUQlMkMlMEElMjAlMjAlMjAlMjBzaHVmZmxlJTNEVHJ1ZSUyQyUwQSUyMCUyMCUyMCUyMGJhdGNoX3NpemUlM0QxNiUyQyUwQSUyMCUyMCUyMCUyMGNvbGxhdGVfZm4lM0RkYXRhX2NvbGxhdG9yJTJDJTBBKSUwQSUwQXRmX3Rlc3Rfc2V0JTIwJTNEJTIwbW9kZWwucHJlcGFyZV90Zl9kYXRhc2V0KCUwQSUyMCUyMCUyMCUyMHRva2VuaXplZF9iaWxsc3VtJTVCJTIydGVzdCUyMiU1RCUyQyUwQSUyMCUyMCUyMCUyMHNodWZmbGUlM0RGYWxzZSUyQyUwQSUyMCUyMCUyMCUyMGJhdGNoX3NpemUlM0QxNiUyQyUwQSUyMCUyMCUyMCUyMGNvbGxhdGVfZm4lM0RkYXRhX2NvbGxhdG9yJTJDJTBBKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>tf_train_set = model.prepare_tf_dataset(
<span class="hljs-meta">... </span>    tokenized_billsum[<span class="hljs-string">&quot;train&quot;</span>],
<span class="hljs-meta">... </span>    shuffle=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>    batch_size=<span class="hljs-number">16</span>,
<span class="hljs-meta">... </span>    collate_fn=data_collator,
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>tf_test_set = model.prepare_tf_dataset(
<span class="hljs-meta">... </span>    tokenized_billsum[<span class="hljs-string">&quot;test&quot;</span>],
<span class="hljs-meta">... </span>    shuffle=<span class="hljs-literal">False</span>,
<span class="hljs-meta">... </span>    batch_size=<span class="hljs-number">16</span>,
<span class="hljs-meta">... </span>    collate_fn=data_collator,
<span class="hljs-meta">... </span>)`}}),I=new q({props:{code:"aW1wb3J0JTIwdGVuc29yZmxvdyUyMGFzJTIwdGYlMEElMEFtb2RlbC5jb21waWxlKG9wdGltaXplciUzRG9wdGltaXplcik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> tensorflow <span class="hljs-keyword">as</span> tf

<span class="hljs-meta">&gt;&gt;&gt; </span>model.<span class="hljs-built_in">compile</span>(optimizer=optimizer)`}}),K=new q({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycy5rZXJhc19jYWxsYmFja3MlMjBpbXBvcnQlMjBLZXJhc01ldHJpY0NhbGxiYWNrJTBBJTBBbWV0cmljX2NhbGxiYWNrJTIwJTNEJTIwS2VyYXNNZXRyaWNDYWxsYmFjayhtZXRyaWNfZm4lM0Rjb21wdXRlX21ldHJpY3MlMkMlMjBldmFsX2RhdGFzZXQlM0R0Zl92YWxpZGF0aW9uX3NldCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers.keras_callbacks <span class="hljs-keyword">import</span> KerasMetricCallback

<span class="hljs-meta">&gt;&gt;&gt; </span>metric_callback = KerasMetricCallback(metric_fn=compute_metrics, eval_dataset=tf_validation_set)`}}),ye=new q({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycy5rZXJhc19jYWxsYmFja3MlMjBpbXBvcnQlMjBQdXNoVG9IdWJDYWxsYmFjayUwQSUwQXB1c2hfdG9faHViX2NhbGxiYWNrJTIwJTNEJTIwUHVzaFRvSHViQ2FsbGJhY2soJTBBJTIwJTIwJTIwJTIwb3V0cHV0X2RpciUzRCUyMm15X2F3ZXNvbWVfYmlsbHN1bV9tb2RlbCUyMiUyQyUwQSUyMCUyMCUyMCUyMHRva2VuaXplciUzRHRva2VuaXplciUyQyUwQSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers.keras_callbacks <span class="hljs-keyword">import</span> PushToHubCallback

<span class="hljs-meta">&gt;&gt;&gt; </span>push_to_hub_callback = PushToHubCallback(
<span class="hljs-meta">... </span>    output_dir=<span class="hljs-string">&quot;my_awesome_billsum_model&quot;</span>,
<span class="hljs-meta">... </span>    tokenizer=tokenizer,
<span class="hljs-meta">... </span>)`}}),re=new q({props:{code:"Y2FsbGJhY2tzJTIwJTNEJTIwJTVCbWV0cmljX2NhbGxiYWNrJTJDJTIwcHVzaF90b19odWJfY2FsbGJhY2slNUQ=",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>callbacks = [metric_callback, push_to_hub_callback]'}}),te=new q({props:{code:"bW9kZWwuZml0KHglM0R0Zl90cmFpbl9zZXQlMkMlMjB2YWxpZGF0aW9uX2RhdGElM0R0Zl90ZXN0X3NldCUyQyUyMGVwb2NocyUzRDMlMkMlMjBjYWxsYmFja3MlM0RjYWxsYmFja3Mp",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>model.fit(x=tf_train_set, validation_data=tf_test_set, epochs=<span class="hljs-number">3</span>, callbacks=callbacks)'}}),{c(){v(p.$$.fragment),f=l(`
TensorFlow\uC5D0\uC11C \uBAA8\uB378\uC744 \uD30C\uC778\uD29C\uB2DD\uD558\uB824\uBA74, \uBA3C\uC800 \uC635\uD2F0\uB9C8\uC774\uC800, \uD559\uC2B5\uB960 \uC2A4\uCF00\uC904 \uADF8\uB9AC\uACE0 \uBA87 \uAC00\uC9C0 \uD559\uC2B5 \uD558\uC774\uD37C\uD30C\uB77C\uBBF8\uD130\uB97C \uC124\uC815\uD558\uC138\uC694:

	`),v(i.$$.fragment),$=y(),j=r("p"),g=l("\uADF8\uB7F0 \uB2E4\uC74C "),G=r("code"),B=l("TFAutoModelForSeq2SeqLM"),w=l("\uC744 \uC0AC\uC6A9\uD558\uC5EC T5\uB97C \uAC00\uC838\uC624\uC138\uC694:"),V=y(),v(R.$$.fragment),F=y(),z=r("p"),W=r("code"),S=l("prepare_tf_dataset()"),se=l("\uC744 \uC0AC\uC6A9\uD558\uC5EC \uB370\uC774\uD130\uC14B\uC744 "),O=r("code"),X=l("tf.data.Dataset"),L=l(" \uD615\uC2DD\uC73C\uB85C \uBCC0\uD658\uD558\uC138\uC694:"),Q=y(),v(D.$$.fragment),P=y(),N=r("p"),x=r("a"),h=r("code"),Z=l("compile"),le=l("\uC744 \uC0AC\uC6A9\uD558\uC5EC \uBAA8\uB378\uC744 \uD559\uC2B5\uD560 \uC218 \uC788\uB3C4\uB85D \uAD6C\uC131\uD558\uC138\uC694:"),A=y(),v(I.$$.fragment),ae=y(),H=r("p"),Be=l(`\uD559\uC2B5\uC744 \uC2DC\uC791\uD558\uAE30 \uC804\uC5D0 \uC124\uC815\uD574\uC57C \uD560 \uB9C8\uC9C0\uB9C9 \uB450 \uAC00\uC9C0\uB294 \uC608\uCE21\uC5D0\uC11C ROUGE \uC810\uC218\uB97C \uACC4\uC0B0\uD558\uACE0 \uBAA8\uB378\uC744 Hub\uC5D0 \uD478\uC2DC\uD558\uB294 \uBC29\uBC95\uC744 \uC81C\uACF5\uD558\uB294 \uAC83\uC785\uB2C8\uB2E4.
\uB450 \uC791\uC5C5 \uBAA8\uB450 `),he=r("a"),de=l("Keras callbacks"),We=l("\uC73C\uB85C \uC218\uD589\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),je=y(),ue=r("p"),ie=r("code"),Me=l("KerasMetricCallback"),Ce=l("\uC5D0 "),pe=r("code"),$e=l("compute_metrics"),ce=l(" \uD568\uC218\uB97C \uC804\uB2EC\uD558\uC138\uC694:"),Te=y(),v(K.$$.fragment),_e=y(),me=r("p"),ne=r("code"),Xe=l("PushToHubCallback"),Je=l("\uC5D0\uC11C \uBAA8\uB378\uACFC \uD1A0\uD06C\uB098\uC774\uC800\uB97C \uD478\uC2DC\uD560 \uC704\uCE58\uB97C \uC9C0\uC815\uD558\uC138\uC694:"),ee=y(),v(ye.$$.fragment),M=y(),C=r("p"),we=l("\uADF8\uB7F0 \uB2E4\uC74C \uCF5C\uBC31\uC744 \uBC88\uB4E4\uB85C \uBB36\uC5B4\uC90D\uB2C8\uB2E4:"),ge=y(),v(re.$$.fragment),oe=y(),ve=r("p"),Ee=l(`\uB4DC\uB514\uC5B4 \uBAA8\uB378 \uD559\uC2B5\uC744 \uC2DC\uC791\uD560 \uC900\uBE44\uAC00 \uB418\uC5C8\uC2B5\uB2C8\uB2E4!
\uD559\uC2B5 \uBC0F \uAC80\uC99D \uB370\uC774\uD130\uC14B, \uC5D0\uD3ED \uC218 \uBC0F \uCF5C\uBC31\uACFC \uD568\uAED8 `),be=r("a"),Ve=r("code"),fe=l("fit"),ke=l("\uC744 \uD638\uCD9C\uD558\uC5EC \uBAA8\uB378\uC744 \uD30C\uC778\uD29C\uB2DD\uD558\uC138\uC694."),Re=y(),v(te.$$.fragment),Ze=y(),Ue=r("p"),Ge=l("\uD559\uC2B5\uC774 \uC644\uB8CC\uB418\uBA74 \uBAA8\uB378\uC774 \uC790\uB3D9\uC73C\uB85C Hub\uC5D0 \uC5C5\uB85C\uB4DC\uB418\uC5B4 \uB204\uAD6C\uB098 \uC0AC\uC6A9\uD560 \uC218 \uC788\uAC8C \uB429\uB2C8\uB2E4!"),this.h()},l(c){U(p.$$.fragment,c),f=a(c,`
TensorFlow\uC5D0\uC11C \uBAA8\uB378\uC744 \uD30C\uC778\uD29C\uB2DD\uD558\uB824\uBA74, \uBA3C\uC800 \uC635\uD2F0\uB9C8\uC774\uC800, \uD559\uC2B5\uB960 \uC2A4\uCF00\uC904 \uADF8\uB9AC\uACE0 \uBA87 \uAC00\uC9C0 \uD559\uC2B5 \uD558\uC774\uD37C\uD30C\uB77C\uBBF8\uD130\uB97C \uC124\uC815\uD558\uC138\uC694:

	`),U(i.$$.fragment,c),$=b(c),j=o(c,"P",{});var u=n(j);g=a(u,"\uADF8\uB7F0 \uB2E4\uC74C "),G=o(u,"CODE",{});var Se=n(G);B=a(Se,"TFAutoModelForSeq2SeqLM"),Se.forEach(s),w=a(u,"\uC744 \uC0AC\uC6A9\uD558\uC5EC T5\uB97C \uAC00\uC838\uC624\uC138\uC694:"),u.forEach(s),V=b(c),U(R.$$.fragment,c),F=b(c),z=o(c,"P",{});var He=n(z);W=o(He,"CODE",{});var et=n(W);S=a(et,"prepare_tf_dataset()"),et.forEach(s),se=a(He,"\uC744 \uC0AC\uC6A9\uD558\uC5EC \uB370\uC774\uD130\uC14B\uC744 "),O=o(He,"CODE",{});var ze=n(O);X=a(ze,"tf.data.Dataset"),ze.forEach(s),L=a(He," \uD615\uC2DD\uC73C\uB85C \uBCC0\uD658\uD558\uC138\uC694:"),He.forEach(s),Q=b(c),U(D.$$.fragment,c),P=b(c),N=o(c,"P",{});var Le=n(N);x=o(Le,"A",{href:!0,rel:!0});var Ye=n(x);h=o(Ye,"CODE",{});var ot=n(h);Z=a(ot,"compile"),ot.forEach(s),Ye.forEach(s),le=a(Le,"\uC744 \uC0AC\uC6A9\uD558\uC5EC \uBAA8\uB378\uC744 \uD559\uC2B5\uD560 \uC218 \uC788\uB3C4\uB85D \uAD6C\uC131\uD558\uC138\uC694:"),Le.forEach(s),A=b(c),U(I.$$.fragment,c),ae=b(c),H=o(c,"P",{});var qe=n(H);Be=a(qe,`\uD559\uC2B5\uC744 \uC2DC\uC791\uD558\uAE30 \uC804\uC5D0 \uC124\uC815\uD574\uC57C \uD560 \uB9C8\uC9C0\uB9C9 \uB450 \uAC00\uC9C0\uB294 \uC608\uCE21\uC5D0\uC11C ROUGE \uC810\uC218\uB97C \uACC4\uC0B0\uD558\uACE0 \uBAA8\uB378\uC744 Hub\uC5D0 \uD478\uC2DC\uD558\uB294 \uBC29\uBC95\uC744 \uC81C\uACF5\uD558\uB294 \uAC83\uC785\uB2C8\uB2E4.
\uB450 \uC791\uC5C5 \uBAA8\uB450 `),he=o(qe,"A",{href:!0});var Ne=n(he);de=a(Ne,"Keras callbacks"),Ne.forEach(s),We=a(qe,"\uC73C\uB85C \uC218\uD589\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."),qe.forEach(s),je=b(c),ue=o(c,"P",{});var Ie=n(ue);ie=o(Ie,"CODE",{});var Oe=n(ie);Me=a(Oe,"KerasMetricCallback"),Oe.forEach(s),Ce=a(Ie,"\uC5D0 "),pe=o(Ie,"CODE",{});var nt=n(pe);$e=a(nt,"compute_metrics"),nt.forEach(s),ce=a(Ie," \uD568\uC218\uB97C \uC804\uB2EC\uD558\uC138\uC694:"),Ie.forEach(s),Te=b(c),U(K.$$.fragment,c),_e=b(c),me=o(c,"P",{});var tt=n(me);ne=o(tt,"CODE",{});var it=n(ne);Xe=a(it,"PushToHubCallback"),it.forEach(s),Je=a(tt,"\uC5D0\uC11C \uBAA8\uB378\uACFC \uD1A0\uD06C\uB098\uC774\uC800\uB97C \uD478\uC2DC\uD560 \uC704\uCE58\uB97C \uC9C0\uC815\uD558\uC138\uC694:"),tt.forEach(s),ee=b(c),U(ye.$$.fragment,c),M=b(c),C=o(c,"P",{});var Ae=n(C);we=a(Ae,"\uADF8\uB7F0 \uB2E4\uC74C \uCF5C\uBC31\uC744 \uBC88\uB4E4\uB85C \uBB36\uC5B4\uC90D\uB2C8\uB2E4:"),Ae.forEach(s),ge=b(c),U(re.$$.fragment,c),oe=b(c),ve=o(c,"P",{});var xe=n(ve);Ee=a(xe,`\uB4DC\uB514\uC5B4 \uBAA8\uB378 \uD559\uC2B5\uC744 \uC2DC\uC791\uD560 \uC900\uBE44\uAC00 \uB418\uC5C8\uC2B5\uB2C8\uB2E4!
\uD559\uC2B5 \uBC0F \uAC80\uC99D \uB370\uC774\uD130\uC14B, \uC5D0\uD3ED \uC218 \uBC0F \uCF5C\uBC31\uACFC \uD568\uAED8 `),be=o(xe,"A",{href:!0,rel:!0});var pt=n(be);Ve=o(pt,"CODE",{});var ct=n(Ve);fe=a(ct,"fit"),ct.forEach(s),pt.forEach(s),ke=a(xe,"\uC744 \uD638\uCD9C\uD558\uC5EC \uBAA8\uB378\uC744 \uD30C\uC778\uD29C\uB2DD\uD558\uC138\uC694."),xe.forEach(s),Re=b(c),U(te.$$.fragment,c),Ze=b(c),Ue=o(c,"P",{});var Ke=n(Ue);Ge=a(Ke,"\uD559\uC2B5\uC774 \uC644\uB8CC\uB418\uBA74 \uBAA8\uB378\uC774 \uC790\uB3D9\uC73C\uB85C Hub\uC5D0 \uC5C5\uB85C\uB4DC\uB418\uC5B4 \uB204\uAD6C\uB098 \uC0AC\uC6A9\uD560 \uC218 \uC788\uAC8C \uB429\uB2C8\uB2E4!"),Ke.forEach(s),this.h()},h(){_(x,"href","https://keras.io/api/models/model_training_apis/#compile-method"),_(x,"rel","nofollow"),_(he,"href","../main_classes/keras_callbacks"),_(be,"href","https://keras.io/api/models/model_training_apis/#fit-method"),_(be,"rel","nofollow")},m(c,u){E(p,c,u),m(c,f,u),E(i,c,u),m(c,$,u),m(c,j,u),t(j,g),t(j,G),t(G,B),t(j,w),m(c,V,u),E(R,c,u),m(c,F,u),m(c,z,u),t(z,W),t(W,S),t(z,se),t(z,O),t(O,X),t(z,L),m(c,Q,u),E(D,c,u),m(c,P,u),m(c,N,u),t(N,x),t(x,h),t(h,Z),t(N,le),m(c,A,u),E(I,c,u),m(c,ae,u),m(c,H,u),t(H,Be),t(H,he),t(he,de),t(H,We),m(c,je,u),m(c,ue,u),t(ue,ie),t(ie,Me),t(ue,Ce),t(ue,pe),t(pe,$e),t(ue,ce),m(c,Te,u),E(K,c,u),m(c,_e,u),m(c,me,u),t(me,ne),t(ne,Xe),t(me,Je),m(c,ee,u),E(ye,c,u),m(c,M,u),m(c,C,u),t(C,we),m(c,ge,u),E(re,c,u),m(c,oe,u),m(c,ve,u),t(ve,Ee),t(ve,be),t(be,Ve),t(Ve,fe),t(ve,ke),m(c,Re,u),E(te,c,u),m(c,Ze,u),m(c,Ue,u),t(Ue,Ge),Fe=!0},p(c,u){const Se={};u&2&&(Se.$$scope={dirty:u,ctx:c}),p.$set(Se)},i(c){Fe||(k(p.$$.fragment,c),k(i.$$.fragment,c),k(R.$$.fragment,c),k(D.$$.fragment,c),k(I.$$.fragment,c),k(K.$$.fragment,c),k(ye.$$.fragment,c),k(re.$$.fragment,c),k(te.$$.fragment,c),Fe=!0)},o(c){T(p.$$.fragment,c),T(i.$$.fragment,c),T(R.$$.fragment,c),T(D.$$.fragment,c),T(I.$$.fragment,c),T(K.$$.fragment,c),T(ye.$$.fragment,c),T(re.$$.fragment,c),T(te.$$.fragment,c),Fe=!1},d(c){J(p,c),c&&s(f),J(i,c),c&&s($),c&&s(j),c&&s(V),J(R,c),c&&s(F),c&&s(z),c&&s(Q),J(D,c),c&&s(P),c&&s(N),c&&s(A),J(I,c),c&&s(ae),c&&s(H),c&&s(je),c&&s(ue),c&&s(Te),J(K,c),c&&s(_e),c&&s(me),c&&s(ee),J(ye,c),c&&s(M),c&&s(C),c&&s(ge),J(re,c),c&&s(oe),c&&s(ve),c&&s(Re),J(te,c),c&&s(Ze),c&&s(Ue)}}}function Ir(Y){let p,f;return p=new ss({props:{$$slots:{default:[Sr]},$$scope:{ctx:Y}}}),{c(){v(p.$$.fragment)},l(i){U(p.$$.fragment,i)},m(i,$){E(p,i,$),f=!0},p(i,$){const j={};$&2&&(j.$$scope={dirty:$,ctx:i}),p.$set(j)},i(i){f||(k(p.$$.fragment,i),f=!0)},o(i){T(p.$$.fragment,i),f=!1},d(i){J(p,i)}}}function Nr(Y){let p,f,i,$,j,g,G,B;return{c(){p=r("p"),f=l("\uC694\uC57D\uC744 \uC704\uD574 \uBAA8\uB378\uC744 \uD30C\uC778\uD29C\uB2DD\uD558\uB294 \uBC29\uBC95\uC5D0 \uB300\uD55C \uB354 \uC790\uC138\uD55C \uC608\uC81C\uB97C \uBCF4\uB824\uBA74 "),i=r("a"),$=l("PyTorch notebook"),j=l(`
\uB610\uB294 `),g=r("a"),G=l("TensorFlow notebook"),B=l("\uC744 \uCC38\uACE0\uD558\uC138\uC694."),this.h()},l(w){p=o(w,"P",{});var V=n(p);f=a(V,"\uC694\uC57D\uC744 \uC704\uD574 \uBAA8\uB378\uC744 \uD30C\uC778\uD29C\uB2DD\uD558\uB294 \uBC29\uBC95\uC5D0 \uB300\uD55C \uB354 \uC790\uC138\uD55C \uC608\uC81C\uB97C \uBCF4\uB824\uBA74 "),i=o(V,"A",{href:!0,rel:!0});var R=n(i);$=a(R,"PyTorch notebook"),R.forEach(s),j=a(V,`
\uB610\uB294 `),g=o(V,"A",{href:!0,rel:!0});var F=n(g);G=a(F,"TensorFlow notebook"),F.forEach(s),B=a(V,"\uC744 \uCC38\uACE0\uD558\uC138\uC694."),V.forEach(s),this.h()},h(){_(i,"href","https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/summarization.ipynb"),_(i,"rel","nofollow"),_(g,"href","https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/summarization-tf.ipynb"),_(g,"rel","nofollow")},m(w,V){m(w,p,V),t(p,f),t(p,i),t(i,$),t(p,j),t(p,g),t(g,G),t(p,B)},d(w){w&&s(p)}}}function Ar(Y){let p,f,i,$,j,g,G,B,w,V,R,F,z,W,S,se,O,X,L,Q,D,P,N,x;return G=new q({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMEElMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZCglMjJzdGV2aGxpdSUyRm15X2F3ZXNvbWVfYmlsbHN1bV9tb2RlbCUyMiklMEFpbnB1dHMlMjAlM0QlMjB0b2tlbml6ZXIodGV4dCUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpLmlucHV0X2lkcw==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;stevhliu/my_awesome_billsum_model&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(text, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>).input_ids`}}),X=new q({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbEZvclNlcTJTZXFMTSUwQSUwQW1vZGVsJTIwJTNEJTIwQXV0b01vZGVsRm9yU2VxMlNlcUxNLmZyb21fcHJldHJhaW5lZCglMjJzdGV2aGxpdSUyRm15X2F3ZXNvbWVfYmlsbHN1bV9tb2RlbCUyMiklMEFvdXRwdXRzJTIwJTNEJTIwbW9kZWwuZ2VuZXJhdGUoaW5wdXRzJTJDJTIwbWF4X25ld190b2tlbnMlM0QxMDAlMkMlMjBkb19zYW1wbGUlM0RGYWxzZSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoModelForSeq2SeqLM

<span class="hljs-meta">&gt;&gt;&gt; </span>model = AutoModelForSeq2SeqLM.from_pretrained(<span class="hljs-string">&quot;stevhliu/my_awesome_billsum_model&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model.generate(inputs, max_new_tokens=<span class="hljs-number">100</span>, do_sample=<span class="hljs-literal">False</span>)`}}),N=new q({props:{code:"dG9rZW5pemVyLmRlY29kZShvdXRwdXRzJTVCMCU1RCUyQyUyMHNraXBfc3BlY2lhbF90b2tlbnMlM0RUcnVlKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer.decode(outputs[<span class="hljs-number">0</span>], skip_special_tokens=<span class="hljs-literal">True</span>)
<span class="hljs-string">&#x27;the inflation reduction act lowers prescription drug costs, health care costs, and energy costs. it&#x27;</span>s the most aggressive action on tackling the climate crisis <span class="hljs-keyword">in</span> american history. it will ask the ultra-wealthy <span class="hljs-keyword">and</span> corporations to pay their fair share.<span class="hljs-string">&#x27;</span>`}}),{c(){p=r("p"),f=l("\uD14D\uC2A4\uD2B8\uB97C \uD1A0\uD06C\uB098\uC774\uC988\uD558\uACE0 "),i=r("code"),$=l("input_ids"),j=l("\uB97C PyTorch \uD150\uC11C\uB85C \uBC18\uD658\uD569\uB2C8\uB2E4:"),g=y(),v(G.$$.fragment),B=y(),w=r("p"),V=l("\uC694\uC57D\uBB38\uC744 \uC0DD\uC131\uD558\uB824\uBA74 "),R=r("code"),F=l("generate()"),z=l(` \uBA54\uC18C\uB4DC\uB97C \uC0AC\uC6A9\uD558\uC138\uC694.
\uD14D\uC2A4\uD2B8 \uC0DD\uC131\uC5D0 \uB300\uD55C \uB2E4\uC591\uD55C \uC804\uB7B5\uACFC \uC0DD\uC131\uC744 \uC81C\uC5B4\uD558\uAE30 \uC704\uD55C \uB9E4\uAC1C\uBCC0\uC218\uC5D0 \uB300\uD55C \uC790\uC138\uD55C \uB0B4\uC6A9\uC740 `),W=r("a"),S=l("\uD14D\uC2A4\uD2B8 \uC0DD\uC131"),se=l(" API\uB97C \uCC38\uC870\uD558\uC138\uC694."),O=y(),v(X.$$.fragment),L=y(),Q=r("p"),D=l("\uC0DD\uC131\uB41C \uD1A0\uD070 ID\uB97C \uD14D\uC2A4\uD2B8\uB85C \uB514\uCF54\uB529\uD569\uB2C8\uB2E4:"),P=y(),v(N.$$.fragment),this.h()},l(h){p=o(h,"P",{});var Z=n(p);f=a(Z,"\uD14D\uC2A4\uD2B8\uB97C \uD1A0\uD06C\uB098\uC774\uC988\uD558\uACE0 "),i=o(Z,"CODE",{});var le=n(i);$=a(le,"input_ids"),le.forEach(s),j=a(Z,"\uB97C PyTorch \uD150\uC11C\uB85C \uBC18\uD658\uD569\uB2C8\uB2E4:"),Z.forEach(s),g=b(h),U(G.$$.fragment,h),B=b(h),w=o(h,"P",{});var A=n(w);V=a(A,"\uC694\uC57D\uBB38\uC744 \uC0DD\uC131\uD558\uB824\uBA74 "),R=o(A,"CODE",{});var I=n(R);F=a(I,"generate()"),I.forEach(s),z=a(A,` \uBA54\uC18C\uB4DC\uB97C \uC0AC\uC6A9\uD558\uC138\uC694.
\uD14D\uC2A4\uD2B8 \uC0DD\uC131\uC5D0 \uB300\uD55C \uB2E4\uC591\uD55C \uC804\uB7B5\uACFC \uC0DD\uC131\uC744 \uC81C\uC5B4\uD558\uAE30 \uC704\uD55C \uB9E4\uAC1C\uBCC0\uC218\uC5D0 \uB300\uD55C \uC790\uC138\uD55C \uB0B4\uC6A9\uC740 `),W=o(A,"A",{href:!0});var ae=n(W);S=a(ae,"\uD14D\uC2A4\uD2B8 \uC0DD\uC131"),ae.forEach(s),se=a(A," API\uB97C \uCC38\uC870\uD558\uC138\uC694."),A.forEach(s),O=b(h),U(X.$$.fragment,h),L=b(h),Q=o(h,"P",{});var H=n(Q);D=a(H,"\uC0DD\uC131\uB41C \uD1A0\uD070 ID\uB97C \uD14D\uC2A4\uD2B8\uB85C \uB514\uCF54\uB529\uD569\uB2C8\uB2E4:"),H.forEach(s),P=b(h),U(N.$$.fragment,h),this.h()},h(){_(W,"href","../main_classes/text_generation")},m(h,Z){m(h,p,Z),t(p,f),t(p,i),t(i,$),t(p,j),m(h,g,Z),E(G,h,Z),m(h,B,Z),m(h,w,Z),t(w,V),t(w,R),t(R,F),t(w,z),t(w,W),t(W,S),t(w,se),m(h,O,Z),E(X,h,Z),m(h,L,Z),m(h,Q,Z),t(Q,D),m(h,P,Z),E(N,h,Z),x=!0},p:bl,i(h){x||(k(G.$$.fragment,h),k(X.$$.fragment,h),k(N.$$.fragment,h),x=!0)},o(h){T(G.$$.fragment,h),T(X.$$.fragment,h),T(N.$$.fragment,h),x=!1},d(h){h&&s(p),h&&s(g),J(G,h),h&&s(B),h&&s(w),h&&s(O),J(X,h),h&&s(L),h&&s(Q),h&&s(P),J(N,h)}}}function Fr(Y){let p,f;return p=new ss({props:{$$slots:{default:[Ar]},$$scope:{ctx:Y}}}),{c(){v(p.$$.fragment)},l(i){U(p.$$.fragment,i)},m(i,$){E(p,i,$),f=!0},p(i,$){const j={};$&2&&(j.$$scope={dirty:$,ctx:i}),p.$set(j)},i(i){f||(k(p.$$.fragment,i),f=!0)},o(i){T(p.$$.fragment,i),f=!1},d(i){J(p,i)}}}function zr(Y){let p,f,i,$,j,g,G,B,w,V,R,F,z,W,S,se,O,X,L,Q,D,P,N,x;return G=new q({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMEElMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZCglMjJzdGV2aGxpdSUyRm15X2F3ZXNvbWVfYmlsbHN1bV9tb2RlbCUyMiklMEFpbnB1dHMlMjAlM0QlMjB0b2tlbml6ZXIodGV4dCUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIydGYlMjIpLmlucHV0X2lkcw==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;stevhliu/my_awesome_billsum_model&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(text, return_tensors=<span class="hljs-string">&quot;tf&quot;</span>).input_ids`}}),X=new q({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFRGQXV0b01vZGVsRm9yU2VxMlNlcUxNJTBBJTBBbW9kZWwlMjAlM0QlMjBURkF1dG9Nb2RlbEZvclNlcTJTZXFMTS5mcm9tX3ByZXRyYWluZWQoJTIyc3RldmhsaXUlMkZteV9hd2Vzb21lX2JpbGxzdW1fbW9kZWwlMjIpJTBBb3V0cHV0cyUyMCUzRCUyMG1vZGVsLmdlbmVyYXRlKGlucHV0cyUyQyUyMG1heF9uZXdfdG9rZW5zJTNEMTAwJTJDJTIwZG9fc2FtcGxlJTNERmFsc2Up",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> TFAutoModelForSeq2SeqLM

<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFAutoModelForSeq2SeqLM.from_pretrained(<span class="hljs-string">&quot;stevhliu/my_awesome_billsum_model&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model.generate(inputs, max_new_tokens=<span class="hljs-number">100</span>, do_sample=<span class="hljs-literal">False</span>)`}}),N=new q({props:{code:"dG9rZW5pemVyLmRlY29kZShvdXRwdXRzJTVCMCU1RCUyQyUyMHNraXBfc3BlY2lhbF90b2tlbnMlM0RUcnVlKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer.decode(outputs[<span class="hljs-number">0</span>], skip_special_tokens=<span class="hljs-literal">True</span>)
<span class="hljs-string">&#x27;the inflation reduction act lowers prescription drug costs, health care costs, and energy costs. it&#x27;</span>s the most aggressive action on tackling the climate crisis <span class="hljs-keyword">in</span> american history. it will ask the ultra-wealthy <span class="hljs-keyword">and</span> corporations to pay their fair share.<span class="hljs-string">&#x27;</span>`}}),{c(){p=r("p"),f=l("\uD14D\uC2A4\uD2B8\uB97C \uD1A0\uD06C\uB098\uC774\uC988\uD558\uACE0 "),i=r("code"),$=l("input_ids"),j=l("\uB97C TensorFlow \uD150\uC11C\uB85C \uBC18\uD658\uD569\uB2C8\uB2E4:"),g=y(),v(G.$$.fragment),B=y(),w=r("p"),V=l("\uC694\uC57D\uBB38\uC744 \uC0DD\uC131\uD558\uB824\uBA74 "),R=r("code"),F=l("generate()"),z=l(` \uBA54\uC18C\uB4DC\uB97C \uC0AC\uC6A9\uD558\uC138\uC694.
\uD14D\uC2A4\uD2B8 \uC0DD\uC131\uC5D0 \uB300\uD55C \uB2E4\uC591\uD55C \uC804\uB7B5\uACFC \uC0DD\uC131\uC744 \uC81C\uC5B4\uD558\uAE30 \uC704\uD55C \uB9E4\uAC1C\uBCC0\uC218\uC5D0 \uB300\uD55C \uC790\uC138\uD55C \uB0B4\uC6A9\uC740 `),W=r("a"),S=l("\uD14D\uC2A4\uD2B8 \uC0DD\uC131"),se=l(" API\uB97C \uCC38\uC870\uD558\uC138\uC694."),O=y(),v(X.$$.fragment),L=y(),Q=r("p"),D=l("\uC0DD\uC131\uB41C \uD1A0\uD070 ID\uB97C \uD14D\uC2A4\uD2B8\uB85C \uB514\uCF54\uB529\uD569\uB2C8\uB2E4:"),P=y(),v(N.$$.fragment),this.h()},l(h){p=o(h,"P",{});var Z=n(p);f=a(Z,"\uD14D\uC2A4\uD2B8\uB97C \uD1A0\uD06C\uB098\uC774\uC988\uD558\uACE0 "),i=o(Z,"CODE",{});var le=n(i);$=a(le,"input_ids"),le.forEach(s),j=a(Z,"\uB97C TensorFlow \uD150\uC11C\uB85C \uBC18\uD658\uD569\uB2C8\uB2E4:"),Z.forEach(s),g=b(h),U(G.$$.fragment,h),B=b(h),w=o(h,"P",{});var A=n(w);V=a(A,"\uC694\uC57D\uBB38\uC744 \uC0DD\uC131\uD558\uB824\uBA74 "),R=o(A,"CODE",{});var I=n(R);F=a(I,"generate()"),I.forEach(s),z=a(A,` \uBA54\uC18C\uB4DC\uB97C \uC0AC\uC6A9\uD558\uC138\uC694.
\uD14D\uC2A4\uD2B8 \uC0DD\uC131\uC5D0 \uB300\uD55C \uB2E4\uC591\uD55C \uC804\uB7B5\uACFC \uC0DD\uC131\uC744 \uC81C\uC5B4\uD558\uAE30 \uC704\uD55C \uB9E4\uAC1C\uBCC0\uC218\uC5D0 \uB300\uD55C \uC790\uC138\uD55C \uB0B4\uC6A9\uC740 `),W=o(A,"A",{href:!0});var ae=n(W);S=a(ae,"\uD14D\uC2A4\uD2B8 \uC0DD\uC131"),ae.forEach(s),se=a(A," API\uB97C \uCC38\uC870\uD558\uC138\uC694."),A.forEach(s),O=b(h),U(X.$$.fragment,h),L=b(h),Q=o(h,"P",{});var H=n(Q);D=a(H,"\uC0DD\uC131\uB41C \uD1A0\uD070 ID\uB97C \uD14D\uC2A4\uD2B8\uB85C \uB514\uCF54\uB529\uD569\uB2C8\uB2E4:"),H.forEach(s),P=b(h),U(N.$$.fragment,h),this.h()},h(){_(W,"href","../main_classes/text_generation")},m(h,Z){m(h,p,Z),t(p,f),t(p,i),t(i,$),t(p,j),m(h,g,Z),E(G,h,Z),m(h,B,Z),m(h,w,Z),t(w,V),t(w,R),t(R,F),t(w,z),t(w,W),t(W,S),t(w,se),m(h,O,Z),E(X,h,Z),m(h,L,Z),m(h,Q,Z),t(Q,D),m(h,P,Z),E(N,h,Z),x=!0},p:bl,i(h){x||(k(G.$$.fragment,h),k(X.$$.fragment,h),k(N.$$.fragment,h),x=!0)},o(h){T(G.$$.fragment,h),T(X.$$.fragment,h),T(N.$$.fragment,h),x=!1},d(h){h&&s(p),h&&s(g),J(G,h),h&&s(B),h&&s(w),h&&s(O),J(X,h),h&&s(L),h&&s(Q),h&&s(P),J(N,h)}}}function xr(Y){let p,f;return p=new ss({props:{$$slots:{default:[zr]},$$scope:{ctx:Y}}}),{c(){v(p.$$.fragment)},l(i){U(p.$$.fragment,i)},m(i,$){E(p,i,$),f=!0},p(i,$){const j={};$&2&&(j.$$scope={dirty:$,ctx:i}),p.$set(j)},i(i){f||(k(p.$$.fragment,i),f=!0)},o(i){T(p.$$.fragment,i),f=!1},d(i){J(p,i)}}}function Hr(Y){let p,f,i,$,j,g,G,B,w,V,R,F,z,W,S,se,O,X,L,Q,D,P,N,x,h,Z,le,A,I,ae,H,Be,he,de,We,je,ue,ie,Me,Ce,pe,$e,ce,Te,K,_e,me,ne,Xe,Je,ee,ye,M,C,we,ge,re,oe,ve,Ee,be,Ve,fe,ke,Re,te,Ze,Ue,Ge,Fe,c,u,Se,He,et,ze,Le,Ye,ot,qe,Ne,Ie,Oe,nt,tt,it,Ae,xe,pt,ct,Ke,xt,Ht,kt,Qe,dt,ls,Tt,Ml,as,$l,Gs,st,_l,rs,jl,wl,os,gl,vl,Cs,Jt,Vs,Yt,Ul,Rs,lt,ns,El,kl,Zt,Tl,is,Jl,Zl,Gl,qt,ps,Cl,Vl,Bs,Gt,Ws,De,Rl,cs,Bl,Wl,ms,Xl,Sl,fs,Il,Nl,Xs,Ct,Ss,at,Al,hs,Fl,zl,ds,xl,Hl,Is,ut,Ns,mt,yt,us,Vt,Yl,ys,ql,As,Pe,Ql,Rt,Dl,Pl,Bt,Ll,Ol,Wt,Kl,ea,Fs,Xt,zs,bt,ta,bs,sa,la,xs,St,Hs,Mt,aa,Ms,ra,oa,Ys,ft,$t,$s,It,na,_s,ia,qs,_t,Qs,jt,Ds,ht,wt,js,Nt,pa,ws,ca,Ps,Qt,ma,Ls,Dt,fa,Os,At,Ks,rt,ha,gs,da,ua,vs,ya,ba,el,Ft,tl,gt,Ma,Us,$a,_a,sl,vt,ll;return g=new ts({}),R=new Tr({props:{classNames:"absolute z-10 right-0 top-0",options:[{label:"Mixed",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/main/transformers_doc/ko/summarization.ipynb"},{label:"PyTorch",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/main/transformers_doc/ko/pytorch/summarization.ipynb"},{label:"TensorFlow",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/main/transformers_doc/ko/tensorflow/summarization.ipynb"},{label:"Mixed",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/transformers_doc/ko/summarization.ipynb"},{label:"PyTorch",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/transformers_doc/ko/pytorch/summarization.ipynb"},{label:"TensorFlow",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/transformers_doc/ko/tensorflow/summarization.ipynb"}]}}),z=new kr({props:{id:"yHnr5Dk2zCI"}}),pe=new yl({props:{$$slots:{default:[Jr]},$$scope:{ctx:Y}}}),_e=new q({props:{code:"cGlwJTIwaW5zdGFsbCUyMHRyYW5zZm9ybWVycyUyMGRhdGFzZXRzJTIwZXZhbHVhdGUlMjByb3VnZV9zY29yZQ==",highlighted:"pip install transformers datasets evaluate rouge_score"}}),ee=new q({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMG5vdGVib29rX2xvZ2luJTBBJTBBbm90ZWJvb2tfbG9naW4oKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> notebook_login

<span class="hljs-meta">&gt;&gt;&gt; </span>notebook_login()`}}),ge=new ts({}),ke=new q({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBJTBBYmlsbHN1bSUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJiaWxsc3VtJTIyJTJDJTIwc3BsaXQlM0QlMjJjYV90ZXN0JTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset

<span class="hljs-meta">&gt;&gt;&gt; </span>billsum = load_dataset(<span class="hljs-string">&quot;billsum&quot;</span>, split=<span class="hljs-string">&quot;ca_test&quot;</span>)`}}),c=new q({props:{code:"YmlsbHN1bSUyMCUzRCUyMGJpbGxzdW0udHJhaW5fdGVzdF9zcGxpdCh0ZXN0X3NpemUlM0QwLjIp",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>billsum = billsum.train_test_split(test_size=<span class="hljs-number">0.2</span>)'}}),ze=new q({props:{code:"YmlsbHN1bSU1QiUyMnRyYWluJTIyJTVEJTVCMCU1RA==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>billsum[<span class="hljs-string">&quot;train&quot;</span>][<span class="hljs-number">0</span>]
{<span class="hljs-string">&#x27;summary&#x27;</span>: <span class="hljs-string">&#x27;Existing law authorizes state agencies to enter into contracts for the acquisition of goods or services upon approval by the Department of General Services. Existing law sets forth various requirements and prohibitions for those contracts, including, but not limited to, a prohibition on entering into contracts for the acquisition of goods or services of $100,000 or more with a contractor that discriminates between spouses and domestic partners or same-sex and different-sex couples in the provision of benefits. Existing law provides that a contract entered into in violation of those requirements and prohibitions is void and authorizes the state or any person acting on behalf of the state to bring a civil action seeking a determination that a contract is in violation and therefore void. Under existing law, a willful violation of those requirements and prohibitions is a misdemeanor.\\nThis bill would also prohibit a state agency from entering into contracts for the acquisition of goods or services of $100,000 or more with a contractor that discriminates between employees on the basis of gender identity in the provision of benefits, as specified. By expanding the scope of a crime, this bill would impose a state-mandated local program.\\nThe California Constitution requires the state to reimburse local agencies and school districts for certain costs mandated by the state. Statutory provisions establish procedures for making that reimbursement.\\nThis bill would provide that no reimbursement is required by this act for a specified reason.&#x27;</span>,
 <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;The people of the State of California do enact as follows:\\n\\n\\nSECTION 1.\\nSection 10295.35 is added to the Public Contract Code, to read:\\n10295.35.\\n(a) (1) Notwithstanding any other law, a state agency shall not enter into any contract for the acquisition of goods or services in the amount of one hundred thousand dollars ($100,000) or more with a contractor that, in the provision of benefits, discriminates between employees on the basis of an employee\u2019s or dependent\u2019s actual or perceived gender identity, including, but not limited to, the employee\u2019s or dependent\u2019s identification as transgender.\\n(2) For purposes of this section, \u201Ccontract\u201D includes contracts with a cumulative amount of one hundred thousand dollars ($100,000) or more per contractor in each fiscal year.\\n(3) For purposes of this section, an employee health plan is discriminatory if the plan is not consistent with Section 1365.5 of the Health and Safety Code and Section 10140 of the Insurance Code.\\n(4) The requirements of this section shall apply only to those portions of a contractor\u2019s operations that occur under any of the following conditions:\\n(A) Within the state.\\n(B) On real property outside the state if the property is owned by the state or if the state has a right to occupy the property, and if the contractor\u2019s presence at that location is connected to a contract with the state.\\n(C) Elsewhere in the United States where work related to a state contract is being performed.\\n(b) Contractors shall treat as confidential, to the maximum extent allowed by law or by the requirement of the contractor\u2019s insurance provider, any request by an employee or applicant for employment benefits or any documentation of eligibility for benefits submitted by an employee or applicant for employment.\\n(c) After taking all reasonable measures to find a contractor that complies with this section, as determined by the state agency, the requirements of this section may be waived under any of the following circumstances:\\n(1) There is only one prospective contractor willing to enter into a specific contract with the state agency.\\n(2) The contract is necessary to respond to an emergency, as determined by the state agency, that endangers the public health, welfare, or safety, or the contract is necessary for the provision of essential services, and no entity that complies with the requirements of this section capable of responding to the emergency is immediately available.\\n(3) The requirements of this section violate, or are inconsistent with, the terms or conditions of a grant, subvention, or agreement, if the agency has made a good faith attempt to change the terms or conditions of any grant, subvention, or agreement to authorize application of this section.\\n(4) The contractor is providing wholesale or bulk water, power, or natural gas, the conveyance or transmission of the same, or ancillary services, as required for ensuring reliable services in accordance with good utility practice, if the purchase of the same cannot practically be accomplished through the standard competitive bidding procedures and the contractor is not providing direct retail services to end users.\\n(d) (1) A contractor shall not be deemed to discriminate in the provision of benefits if the contractor, in providing the benefits, pays the actual costs incurred in obtaining the benefit.\\n(2) If a contractor is unable to provide a certain benefit, despite taking reasonable measures to do so, the contractor shall not be deemed to discriminate in the provision of benefits.\\n(e) (1) Every contract subject to this chapter shall contain a statement by which the contractor certifies that the contractor is in compliance with this section.\\n(2) The department or other contracting agency shall enforce this section pursuant to its existing enforcement powers.\\n(3) (A) If a contractor falsely certifies that it is in compliance with this section, the contract with that contractor shall be subject to Article 9 (commencing with Section 10420), unless, within a time period specified by the department or other contracting agency, the contractor provides to the department or agency proof that it has complied, or is in the process of complying, with this section.\\n(B) The application of the remedies or penalties contained in Article 9 (commencing with Section 10420) to a contract subject to this chapter shall not preclude the application of any existing remedies otherwise available to the department or other contracting agency under its existing enforcement powers.\\n(f) Nothing in this section is intended to regulate the contracting practices of any local jurisdiction.\\n(g) This section shall be construed so as not to conflict with applicable federal laws, rules, or regulations. In the event that a court or agency of competent jurisdiction holds that federal law, rule, or regulation invalidates any clause, sentence, paragraph, or section of this code or the application thereof to any person or circumstances, it is the intent of the state that the court or agency sever that clause, sentence, paragraph, or section so that the remainder of this section shall remain in effect.\\nSEC. 2.\\nSection 10295.35 of the Public Contract Code shall not be construed to create any new enforcement authority or responsibility in the Department of General Services or any other contracting agency.\\nSEC. 3.\\nNo reimbursement is required by this act pursuant to Section 6 of Article XIII\\u2009B of the California Constitution because the only costs that may be incurred by a local agency or school district will be incurred because this act creates a new crime or infraction, eliminates a crime or infraction, or changes the penalty for a crime or infraction, within the meaning of Section 17556 of the Government Code, or changes the definition of a crime within the meaning of Section 6 of Article XIII\\u2009B of the California Constitution.&#x27;</span>,
 <span class="hljs-string">&#x27;title&#x27;</span>: <span class="hljs-string">&#x27;An act to add Section 10295.35 to the Public Contract Code, relating to public contracts.&#x27;</span>}`}}),Tt=new ts({}),Jt=new q({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMEElMEFjaGVja3BvaW50JTIwJTNEJTIwJTIydDUtc21hbGwlMjIlMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZChjaGVja3BvaW50KQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer

<span class="hljs-meta">&gt;&gt;&gt; </span>checkpoint = <span class="hljs-string">&quot;t5-small&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(checkpoint)`}}),Gt=new q({props:{code:"cHJlZml4JTIwJTNEJTIwJTIyc3VtbWFyaXplJTNBJTIwJTIyJTBBJTBBJTBBZGVmJTIwcHJlcHJvY2Vzc19mdW5jdGlvbihleGFtcGxlcyklM0ElMEElMjAlMjAlMjAlMjBpbnB1dHMlMjAlM0QlMjAlNUJwcmVmaXglMjAlMkIlMjBkb2MlMjBmb3IlMjBkb2MlMjBpbiUyMGV4YW1wbGVzJTVCJTIydGV4dCUyMiU1RCU1RCUwQSUyMCUyMCUyMCUyMG1vZGVsX2lucHV0cyUyMCUzRCUyMHRva2VuaXplcihpbnB1dHMlMkMlMjBtYXhfbGVuZ3RoJTNEMTAyNCUyQyUyMHRydW5jYXRpb24lM0RUcnVlKSUwQSUwQSUyMCUyMCUyMCUyMGxhYmVscyUyMCUzRCUyMHRva2VuaXplcih0ZXh0X3RhcmdldCUzRGV4YW1wbGVzJTVCJTIyc3VtbWFyeSUyMiU1RCUyQyUyMG1heF9sZW5ndGglM0QxMjglMkMlMjB0cnVuY2F0aW9uJTNEVHJ1ZSklMEElMEElMjAlMjAlMjAlMjBtb2RlbF9pbnB1dHMlNUIlMjJsYWJlbHMlMjIlNUQlMjAlM0QlMjBsYWJlbHMlNUIlMjJpbnB1dF9pZHMlMjIlNUQlMEElMjAlMjAlMjAlMjByZXR1cm4lMjBtb2RlbF9pbnB1dHM=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>prefix = <span class="hljs-string">&quot;summarize: &quot;</span>


<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">preprocess_function</span>(<span class="hljs-params">examples</span>):
<span class="hljs-meta">... </span>    inputs = [prefix + doc <span class="hljs-keyword">for</span> doc <span class="hljs-keyword">in</span> examples[<span class="hljs-string">&quot;text&quot;</span>]]
<span class="hljs-meta">... </span>    model_inputs = tokenizer(inputs, max_length=<span class="hljs-number">1024</span>, truncation=<span class="hljs-literal">True</span>)

<span class="hljs-meta">... </span>    labels = tokenizer(text_target=examples[<span class="hljs-string">&quot;summary&quot;</span>], max_length=<span class="hljs-number">128</span>, truncation=<span class="hljs-literal">True</span>)

<span class="hljs-meta">... </span>    model_inputs[<span class="hljs-string">&quot;labels&quot;</span>] = labels[<span class="hljs-string">&quot;input_ids&quot;</span>]
<span class="hljs-meta">... </span>    <span class="hljs-keyword">return</span> model_inputs`}}),Ct=new q({props:{code:"dG9rZW5pemVkX2JpbGxzdW0lMjAlM0QlMjBiaWxsc3VtLm1hcChwcmVwcm9jZXNzX2Z1bmN0aW9uJTJDJTIwYmF0Y2hlZCUzRFRydWUp",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>tokenized_billsum = billsum.<span class="hljs-built_in">map</span>(preprocess_function, batched=<span class="hljs-literal">True</span>)'}}),ut=new va({props:{pytorch:!0,tensorflow:!0,jax:!1,$$slots:{tensorflow:[Vr],pytorch:[Gr]},$$scope:{ctx:Y}}}),Vt=new ts({}),Xt=new q({props:{code:"aW1wb3J0JTIwZXZhbHVhdGUlMEElMEFyb3VnZSUyMCUzRCUyMGV2YWx1YXRlLmxvYWQoJTIycm91Z2UlMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> evaluate

<span class="hljs-meta">&gt;&gt;&gt; </span>rouge = evaluate.load(<span class="hljs-string">&quot;rouge&quot;</span>)`}}),St=new q({props:{code:"aW1wb3J0JTIwbnVtcHklMjBhcyUyMG5wJTBBJTBBJTBBZGVmJTIwY29tcHV0ZV9tZXRyaWNzKGV2YWxfcHJlZCklM0ElMEElMjAlMjAlMjAlMjBwcmVkaWN0aW9ucyUyQyUyMGxhYmVscyUyMCUzRCUyMGV2YWxfcHJlZCUwQSUyMCUyMCUyMCUyMGRlY29kZWRfcHJlZHMlMjAlM0QlMjB0b2tlbml6ZXIuYmF0Y2hfZGVjb2RlKHByZWRpY3Rpb25zJTJDJTIwc2tpcF9zcGVjaWFsX3Rva2VucyUzRFRydWUpJTBBJTIwJTIwJTIwJTIwbGFiZWxzJTIwJTNEJTIwbnAud2hlcmUobGFiZWxzJTIwISUzRCUyMC0xMDAlMkMlMjBsYWJlbHMlMkMlMjB0b2tlbml6ZXIucGFkX3Rva2VuX2lkKSUwQSUyMCUyMCUyMCUyMGRlY29kZWRfbGFiZWxzJTIwJTNEJTIwdG9rZW5pemVyLmJhdGNoX2RlY29kZShsYWJlbHMlMkMlMjBza2lwX3NwZWNpYWxfdG9rZW5zJTNEVHJ1ZSklMEElMEElMjAlMjAlMjAlMjByZXN1bHQlMjAlM0QlMjByb3VnZS5jb21wdXRlKHByZWRpY3Rpb25zJTNEZGVjb2RlZF9wcmVkcyUyQyUyMHJlZmVyZW5jZXMlM0RkZWNvZGVkX2xhYmVscyUyQyUyMHVzZV9zdGVtbWVyJTNEVHJ1ZSklMEElMEElMjAlMjAlMjAlMjBwcmVkaWN0aW9uX2xlbnMlMjAlM0QlMjAlNUJucC5jb3VudF9ub256ZXJvKHByZWQlMjAhJTNEJTIwdG9rZW5pemVyLnBhZF90b2tlbl9pZCklMjBmb3IlMjBwcmVkJTIwaW4lMjBwcmVkaWN0aW9ucyU1RCUwQSUyMCUyMCUyMCUyMHJlc3VsdCU1QiUyMmdlbl9sZW4lMjIlNUQlMjAlM0QlMjBucC5tZWFuKHByZWRpY3Rpb25fbGVucyklMEElMEElMjAlMjAlMjAlMjByZXR1cm4lMjAlN0JrJTNBJTIwcm91bmQodiUyQyUyMDQpJTIwZm9yJTIwayUyQyUyMHYlMjBpbiUyMHJlc3VsdC5pdGVtcygpJTdE",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> numpy <span class="hljs-keyword">as</span> np


<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">compute_metrics</span>(<span class="hljs-params">eval_pred</span>):
<span class="hljs-meta">... </span>    predictions, labels = eval_pred
<span class="hljs-meta">... </span>    decoded_preds = tokenizer.batch_decode(predictions, skip_special_tokens=<span class="hljs-literal">True</span>)
<span class="hljs-meta">... </span>    labels = np.where(labels != -<span class="hljs-number">100</span>, labels, tokenizer.pad_token_id)
<span class="hljs-meta">... </span>    decoded_labels = tokenizer.batch_decode(labels, skip_special_tokens=<span class="hljs-literal">True</span>)

<span class="hljs-meta">... </span>    result = rouge.compute(predictions=decoded_preds, references=decoded_labels, use_stemmer=<span class="hljs-literal">True</span>)

<span class="hljs-meta">... </span>    prediction_lens = [np.count_nonzero(pred != tokenizer.pad_token_id) <span class="hljs-keyword">for</span> pred <span class="hljs-keyword">in</span> predictions]
<span class="hljs-meta">... </span>    result[<span class="hljs-string">&quot;gen_len&quot;</span>] = np.mean(prediction_lens)

<span class="hljs-meta">... </span>    <span class="hljs-keyword">return</span> {k: <span class="hljs-built_in">round</span>(v, <span class="hljs-number">4</span>) <span class="hljs-keyword">for</span> k, v <span class="hljs-keyword">in</span> result.items()}`}}),It=new ts({}),_t=new va({props:{pytorch:!0,tensorflow:!0,jax:!1,$$slots:{tensorflow:[Ir],pytorch:[Wr]},$$scope:{ctx:Y}}}),jt=new yl({props:{$$slots:{default:[Nr]},$$scope:{ctx:Y}}}),Nt=new ts({}),At=new q({props:{code:"dGV4dCUyMCUzRCUyMCUyMnN1bW1hcml6ZSUzQSUyMFRoZSUyMEluZmxhdGlvbiUyMFJlZHVjdGlvbiUyMEFjdCUyMGxvd2VycyUyMHByZXNjcmlwdGlvbiUyMGRydWclMjBjb3N0cyUyQyUyMGhlYWx0aCUyMGNhcmUlMjBjb3N0cyUyQyUyMGFuZCUyMGVuZXJneSUyMGNvc3RzLiUyMEl0J3MlMjB0aGUlMjBtb3N0JTIwYWdncmVzc2l2ZSUyMGFjdGlvbiUyMG9uJTIwdGFja2xpbmclMjB0aGUlMjBjbGltYXRlJTIwY3Jpc2lzJTIwaW4lMjBBbWVyaWNhbiUyMGhpc3RvcnklMkMlMjB3aGljaCUyMHdpbGwlMjBsaWZ0JTIwdXAlMjBBbWVyaWNhbiUyMHdvcmtlcnMlMjBhbmQlMjBjcmVhdGUlMjBnb29kLXBheWluZyUyQyUyMHVuaW9uJTIwam9icyUyMGFjcm9zcyUyMHRoZSUyMGNvdW50cnkuJTIwSXQnbGwlMjBsb3dlciUyMHRoZSUyMGRlZmljaXQlMjBhbmQlMjBhc2slMjB0aGUlMjB1bHRyYS13ZWFsdGh5JTIwYW5kJTIwY29ycG9yYXRpb25zJTIwdG8lMjBwYXklMjB0aGVpciUyMGZhaXIlMjBzaGFyZS4lMjBBbmQlMjBubyUyMG9uZSUyMG1ha2luZyUyMHVuZGVyJTIwJTI0NDAwJTJDMDAwJTIwcGVyJTIweWVhciUyMHdpbGwlMjBwYXklMjBhJTIwcGVubnklMjBtb3JlJTIwaW4lMjB0YXhlcy4lMjI=",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>text = <span class="hljs-string">&quot;summarize: The Inflation Reduction Act lowers prescription drug costs, health care costs, and energy costs. It&#x27;s the most aggressive action on tackling the climate crisis in American history, which will lift up American workers and create good-paying, union jobs across the country. It&#x27;ll lower the deficit and ask the ultra-wealthy and corporations to pay their fair share. And no one making under $400,000 per year will pay a penny more in taxes.&quot;</span>'}}),Ft=new q({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBc3VtbWFyaXplciUyMCUzRCUyMHBpcGVsaW5lKCUyMnN1bW1hcml6YXRpb24lMjIlMkMlMjBtb2RlbCUzRCUyMnN0ZXZobGl1JTJGbXlfYXdlc29tZV9iaWxsc3VtX21vZGVsJTIyKSUwQXN1bW1hcml6ZXIodGV4dCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>summarizer = pipeline(<span class="hljs-string">&quot;summarization&quot;</span>, model=<span class="hljs-string">&quot;stevhliu/my_awesome_billsum_model&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>summarizer(text)
[{<span class="hljs-string">&quot;summary_text&quot;</span>: <span class="hljs-string">&quot;The Inflation Reduction Act lowers prescription drug costs, health care costs, and energy costs. It&#x27;s the most aggressive action on tackling the climate crisis in American history, which will lift up American workers and create good-paying, union jobs across the country.&quot;</span>}]`}}),vt=new va({props:{pytorch:!0,tensorflow:!0,jax:!1,$$slots:{tensorflow:[xr],pytorch:[Fr]},$$scope:{ctx:Y}}}),{c(){p=r("meta"),f=y(),i=r("h1"),$=r("a"),j=r("span"),v(g.$$.fragment),G=y(),B=r("span"),w=l("\uC694\uC57D"),V=y(),v(R.$$.fragment),F=y(),v(z.$$.fragment),W=y(),S=r("p"),se=l(`\uC694\uC57D\uC740 \uBB38\uC11C\uB098 \uAE30\uC0AC\uC5D0\uC11C \uC911\uC694\uD55C \uC815\uBCF4\uB97C \uBAA8\uB450 \uD3EC\uD568\uD558\uB418 \uC9E7\uAC8C \uB9CC\uB4DC\uB294 \uC77C\uC785\uB2C8\uB2E4.
\uBC88\uC5ED\uACFC \uB9C8\uCC2C\uAC00\uC9C0\uB85C, \uC2DC\uD000\uC2A4-\uD22C-\uC2DC\uD000\uC2A4 \uBB38\uC81C\uB85C \uAD6C\uC131\uD560 \uC218 \uC788\uB294 \uB300\uD45C\uC801\uC778 \uC791\uC5C5 \uC911 \uD558\uB098\uC785\uB2C8\uB2E4.
\uC694\uC57D\uC5D0\uB294 \uC544\uB798\uC640 \uAC19\uC774 \uC720\uD615\uC774 \uC788\uC2B5\uB2C8\uB2E4:`),O=y(),X=r("ul"),L=r("li"),Q=l("\uCD94\uCD9C(Extractive) \uC694\uC57D: \uBB38\uC11C\uC5D0\uC11C \uAC00\uC7A5 \uAD00\uB828\uC131 \uB192\uC740 \uC815\uBCF4\uB97C \uCD94\uCD9C\uD569\uB2C8\uB2E4."),D=y(),P=r("li"),N=l("\uC0DD\uC131(Abstractive) \uC694\uC57D: \uAC00\uC7A5 \uAD00\uB828\uC131 \uB192\uC740 \uC815\uBCF4\uB97C \uD3EC\uCC29\uD574\uB0B4\uB294 \uC0C8\uB85C\uC6B4 \uD14D\uC2A4\uD2B8\uB97C \uC0DD\uC131\uD569\uB2C8\uB2E4."),x=y(),h=r("p"),Z=l("\uC774 \uAC00\uC774\uB4DC\uC5D0\uC11C \uC18C\uAC1C\uD560 \uB0B4\uC6A9\uC740 \uC544\uB798\uC640 \uAC19\uC2B5\uB2C8\uB2E4:"),le=y(),A=r("ol"),I=r("li"),ae=l("\uC0DD\uC131 \uC694\uC57D\uC744 \uC704\uD55C "),H=r("a"),Be=l("BillSum"),he=l(" \uB370\uC774\uD130\uC14B \uC911 \uCE98\uB9AC\uD3EC\uB2C8\uC544 \uC8FC \uBC95\uC548 \uD558\uC704 \uC9D1\uD569\uC73C\uB85C "),de=r("a"),We=l("T5"),je=l("\uB97C \uD30C\uC778\uD29C\uB2DD\uD569\uB2C8\uB2E4."),ue=y(),ie=r("li"),Me=l("\uD30C\uC778\uD29C\uB2DD\uB41C \uBAA8\uB378\uC744 \uC0AC\uC6A9\uD558\uC5EC \uCD94\uB860\uD569\uB2C8\uB2E4."),Ce=y(),v(pe.$$.fragment),$e=y(),ce=r("p"),Te=l("\uC2DC\uC791\uD558\uAE30 \uC804\uC5D0 \uD544\uC694\uD55C \uB77C\uC774\uBE0C\uB7EC\uB9AC\uAC00 \uBAA8\uB450 \uC124\uCE58\uB418\uC5B4 \uC788\uB294\uC9C0 \uD655\uC778\uD558\uC138\uC694:"),K=y(),v(_e.$$.fragment),me=y(),ne=r("p"),Xe=l(`Hugging Face \uACC4\uC815\uC5D0 \uB85C\uADF8\uC778\uD558\uBA74 \uBAA8\uB378\uC744 \uC5C5\uB85C\uB4DC\uD558\uACE0 \uCEE4\uBBA4\uB2C8\uD2F0\uC5D0 \uACF5\uC720\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
\uD1A0\uD070\uC744 \uC785\uB825\uD558\uC5EC \uB85C\uADF8\uC778\uD558\uC138\uC694.`),Je=y(),v(ee.$$.fragment),ye=y(),M=r("h2"),C=r("a"),we=r("span"),v(ge.$$.fragment),re=y(),oe=r("span"),ve=l("BillSum \uB370\uC774\uD130\uC14B \uAC00\uC838\uC624\uAE30"),Ee=y(),be=r("p"),Ve=l("\u{1F917} Datasets \uB77C\uC774\uBE0C\uB7EC\uB9AC\uC5D0\uC11C BillSum \uB370\uC774\uD130\uC14B\uC758 \uC791\uC740 \uBC84\uC804\uC778 \uCE98\uB9AC\uD3EC\uB2C8\uC544 \uC8FC \uBC95\uC548 \uD558\uC704 \uC9D1\uD569\uC744 \uAC00\uC838\uC624\uC138\uC694:"),fe=y(),v(ke.$$.fragment),Re=y(),te=r("p"),Ze=r("code"),Ue=l("train_test_split"),Ge=l(" \uBA54\uC18C\uB4DC\uB85C \uB370\uC774\uD130\uC14B\uC744 \uD559\uC2B5\uC6A9\uC640 \uD14C\uC2A4\uD2B8\uC6A9\uC73C\uB85C \uB098\uB204\uC138\uC694:"),Fe=y(),v(c.$$.fragment),u=y(),Se=r("p"),He=l("\uADF8\uB7F0 \uB2E4\uC74C \uC608\uC2DC\uB97C \uD558\uB098 \uC0B4\uD3B4\uBCF4\uC138\uC694:"),et=y(),v(ze.$$.fragment),Le=y(),Ye=r("p"),ot=l("\uC5EC\uAE30\uC11C \uB2E4\uC74C \uB450 \uAC1C\uC758 \uD544\uB4DC\uB97C \uC0AC\uC6A9\uD558\uAC8C \uB429\uB2C8\uB2E4:"),qe=y(),Ne=r("ul"),Ie=r("li"),Oe=r("code"),nt=l("text"),tt=l(": \uBAA8\uB378\uC758 \uC785\uB825\uC774 \uB420 \uBC95\uC548 \uD14D\uC2A4\uD2B8\uC785\uB2C8\uB2E4."),it=y(),Ae=r("li"),xe=r("code"),pt=l("summary"),ct=l(": "),Ke=r("code"),xt=l("text"),Ht=l("\uC758 \uAC04\uB7B5\uD55C \uBC84\uC804\uC73C\uB85C \uBAA8\uB378\uC758 \uD0C0\uAC9F\uC774 \uB429\uB2C8\uB2E4."),kt=y(),Qe=r("h2"),dt=r("a"),ls=r("span"),v(Tt.$$.fragment),Ml=y(),as=r("span"),$l=l("\uC804\uCC98\uB9AC"),Gs=y(),st=r("p"),_l=l("\uB2E4\uC74C\uC73C\uB85C "),rs=r("code"),jl=l("text"),wl=l("\uC640 "),os=r("code"),gl=l("summary"),vl=l("\uB97C \uCC98\uB9AC\uD558\uAE30 \uC704\uD55C T5 \uD1A0\uD06C\uB098\uC774\uC800\uB97C \uAC00\uC838\uC635\uB2C8\uB2E4:"),Cs=y(),v(Jt.$$.fragment),Vs=y(),Yt=r("p"),Ul=l("\uC0DD\uC131\uD558\uB824\uB294 \uC804\uCC98\uB9AC \uD568\uC218\uB294 \uC544\uB798 \uC870\uAC74\uC744 \uB9CC\uC871\uD574\uC57C \uD569\uB2C8\uB2E4:"),Rs=y(),lt=r("ol"),ns=r("li"),El=l("\uC785\uB825 \uC55E\uC5D0 \uD504\uB86C\uD504\uD2B8\uB97C \uBD99\uC5EC T5\uAC00 \uC694\uC57D \uC791\uC5C5\uC784\uC744 \uC778\uC2DD\uD560 \uC218 \uC788\uB3C4\uB85D \uD569\uB2C8\uB2E4. \uC5EC\uB7EC NLP \uC791\uC5C5\uC744 \uC218\uD589\uD560 \uC218 \uC788\uB294 \uC77C\uBD80 \uBAA8\uB378\uC740 \uD2B9\uC815 \uC791\uC5C5\uC5D0 \uB300\uD55C \uD504\uB86C\uD504\uD2B8\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4."),kl=y(),Zt=r("li"),Tl=l("\uB808\uC774\uBE14\uC744 \uD1A0\uD070\uD654\uD560 \uB54C "),is=r("code"),Jl=l("text_target"),Zl=l(" \uC778\uC218\uB97C \uC0AC\uC6A9\uD569\uB2C8\uB2E4."),Gl=y(),qt=r("li"),ps=r("code"),Cl=l("max_length"),Vl=l(" \uB9E4\uAC1C\uBCC0\uC218\uB85C \uC124\uC815\uB41C \uCD5C\uB300 \uAE38\uC774\uB97C \uB118\uC9C0 \uC54A\uB3C4\uB85D \uAE34 \uC2DC\uD000\uC2A4\uB97C \uC798\uB77C\uB0C5\uB2C8\uB2E4."),Bs=y(),v(Gt.$$.fragment),Ws=y(),De=r("p"),Rl=l("\uC804\uCCB4 \uB370\uC774\uD130\uC14B\uC5D0 \uC804\uCC98\uB9AC \uD568\uC218\uB97C \uC801\uC6A9\uD558\uB824\uBA74 \u{1F917} Datasets\uC758 "),cs=r("code"),Bl=l("map"),Wl=l(` \uBA54\uC18C\uB4DC\uB97C \uC0AC\uC6A9\uD558\uC138\uC694.
`),ms=r("code"),Xl=l("batched=True"),Sl=l("\uB85C \uC124\uC815\uD558\uC5EC \uB370\uC774\uD130\uC14B\uC758 \uC5EC\uB7EC \uC694\uC18C\uB97C \uD55C \uBC88\uC5D0 \uCC98\uB9AC\uD558\uBA74 "),fs=r("code"),Il=l("map"),Nl=l(" \uD568\uC218\uC758 \uC18D\uB3C4\uB97C \uB192\uC77C \uC218 \uC788\uC2B5\uB2C8\uB2E4."),Xs=y(),v(Ct.$$.fragment),Ss=y(),at=r("p"),Al=l("\uC774\uC81C "),hs=r("code"),Fl=l("DataCollatorForSeq2Seq"),zl=l(`\uB97C \uC0AC\uC6A9\uD558\uC5EC \uC608\uC81C \uBC30\uCE58\uB97C \uB9CC\uB4DC\uC138\uC694.
\uC804\uCCB4 \uB370\uC774\uD130\uC14B\uC744 \uCD5C\uB300 \uAE38\uC774\uB85C \uD328\uB529\uD558\uB294 \uAC83\uBCF4\uB2E4 \uBC30\uCE58\uB9C8\uB2E4 \uAC00\uC7A5 \uAE34 \uBB38\uC7A5 \uAE38\uC774\uC5D0 \uB9DE\uCDB0 `),ds=r("em"),xl=l("\uB3D9\uC801 \uD328\uB529"),Hl=l("\uD558\uB294 \uAC83\uC774 \uB354 \uD6A8\uC728\uC801\uC785\uB2C8\uB2E4."),Is=y(),v(ut.$$.fragment),Ns=y(),mt=r("h2"),yt=r("a"),us=r("span"),v(Vt.$$.fragment),Yl=y(),ys=r("span"),ql=l("\uD3C9\uAC00"),As=y(),Pe=r("p"),Ql=l(`\uD559\uC2B5 \uC911\uC5D0 \uD3C9\uAC00 \uC9C0\uD45C\uB97C \uD3EC\uD568\uD558\uBA74 \uBAA8\uB378\uC758 \uC131\uB2A5\uC744 \uD3C9\uAC00\uD558\uB294 \uB370 \uB3C4\uC6C0\uC774 \uB418\uB294 \uACBD\uC6B0\uAC00 \uB9CE\uC2B5\uB2C8\uB2E4.
\u{1F917} `),Rt=r("a"),Dl=l("Evaluate"),Pl=l(` \uB77C\uC774\uBE0C\uB7EC\uB9AC\uB97C \uC0AC\uC6A9\uD558\uBA74 \uD3C9\uAC00 \uBC29\uBC95\uC744 \uBE60\uB974\uAC8C \uBD88\uB7EC\uC62C \uC218 \uC788\uC2B5\uB2C8\uB2E4.
\uC774 \uC791\uC5C5\uC5D0\uC11C\uB294 `),Bt=r("a"),Ll=l("ROUGE"),Ol=l(` \uD3C9\uAC00 \uC9C0\uD45C\uB97C \uAC00\uC838\uC635\uB2C8\uB2E4.
(\uD3C9\uAC00 \uC9C0\uD45C\uB97C \uBD88\uB7EC\uC624\uACE0 \uACC4\uC0B0\uD558\uB294 \uBC29\uBC95\uC740 \u{1F917} Evaluate `),Wt=r("a"),Kl=l("\uB458\uB7EC\uBCF4\uAE30"),ea=l("\uB97C \uCC38\uC870\uD558\uC138\uC694.)"),Fs=y(),v(Xt.$$.fragment),zs=y(),bt=r("p"),ta=l("\uADF8\uB7F0 \uB2E4\uC74C \uC608\uCE21\uAC12\uACFC \uB808\uC774\uBE14\uC744 "),bs=r("code"),sa=l("compute"),la=l("\uC5D0 \uC804\uB2EC\uD558\uC5EC ROUGE \uC9C0\uD45C\uB97C \uACC4\uC0B0\uD558\uB294 \uD568\uC218\uB97C \uB9CC\uB4ED\uB2C8\uB2E4:"),xs=y(),v(St.$$.fragment),Hs=y(),Mt=r("p"),aa=l("\uC774\uC81C "),Ms=r("code"),ra=l("compute_metrics"),oa=l(" \uD568\uC218\uB97C \uC0AC\uC6A9\uD560 \uC900\uBE44\uAC00 \uB418\uC5C8\uC73C\uBA70, \uD559\uC2B5\uC744 \uC124\uC815\uD560 \uB54C \uC774 \uD568\uC218\uB85C \uB418\uB3CC\uC544\uC62C \uAC83\uC785\uB2C8\uB2E4."),Ys=y(),ft=r("h2"),$t=r("a"),$s=r("span"),v(It.$$.fragment),na=y(),_s=r("span"),ia=l("\uD559\uC2B5"),qs=y(),v(_t.$$.fragment),Qs=y(),v(jt.$$.fragment),Ds=y(),ht=r("h2"),wt=r("a"),js=r("span"),v(Nt.$$.fragment),pa=y(),ws=r("span"),ca=l("\uCD94\uB860"),Ps=y(),Qt=r("p"),ma=l("\uC88B\uC544\uC694, \uC774\uC81C \uBAA8\uB378\uC744 \uD30C\uC778\uD29C\uB2DD\uD588\uC73C\uB2C8 \uCD94\uB860\uC5D0 \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4!"),Ls=y(),Dt=r("p"),fa=l("\uC694\uC57D\uD560 \uD14D\uC2A4\uD2B8\uB97C \uC791\uC131\uD574\uBCF4\uC138\uC694. T5\uC758 \uACBD\uC6B0 \uC791\uC5C5\uC5D0 \uB530\uB77C \uC785\uB825 \uC55E\uC5D0 \uC811\uB450\uC0AC\uB97C \uBD99\uC5EC\uC57C \uD569\uB2C8\uB2E4. \uC694\uC57D\uC758 \uACBD\uC6B0, \uC544\uB798\uC640 \uAC19\uC740 \uC811\uB450\uC0AC\uB97C \uC785\uB825 \uC55E\uC5D0 \uBD99\uC5EC\uC57C \uD569\uB2C8\uB2E4:"),Os=y(),v(At.$$.fragment),Ks=y(),rt=r("p"),ha=l("\uCD94\uB860\uC744 \uC704\uD574 \uD30C\uC778\uD29C\uB2DD\uD55C \uBAA8\uB378\uC744 \uC2DC\uD5D8\uD574 \uBCF4\uB294 \uAC00\uC7A5 \uAC04\uB2E8\uD55C \uBC29\uBC95\uC740 "),gs=r("code"),da=l("pipeline()"),ua=l(`\uC5D0\uC11C \uC0AC\uC6A9\uD558\uB294 \uAC83\uC785\uB2C8\uB2E4.
\uBAA8\uB378\uC744 \uC0AC\uC6A9\uD558\uC5EC \uC694\uC57D\uC744 \uC218\uD589\uD560 `),vs=r("code"),ya=l("pipeline()"),ba=l("\uC744 \uC778\uC2A4\uD134\uC2A4\uD654\uD558\uACE0 \uD14D\uC2A4\uD2B8\uB97C \uC804\uB2EC\uD558\uC138\uC694:"),el=y(),v(Ft.$$.fragment),tl=y(),gt=r("p"),Ma=l("\uC6D0\uD55C\uB2E4\uBA74 \uC218\uB3D9\uC73C\uB85C \uB2E4\uC74C\uACFC \uAC19\uC740 \uC791\uC5C5\uC744 \uC218\uD589\uD558\uC5EC "),Us=r("code"),$a=l("pipeline()"),_a=l("\uC758 \uACB0\uACFC\uC640 \uB3D9\uC77C\uD55C \uACB0\uACFC\uB97C \uC5BB\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4:"),sl=y(),v(vt.$$.fragment),this.h()},l(e){const d=Ur('[data-svelte="svelte-1phssyn"]',document.head);p=o(d,"META",{name:!0,content:!0}),d.forEach(s),f=b(e),i=o(e,"H1",{class:!0});var zt=n(i);$=o(zt,"A",{id:!0,class:!0,href:!0});var Es=n($);j=o(Es,"SPAN",{});var ks=n(j);U(g.$$.fragment,ks),ks.forEach(s),Es.forEach(s),G=b(zt),B=o(zt,"SPAN",{});var Ts=n(B);w=a(Ts,"\uC694\uC57D"),Ts.forEach(s),zt.forEach(s),V=b(e),U(R.$$.fragment,e),F=b(e),U(z.$$.fragment,e),W=b(e),S=o(e,"P",{});var Js=n(S);se=a(Js,`\uC694\uC57D\uC740 \uBB38\uC11C\uB098 \uAE30\uC0AC\uC5D0\uC11C \uC911\uC694\uD55C \uC815\uBCF4\uB97C \uBAA8\uB450 \uD3EC\uD568\uD558\uB418 \uC9E7\uAC8C \uB9CC\uB4DC\uB294 \uC77C\uC785\uB2C8\uB2E4.
\uBC88\uC5ED\uACFC \uB9C8\uCC2C\uAC00\uC9C0\uB85C, \uC2DC\uD000\uC2A4-\uD22C-\uC2DC\uD000\uC2A4 \uBB38\uC81C\uB85C \uAD6C\uC131\uD560 \uC218 \uC788\uB294 \uB300\uD45C\uC801\uC778 \uC791\uC5C5 \uC911 \uD558\uB098\uC785\uB2C8\uB2E4.
\uC694\uC57D\uC5D0\uB294 \uC544\uB798\uC640 \uAC19\uC774 \uC720\uD615\uC774 \uC788\uC2B5\uB2C8\uB2E4:`),Js.forEach(s),O=b(e),X=o(e,"UL",{});var al=n(X);L=o(al,"LI",{});var Ua=n(L);Q=a(Ua,"\uCD94\uCD9C(Extractive) \uC694\uC57D: \uBB38\uC11C\uC5D0\uC11C \uAC00\uC7A5 \uAD00\uB828\uC131 \uB192\uC740 \uC815\uBCF4\uB97C \uCD94\uCD9C\uD569\uB2C8\uB2E4."),Ua.forEach(s),D=b(al),P=o(al,"LI",{});var Ea=n(P);N=a(Ea,"\uC0DD\uC131(Abstractive) \uC694\uC57D: \uAC00\uC7A5 \uAD00\uB828\uC131 \uB192\uC740 \uC815\uBCF4\uB97C \uD3EC\uCC29\uD574\uB0B4\uB294 \uC0C8\uB85C\uC6B4 \uD14D\uC2A4\uD2B8\uB97C \uC0DD\uC131\uD569\uB2C8\uB2E4."),Ea.forEach(s),al.forEach(s),x=b(e),h=o(e,"P",{});var ka=n(h);Z=a(ka,"\uC774 \uAC00\uC774\uB4DC\uC5D0\uC11C \uC18C\uAC1C\uD560 \uB0B4\uC6A9\uC740 \uC544\uB798\uC640 \uAC19\uC2B5\uB2C8\uB2E4:"),ka.forEach(s),le=b(e),A=o(e,"OL",{});var rl=n(A);I=o(rl,"LI",{});var Pt=n(I);ae=a(Pt,"\uC0DD\uC131 \uC694\uC57D\uC744 \uC704\uD55C "),H=o(Pt,"A",{href:!0,rel:!0});var Ta=n(H);Be=a(Ta,"BillSum"),Ta.forEach(s),he=a(Pt," \uB370\uC774\uD130\uC14B \uC911 \uCE98\uB9AC\uD3EC\uB2C8\uC544 \uC8FC \uBC95\uC548 \uD558\uC704 \uC9D1\uD569\uC73C\uB85C "),de=o(Pt,"A",{href:!0,rel:!0});var Ja=n(de);We=a(Ja,"T5"),Ja.forEach(s),je=a(Pt,"\uB97C \uD30C\uC778\uD29C\uB2DD\uD569\uB2C8\uB2E4."),Pt.forEach(s),ue=b(rl),ie=o(rl,"LI",{});var Za=n(ie);Me=a(Za,"\uD30C\uC778\uD29C\uB2DD\uB41C \uBAA8\uB378\uC744 \uC0AC\uC6A9\uD558\uC5EC \uCD94\uB860\uD569\uB2C8\uB2E4."),Za.forEach(s),rl.forEach(s),Ce=b(e),U(pe.$$.fragment,e),$e=b(e),ce=o(e,"P",{});var Ga=n(ce);Te=a(Ga,"\uC2DC\uC791\uD558\uAE30 \uC804\uC5D0 \uD544\uC694\uD55C \uB77C\uC774\uBE0C\uB7EC\uB9AC\uAC00 \uBAA8\uB450 \uC124\uCE58\uB418\uC5B4 \uC788\uB294\uC9C0 \uD655\uC778\uD558\uC138\uC694:"),Ga.forEach(s),K=b(e),U(_e.$$.fragment,e),me=b(e),ne=o(e,"P",{});var Ca=n(ne);Xe=a(Ca,`Hugging Face \uACC4\uC815\uC5D0 \uB85C\uADF8\uC778\uD558\uBA74 \uBAA8\uB378\uC744 \uC5C5\uB85C\uB4DC\uD558\uACE0 \uCEE4\uBBA4\uB2C8\uD2F0\uC5D0 \uACF5\uC720\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.
\uD1A0\uD070\uC744 \uC785\uB825\uD558\uC5EC \uB85C\uADF8\uC778\uD558\uC138\uC694.`),Ca.forEach(s),Je=b(e),U(ee.$$.fragment,e),ye=b(e),M=o(e,"H2",{class:!0});var ol=n(M);C=o(ol,"A",{id:!0,class:!0,href:!0});var Va=n(C);we=o(Va,"SPAN",{});var Ra=n(we);U(ge.$$.fragment,Ra),Ra.forEach(s),Va.forEach(s),re=b(ol),oe=o(ol,"SPAN",{});var Ba=n(oe);ve=a(Ba,"BillSum \uB370\uC774\uD130\uC14B \uAC00\uC838\uC624\uAE30"),Ba.forEach(s),ol.forEach(s),Ee=b(e),be=o(e,"P",{});var Wa=n(be);Ve=a(Wa,"\u{1F917} Datasets \uB77C\uC774\uBE0C\uB7EC\uB9AC\uC5D0\uC11C BillSum \uB370\uC774\uD130\uC14B\uC758 \uC791\uC740 \uBC84\uC804\uC778 \uCE98\uB9AC\uD3EC\uB2C8\uC544 \uC8FC \uBC95\uC548 \uD558\uC704 \uC9D1\uD569\uC744 \uAC00\uC838\uC624\uC138\uC694:"),Wa.forEach(s),fe=b(e),U(ke.$$.fragment,e),Re=b(e),te=o(e,"P",{});var ja=n(te);Ze=o(ja,"CODE",{});var Xa=n(Ze);Ue=a(Xa,"train_test_split"),Xa.forEach(s),Ge=a(ja," \uBA54\uC18C\uB4DC\uB85C \uB370\uC774\uD130\uC14B\uC744 \uD559\uC2B5\uC6A9\uC640 \uD14C\uC2A4\uD2B8\uC6A9\uC73C\uB85C \uB098\uB204\uC138\uC694:"),ja.forEach(s),Fe=b(e),U(c.$$.fragment,e),u=b(e),Se=o(e,"P",{});var Sa=n(Se);He=a(Sa,"\uADF8\uB7F0 \uB2E4\uC74C \uC608\uC2DC\uB97C \uD558\uB098 \uC0B4\uD3B4\uBCF4\uC138\uC694:"),Sa.forEach(s),et=b(e),U(ze.$$.fragment,e),Le=b(e),Ye=o(e,"P",{});var Ia=n(Ye);ot=a(Ia,"\uC5EC\uAE30\uC11C \uB2E4\uC74C \uB450 \uAC1C\uC758 \uD544\uB4DC\uB97C \uC0AC\uC6A9\uD558\uAC8C \uB429\uB2C8\uB2E4:"),Ia.forEach(s),qe=b(e),Ne=o(e,"UL",{});var nl=n(Ne);Ie=o(nl,"LI",{});var wa=n(Ie);Oe=o(wa,"CODE",{});var Na=n(Oe);nt=a(Na,"text"),Na.forEach(s),tt=a(wa,": \uBAA8\uB378\uC758 \uC785\uB825\uC774 \uB420 \uBC95\uC548 \uD14D\uC2A4\uD2B8\uC785\uB2C8\uB2E4."),wa.forEach(s),it=b(nl),Ae=o(nl,"LI",{});var Zs=n(Ae);xe=o(Zs,"CODE",{});var Aa=n(xe);pt=a(Aa,"summary"),Aa.forEach(s),ct=a(Zs,": "),Ke=o(Zs,"CODE",{});var Fa=n(Ke);xt=a(Fa,"text"),Fa.forEach(s),Ht=a(Zs,"\uC758 \uAC04\uB7B5\uD55C \uBC84\uC804\uC73C\uB85C \uBAA8\uB378\uC758 \uD0C0\uAC9F\uC774 \uB429\uB2C8\uB2E4."),Zs.forEach(s),nl.forEach(s),kt=b(e),Qe=o(e,"H2",{class:!0});var il=n(Qe);dt=o(il,"A",{id:!0,class:!0,href:!0});var za=n(dt);ls=o(za,"SPAN",{});var xa=n(ls);U(Tt.$$.fragment,xa),xa.forEach(s),za.forEach(s),Ml=b(il),as=o(il,"SPAN",{});var Ha=n(as);$l=a(Ha,"\uC804\uCC98\uB9AC"),Ha.forEach(s),il.forEach(s),Gs=b(e),st=o(e,"P",{});var Lt=n(st);_l=a(Lt,"\uB2E4\uC74C\uC73C\uB85C "),rs=o(Lt,"CODE",{});var Ya=n(rs);jl=a(Ya,"text"),Ya.forEach(s),wl=a(Lt,"\uC640 "),os=o(Lt,"CODE",{});var qa=n(os);gl=a(qa,"summary"),qa.forEach(s),vl=a(Lt,"\uB97C \uCC98\uB9AC\uD558\uAE30 \uC704\uD55C T5 \uD1A0\uD06C\uB098\uC774\uC800\uB97C \uAC00\uC838\uC635\uB2C8\uB2E4:"),Lt.forEach(s),Cs=b(e),U(Jt.$$.fragment,e),Vs=b(e),Yt=o(e,"P",{});var Qa=n(Yt);Ul=a(Qa,"\uC0DD\uC131\uD558\uB824\uB294 \uC804\uCC98\uB9AC \uD568\uC218\uB294 \uC544\uB798 \uC870\uAC74\uC744 \uB9CC\uC871\uD574\uC57C \uD569\uB2C8\uB2E4:"),Qa.forEach(s),Rs=b(e),lt=o(e,"OL",{});var Ot=n(lt);ns=o(Ot,"LI",{});var Da=n(ns);El=a(Da,"\uC785\uB825 \uC55E\uC5D0 \uD504\uB86C\uD504\uD2B8\uB97C \uBD99\uC5EC T5\uAC00 \uC694\uC57D \uC791\uC5C5\uC784\uC744 \uC778\uC2DD\uD560 \uC218 \uC788\uB3C4\uB85D \uD569\uB2C8\uB2E4. \uC5EC\uB7EC NLP \uC791\uC5C5\uC744 \uC218\uD589\uD560 \uC218 \uC788\uB294 \uC77C\uBD80 \uBAA8\uB378\uC740 \uD2B9\uC815 \uC791\uC5C5\uC5D0 \uB300\uD55C \uD504\uB86C\uD504\uD2B8\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4."),Da.forEach(s),kl=b(Ot),Zt=o(Ot,"LI",{});var pl=n(Zt);Tl=a(pl,"\uB808\uC774\uBE14\uC744 \uD1A0\uD070\uD654\uD560 \uB54C "),is=o(pl,"CODE",{});var Pa=n(is);Jl=a(Pa,"text_target"),Pa.forEach(s),Zl=a(pl," \uC778\uC218\uB97C \uC0AC\uC6A9\uD569\uB2C8\uB2E4."),pl.forEach(s),Gl=b(Ot),qt=o(Ot,"LI",{});var ga=n(qt);ps=o(ga,"CODE",{});var La=n(ps);Cl=a(La,"max_length"),La.forEach(s),Vl=a(ga," \uB9E4\uAC1C\uBCC0\uC218\uB85C \uC124\uC815\uB41C \uCD5C\uB300 \uAE38\uC774\uB97C \uB118\uC9C0 \uC54A\uB3C4\uB85D \uAE34 \uC2DC\uD000\uC2A4\uB97C \uC798\uB77C\uB0C5\uB2C8\uB2E4."),ga.forEach(s),Ot.forEach(s),Bs=b(e),U(Gt.$$.fragment,e),Ws=b(e),De=o(e,"P",{});var Ut=n(De);Rl=a(Ut,"\uC804\uCCB4 \uB370\uC774\uD130\uC14B\uC5D0 \uC804\uCC98\uB9AC \uD568\uC218\uB97C \uC801\uC6A9\uD558\uB824\uBA74 \u{1F917} Datasets\uC758 "),cs=o(Ut,"CODE",{});var Oa=n(cs);Bl=a(Oa,"map"),Oa.forEach(s),Wl=a(Ut,` \uBA54\uC18C\uB4DC\uB97C \uC0AC\uC6A9\uD558\uC138\uC694.
`),ms=o(Ut,"CODE",{});var Ka=n(ms);Xl=a(Ka,"batched=True"),Ka.forEach(s),Sl=a(Ut,"\uB85C \uC124\uC815\uD558\uC5EC \uB370\uC774\uD130\uC14B\uC758 \uC5EC\uB7EC \uC694\uC18C\uB97C \uD55C \uBC88\uC5D0 \uCC98\uB9AC\uD558\uBA74 "),fs=o(Ut,"CODE",{});var er=n(fs);Il=a(er,"map"),er.forEach(s),Nl=a(Ut," \uD568\uC218\uC758 \uC18D\uB3C4\uB97C \uB192\uC77C \uC218 \uC788\uC2B5\uB2C8\uB2E4."),Ut.forEach(s),Xs=b(e),U(Ct.$$.fragment,e),Ss=b(e),at=o(e,"P",{});var Kt=n(at);Al=a(Kt,"\uC774\uC81C "),hs=o(Kt,"CODE",{});var tr=n(hs);Fl=a(tr,"DataCollatorForSeq2Seq"),tr.forEach(s),zl=a(Kt,`\uB97C \uC0AC\uC6A9\uD558\uC5EC \uC608\uC81C \uBC30\uCE58\uB97C \uB9CC\uB4DC\uC138\uC694.
\uC804\uCCB4 \uB370\uC774\uD130\uC14B\uC744 \uCD5C\uB300 \uAE38\uC774\uB85C \uD328\uB529\uD558\uB294 \uAC83\uBCF4\uB2E4 \uBC30\uCE58\uB9C8\uB2E4 \uAC00\uC7A5 \uAE34 \uBB38\uC7A5 \uAE38\uC774\uC5D0 \uB9DE\uCDB0 `),ds=o(Kt,"EM",{});var sr=n(ds);xl=a(sr,"\uB3D9\uC801 \uD328\uB529"),sr.forEach(s),Hl=a(Kt,"\uD558\uB294 \uAC83\uC774 \uB354 \uD6A8\uC728\uC801\uC785\uB2C8\uB2E4."),Kt.forEach(s),Is=b(e),U(ut.$$.fragment,e),Ns=b(e),mt=o(e,"H2",{class:!0});var cl=n(mt);yt=o(cl,"A",{id:!0,class:!0,href:!0});var lr=n(yt);us=o(lr,"SPAN",{});var ar=n(us);U(Vt.$$.fragment,ar),ar.forEach(s),lr.forEach(s),Yl=b(cl),ys=o(cl,"SPAN",{});var rr=n(ys);ql=a(rr,"\uD3C9\uAC00"),rr.forEach(s),cl.forEach(s),As=b(e),Pe=o(e,"P",{});var Et=n(Pe);Ql=a(Et,`\uD559\uC2B5 \uC911\uC5D0 \uD3C9\uAC00 \uC9C0\uD45C\uB97C \uD3EC\uD568\uD558\uBA74 \uBAA8\uB378\uC758 \uC131\uB2A5\uC744 \uD3C9\uAC00\uD558\uB294 \uB370 \uB3C4\uC6C0\uC774 \uB418\uB294 \uACBD\uC6B0\uAC00 \uB9CE\uC2B5\uB2C8\uB2E4.
\u{1F917} `),Rt=o(Et,"A",{href:!0,rel:!0});var or=n(Rt);Dl=a(or,"Evaluate"),or.forEach(s),Pl=a(Et,` \uB77C\uC774\uBE0C\uB7EC\uB9AC\uB97C \uC0AC\uC6A9\uD558\uBA74 \uD3C9\uAC00 \uBC29\uBC95\uC744 \uBE60\uB974\uAC8C \uBD88\uB7EC\uC62C \uC218 \uC788\uC2B5\uB2C8\uB2E4.
\uC774 \uC791\uC5C5\uC5D0\uC11C\uB294 `),Bt=o(Et,"A",{href:!0,rel:!0});var nr=n(Bt);Ll=a(nr,"ROUGE"),nr.forEach(s),Ol=a(Et,` \uD3C9\uAC00 \uC9C0\uD45C\uB97C \uAC00\uC838\uC635\uB2C8\uB2E4.
(\uD3C9\uAC00 \uC9C0\uD45C\uB97C \uBD88\uB7EC\uC624\uACE0 \uACC4\uC0B0\uD558\uB294 \uBC29\uBC95\uC740 \u{1F917} Evaluate `),Wt=o(Et,"A",{href:!0,rel:!0});var ir=n(Wt);Kl=a(ir,"\uB458\uB7EC\uBCF4\uAE30"),ir.forEach(s),ea=a(Et,"\uB97C \uCC38\uC870\uD558\uC138\uC694.)"),Et.forEach(s),Fs=b(e),U(Xt.$$.fragment,e),zs=b(e),bt=o(e,"P",{});var ml=n(bt);ta=a(ml,"\uADF8\uB7F0 \uB2E4\uC74C \uC608\uCE21\uAC12\uACFC \uB808\uC774\uBE14\uC744 "),bs=o(ml,"CODE",{});var pr=n(bs);sa=a(pr,"compute"),pr.forEach(s),la=a(ml,"\uC5D0 \uC804\uB2EC\uD558\uC5EC ROUGE \uC9C0\uD45C\uB97C \uACC4\uC0B0\uD558\uB294 \uD568\uC218\uB97C \uB9CC\uB4ED\uB2C8\uB2E4:"),ml.forEach(s),xs=b(e),U(St.$$.fragment,e),Hs=b(e),Mt=o(e,"P",{});var fl=n(Mt);aa=a(fl,"\uC774\uC81C "),Ms=o(fl,"CODE",{});var cr=n(Ms);ra=a(cr,"compute_metrics"),cr.forEach(s),oa=a(fl," \uD568\uC218\uB97C \uC0AC\uC6A9\uD560 \uC900\uBE44\uAC00 \uB418\uC5C8\uC73C\uBA70, \uD559\uC2B5\uC744 \uC124\uC815\uD560 \uB54C \uC774 \uD568\uC218\uB85C \uB418\uB3CC\uC544\uC62C \uAC83\uC785\uB2C8\uB2E4."),fl.forEach(s),Ys=b(e),ft=o(e,"H2",{class:!0});var hl=n(ft);$t=o(hl,"A",{id:!0,class:!0,href:!0});var mr=n($t);$s=o(mr,"SPAN",{});var fr=n($s);U(It.$$.fragment,fr),fr.forEach(s),mr.forEach(s),na=b(hl),_s=o(hl,"SPAN",{});var hr=n(_s);ia=a(hr,"\uD559\uC2B5"),hr.forEach(s),hl.forEach(s),qs=b(e),U(_t.$$.fragment,e),Qs=b(e),U(jt.$$.fragment,e),Ds=b(e),ht=o(e,"H2",{class:!0});var dl=n(ht);wt=o(dl,"A",{id:!0,class:!0,href:!0});var dr=n(wt);js=o(dr,"SPAN",{});var ur=n(js);U(Nt.$$.fragment,ur),ur.forEach(s),dr.forEach(s),pa=b(dl),ws=o(dl,"SPAN",{});var yr=n(ws);ca=a(yr,"\uCD94\uB860"),yr.forEach(s),dl.forEach(s),Ps=b(e),Qt=o(e,"P",{});var br=n(Qt);ma=a(br,"\uC88B\uC544\uC694, \uC774\uC81C \uBAA8\uB378\uC744 \uD30C\uC778\uD29C\uB2DD\uD588\uC73C\uB2C8 \uCD94\uB860\uC5D0 \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4!"),br.forEach(s),Ls=b(e),Dt=o(e,"P",{});var Mr=n(Dt);fa=a(Mr,"\uC694\uC57D\uD560 \uD14D\uC2A4\uD2B8\uB97C \uC791\uC131\uD574\uBCF4\uC138\uC694. T5\uC758 \uACBD\uC6B0 \uC791\uC5C5\uC5D0 \uB530\uB77C \uC785\uB825 \uC55E\uC5D0 \uC811\uB450\uC0AC\uB97C \uBD99\uC5EC\uC57C \uD569\uB2C8\uB2E4. \uC694\uC57D\uC758 \uACBD\uC6B0, \uC544\uB798\uC640 \uAC19\uC740 \uC811\uB450\uC0AC\uB97C \uC785\uB825 \uC55E\uC5D0 \uBD99\uC5EC\uC57C \uD569\uB2C8\uB2E4:"),Mr.forEach(s),Os=b(e),U(At.$$.fragment,e),Ks=b(e),rt=o(e,"P",{});var es=n(rt);ha=a(es,"\uCD94\uB860\uC744 \uC704\uD574 \uD30C\uC778\uD29C\uB2DD\uD55C \uBAA8\uB378\uC744 \uC2DC\uD5D8\uD574 \uBCF4\uB294 \uAC00\uC7A5 \uAC04\uB2E8\uD55C \uBC29\uBC95\uC740 "),gs=o(es,"CODE",{});var $r=n(gs);da=a($r,"pipeline()"),$r.forEach(s),ua=a(es,`\uC5D0\uC11C \uC0AC\uC6A9\uD558\uB294 \uAC83\uC785\uB2C8\uB2E4.
\uBAA8\uB378\uC744 \uC0AC\uC6A9\uD558\uC5EC \uC694\uC57D\uC744 \uC218\uD589\uD560 `),vs=o(es,"CODE",{});var _r=n(vs);ya=a(_r,"pipeline()"),_r.forEach(s),ba=a(es,"\uC744 \uC778\uC2A4\uD134\uC2A4\uD654\uD558\uACE0 \uD14D\uC2A4\uD2B8\uB97C \uC804\uB2EC\uD558\uC138\uC694:"),es.forEach(s),el=b(e),U(Ft.$$.fragment,e),tl=b(e),gt=o(e,"P",{});var ul=n(gt);Ma=a(ul,"\uC6D0\uD55C\uB2E4\uBA74 \uC218\uB3D9\uC73C\uB85C \uB2E4\uC74C\uACFC \uAC19\uC740 \uC791\uC5C5\uC744 \uC218\uD589\uD558\uC5EC "),Us=o(ul,"CODE",{});var jr=n(Us);$a=a(jr,"pipeline()"),jr.forEach(s),_a=a(ul,"\uC758 \uACB0\uACFC\uC640 \uB3D9\uC77C\uD55C \uACB0\uACFC\uB97C \uC5BB\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4:"),ul.forEach(s),sl=b(e),U(vt.$$.fragment,e),this.h()},h(){_(p,"name","hf:doc:metadata"),_(p,"content",JSON.stringify(Yr)),_($,"id","summarization"),_($,"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"),_($,"href","#summarization"),_(i,"class","relative group"),_(H,"href","https://huggingface.co/datasets/billsum"),_(H,"rel","nofollow"),_(de,"href","https://huggingface.co/t5-small"),_(de,"rel","nofollow"),_(C,"id","load-billsum-dataset"),_(C,"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"),_(C,"href","#load-billsum-dataset"),_(M,"class","relative group"),_(dt,"id","preprocess"),_(dt,"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"),_(dt,"href","#preprocess"),_(Qe,"class","relative group"),_(yt,"id","evaluate"),_(yt,"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"),_(yt,"href","#evaluate"),_(mt,"class","relative group"),_(Rt,"href","https://huggingface.co/docs/evaluate/index"),_(Rt,"rel","nofollow"),_(Bt,"href","https://huggingface.co/spaces/evaluate-metric/rouge"),_(Bt,"rel","nofollow"),_(Wt,"href","https://huggingface.co/docs/evaluate/a_quick_tour"),_(Wt,"rel","nofollow"),_($t,"id","train"),_($t,"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"),_($t,"href","#train"),_(ft,"class","relative group"),_(wt,"id","inference"),_(wt,"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"),_(wt,"href","#inference"),_(ht,"class","relative group")},m(e,d){t(document.head,p),m(e,f,d),m(e,i,d),t(i,$),t($,j),E(g,j,null),t(i,G),t(i,B),t(B,w),m(e,V,d),E(R,e,d),m(e,F,d),E(z,e,d),m(e,W,d),m(e,S,d),t(S,se),m(e,O,d),m(e,X,d),t(X,L),t(L,Q),t(X,D),t(X,P),t(P,N),m(e,x,d),m(e,h,d),t(h,Z),m(e,le,d),m(e,A,d),t(A,I),t(I,ae),t(I,H),t(H,Be),t(I,he),t(I,de),t(de,We),t(I,je),t(A,ue),t(A,ie),t(ie,Me),m(e,Ce,d),E(pe,e,d),m(e,$e,d),m(e,ce,d),t(ce,Te),m(e,K,d),E(_e,e,d),m(e,me,d),m(e,ne,d),t(ne,Xe),m(e,Je,d),E(ee,e,d),m(e,ye,d),m(e,M,d),t(M,C),t(C,we),E(ge,we,null),t(M,re),t(M,oe),t(oe,ve),m(e,Ee,d),m(e,be,d),t(be,Ve),m(e,fe,d),E(ke,e,d),m(e,Re,d),m(e,te,d),t(te,Ze),t(Ze,Ue),t(te,Ge),m(e,Fe,d),E(c,e,d),m(e,u,d),m(e,Se,d),t(Se,He),m(e,et,d),E(ze,e,d),m(e,Le,d),m(e,Ye,d),t(Ye,ot),m(e,qe,d),m(e,Ne,d),t(Ne,Ie),t(Ie,Oe),t(Oe,nt),t(Ie,tt),t(Ne,it),t(Ne,Ae),t(Ae,xe),t(xe,pt),t(Ae,ct),t(Ae,Ke),t(Ke,xt),t(Ae,Ht),m(e,kt,d),m(e,Qe,d),t(Qe,dt),t(dt,ls),E(Tt,ls,null),t(Qe,Ml),t(Qe,as),t(as,$l),m(e,Gs,d),m(e,st,d),t(st,_l),t(st,rs),t(rs,jl),t(st,wl),t(st,os),t(os,gl),t(st,vl),m(e,Cs,d),E(Jt,e,d),m(e,Vs,d),m(e,Yt,d),t(Yt,Ul),m(e,Rs,d),m(e,lt,d),t(lt,ns),t(ns,El),t(lt,kl),t(lt,Zt),t(Zt,Tl),t(Zt,is),t(is,Jl),t(Zt,Zl),t(lt,Gl),t(lt,qt),t(qt,ps),t(ps,Cl),t(qt,Vl),m(e,Bs,d),E(Gt,e,d),m(e,Ws,d),m(e,De,d),t(De,Rl),t(De,cs),t(cs,Bl),t(De,Wl),t(De,ms),t(ms,Xl),t(De,Sl),t(De,fs),t(fs,Il),t(De,Nl),m(e,Xs,d),E(Ct,e,d),m(e,Ss,d),m(e,at,d),t(at,Al),t(at,hs),t(hs,Fl),t(at,zl),t(at,ds),t(ds,xl),t(at,Hl),m(e,Is,d),E(ut,e,d),m(e,Ns,d),m(e,mt,d),t(mt,yt),t(yt,us),E(Vt,us,null),t(mt,Yl),t(mt,ys),t(ys,ql),m(e,As,d),m(e,Pe,d),t(Pe,Ql),t(Pe,Rt),t(Rt,Dl),t(Pe,Pl),t(Pe,Bt),t(Bt,Ll),t(Pe,Ol),t(Pe,Wt),t(Wt,Kl),t(Pe,ea),m(e,Fs,d),E(Xt,e,d),m(e,zs,d),m(e,bt,d),t(bt,ta),t(bt,bs),t(bs,sa),t(bt,la),m(e,xs,d),E(St,e,d),m(e,Hs,d),m(e,Mt,d),t(Mt,aa),t(Mt,Ms),t(Ms,ra),t(Mt,oa),m(e,Ys,d),m(e,ft,d),t(ft,$t),t($t,$s),E(It,$s,null),t(ft,na),t(ft,_s),t(_s,ia),m(e,qs,d),E(_t,e,d),m(e,Qs,d),E(jt,e,d),m(e,Ds,d),m(e,ht,d),t(ht,wt),t(wt,js),E(Nt,js,null),t(ht,pa),t(ht,ws),t(ws,ca),m(e,Ps,d),m(e,Qt,d),t(Qt,ma),m(e,Ls,d),m(e,Dt,d),t(Dt,fa),m(e,Os,d),E(At,e,d),m(e,Ks,d),m(e,rt,d),t(rt,ha),t(rt,gs),t(gs,da),t(rt,ua),t(rt,vs),t(vs,ya),t(rt,ba),m(e,el,d),E(Ft,e,d),m(e,tl,d),m(e,gt,d),t(gt,Ma),t(gt,Us),t(Us,$a),t(gt,_a),m(e,sl,d),E(vt,e,d),ll=!0},p(e,[d]){const zt={};d&2&&(zt.$$scope={dirty:d,ctx:e}),pe.$set(zt);const Es={};d&2&&(Es.$$scope={dirty:d,ctx:e}),ut.$set(Es);const ks={};d&2&&(ks.$$scope={dirty:d,ctx:e}),_t.$set(ks);const Ts={};d&2&&(Ts.$$scope={dirty:d,ctx:e}),jt.$set(Ts);const Js={};d&2&&(Js.$$scope={dirty:d,ctx:e}),vt.$set(Js)},i(e){ll||(k(g.$$.fragment,e),k(R.$$.fragment,e),k(z.$$.fragment,e),k(pe.$$.fragment,e),k(_e.$$.fragment,e),k(ee.$$.fragment,e),k(ge.$$.fragment,e),k(ke.$$.fragment,e),k(c.$$.fragment,e),k(ze.$$.fragment,e),k(Tt.$$.fragment,e),k(Jt.$$.fragment,e),k(Gt.$$.fragment,e),k(Ct.$$.fragment,e),k(ut.$$.fragment,e),k(Vt.$$.fragment,e),k(Xt.$$.fragment,e),k(St.$$.fragment,e),k(It.$$.fragment,e),k(_t.$$.fragment,e),k(jt.$$.fragment,e),k(Nt.$$.fragment,e),k(At.$$.fragment,e),k(Ft.$$.fragment,e),k(vt.$$.fragment,e),ll=!0)},o(e){T(g.$$.fragment,e),T(R.$$.fragment,e),T(z.$$.fragment,e),T(pe.$$.fragment,e),T(_e.$$.fragment,e),T(ee.$$.fragment,e),T(ge.$$.fragment,e),T(ke.$$.fragment,e),T(c.$$.fragment,e),T(ze.$$.fragment,e),T(Tt.$$.fragment,e),T(Jt.$$.fragment,e),T(Gt.$$.fragment,e),T(Ct.$$.fragment,e),T(ut.$$.fragment,e),T(Vt.$$.fragment,e),T(Xt.$$.fragment,e),T(St.$$.fragment,e),T(It.$$.fragment,e),T(_t.$$.fragment,e),T(jt.$$.fragment,e),T(Nt.$$.fragment,e),T(At.$$.fragment,e),T(Ft.$$.fragment,e),T(vt.$$.fragment,e),ll=!1},d(e){s(p),e&&s(f),e&&s(i),J(g),e&&s(V),J(R,e),e&&s(F),J(z,e),e&&s(W),e&&s(S),e&&s(O),e&&s(X),e&&s(x),e&&s(h),e&&s(le),e&&s(A),e&&s(Ce),J(pe,e),e&&s($e),e&&s(ce),e&&s(K),J(_e,e),e&&s(me),e&&s(ne),e&&s(Je),J(ee,e),e&&s(ye),e&&s(M),J(ge),e&&s(Ee),e&&s(be),e&&s(fe),J(ke,e),e&&s(Re),e&&s(te),e&&s(Fe),J(c,e),e&&s(u),e&&s(Se),e&&s(et),J(ze,e),e&&s(Le),e&&s(Ye),e&&s(qe),e&&s(Ne),e&&s(kt),e&&s(Qe),J(Tt),e&&s(Gs),e&&s(st),e&&s(Cs),J(Jt,e),e&&s(Vs),e&&s(Yt),e&&s(Rs),e&&s(lt),e&&s(Bs),J(Gt,e),e&&s(Ws),e&&s(De),e&&s(Xs),J(Ct,e),e&&s(Ss),e&&s(at),e&&s(Is),J(ut,e),e&&s(Ns),e&&s(mt),J(Vt),e&&s(As),e&&s(Pe),e&&s(Fs),J(Xt,e),e&&s(zs),e&&s(bt),e&&s(xs),J(St,e),e&&s(Hs),e&&s(Mt),e&&s(Ys),e&&s(ft),J(It),e&&s(qs),J(_t,e),e&&s(Qs),J(jt,e),e&&s(Ds),e&&s(ht),J(Nt),e&&s(Ps),e&&s(Qt),e&&s(Ls),e&&s(Dt),e&&s(Os),J(At,e),e&&s(Ks),e&&s(rt),e&&s(el),J(Ft,e),e&&s(tl),e&&s(gt),e&&s(sl),J(vt,e)}}}const Yr={local:"summarization",sections:[{local:"load-billsum-dataset",title:"BillSum \uB370\uC774\uD130\uC14B \uAC00\uC838\uC624\uAE30"},{local:"preprocess",title:"\uC804\uCC98\uB9AC"},{local:"evaluate",title:"\uD3C9\uAC00"},{local:"train",title:"\uD559\uC2B5"},{local:"inference",title:"\uCD94\uB860"}],title:"\uC694\uC57D"};function qr(Y){return Er(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class to extends wr{constructor(p){super();gr(this,p,qr,Hr,vr,{})}}export{to as default,Yr as metadata};
