import{s as Jt,o as Ut,n as Te}from"../chunks/scheduler.36a0863c.js";import{S as _t,i as Ct,g as h,s as p,u as g,A as kt,h as u,f as s,c as m,j as F,v as y,y as w,k as x,o as E,a as n,w as M,d as b,t as $,x as j}from"../chunks/index.d0f7a4c4.js";import{T as at}from"../chunks/Tip.4c7d7eb1.js";import{Y as xt}from"../chunks/Youtube.d15bb502.js";import{I as tt}from"../chunks/IconCopyLink.bc5fad79.js";import{C as B}from"../chunks/CodeBlock.4236768d.js";import{F as Tt,M as st}from"../chunks/Markdown.2bf44d4a.js";function Zt(T){let t,r='Consulta la <a href="https://huggingface.co/tasks/summarization" rel="nofollow">página de la tarea</a> de generación de resúmenes para obtener más información sobre sus modelos, datasets y métricas asociadas.';return{c(){t=h("p"),t.innerHTML=r},l(a){t=u(a,"P",{"data-svelte-h":!0}),w(t)!=="svelte-16v2ryx"&&(t.innerHTML=r)},m(a,i){n(a,t,i)},p:Te,d(a){a&&s(t)}}}function qt(T){let t,r;return t=new B({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMERhdGFDb2xsYXRvckZvclNlcTJTZXElMEElMEFkYXRhX2NvbGxhdG9yJTIwJTNEJTIwRGF0YUNvbGxhdG9yRm9yU2VxMlNlcSh0b2tlbml6ZXIlM0R0b2tlbml6ZXIlMkMlMjBtb2RlbCUzRG1vZGVsKQ==",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=model)`,wrap:!1}}),{c(){g(t.$$.fragment)},l(a){y(t.$$.fragment,a)},m(a,i){M(t,a,i),r=!0},p:Te,i(a){r||(b(t.$$.fragment,a),r=!0)},o(a){$(t.$$.fragment,a),r=!1},d(a){j(t,a)}}}function Et(T){let t,r;return t=new st({props:{$$slots:{default:[qt]},$$scope:{ctx:T}}}),{c(){g(t.$$.fragment)},l(a){y(t.$$.fragment,a)},m(a,i){M(t,a,i),r=!0},p(a,i){const d={};i&2&&(d.$$scope={dirty:i,ctx:a}),t.$set(d)},i(a){r||(b(t.$$.fragment,a),r=!0)},o(a){$(t.$$.fragment,a),r=!1},d(a){j(t,a)}}}function Gt(T){let t,r;return t=new B({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMERhdGFDb2xsYXRvckZvclNlcTJTZXElMEElMEFkYXRhX2NvbGxhdG9yJTIwJTNEJTIwRGF0YUNvbGxhdG9yRm9yU2VxMlNlcSh0b2tlbml6ZXIlM0R0b2tlbml6ZXIlMkMlMjBtb2RlbCUzRG1vZGVsJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJ0ZiUyMik=",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=model, return_tensors=<span class="hljs-string">&quot;tf&quot;</span>)`,wrap:!1}}),{c(){g(t.$$.fragment)},l(a){y(t.$$.fragment,a)},m(a,i){M(t,a,i),r=!0},p:Te,i(a){r||(b(t.$$.fragment,a),r=!0)},o(a){$(t.$$.fragment,a),r=!1},d(a){j(t,a)}}}function Rt(T){let t,r;return t=new st({props:{$$slots:{default:[Gt]},$$scope:{ctx:T}}}),{c(){g(t.$$.fragment)},l(a){y(t.$$.fragment,a)},m(a,i){M(t,a,i),r=!0},p(a,i){const d={};i&2&&(d.$$scope={dirty:i,ctx:a}),t.$set(d)},i(a){r||(b(t.$$.fragment,a),r=!0)},o(a){$(t.$$.fragment,a),r=!1},d(a){j(t,a)}}}function St(T){let t,r='Para familiarizarte con el proceso para realizar fine-tuning sobre un modelo con <code>Trainer</code>, ¡mira el tutorial básico <a href="../training#finetune-with-trainer">aquí</a>!';return{c(){t=h("p"),t.innerHTML=r},l(a){t=u(a,"P",{"data-svelte-h":!0}),w(t)!=="svelte-g0neip"&&(t.innerHTML=r)},m(a,i){n(a,t,i)},p:Te,d(a){a&&s(t)}}}function zt(T){let t,r="Carga T5 con <code>AutoModelForSeq2SeqLM</code>:",a,i,d,v,R,U,H="En este punto, solo faltan tres pasos:",G,C,X="<li>Definir tus hiperparámetros de entrenamiento en <code>Seq2SeqTrainingArguments</code>.</li> <li>Pasarle los argumentos de entrenamiento a <code>Seq2SeqTrainer</code> junto con el modelo, dataset y data collator.</li> <li>Llamar <code>train()</code> para realizar el fine-tuning sobre tu modelo.</li>",_,S,Z;return i=new B({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbEZvclNlcTJTZXFMTSUyQyUyMFNlcTJTZXFUcmFpbmluZ0FyZ3VtZW50cyUyQyUyMFNlcTJTZXFUcmFpbmVyJTBBJTBBbW9kZWwlMjAlM0QlMjBBdXRvTW9kZWxGb3JTZXEyU2VxTE0uZnJvbV9wcmV0cmFpbmVkKCUyMnQ1LXNtYWxsJTIyKQ==",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(<span class="hljs-string">&quot;t5-small&quot;</span>)`,wrap:!1}}),v=new at({props:{$$slots:{default:[St]},$$scope:{ctx:T}}}),S=new B({props:{code:"dHJhaW5pbmdfYXJncyUyMCUzRCUyMFNlcTJTZXFUcmFpbmluZ0FyZ3VtZW50cyglMEElMjAlMjAlMjAlMjBvdXRwdXRfZGlyJTNEJTIyLiUyRnJlc3VsdHMlMjIlMkMlMEElMjAlMjAlMjAlMjBldmFsdWF0aW9uX3N0cmF0ZWd5JTNEJTIyZXBvY2glMjIlMkMlMEElMjAlMjAlMjAlMjBsZWFybmluZ19yYXRlJTNEMmUtNSUyQyUwQSUyMCUyMCUyMCUyMHBlcl9kZXZpY2VfdHJhaW5fYmF0Y2hfc2l6ZSUzRDE2JTJDJTBBJTIwJTIwJTIwJTIwcGVyX2RldmljZV9ldmFsX2JhdGNoX3NpemUlM0QxNiUyQyUwQSUyMCUyMCUyMCUyMHdlaWdodF9kZWNheSUzRDAuMDElMkMlMEElMjAlMjAlMjAlMjBzYXZlX3RvdGFsX2xpbWl0JTNEMyUyQyUwQSUyMCUyMCUyMCUyMG51bV90cmFpbl9lcG9jaHMlM0QxJTJDJTBBJTIwJTIwJTIwJTIwZnAxNiUzRFRydWUlMkMlMEEpJTBBJTBBdHJhaW5lciUyMCUzRCUyMFNlcTJTZXFUcmFpbmVyKCUwQSUyMCUyMCUyMCUyMG1vZGVsJTNEbW9kZWwlMkMlMEElMjAlMjAlMjAlMjBhcmdzJTNEdHJhaW5pbmdfYXJncyUyQyUwQSUyMCUyMCUyMCUyMHRyYWluX2RhdGFzZXQlM0R0b2tlbml6ZWRfYmlsbHN1bSU1QiUyMnRyYWluJTIyJTVEJTJDJTBBJTIwJTIwJTIwJTIwZXZhbF9kYXRhc2V0JTNEdG9rZW5pemVkX2JpbGxzdW0lNUIlMjJ0ZXN0JTIyJTVEJTJDJTBBJTIwJTIwJTIwJTIwdG9rZW5pemVyJTNEdG9rZW5pemVyJTJDJTBBJTIwJTIwJTIwJTIwZGF0YV9jb2xsYXRvciUzRGRhdGFfY29sbGF0b3IlMkMlMEEpJTBBJTBBdHJhaW5lci50cmFpbigp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>training_args = Seq2SeqTrainingArguments(
<span class="hljs-meta">... </span>    output_dir=<span class="hljs-string">&quot;./results&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">1</span>,
<span class="hljs-meta">... </span>    fp16=<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>)

<span class="hljs-meta">&gt;&gt;&gt; </span>trainer.train()`,wrap:!1}}),{c(){t=h("p"),t.innerHTML=r,a=p(),g(i.$$.fragment),d=p(),g(v.$$.fragment),R=p(),U=h("p"),U.textContent=H,G=p(),C=h("ol"),C.innerHTML=X,_=p(),g(S.$$.fragment)},l(c){t=u(c,"P",{"data-svelte-h":!0}),w(t)!=="svelte-17h7fia"&&(t.innerHTML=r),a=m(c),y(i.$$.fragment,c),d=m(c),y(v.$$.fragment,c),R=m(c),U=u(c,"P",{"data-svelte-h":!0}),w(U)!=="svelte-zndo63"&&(U.textContent=H),G=m(c),C=u(c,"OL",{"data-svelte-h":!0}),w(C)!=="svelte-hfpwqa"&&(C.innerHTML=X),_=m(c),y(S.$$.fragment,c)},m(c,J){n(c,t,J),n(c,a,J),M(i,c,J),n(c,d,J),M(v,c,J),n(c,R,J),n(c,U,J),n(c,G,J),n(c,C,J),n(c,_,J),M(S,c,J),Z=!0},p(c,J){const k={};J&2&&(k.$$scope={dirty:J,ctx:c}),v.$set(k)},i(c){Z||(b(i.$$.fragment,c),b(v.$$.fragment,c),b(S.$$.fragment,c),Z=!0)},o(c){$(i.$$.fragment,c),$(v.$$.fragment,c),$(S.$$.fragment,c),Z=!1},d(c){c&&(s(t),s(a),s(d),s(R),s(U),s(G),s(C),s(_)),j(i,c),j(v,c),j(S,c)}}}function Bt(T){let t,r;return t=new st({props:{$$slots:{default:[zt]},$$scope:{ctx:T}}}),{c(){g(t.$$.fragment)},l(a){y(t.$$.fragment,a)},m(a,i){M(t,a,i),r=!0},p(a,i){const d={};i&2&&(d.$$scope={dirty:i,ctx:a}),t.$set(d)},i(a){r||(b(t.$$.fragment,a),r=!0)},o(a){$(t.$$.fragment,a),r=!1},d(a){j(t,a)}}}function Ft(T){let t,r='Para familiarizarte con el fine-tuning con Keras, ¡mira el tutorial básico <a href="training#finetune-with-keras">aquí</a>!';return{c(){t=h("p"),t.innerHTML=r},l(a){t=u(a,"P",{"data-svelte-h":!0}),w(t)!=="svelte-66s4ry"&&(t.innerHTML=r)},m(a,i){n(a,t,i)},p:Te,d(a){a&&s(t)}}}function It(T){let t,r="Para hacer fine-tuning de un modelo en TensorFlow, comienza por convertir tus datasets al formato <code>tf.data.Dataset</code> con <code>to_tf_dataset</code>. Especifica los inputs y etiquetas en <code>columns</code>, el tamaño de lote, el data collator, y si es necesario mezclar el dataset:",a,i,d,v,R,U,H="Crea la función optimizadora, establece la tasa de aprendizaje y algunos hiperparámetros de entrenamiento:",G,C,X,_,S="Carga T5 con <code>TFAutoModelForSeq2SeqLM</code>:",Z,c,J,k,Je='Configura el modelo para entrenamiento con <a href="https://keras.io/api/models/model_training_apis/#compile-method" rel="nofollow"><code>compile</code></a>:',N,z,ee,W,A='Llama a <a href="https://keras.io/api/models/model_training_apis/#fit-method" rel="nofollow"><code>fit</code></a> para realizar el fine-tuning del modelo:',V,q,I;return i=new B({props:{code:"dGZfdHJhaW5fc2V0JTIwJTNEJTIwdG9rZW5pemVkX2JpbGxzdW0lNUIlMjJ0cmFpbiUyMiU1RC50b190Zl9kYXRhc2V0KCUwQSUyMCUyMCUyMCUyMGNvbHVtbnMlM0QlNUIlMjJhdHRlbnRpb25fbWFzayUyMiUyQyUyMCUyMmlucHV0X2lkcyUyMiUyQyUyMCUyMmxhYmVscyUyMiU1RCUyQyUwQSUyMCUyMCUyMCUyMHNodWZmbGUlM0RUcnVlJTJDJTBBJTIwJTIwJTIwJTIwYmF0Y2hfc2l6ZSUzRDE2JTJDJTBBJTIwJTIwJTIwJTIwY29sbGF0ZV9mbiUzRGRhdGFfY29sbGF0b3IlMkMlMEEpJTBBJTBBdGZfdGVzdF9zZXQlMjAlM0QlMjB0b2tlbml6ZWRfYmlsbHN1bSU1QiUyMnRlc3QlMjIlNUQudG9fdGZfZGF0YXNldCglMEElMjAlMjAlMjAlMjBjb2x1bW5zJTNEJTVCJTIyYXR0ZW50aW9uX21hc2slMjIlMkMlMjAlMjJpbnB1dF9pZHMlMjIlMkMlMjAlMjJsYWJlbHMlMjIlNUQlMkMlMEElMjAlMjAlMjAlMjBzaHVmZmxlJTNERmFsc2UlMkMlMEElMjAlMjAlMjAlMjBiYXRjaF9zaXplJTNEMTYlMkMlMEElMjAlMjAlMjAlMjBjb2xsYXRlX2ZuJTNEZGF0YV9jb2xsYXRvciUyQyUwQSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>tf_train_set = tokenized_billsum[<span class="hljs-string">&quot;train&quot;</span>].to_tf_dataset(
<span class="hljs-meta">... </span>    columns=[<span class="hljs-string">&quot;attention_mask&quot;</span>, <span class="hljs-string">&quot;input_ids&quot;</span>, <span class="hljs-string">&quot;labels&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 = tokenized_billsum[<span class="hljs-string">&quot;test&quot;</span>].to_tf_dataset(
<span class="hljs-meta">... </span>    columns=[<span class="hljs-string">&quot;attention_mask&quot;</span>, <span class="hljs-string">&quot;input_ids&quot;</span>, <span class="hljs-string">&quot;labels&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>)`,wrap:!1}}),v=new at({props:{$$slots:{default:[Ft]},$$scope:{ctx:T}}}),C=new B({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>)`,wrap:!1}}),c=new B({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFRGQXV0b01vZGVsRm9yU2VxMlNlcUxNJTBBJTBBbW9kZWwlMjAlM0QlMjBURkF1dG9Nb2RlbEZvclNlcTJTZXFMTS5mcm9tX3ByZXRyYWluZWQoJTIydDUtc21hbGwlMjIp",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;t5-small&quot;</span>)`,wrap:!1}}),z=new B({props:{code:"bW9kZWwuY29tcGlsZShvcHRpbWl6ZXIlM0RvcHRpbWl6ZXIp",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>model.<span class="hljs-built_in">compile</span>(optimizer=optimizer)',wrap:!1}}),q=new B({props:{code:"bW9kZWwuZml0KHglM0R0Zl90cmFpbl9zZXQlMkMlMjB2YWxpZGF0aW9uX2RhdGElM0R0Zl90ZXN0X3NldCUyQyUyMGVwb2NocyUzRDMp",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>)',wrap:!1}}),{c(){t=h("p"),t.innerHTML=r,a=p(),g(i.$$.fragment),d=p(),g(v.$$.fragment),R=p(),U=h("p"),U.textContent=H,G=p(),g(C.$$.fragment),X=p(),_=h("p"),_.innerHTML=S,Z=p(),g(c.$$.fragment),J=p(),k=h("p"),k.innerHTML=Je,N=p(),g(z.$$.fragment),ee=p(),W=h("p"),W.innerHTML=A,V=p(),g(q.$$.fragment)},l(l){t=u(l,"P",{"data-svelte-h":!0}),w(t)!=="svelte-d9p6d2"&&(t.innerHTML=r),a=m(l),y(i.$$.fragment,l),d=m(l),y(v.$$.fragment,l),R=m(l),U=u(l,"P",{"data-svelte-h":!0}),w(U)!=="svelte-etuso1"&&(U.textContent=H),G=m(l),y(C.$$.fragment,l),X=m(l),_=u(l,"P",{"data-svelte-h":!0}),w(_)!=="svelte-wbywbg"&&(_.innerHTML=S),Z=m(l),y(c.$$.fragment,l),J=m(l),k=u(l,"P",{"data-svelte-h":!0}),w(k)!=="svelte-vifi3w"&&(k.innerHTML=Je),N=m(l),y(z.$$.fragment,l),ee=m(l),W=u(l,"P",{"data-svelte-h":!0}),w(W)!=="svelte-meb7zc"&&(W.innerHTML=A),V=m(l),y(q.$$.fragment,l)},m(l,f){n(l,t,f),n(l,a,f),M(i,l,f),n(l,d,f),M(v,l,f),n(l,R,f),n(l,U,f),n(l,G,f),M(C,l,f),n(l,X,f),n(l,_,f),n(l,Z,f),M(c,l,f),n(l,J,f),n(l,k,f),n(l,N,f),M(z,l,f),n(l,ee,f),n(l,W,f),n(l,V,f),M(q,l,f),I=!0},p(l,f){const $e={};f&2&&($e.$$scope={dirty:f,ctx:l}),v.$set($e)},i(l){I||(b(i.$$.fragment,l),b(v.$$.fragment,l),b(C.$$.fragment,l),b(c.$$.fragment,l),b(z.$$.fragment,l),b(q.$$.fragment,l),I=!0)},o(l){$(i.$$.fragment,l),$(v.$$.fragment,l),$(C.$$.fragment,l),$(c.$$.fragment,l),$(z.$$.fragment,l),$(q.$$.fragment,l),I=!1},d(l){l&&(s(t),s(a),s(d),s(R),s(U),s(G),s(X),s(_),s(Z),s(J),s(k),s(N),s(ee),s(W),s(V)),j(i,l),j(v,l),j(C,l),j(c,l),j(z,l),j(q,l)}}}function Xt(T){let t,r;return t=new st({props:{$$slots:{default:[It]},$$scope:{ctx:T}}}),{c(){g(t.$$.fragment)},l(a){y(t.$$.fragment,a)},m(a,i){M(t,a,i),r=!0},p(a,i){const d={};i&2&&(d.$$scope={dirty:i,ctx:a}),t.$set(d)},i(a){r||(b(t.$$.fragment,a),r=!0)},o(a){$(t.$$.fragment,a),r=!1},d(a){j(t,a)}}}function Wt(T){let t,r=`Para un ejemplo con mayor profundidad de cómo hacer fine-tuning a un modelo para generación de resúmenes, revisa la
<a href="https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/summarization.ipynb" rel="nofollow">notebook en PyTorch</a>
o a la <a href="https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/summarization-tf.ipynb" rel="nofollow">notebook en TensorFlow</a>.`;return{c(){t=h("p"),t.innerHTML=r},l(a){t=u(a,"P",{"data-svelte-h":!0}),w(t)!=="svelte-1h0amt2"&&(t.innerHTML=r)},m(a,i){n(a,t,i)},p:Te,d(a){a&&s(t)}}}function At(T){let t,r,a,i,d,v,R,U,H,G,C="Generación de resúmenes",X,_,S,Z,c="La generación de resúmenes (summarization, en inglés) crea una versión más corta de un documento o un artículo que resume toda su información importante. Junto con la traducción, es un ejemplo de una tarea que puede ser formulada como una tarea secuencia a secuencia. La generación de resúmenes puede ser:",J,k,Je="<li>Extractiva: Extrae la información más relevante de un documento.</li> <li>Abstractiva: Genera un texto nuevo que captura la información más importante.</li>",N,z,ee='Esta guía te mostrará cómo puedes hacer fine-tuning del modelo <a href="https://huggingface.co/t5-small" rel="nofollow">T5</a> sobre el subset de proyectos de ley del estado de California, dentro del dataset <a href="https://huggingface.co/datasets/billsum" rel="nofollow">BillSum</a> para hacer generación de resúmenes abstractiva.',W,A,V,q,I,l,f,$e,je,ot="Carga el dataset BillSum",Ze,te,rt="Carga el dataset BillSum de la biblioteca 🤗 Datasets:",qe,ae,Ee,se,it="Divide el dataset en un set de train y un set de test:",Ge,ne,Re,le,ct="A continuación, observa un ejemplo:",Se,oe,ze,re,pt="El campo <code>text</code> es el input y el campo <code>summary</code> es el objetivo.",Be,Y,Q,Ue,ie,nt,we,mt="Preprocesa",Fe,ce,ht="Carga el tokenizador T5 para procesar <code>text</code> y <code>summary</code>:",Ie,pe,Xe,me,ut="La función de preprocesamiento necesita:",We,he,ft="<li>Agregar un prefijo al input; una clave para que T5 sepa que se trata de una tarea de generación de resúmenes. Algunos modelos capaces de realizar múltiples tareas de NLP requieren una clave que indique la tarea específica.</li> <li>Usar el argumento <code>text_target</code> para tokenizar etiquetas.</li> <li>Truncar secuencias para que no sean más largas que la longitud máxima fijada por el parámetro <code>max_length</code>.</li>",Ae,ue,He,fe,dt="Usa la función <code>map</code> de 🤗 Datasets para aplicar la función de preprocesamiento sobre el dataset en su totalidad. Puedes acelerar la función <code>map</code> configurando el argumento <code>batched=True</code> para procesar múltiples elementos del dataset a la vez:",Ne,de,Ve,ge,gt="Usa <code>DataCollatorForSeq2Seq</code> para crear un lote de ejemplos. Esto también <em>rellenará dinámicamente</em> tu texto y etiquetas a la dimensión del elemento más largo del lote para que tengan un largo uniforme. Si bien es posible rellenar tu texto en la función <code>tokenizer</code> mediante el argumento <code>padding=True</code>, el rellenado dinámico es más eficiente.",Ye,P,Le,L,D,_e,ye,lt,ve,yt="Entrenamiento",Qe,K,Pe,O,De,Ce,Ke;return U=new tt({}),_=new xt({props:{id:"yHnr5Dk2zCI"}}),A=new at({props:{$$slots:{default:[Zt]},$$scope:{ctx:T}}}),f=new tt({}),ae=new B({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>)`,wrap:!1}}),ne=new B({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>)',wrap:!1}}),oe=new B({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’s or dependent’s actual or perceived gender identity, including, but not limited to, the employee’s or dependent’s identification as transgender.\\n(2) For purposes of this section, “contract” 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’s 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’s 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’s 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>}`,wrap:!1}}),ie=new tt({}),pe=new B({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMEElMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZCglMjJ0NS1zbWFsbCUyMik=",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;t5-small&quot;</span>)`,wrap:!1}}),ue=new B({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`,wrap:!1}}),de=new B({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>)',wrap:!1}}),P=new Tt({props:{pytorch:!0,tensorflow:!0,jax:!1,$$slots:{tensorflow:[Rt],pytorch:[Et]},$$scope:{ctx:T}}}),ye=new tt({}),K=new Tt({props:{pytorch:!0,tensorflow:!0,jax:!1,$$slots:{tensorflow:[Xt],pytorch:[Bt]},$$scope:{ctx:T}}}),O=new at({props:{$$slots:{default:[Wt]},$$scope:{ctx:T}}}),{c(){t=h("meta"),r=p(),a=h("p"),i=p(),d=h("h1"),v=h("a"),R=h("span"),g(U.$$.fragment),H=p(),G=h("span"),G.textContent=C,X=p(),g(_.$$.fragment),S=p(),Z=h("p"),Z.textContent=c,J=p(),k=h("ul"),k.innerHTML=Je,N=p(),z=h("p"),z.innerHTML=ee,W=p(),g(A.$$.fragment),V=p(),q=h("h2"),I=h("a"),l=h("span"),g(f.$$.fragment),$e=p(),je=h("span"),je.textContent=ot,Ze=p(),te=h("p"),te.textContent=rt,qe=p(),g(ae.$$.fragment),Ee=p(),se=h("p"),se.textContent=it,Ge=p(),g(ne.$$.fragment),Re=p(),le=h("p"),le.textContent=ct,Se=p(),g(oe.$$.fragment),ze=p(),re=h("p"),re.innerHTML=pt,Be=p(),Y=h("h2"),Q=h("a"),Ue=h("span"),g(ie.$$.fragment),nt=p(),we=h("span"),we.textContent=mt,Fe=p(),ce=h("p"),ce.innerHTML=ht,Ie=p(),g(pe.$$.fragment),Xe=p(),me=h("p"),me.textContent=ut,We=p(),he=h("ol"),he.innerHTML=ft,Ae=p(),g(ue.$$.fragment),He=p(),fe=h("p"),fe.innerHTML=dt,Ne=p(),g(de.$$.fragment),Ve=p(),ge=h("p"),ge.innerHTML=gt,Ye=p(),g(P.$$.fragment),Le=p(),L=h("h2"),D=h("a"),_e=h("span"),g(ye.$$.fragment),lt=p(),ve=h("span"),ve.textContent=yt,Qe=p(),g(K.$$.fragment),Pe=p(),g(O.$$.fragment),De=p(),Ce=h("p"),this.h()},l(e){const o=kt("svelte-1phssyn",document.head);t=u(o,"META",{name:!0,content:!0}),o.forEach(s),r=m(e),a=u(e,"P",{}),F(a).forEach(s),i=m(e),d=u(e,"H1",{class:!0});var Me=F(d);v=u(Me,"A",{id:!0,class:!0,href:!0});var ke=F(v);R=u(ke,"SPAN",{});var xe=F(R);y(U.$$.fragment,xe),xe.forEach(s),ke.forEach(s),H=m(Me),G=u(Me,"SPAN",{"data-svelte-h":!0}),w(G)!=="svelte-1r1mqbj"&&(G.textContent=C),Me.forEach(s),X=m(e),y(_.$$.fragment,e),S=m(e),Z=u(e,"P",{"data-svelte-h":!0}),w(Z)!=="svelte-1bzmr4x"&&(Z.textContent=c),J=m(e),k=u(e,"UL",{"data-svelte-h":!0}),w(k)!=="svelte-1nmkmpc"&&(k.innerHTML=Je),N=m(e),z=u(e,"P",{"data-svelte-h":!0}),w(z)!=="svelte-h375zn"&&(z.innerHTML=ee),W=m(e),y(A.$$.fragment,e),V=m(e),q=u(e,"H2",{class:!0});var be=F(q);I=u(be,"A",{id:!0,class:!0,href:!0});var Mt=F(I);l=u(Mt,"SPAN",{});var bt=F(l);y(f.$$.fragment,bt),bt.forEach(s),Mt.forEach(s),$e=m(be),je=u(be,"SPAN",{"data-svelte-h":!0}),w(je)!=="svelte-f2g128"&&(je.textContent=ot),be.forEach(s),Ze=m(e),te=u(e,"P",{"data-svelte-h":!0}),w(te)!=="svelte-1jlden9"&&(te.textContent=rt),qe=m(e),y(ae.$$.fragment,e),Ee=m(e),se=u(e,"P",{"data-svelte-h":!0}),w(se)!=="svelte-atj3ve"&&(se.textContent=it),Ge=m(e),y(ne.$$.fragment,e),Re=m(e),le=u(e,"P",{"data-svelte-h":!0}),w(le)!=="svelte-1ccba5i"&&(le.textContent=ct),Se=m(e),y(oe.$$.fragment,e),ze=m(e),re=u(e,"P",{"data-svelte-h":!0}),w(re)!=="svelte-obg09g"&&(re.innerHTML=pt),Be=m(e),Y=u(e,"H2",{class:!0});var Oe=F(Y);Q=u(Oe,"A",{id:!0,class:!0,href:!0});var $t=F(Q);Ue=u($t,"SPAN",{});var jt=F(Ue);y(ie.$$.fragment,jt),jt.forEach(s),$t.forEach(s),nt=m(Oe),we=u(Oe,"SPAN",{"data-svelte-h":!0}),w(we)!=="svelte-x1ezox"&&(we.textContent=mt),Oe.forEach(s),Fe=m(e),ce=u(e,"P",{"data-svelte-h":!0}),w(ce)!=="svelte-k7fnwl"&&(ce.innerHTML=ht),Ie=m(e),y(pe.$$.fragment,e),Xe=m(e),me=u(e,"P",{"data-svelte-h":!0}),w(me)!=="svelte-1odj0bi"&&(me.textContent=ut),We=m(e),he=u(e,"OL",{"data-svelte-h":!0}),w(he)!=="svelte-173y0ts"&&(he.innerHTML=ft),Ae=m(e),y(ue.$$.fragment,e),He=m(e),fe=u(e,"P",{"data-svelte-h":!0}),w(fe)!=="svelte-m50jmu"&&(fe.innerHTML=dt),Ne=m(e),y(de.$$.fragment,e),Ve=m(e),ge=u(e,"P",{"data-svelte-h":!0}),w(ge)!=="svelte-1indi9y"&&(ge.innerHTML=gt),Ye=m(e),y(P.$$.fragment,e),Le=m(e),L=u(e,"H2",{class:!0});var et=F(L);D=u(et,"A",{id:!0,class:!0,href:!0});var wt=F(D);_e=u(wt,"SPAN",{});var vt=F(_e);y(ye.$$.fragment,vt),vt.forEach(s),wt.forEach(s),lt=m(et),ve=u(et,"SPAN",{"data-svelte-h":!0}),w(ve)!=="svelte-1b8djky"&&(ve.textContent=yt),et.forEach(s),Qe=m(e),y(K.$$.fragment,e),Pe=m(e),y(O.$$.fragment,e),De=m(e),Ce=u(e,"P",{}),F(Ce).forEach(s),this.h()},h(){x(t,"name","hf:doc:metadata"),x(t,"content",JSON.stringify(Ht)),x(v,"id","generacin-de-resmenes"),x(v,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),x(v,"href","#generacin-de-resmenes"),x(d,"class","relative group"),x(I,"id","carga-el-dataset-billsum"),x(I,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),x(I,"href","#carga-el-dataset-billsum"),x(q,"class","relative group"),x(Q,"id","preprocesa"),x(Q,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),x(Q,"href","#preprocesa"),x(Y,"class","relative group"),x(D,"id","entrenamiento"),x(D,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),x(D,"href","#entrenamiento"),x(L,"class","relative group")},m(e,o){E(document.head,t),n(e,r,o),n(e,a,o),n(e,i,o),n(e,d,o),E(d,v),E(v,R),M(U,R,null),E(d,H),E(d,G),n(e,X,o),M(_,e,o),n(e,S,o),n(e,Z,o),n(e,J,o),n(e,k,o),n(e,N,o),n(e,z,o),n(e,W,o),M(A,e,o),n(e,V,o),n(e,q,o),E(q,I),E(I,l),M(f,l,null),E(q,$e),E(q,je),n(e,Ze,o),n(e,te,o),n(e,qe,o),M(ae,e,o),n(e,Ee,o),n(e,se,o),n(e,Ge,o),M(ne,e,o),n(e,Re,o),n(e,le,o),n(e,Se,o),M(oe,e,o),n(e,ze,o),n(e,re,o),n(e,Be,o),n(e,Y,o),E(Y,Q),E(Q,Ue),M(ie,Ue,null),E(Y,nt),E(Y,we),n(e,Fe,o),n(e,ce,o),n(e,Ie,o),M(pe,e,o),n(e,Xe,o),n(e,me,o),n(e,We,o),n(e,he,o),n(e,Ae,o),M(ue,e,o),n(e,He,o),n(e,fe,o),n(e,Ne,o),M(de,e,o),n(e,Ve,o),n(e,ge,o),n(e,Ye,o),M(P,e,o),n(e,Le,o),n(e,L,o),E(L,D),E(D,_e),M(ye,_e,null),E(L,lt),E(L,ve),n(e,Qe,o),M(K,e,o),n(e,Pe,o),M(O,e,o),n(e,De,o),n(e,Ce,o),Ke=!0},p(e,[o]){const Me={};o&2&&(Me.$$scope={dirty:o,ctx:e}),A.$set(Me);const ke={};o&2&&(ke.$$scope={dirty:o,ctx:e}),P.$set(ke);const xe={};o&2&&(xe.$$scope={dirty:o,ctx:e}),K.$set(xe);const be={};o&2&&(be.$$scope={dirty:o,ctx:e}),O.$set(be)},i(e){Ke||(b(U.$$.fragment,e),b(_.$$.fragment,e),b(A.$$.fragment,e),b(f.$$.fragment,e),b(ae.$$.fragment,e),b(ne.$$.fragment,e),b(oe.$$.fragment,e),b(ie.$$.fragment,e),b(pe.$$.fragment,e),b(ue.$$.fragment,e),b(de.$$.fragment,e),b(P.$$.fragment,e),b(ye.$$.fragment,e),b(K.$$.fragment,e),b(O.$$.fragment,e),Ke=!0)},o(e){$(U.$$.fragment,e),$(_.$$.fragment,e),$(A.$$.fragment,e),$(f.$$.fragment,e),$(ae.$$.fragment,e),$(ne.$$.fragment,e),$(oe.$$.fragment,e),$(ie.$$.fragment,e),$(pe.$$.fragment,e),$(ue.$$.fragment,e),$(de.$$.fragment,e),$(P.$$.fragment,e),$(ye.$$.fragment,e),$(K.$$.fragment,e),$(O.$$.fragment,e),Ke=!1},d(e){e&&(s(r),s(a),s(i),s(d),s(X),s(S),s(Z),s(J),s(k),s(N),s(z),s(W),s(V),s(q),s(Ze),s(te),s(qe),s(Ee),s(se),s(Ge),s(Re),s(le),s(Se),s(ze),s(re),s(Be),s(Y),s(Fe),s(ce),s(Ie),s(Xe),s(me),s(We),s(he),s(Ae),s(He),s(fe),s(Ne),s(Ve),s(ge),s(Ye),s(Le),s(L),s(Qe),s(Pe),s(De),s(Ce)),s(t),j(U),j(_,e),j(A,e),j(f),j(ae,e),j(ne,e),j(oe,e),j(ie),j(pe,e),j(ue,e),j(de,e),j(P,e),j(ye),j(K,e),j(O,e)}}}const Ht={local:"generacin-de-resmenes",sections:[{local:"carga-el-dataset-billsum",title:"Carga el dataset BillSum"},{local:"preprocesa",title:"Preprocesa"},{local:"entrenamiento",title:"Entrenamiento"}],title:"Generación de resúmenes"};function Nt(T){return Ut(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ot extends _t{constructor(t){super(),Ct(this,t,Nt,At,Jt,{})}}export{Ot as component};
