import{S as Zp,i as Vp,s as Ap,e as n,k as i,w as J,t,M as Gp,c as p,d as a,m,a as r,x as U,h as e,b as j,G as l,g as c,y as w,q as b,o as T,B as _,v as Xp,L as Bp}from"../../chunks/vendor-hf-doc-builder.js";import{T as Nt}from"../../chunks/Tip-hf-doc-builder.js";import{Y as Np}from"../../chunks/Youtube-hf-doc-builder.js";import{I as Ll}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as G}from"../../chunks/CodeBlock-hf-doc-builder.js";import{D as Yp}from"../../chunks/DocNotebookDropdown-hf-doc-builder.js";import{F as Qp,M as Wp}from"../../chunks/Markdown-hf-doc-builder.js";function zp(q){let f,u,h,y,g,E,Z,C,v,W,V,R,F,A,D,O,X,k,H,K,B,N,Y,x,M,I,L,ss,P,S,ps;return{c(){f=t(`\uC774 \uD29C\uD1A0\uB9AC\uC5BC\uC5D0\uC11C \uC124\uBA85\uD558\uB294 \uC791\uC5C5\uC740 \uB2E4\uC74C \uBAA8\uB378 \uC544\uD0A4\uD14D\uCC98\uC5D0 \uC758\uD574 \uC9C0\uC6D0\uB429\uB2C8\uB2E4:

`),u=n("p"),h=n("a"),y=t("Data2VecAudio"),g=t(", "),E=n("a"),Z=t("Hubert"),C=t(", "),v=n("a"),W=t("M-CTC-T"),V=t(", "),R=n("a"),F=t("SEW"),A=t(", "),D=n("a"),O=t("SEW-D"),X=t(", "),k=n("a"),H=t("UniSpeech"),K=t(", "),B=n("a"),N=t("UniSpeechSat"),Y=t(", "),x=n("a"),M=t("Wav2Vec2"),I=t(", "),L=n("a"),ss=t("Wav2Vec2-Conformer"),P=t(", "),S=n("a"),ps=t("WavLM"),this.h()},l(z){f=e(z,`\uC774 \uD29C\uD1A0\uB9AC\uC5BC\uC5D0\uC11C \uC124\uBA85\uD558\uB294 \uC791\uC5C5\uC740 \uB2E4\uC74C \uBAA8\uB378 \uC544\uD0A4\uD14D\uCC98\uC5D0 \uC758\uD574 \uC9C0\uC6D0\uB429\uB2C8\uB2E4:

`),u=p(z,"P",{});var $=r(u);h=p($,"A",{href:!0});var ms=r(h);y=e(ms,"Data2VecAudio"),ms.forEach(a),g=e($,", "),E=p($,"A",{href:!0});var fs=r(E);Z=e(fs,"Hubert"),fs.forEach(a),C=e($,", "),v=p($,"A",{href:!0});var gs=r(v);W=e(gs,"M-CTC-T"),gs.forEach(a),V=e($,", "),R=p($,"A",{href:!0});var hs=r(R);F=e(hs,"SEW"),hs.forEach(a),A=e($,", "),D=p($,"A",{href:!0});var rs=r(D);O=e(rs,"SEW-D"),rs.forEach(a),X=e($,", "),k=p($,"A",{href:!0});var bs=r(k);H=e(bs,"UniSpeech"),bs.forEach(a),K=e($,", "),B=p($,"A",{href:!0});var ds=r(B);N=e(ds,"UniSpeechSat"),ds.forEach(a),Y=e($,", "),x=p($,"A",{href:!0});var us=r(x);M=e(us,"Wav2Vec2"),us.forEach(a),I=e($,", "),L=p($,"A",{href:!0});var Ms=r(L);ss=e(Ms,"Wav2Vec2-Conformer"),Ms.forEach(a),P=e($,", "),S=p($,"A",{href:!0});var os=r(S);ps=e(os,"WavLM"),os.forEach(a),$.forEach(a),this.h()},h(){j(h,"href","../model_doc/data2vec-audio"),j(E,"href","../model_doc/hubert"),j(v,"href","../model_doc/mctct"),j(R,"href","../model_doc/sew"),j(D,"href","../model_doc/sew-d"),j(k,"href","../model_doc/unispeech"),j(B,"href","../model_doc/unispeech-sat"),j(x,"href","../model_doc/wav2vec2"),j(L,"href","../model_doc/wav2vec2-conformer"),j(S,"href","../model_doc/wavlm")},m(z,$){c(z,f,$),c(z,u,$),l(u,h),l(h,y),l(u,g),l(u,E),l(E,Z),l(u,C),l(u,v),l(v,W),l(u,V),l(u,R),l(R,F),l(u,A),l(u,D),l(D,O),l(u,X),l(u,k),l(k,H),l(u,K),l(u,B),l(B,N),l(u,Y),l(u,x),l(x,M),l(u,I),l(u,L),l(L,ss),l(u,P),l(u,S),l(S,ps)},d(z){z&&a(f),z&&a(u)}}}function Fp(q){let f,u,h,y,g,E,Z;return{c(){f=n("p"),u=n("code"),h=t("Trainer"),y=t("\uB85C \uBAA8\uB378\uC744 \uBBF8\uC138 \uC870\uC815\uD558\uB294 \uAC83\uC774 \uC775\uC219\uD558\uC9C0 \uC54A\uB2E4\uBA74, "),g=n("a"),E=t("\uC5EC\uAE30"),Z=t("\uC5D0\uC11C \uAE30\uBCF8 \uD29C\uD1A0\uB9AC\uC5BC\uC744 \uD655\uC778\uD574\uBCF4\uC138\uC694!"),this.h()},l(C){f=p(C,"P",{});var v=r(f);u=p(v,"CODE",{});var W=r(u);h=e(W,"Trainer"),W.forEach(a),y=e(v,"\uB85C \uBAA8\uB378\uC744 \uBBF8\uC138 \uC870\uC815\uD558\uB294 \uAC83\uC774 \uC775\uC219\uD558\uC9C0 \uC54A\uB2E4\uBA74, "),g=p(v,"A",{href:!0});var V=r(g);E=e(V,"\uC5EC\uAE30"),V.forEach(a),Z=e(v,"\uC5D0\uC11C \uAE30\uBCF8 \uD29C\uD1A0\uB9AC\uC5BC\uC744 \uD655\uC778\uD574\uBCF4\uC138\uC694!"),v.forEach(a),this.h()},h(){j(g,"href","../training#train-with-pytorch-trainer")},m(C,v){c(C,f,v),l(f,u),l(u,h),l(f,y),l(f,g),l(g,E),l(f,Z)},d(C){C&&a(f)}}}function Dp(q){let f,u,h,y,g,E,Z,C,v,W,V,R,F,A,D,O,X,k,H,K,B,N,Y,x,M,I,L,ss,P,S,ps,z,$,ms,fs,gs,hs,rs,bs,ds,us,Ms,os,Bs,cs,ls,$s,as,rl,Ts,ol,Ns,js,_s,ys;return f=new Nt({props:{$$slots:{default:[Fp]},$$scope:{ctx:q}}}),R=new G({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbEZvckNUQyUyQyUyMFRyYWluaW5nQXJndW1lbnRzJTJDJTIwVHJhaW5lciUwQSUwQW1vZGVsJTIwJTNEJTIwQXV0b01vZGVsRm9yQ1RDLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJmYWNlYm9vayUyRndhdjJ2ZWMyLWJhc2UlMjIlMkMlMEElMjAlMjAlMjAlMjBjdGNfbG9zc19yZWR1Y3Rpb24lM0QlMjJtZWFuJTIyJTJDJTBBJTIwJTIwJTIwJTIwcGFkX3Rva2VuX2lkJTNEcHJvY2Vzc29yLnRva2VuaXplci5wYWRfdG9rZW5faWQlMkMlMEEp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoModelForCTC, TrainingArguments, Trainer

<span class="hljs-meta">&gt;&gt;&gt; </span>model = AutoModelForCTC.from_pretrained(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;facebook/wav2vec2-base&quot;</span>,
<span class="hljs-meta">... </span>    ctc_loss_reduction=<span class="hljs-string">&quot;mean&quot;</span>,
<span class="hljs-meta">... </span>    pad_token_id=processor.tokenizer.pad_token_id,
<span class="hljs-meta">... </span>)`}}),ls=new G({props:{code:"dHJhaW5pbmdfYXJncyUyMCUzRCUyMFRyYWluaW5nQXJndW1lbnRzKCUwQSUyMCUyMCUyMCUyMG91dHB1dF9kaXIlM0QlMjJteV9hd2Vzb21lX2Fzcl9taW5kX21vZGVsJTIyJTJDJTBBJTIwJTIwJTIwJTIwcGVyX2RldmljZV90cmFpbl9iYXRjaF9zaXplJTNEOCUyQyUwQSUyMCUyMCUyMCUyMGdyYWRpZW50X2FjY3VtdWxhdGlvbl9zdGVwcyUzRDIlMkMlMEElMjAlMjAlMjAlMjBsZWFybmluZ19yYXRlJTNEMWUtNSUyQyUwQSUyMCUyMCUyMCUyMHdhcm11cF9zdGVwcyUzRDUwMCUyQyUwQSUyMCUyMCUyMCUyMG1heF9zdGVwcyUzRDIwMDAlMkMlMEElMjAlMjAlMjAlMjBncmFkaWVudF9jaGVja3BvaW50aW5nJTNEVHJ1ZSUyQyUwQSUyMCUyMCUyMCUyMGZwMTYlM0RUcnVlJTJDJTBBJTIwJTIwJTIwJTIwZ3JvdXBfYnlfbGVuZ3RoJTNEVHJ1ZSUyQyUwQSUyMCUyMCUyMCUyMGV2YWx1YXRpb25fc3RyYXRlZ3klM0QlMjJzdGVwcyUyMiUyQyUwQSUyMCUyMCUyMCUyMHBlcl9kZXZpY2VfZXZhbF9iYXRjaF9zaXplJTNEOCUyQyUwQSUyMCUyMCUyMCUyMHNhdmVfc3RlcHMlM0QxMDAwJTJDJTBBJTIwJTIwJTIwJTIwZXZhbF9zdGVwcyUzRDEwMDAlMkMlMEElMjAlMjAlMjAlMjBsb2dnaW5nX3N0ZXBzJTNEMjUlMkMlMEElMjAlMjAlMjAlMjBsb2FkX2Jlc3RfbW9kZWxfYXRfZW5kJTNEVHJ1ZSUyQyUwQSUyMCUyMCUyMCUyMG1ldHJpY19mb3JfYmVzdF9tb2RlbCUzRCUyMndlciUyMiUyQyUwQSUyMCUyMCUyMCUyMGdyZWF0ZXJfaXNfYmV0dGVyJTNERmFsc2UlMkMlMEElMjAlMjAlMjAlMjBwdXNoX3RvX2h1YiUzRFRydWUlMkMlMEEpJTBBJTBBdHJhaW5lciUyMCUzRCUyMFRyYWluZXIoJTBBJTIwJTIwJTIwJTIwbW9kZWwlM0Rtb2RlbCUyQyUwQSUyMCUyMCUyMCUyMGFyZ3MlM0R0cmFpbmluZ19hcmdzJTJDJTBBJTIwJTIwJTIwJTIwdHJhaW5fZGF0YXNldCUzRGVuY29kZWRfbWluZHMlNUIlMjJ0cmFpbiUyMiU1RCUyQyUwQSUyMCUyMCUyMCUyMGV2YWxfZGF0YXNldCUzRGVuY29kZWRfbWluZHMlNUIlMjJ0ZXN0JTIyJTVEJTJDJTBBJTIwJTIwJTIwJTIwdG9rZW5pemVyJTNEcHJvY2Vzc29yLmZlYXR1cmVfZXh0cmFjdG9yJTJDJTBBJTIwJTIwJTIwJTIwZGF0YV9jb2xsYXRvciUzRGRhdGFfY29sbGF0b3IlMkMlMEElMjAlMjAlMjAlMjBjb21wdXRlX21ldHJpY3MlM0Rjb21wdXRlX21ldHJpY3MlMkMlMEEpJTBBJTBBdHJhaW5lci50cmFpbigp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>training_args = TrainingArguments(
<span class="hljs-meta">... </span>    output_dir=<span class="hljs-string">&quot;my_awesome_asr_mind_model&quot;</span>,
<span class="hljs-meta">... </span>    per_device_train_batch_size=<span class="hljs-number">8</span>,
<span class="hljs-meta">... </span>    gradient_accumulation_steps=<span class="hljs-number">2</span>,
<span class="hljs-meta">... </span>    learning_rate=<span class="hljs-number">1e-5</span>,
<span class="hljs-meta">... </span>    warmup_steps=<span class="hljs-number">500</span>,
<span class="hljs-meta">... </span>    max_steps=<span class="hljs-number">2000</span>,
<span class="hljs-meta">... </span>    gradient_checkpointing=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>    fp16=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>    group_by_length=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>    evaluation_strategy=<span class="hljs-string">&quot;steps&quot;</span>,
<span class="hljs-meta">... </span>    per_device_eval_batch_size=<span class="hljs-number">8</span>,
<span class="hljs-meta">... </span>    save_steps=<span class="hljs-number">1000</span>,
<span class="hljs-meta">... </span>    eval_steps=<span class="hljs-number">1000</span>,
<span class="hljs-meta">... </span>    logging_steps=<span class="hljs-number">25</span>,
<span class="hljs-meta">... </span>    load_best_model_at_end=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>    metric_for_best_model=<span class="hljs-string">&quot;wer&quot;</span>,
<span class="hljs-meta">... </span>    greater_is_better=<span class="hljs-literal">False</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 = Trainer(
<span class="hljs-meta">... </span>    model=model,
<span class="hljs-meta">... </span>    args=training_args,
<span class="hljs-meta">... </span>    train_dataset=encoded_minds[<span class="hljs-string">&quot;train&quot;</span>],
<span class="hljs-meta">... </span>    eval_dataset=encoded_minds[<span class="hljs-string">&quot;test&quot;</span>],
<span class="hljs-meta">... </span>    tokenizer=processor.feature_extractor,
<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()`}}),_s=new G({props:{code:"dHJhaW5lci5wdXNoX3RvX2h1Yigp",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>trainer.push_to_hub()'}}),{c(){J(f.$$.fragment),u=i(),h=n("p"),y=t("\uC774\uC81C \uBAA8\uB378 \uD6C8\uB828\uC744 \uC2DC\uC791\uD560 \uC900\uBE44\uAC00 \uB418\uC5C8\uC2B5\uB2C8\uB2E4! "),g=n("code"),E=t("AutoModelForCTC"),Z=t("\uB85C Wav2Vec2\uB97C \uAC00\uC838\uC624\uC138\uC694. "),C=n("code"),v=t("ctc_loss_reduction"),W=t(" \uB9E4\uAC1C\uBCC0\uC218\uB85C CTC \uC190\uC2E4\uC5D0 \uC801\uC6A9\uD560 \uCD95\uC18C(reduction) \uBC29\uBC95\uC744 \uC9C0\uC815\uD558\uC138\uC694. \uAE30\uBCF8\uAC12\uC778 \uD569\uACC4 \uB300\uC2E0 \uD3C9\uADE0\uC744 \uC0AC\uC6A9\uD558\uB294 \uAC83\uC774 \uB354 \uC88B\uC740 \uACBD\uC6B0\uAC00 \uB9CE\uC2B5\uB2C8\uB2E4:"),V=i(),J(R.$$.fragment),F=i(),A=n("p"),D=t("\uC774\uC81C \uC138 \uB2E8\uACC4\uB9CC \uB0A8\uC558\uC2B5\uB2C8\uB2E4:"),O=i(),X=n("ol"),k=n("li"),H=n("code"),K=t("TrainingArguments"),B=t("\uC5D0\uC11C \uD6C8\uB828 \uD558\uC774\uD37C\uD30C\uB77C\uBBF8\uD130\uB97C \uC815\uC758\uD558\uC138\uC694. "),N=n("code"),Y=t("output_dir"),x=t("\uC740 \uBAA8\uB378\uC744 \uC800\uC7A5\uD560 \uACBD\uB85C\uB97C \uC9C0\uC815\uD558\uB294 \uC720\uC77C\uD55C \uD544\uC218 \uB9E4\uAC1C\uBCC0\uC218\uC785\uB2C8\uB2E4. "),M=n("code"),I=t("push_to_hub=True"),L=t("\uB97C \uC124\uC815\uD558\uC5EC \uBAA8\uB378\uC744 Hub\uC5D0 \uC5C5\uB85C\uB4DC \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). "),ss=n("code"),P=t("Trainer"),S=t("\uB294 \uAC01 \uC5D0\uD3ED\uB9C8\uB2E4 WER\uC744 \uD3C9\uAC00\uD558\uACE0 \uD6C8\uB828 \uCCB4\uD06C\uD3EC\uC778\uD2B8\uB97C \uC800\uC7A5\uD569\uB2C8\uB2E4."),ps=i(),z=n("li"),$=t("\uBAA8\uB378, \uB370\uC774\uD130 \uC138\uD2B8, \uD1A0\uD06C\uB098\uC774\uC800, \uB370\uC774\uD130 \uCF5C\uB808\uC774\uD130, "),ms=n("code"),fs=t("compute_metrics"),gs=t(" \uD568\uC218\uC640 \uD568\uAED8 "),hs=n("code"),rs=t("Trainer"),bs=t("\uC5D0 \uD6C8\uB828 \uC778\uC218\uB97C \uC804\uB2EC\uD558\uC138\uC694."),ds=i(),us=n("li"),Ms=n("code"),os=t("train()"),Bs=t("\uC744 \uD638\uCD9C\uD558\uC5EC \uBAA8\uB378\uC744 \uBBF8\uC138 \uC870\uC815\uD558\uC138\uC694."),cs=i(),J(ls.$$.fragment),$s=i(),as=n("p"),rl=t("\uD6C8\uB828\uC774 \uC644\uB8CC\uB418\uBA74 \uBAA8\uB450\uAC00 \uBAA8\uB378\uC744 \uC0AC\uC6A9\uD560 \uC218 \uC788\uB3C4\uB85D "),Ts=n("code"),ol=t("push_to_hub()"),Ns=t(" \uBA54\uC18C\uB4DC\uB97C \uC0AC\uC6A9\uD558\uC5EC \uBAA8\uB378\uC744 Hub\uC5D0 \uACF5\uC720\uD558\uC138\uC694:"),js=i(),J(_s.$$.fragment)},l(d){U(f.$$.fragment,d),u=m(d),h=p(d,"P",{});var Q=r(h);y=e(Q,"\uC774\uC81C \uBAA8\uB378 \uD6C8\uB828\uC744 \uC2DC\uC791\uD560 \uC900\uBE44\uAC00 \uB418\uC5C8\uC2B5\uB2C8\uB2E4! "),g=p(Q,"CODE",{});var Es=r(g);E=e(Es,"AutoModelForCTC"),Es.forEach(a),Z=e(Q,"\uB85C Wav2Vec2\uB97C \uAC00\uC838\uC624\uC138\uC694. "),C=p(Q,"CODE",{});var vs=r(C);v=e(vs,"ctc_loss_reduction"),vs.forEach(a),W=e(Q," \uB9E4\uAC1C\uBCC0\uC218\uB85C CTC \uC190\uC2E4\uC5D0 \uC801\uC6A9\uD560 \uCD95\uC18C(reduction) \uBC29\uBC95\uC744 \uC9C0\uC815\uD558\uC138\uC694. \uAE30\uBCF8\uAC12\uC778 \uD569\uACC4 \uB300\uC2E0 \uD3C9\uADE0\uC744 \uC0AC\uC6A9\uD558\uB294 \uAC83\uC774 \uB354 \uC88B\uC740 \uACBD\uC6B0\uAC00 \uB9CE\uC2B5\uB2C8\uB2E4:"),Q.forEach(a),V=m(d),U(R.$$.fragment,d),F=m(d),A=p(d,"P",{});var cl=r(A);D=e(cl,"\uC774\uC81C \uC138 \uB2E8\uACC4\uB9CC \uB0A8\uC558\uC2B5\uB2C8\uB2E4:"),cl.forEach(a),O=m(d),X=p(d,"OL",{});var ts=r(X);k=p(ts,"LI",{});var ns=r(k);H=p(ns,"CODE",{});var Al=r(H);K=e(Al,"TrainingArguments"),Al.forEach(a),B=e(ns,"\uC5D0\uC11C \uD6C8\uB828 \uD558\uC774\uD37C\uD30C\uB77C\uBBF8\uD130\uB97C \uC815\uC758\uD558\uC138\uC694. "),N=p(ns,"CODE",{});var Gl=r(N);Y=e(Gl,"output_dir"),Gl.forEach(a),x=e(ns,"\uC740 \uBAA8\uB378\uC744 \uC800\uC7A5\uD560 \uACBD\uB85C\uB97C \uC9C0\uC815\uD558\uB294 \uC720\uC77C\uD55C \uD544\uC218 \uB9E4\uAC1C\uBCC0\uC218\uC785\uB2C8\uB2E4. "),M=p(ns,"CODE",{});var Ys=r(M);I=e(Ys,"push_to_hub=True"),Ys.forEach(a),L=e(ns,"\uB97C \uC124\uC815\uD558\uC5EC \uBAA8\uB378\uC744 Hub\uC5D0 \uC5C5\uB85C\uB4DC \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). "),ss=p(ns,"CODE",{});var Xl=r(ss);P=e(Xl,"Trainer"),Xl.forEach(a),S=e(ns,"\uB294 \uAC01 \uC5D0\uD3ED\uB9C8\uB2E4 WER\uC744 \uD3C9\uAC00\uD558\uACE0 \uD6C8\uB828 \uCCB4\uD06C\uD3EC\uC778\uD2B8\uB97C \uC800\uC7A5\uD569\uB2C8\uB2E4."),ns.forEach(a),ps=m(ts),z=p(ts,"LI",{});var Is=r(z);$=e(Is,"\uBAA8\uB378, \uB370\uC774\uD130 \uC138\uD2B8, \uD1A0\uD06C\uB098\uC774\uC800, \uB370\uC774\uD130 \uCF5C\uB808\uC774\uD130, "),ms=p(Is,"CODE",{});var il=r(ms);fs=e(il,"compute_metrics"),il.forEach(a),gs=e(Is," \uD568\uC218\uC640 \uD568\uAED8 "),hs=p(Is,"CODE",{});var Cs=r(hs);rs=e(Cs,"Trainer"),Cs.forEach(a),bs=e(Is,"\uC5D0 \uD6C8\uB828 \uC778\uC218\uB97C \uC804\uB2EC\uD558\uC138\uC694."),Is.forEach(a),ds=m(ts),us=p(ts,"LI",{});var zs=r(us);Ms=p(zs,"CODE",{});var Ws=r(Ms);os=e(Ws,"train()"),Ws.forEach(a),Bs=e(zs,"\uC744 \uD638\uCD9C\uD558\uC5EC \uBAA8\uB378\uC744 \uBBF8\uC138 \uC870\uC815\uD558\uC138\uC694."),zs.forEach(a),ts.forEach(a),cs=m(d),U(ls.$$.fragment,d),$s=m(d),as=p(d,"P",{});var Fs=r(as);rl=e(Fs,"\uD6C8\uB828\uC774 \uC644\uB8CC\uB418\uBA74 \uBAA8\uB450\uAC00 \uBAA8\uB378\uC744 \uC0AC\uC6A9\uD560 \uC218 \uC788\uB3C4\uB85D "),Ts=p(Fs,"CODE",{});var ml=r(Ts);ol=e(ml,"push_to_hub()"),ml.forEach(a),Ns=e(Fs," \uBA54\uC18C\uB4DC\uB97C \uC0AC\uC6A9\uD558\uC5EC \uBAA8\uB378\uC744 Hub\uC5D0 \uACF5\uC720\uD558\uC138\uC694:"),Fs.forEach(a),js=m(d),U(_s.$$.fragment,d)},m(d,Q){w(f,d,Q),c(d,u,Q),c(d,h,Q),l(h,y),l(h,g),l(g,E),l(h,Z),l(h,C),l(C,v),l(h,W),c(d,V,Q),w(R,d,Q),c(d,F,Q),c(d,A,Q),l(A,D),c(d,O,Q),c(d,X,Q),l(X,k),l(k,H),l(H,K),l(k,B),l(k,N),l(N,Y),l(k,x),l(k,M),l(M,I),l(k,L),l(k,ss),l(ss,P),l(k,S),l(X,ps),l(X,z),l(z,$),l(z,ms),l(ms,fs),l(z,gs),l(z,hs),l(hs,rs),l(z,bs),l(X,ds),l(X,us),l(us,Ms),l(Ms,os),l(us,Bs),c(d,cs,Q),w(ls,d,Q),c(d,$s,Q),c(d,as,Q),l(as,rl),l(as,Ts),l(Ts,ol),l(as,Ns),c(d,js,Q),w(_s,d,Q),ys=!0},p(d,Q){const Es={};Q&2&&(Es.$$scope={dirty:Q,ctx:d}),f.$set(Es)},i(d){ys||(b(f.$$.fragment,d),b(R.$$.fragment,d),b(ls.$$.fragment,d),b(_s.$$.fragment,d),ys=!0)},o(d){T(f.$$.fragment,d),T(R.$$.fragment,d),T(ls.$$.fragment,d),T(_s.$$.fragment,d),ys=!1},d(d){_(f,d),d&&a(u),d&&a(h),d&&a(V),_(R,d),d&&a(F),d&&a(A),d&&a(O),d&&a(X),d&&a(cs),_(ls,d),d&&a($s),d&&a(as),d&&a(js),_(_s,d)}}}function Hp(q){let f,u;return f=new Wp({props:{$$slots:{default:[Dp]},$$scope:{ctx:q}}}),{c(){J(f.$$.fragment)},l(h){U(f.$$.fragment,h)},m(h,y){w(f,h,y),u=!0},p(h,y){const g={};y&2&&(g.$$scope={dirty:y,ctx:h}),f.$set(g)},i(h){u||(b(f.$$.fragment,h),u=!0)},o(h){T(f.$$.fragment,h),u=!1},d(h){_(f,h)}}}function xp(q){let f,u,h,y,g,E,Z,C;return{c(){f=n("p"),u=t("\uC790\uB3D9 \uC74C\uC131 \uC778\uC2DD\uC744 \uC704\uD574 \uBAA8\uB378\uC744 \uBBF8\uC138 \uC870\uC815\uD558\uB294 \uB354 \uC790\uC138\uD55C \uC608\uC81C\uB294 \uC601\uC5B4 \uC790\uB3D9 \uC74C\uC131 \uC778\uC2DD\uC744 \uC704\uD55C "),h=n("a"),y=t("\uBE14\uB85C\uADF8 \uD3EC\uC2A4\uD2B8"),g=t("\uC640 \uB2E4\uAD6D\uC5B4 \uC790\uB3D9 \uC74C\uC131 \uC778\uC2DD\uC744 \uC704\uD55C "),E=n("a"),Z=t("\uD3EC\uC2A4\uD2B8"),C=t("\uB97C \uCC38\uC870\uD558\uC138\uC694."),this.h()},l(v){f=p(v,"P",{});var W=r(f);u=e(W,"\uC790\uB3D9 \uC74C\uC131 \uC778\uC2DD\uC744 \uC704\uD574 \uBAA8\uB378\uC744 \uBBF8\uC138 \uC870\uC815\uD558\uB294 \uB354 \uC790\uC138\uD55C \uC608\uC81C\uB294 \uC601\uC5B4 \uC790\uB3D9 \uC74C\uC131 \uC778\uC2DD\uC744 \uC704\uD55C "),h=p(W,"A",{href:!0,rel:!0});var V=r(h);y=e(V,"\uBE14\uB85C\uADF8 \uD3EC\uC2A4\uD2B8"),V.forEach(a),g=e(W,"\uC640 \uB2E4\uAD6D\uC5B4 \uC790\uB3D9 \uC74C\uC131 \uC778\uC2DD\uC744 \uC704\uD55C "),E=p(W,"A",{href:!0,rel:!0});var R=r(E);Z=e(R,"\uD3EC\uC2A4\uD2B8"),R.forEach(a),C=e(W,"\uB97C \uCC38\uC870\uD558\uC138\uC694."),W.forEach(a),this.h()},h(){j(h,"href","https://huggingface.co/blog/fine-tune-wav2vec2-english"),j(h,"rel","nofollow"),j(E,"href","https://huggingface.co/blog/fine-tune-xlsr-wav2vec2"),j(E,"rel","nofollow")},m(v,W){c(v,f,W),l(f,u),l(f,h),l(h,y),l(f,g),l(f,E),l(E,Z),l(f,C)},d(v){v&&a(f)}}}function Sp(q){let f,u;return{c(){f=n("p"),u=t("\uD14D\uC2A4\uD2B8\uB85C \uBCC0\uD658\uB41C \uACB0\uACFC\uAC00 \uAF64 \uAD1C\uCC2E\uC9C0\uB9CC \uB354 \uC88B\uC744 \uC218\uB3C4 \uC788\uC2B5\uB2C8\uB2E4! \uB354 \uB098\uC740 \uACB0\uACFC\uB97C \uC5BB\uC73C\uB824\uBA74 \uB354 \uB9CE\uC740 \uC608\uC81C\uB85C \uBAA8\uB378\uC744 \uBBF8\uC138 \uC870\uC815\uD558\uC138\uC694!")},l(h){f=p(h,"P",{});var y=r(f);u=e(y,"\uD14D\uC2A4\uD2B8\uB85C \uBCC0\uD658\uB41C \uACB0\uACFC\uAC00 \uAF64 \uAD1C\uCC2E\uC9C0\uB9CC \uB354 \uC88B\uC744 \uC218\uB3C4 \uC788\uC2B5\uB2C8\uB2E4! \uB354 \uB098\uC740 \uACB0\uACFC\uB97C \uC5BB\uC73C\uB824\uBA74 \uB354 \uB9CE\uC740 \uC608\uC81C\uB85C \uBAA8\uB378\uC744 \uBBF8\uC138 \uC870\uC815\uD558\uC138\uC694!"),y.forEach(a)},m(h,y){c(h,f,y),l(f,u)},d(h){h&&a(f)}}}function qp(q){let f,u,h,y,g,E,Z,C,v,W,V,R,F,A,D,O,X,k,H,K,B,N,Y,x;return Z=new G({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Qcm9jZXNzb3IlMEElMEFwcm9jZXNzb3IlMjAlM0QlMjBBdXRvUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJzdGV2aGxpdSUyRm15X2F3ZXNvbWVfYXNyX21pbmRfbW9kZWwlMjIpJTBBaW5wdXRzJTIwJTNEJTIwcHJvY2Vzc29yKGRhdGFzZXQlNUIwJTVEJTVCJTIyYXVkaW8lMjIlNUQlNUIlMjJhcnJheSUyMiU1RCUyQyUyMHNhbXBsaW5nX3JhdGUlM0RzYW1wbGluZ19yYXRlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoProcessor

<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;stevhliu/my_awesome_asr_mind_model&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = processor(dataset[<span class="hljs-number">0</span>][<span class="hljs-string">&quot;audio&quot;</span>][<span class="hljs-string">&quot;array&quot;</span>], sampling_rate=sampling_rate, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)`}}),R=new G({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbEZvckNUQyUwQSUwQW1vZGVsJTIwJTNEJTIwQXV0b01vZGVsRm9yQ1RDLmZyb21fcHJldHJhaW5lZCglMjJzdGV2aGxpdSUyRm15X2F3ZXNvbWVfYXNyX21pbmRfbW9kZWwlMjIpJTBBd2l0aCUyMHRvcmNoLm5vX2dyYWQoKSUzQSUwQSUyMCUyMCUyMCUyMGxvZ2l0cyUyMCUzRCUyMG1vZGVsKCoqaW5wdXRzKS5sb2dpdHM=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoModelForCTC

<span class="hljs-meta">&gt;&gt;&gt; </span>model = AutoModelForCTC.from_pretrained(<span class="hljs-string">&quot;stevhliu/my_awesome_asr_mind_model&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> torch.no_grad():
<span class="hljs-meta">... </span>    logits = model(**inputs).logits`}}),Y=new G({props:{code:"aW1wb3J0JTIwdG9yY2glMEElMEFwcmVkaWN0ZWRfaWRzJTIwJTNEJTIwdG9yY2guYXJnbWF4KGxvZ2l0cyUyQyUyMGRpbSUzRC0xKSUwQXRyYW5zY3JpcHRpb24lMjAlM0QlMjBwcm9jZXNzb3IuYmF0Y2hfZGVjb2RlKHByZWRpY3RlZF9pZHMpJTBBdHJhbnNjcmlwdGlvbg==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch

<span class="hljs-meta">&gt;&gt;&gt; </span>predicted_ids = torch.argmax(logits, dim=-<span class="hljs-number">1</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>transcription = processor.batch_decode(predicted_ids)
<span class="hljs-meta">&gt;&gt;&gt; </span>transcription
[<span class="hljs-string">&#x27;I WOUL LIKE O SET UP JOINT ACOUNT WTH Y PARTNER&#x27;</span>]`}}),{c(){f=n("p"),u=t("\uC624\uB514\uC624 \uD30C\uC77C\uACFC \uD14D\uC2A4\uD2B8\uB97C \uC804\uCC98\uB9AC\uD558\uACE0 PyTorch \uD150\uC11C\uB85C "),h=n("code"),y=t("input"),g=t("\uC744 \uBC18\uD658\uD560 \uD504\uB85C\uC138\uC11C\uB97C \uAC00\uC838\uC624\uC138\uC694:"),E=i(),J(Z.$$.fragment),C=i(),v=n("p"),W=t("\uC785\uB825\uC744 \uBAA8\uB378\uC5D0 \uC804\uB2EC\uD558\uACE0 \uB85C\uC9D3\uC744 \uBC18\uD658\uD558\uC138\uC694:"),V=i(),J(R.$$.fragment),F=i(),A=n("p"),D=t("\uAC00\uC7A5 \uB192\uC740 \uD655\uB960\uC758 "),O=n("code"),X=t("input_ids"),k=t("\uB97C \uC608\uCE21\uD558\uACE0, \uD504\uB85C\uC138\uC11C\uB97C \uC0AC\uC6A9\uD558\uC5EC \uC608\uCE21\uB41C "),H=n("code"),K=t("input_ids"),B=t("\uB97C \uB2E4\uC2DC \uD14D\uC2A4\uD2B8\uB85C \uB514\uCF54\uB529\uD558\uC138\uC694:"),N=i(),J(Y.$$.fragment)},l(M){f=p(M,"P",{});var I=r(f);u=e(I,"\uC624\uB514\uC624 \uD30C\uC77C\uACFC \uD14D\uC2A4\uD2B8\uB97C \uC804\uCC98\uB9AC\uD558\uACE0 PyTorch \uD150\uC11C\uB85C "),h=p(I,"CODE",{});var L=r(h);y=e(L,"input"),L.forEach(a),g=e(I,"\uC744 \uBC18\uD658\uD560 \uD504\uB85C\uC138\uC11C\uB97C \uAC00\uC838\uC624\uC138\uC694:"),I.forEach(a),E=m(M),U(Z.$$.fragment,M),C=m(M),v=p(M,"P",{});var ss=r(v);W=e(ss,"\uC785\uB825\uC744 \uBAA8\uB378\uC5D0 \uC804\uB2EC\uD558\uACE0 \uB85C\uC9D3\uC744 \uBC18\uD658\uD558\uC138\uC694:"),ss.forEach(a),V=m(M),U(R.$$.fragment,M),F=m(M),A=p(M,"P",{});var P=r(A);D=e(P,"\uAC00\uC7A5 \uB192\uC740 \uD655\uB960\uC758 "),O=p(P,"CODE",{});var S=r(O);X=e(S,"input_ids"),S.forEach(a),k=e(P,"\uB97C \uC608\uCE21\uD558\uACE0, \uD504\uB85C\uC138\uC11C\uB97C \uC0AC\uC6A9\uD558\uC5EC \uC608\uCE21\uB41C "),H=p(P,"CODE",{});var ps=r(H);K=e(ps,"input_ids"),ps.forEach(a),B=e(P,"\uB97C \uB2E4\uC2DC \uD14D\uC2A4\uD2B8\uB85C \uB514\uCF54\uB529\uD558\uC138\uC694:"),P.forEach(a),N=m(M),U(Y.$$.fragment,M)},m(M,I){c(M,f,I),l(f,u),l(f,h),l(h,y),l(f,g),c(M,E,I),w(Z,M,I),c(M,C,I),c(M,v,I),l(v,W),c(M,V,I),w(R,M,I),c(M,F,I),c(M,A,I),l(A,D),l(A,O),l(O,X),l(A,k),l(A,H),l(H,K),l(A,B),c(M,N,I),w(Y,M,I),x=!0},p:Bp,i(M){x||(b(Z.$$.fragment,M),b(R.$$.fragment,M),b(Y.$$.fragment,M),x=!0)},o(M){T(Z.$$.fragment,M),T(R.$$.fragment,M),T(Y.$$.fragment,M),x=!1},d(M){M&&a(f),M&&a(E),_(Z,M),M&&a(C),M&&a(v),M&&a(V),_(R,M),M&&a(F),M&&a(A),M&&a(N),_(Y,M)}}}function Op(q){let f,u;return f=new Wp({props:{$$slots:{default:[qp]},$$scope:{ctx:q}}}),{c(){J(f.$$.fragment)},l(h){U(f.$$.fragment,h)},m(h,y){w(f,h,y),u=!0},p(h,y){const g={};y&2&&(g.$$scope={dirty:y,ctx:h}),f.$set(g)},i(h){u||(b(f.$$.fragment,h),u=!0)},o(h){T(f.$$.fragment,h),u=!1},d(h){_(f,h)}}}function Pp(q){let f,u,h,y,g,E,Z,C,v,W,V,R,F,A,D,O,X,k,H,K,B,N,Y,x,M,I,L,ss,P,S,ps,z,$,ms,fs,gs,hs,rs,bs,ds,us,Ms,os,Bs,cs,ls,$s,as,rl,Ts,ol,Ns,js,_s,ys,d,Q,Es,vs,cl,ts,ns,Al,Gl,Ys,Xl,Is,il,Cs,zs,Ws,Fs,ml,fl,Xa,es,Yt,Kl,zt,Ft,sa,Dt,Ht,la,xt,St,aa,qt,Ot,ta,Pt,Lt,Ba,hl,Na,Bl,Kt,Ya,dl,za,Nl,se,Fa,Ds,ul,ea,le,ae,na,te,ee,Yl,pa,ne,pe,Da,Zs,Hs,ra,Ml,re,oa,oe,Ha,zl,ce,xa,jl,Sa,xs,ie,yl,me,fe,qa,Jl,Oa,Fl,he,Pa,Ul,La,Dl,de,Ka,Ss,Hl,ca,ue,Me,je,Vs,ye,ia,Je,Ue,ma,we,be,st,wl,lt,is,Te,fa,_e,ge,ha,$e,Ee,da,ve,Ie,ua,Ce,Re,at,bl,tt,Js,ke,Ma,Qe,We,ja,Ze,Ve,ya,Ae,Ge,et,Rs,Xe,Ja,Be,Ne,Ua,Ye,ze,nt,Tl,pt,qs,Fe,wa,De,He,rt,_l,ot,As,Os,ba,gl,xe,Ta,Se,ct,Us,qe,$l,Oe,Pe,El,Le,Ke,vl,sn,ln,it,Il,mt,Ps,an,_a,tn,en,ft,Cl,ht,Ls,nn,ga,pn,rn,dt,Gs,Ks,$a,Rl,on,Ea,cn,ut,sl,Mt,ll,jt,Xs,al,va,kl,mn,Ia,fn,yt,xl,hn,Jt,Sl,dn,Ut,Ql,wt,ks,un,Ca,Mn,jn,Ra,yn,Jn,bt,Wl,Tt,tl,_t,Zl,ka,Un,wn,gt,el,$t;return E=new Ll({}),V=new Yp({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/asr.ipynb"},{label:"PyTorch",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/main/transformers_doc/ko/pytorch/asr.ipynb"},{label:"TensorFlow",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/main/transformers_doc/ko/tensorflow/asr.ipynb"},{label:"Mixed",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/transformers_doc/ko/asr.ipynb"},{label:"PyTorch",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/transformers_doc/ko/pytorch/asr.ipynb"},{label:"TensorFlow",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/transformers_doc/ko/tensorflow/asr.ipynb"}]}}),F=new Np({props:{id:"TksaY_FDgnk"}}),$=new Nt({props:{$$slots:{default:[zp]},$$scope:{ctx:q}}}),rs=new G({props:{code:"cGlwJTIwaW5zdGFsbCUyMHRyYW5zZm9ybWVycyUyMGRhdGFzZXRzJTIwZXZhbHVhdGUlMjBqaXdlcg==",highlighted:"pip install transformers datasets evaluate jiwer"}}),os=new G({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()`}}),as=new Ll({}),vs=new G({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTJDJTIwQXVkaW8lMEElMEFtaW5kcyUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJQb2x5QUklMkZtaW5kczE0JTIyJTJDJTIwbmFtZSUzRCUyMmVuLVVTJTIyJTJDJTIwc3BsaXQlM0QlMjJ0cmFpbiU1QiUzQTEwMCU1RCUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset, Audio

<span class="hljs-meta">&gt;&gt;&gt; </span>minds = load_dataset(<span class="hljs-string">&quot;PolyAI/minds14&quot;</span>, name=<span class="hljs-string">&quot;en-US&quot;</span>, split=<span class="hljs-string">&quot;train[:100]&quot;</span>)`}}),Cs=new G({props:{code:"bWluZHMlMjAlM0QlMjBtaW5kcy50cmFpbl90ZXN0X3NwbGl0KHRlc3Rfc2l6ZSUzRDAuMik=",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>minds = minds.train_test_split(test_size=<span class="hljs-number">0.2</span>)'}}),fl=new G({props:{code:"bWluZHM=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>minds
DatasetDict({
    train: Dataset({
        features: [<span class="hljs-string">&#x27;path&#x27;</span>, <span class="hljs-string">&#x27;audio&#x27;</span>, <span class="hljs-string">&#x27;transcription&#x27;</span>, <span class="hljs-string">&#x27;english_transcription&#x27;</span>, <span class="hljs-string">&#x27;intent_class&#x27;</span>, <span class="hljs-string">&#x27;lang_id&#x27;</span>],
        num_rows: <span class="hljs-number">16</span>
    })
    test: Dataset({
        features: [<span class="hljs-string">&#x27;path&#x27;</span>, <span class="hljs-string">&#x27;audio&#x27;</span>, <span class="hljs-string">&#x27;transcription&#x27;</span>, <span class="hljs-string">&#x27;english_transcription&#x27;</span>, <span class="hljs-string">&#x27;intent_class&#x27;</span>, <span class="hljs-string">&#x27;lang_id&#x27;</span>],
        num_rows: <span class="hljs-number">4</span>
    })
})`}}),hl=new G({props:{code:"bWluZHMlMjAlM0QlMjBtaW5kcy5yZW1vdmVfY29sdW1ucyglNUIlMjJlbmdsaXNoX3RyYW5zY3JpcHRpb24lMjIlMkMlMjAlMjJpbnRlbnRfY2xhc3MlMjIlMkMlMjAlMjJsYW5nX2lkJTIyJTVEKQ==",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>minds = minds.remove_columns([<span class="hljs-string">&quot;english_transcription&quot;</span>, <span class="hljs-string">&quot;intent_class&quot;</span>, <span class="hljs-string">&quot;lang_id&quot;</span>])'}}),dl=new G({props:{code:"bWluZHMlNUIlMjJ0cmFpbiUyMiU1RCU1QjAlNUQ=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>minds[<span class="hljs-string">&quot;train&quot;</span>][<span class="hljs-number">0</span>]
{<span class="hljs-string">&#x27;audio&#x27;</span>: {<span class="hljs-string">&#x27;array&#x27;</span>: array([-<span class="hljs-number">0.00024414</span>,  <span class="hljs-number">0.</span>        ,  <span class="hljs-number">0.</span>        , ...,  <span class="hljs-number">0.00024414</span>,
          <span class="hljs-number">0.00024414</span>,  <span class="hljs-number">0.00024414</span>], dtype=float32),
  <span class="hljs-string">&#x27;path&#x27;</span>: <span class="hljs-string">&#x27;/root/.cache/huggingface/datasets/downloads/extracted/f14948e0e84be638dd7943ac36518a4cf3324e8b7aa331c5ab11541518e9368c/en-US~APP_ERROR/602ba9e2963e11ccd901cd4f.wav&#x27;</span>,
  <span class="hljs-string">&#x27;sampling_rate&#x27;</span>: <span class="hljs-number">8000</span>},
 <span class="hljs-string">&#x27;path&#x27;</span>: <span class="hljs-string">&#x27;/root/.cache/huggingface/datasets/downloads/extracted/f14948e0e84be638dd7943ac36518a4cf3324e8b7aa331c5ab11541518e9368c/en-US~APP_ERROR/602ba9e2963e11ccd901cd4f.wav&#x27;</span>,
 <span class="hljs-string">&#x27;transcription&#x27;</span>: <span class="hljs-string">&quot;hi I&#x27;m trying to use the banking app on my phone and currently my checking and savings account balance is not refreshing&quot;</span>}`}}),Ml=new Ll({}),jl=new G({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Qcm9jZXNzb3IlMEElMEFwcm9jZXNzb3IlMjAlM0QlMjBBdXRvUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJmYWNlYm9vayUyRndhdjJ2ZWMyLWJhc2UlMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoProcessor

<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;facebook/wav2vec2-base&quot;</span>)`}}),Jl=new G({props:{code:"bWluZHMlMjAlM0QlMjBtaW5kcy5jYXN0X2NvbHVtbiglMjJhdWRpbyUyMiUyQyUyMEF1ZGlvKHNhbXBsaW5nX3JhdGUlM0QxNl8wMDApKSUwQW1pbmRzJTVCJTIydHJhaW4lMjIlNUQlNUIwJTVE",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>minds = minds.cast_column(<span class="hljs-string">&quot;audio&quot;</span>, Audio(sampling_rate=<span class="hljs-number">16_000</span>))
<span class="hljs-meta">&gt;&gt;&gt; </span>minds[<span class="hljs-string">&quot;train&quot;</span>][<span class="hljs-number">0</span>]
{<span class="hljs-string">&#x27;audio&#x27;</span>: {<span class="hljs-string">&#x27;array&#x27;</span>: array([-<span class="hljs-number">2.38064706e-04</span>, -<span class="hljs-number">1.58618059e-04</span>, -<span class="hljs-number">5.43987835e-06</span>, ...,
          <span class="hljs-number">2.78103951e-04</span>,  <span class="hljs-number">2.38446111e-04</span>,  <span class="hljs-number">1.18740834e-04</span>], dtype=float32),
  <span class="hljs-string">&#x27;path&#x27;</span>: <span class="hljs-string">&#x27;/root/.cache/huggingface/datasets/downloads/extracted/f14948e0e84be638dd7943ac36518a4cf3324e8b7aa331c5ab11541518e9368c/en-US~APP_ERROR/602ba9e2963e11ccd901cd4f.wav&#x27;</span>,
  <span class="hljs-string">&#x27;sampling_rate&#x27;</span>: <span class="hljs-number">16000</span>},
 <span class="hljs-string">&#x27;path&#x27;</span>: <span class="hljs-string">&#x27;/root/.cache/huggingface/datasets/downloads/extracted/f14948e0e84be638dd7943ac36518a4cf3324e8b7aa331c5ab11541518e9368c/en-US~APP_ERROR/602ba9e2963e11ccd901cd4f.wav&#x27;</span>,
 <span class="hljs-string">&#x27;transcription&#x27;</span>: <span class="hljs-string">&quot;hi I&#x27;m trying to use the banking app on my phone and currently my checking and savings account balance is not refreshing&quot;</span>}`}}),Ul=new G({props:{code:"ZGVmJTIwdXBwZXJjYXNlKGV4YW1wbGUpJTNBJTBBJTIwJTIwJTIwJTIwcmV0dXJuJTIwJTdCJTIydHJhbnNjcmlwdGlvbiUyMiUzQSUyMGV4YW1wbGUlNUIlMjJ0cmFuc2NyaXB0aW9uJTIyJTVELnVwcGVyKCklN0QlMEElMEElMEFtaW5kcyUyMCUzRCUyMG1pbmRzLm1hcCh1cHBlcmNhc2Up",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">uppercase</span>(<span class="hljs-params">example</span>):
<span class="hljs-meta">... </span>    <span class="hljs-keyword">return</span> {<span class="hljs-string">&quot;transcription&quot;</span>: example[<span class="hljs-string">&quot;transcription&quot;</span>].upper()}


<span class="hljs-meta">&gt;&gt;&gt; </span>minds = minds.<span class="hljs-built_in">map</span>(uppercase)`}}),wl=new G({props:{code:"ZGVmJTIwcHJlcGFyZV9kYXRhc2V0KGJhdGNoKSUzQSUwQSUyMCUyMCUyMCUyMGF1ZGlvJTIwJTNEJTIwYmF0Y2glNUIlMjJhdWRpbyUyMiU1RCUwQSUyMCUyMCUyMCUyMGJhdGNoJTIwJTNEJTIwcHJvY2Vzc29yKGF1ZGlvJTVCJTIyYXJyYXklMjIlNUQlMkMlMjBzYW1wbGluZ19yYXRlJTNEYXVkaW8lNUIlMjJzYW1wbGluZ19yYXRlJTIyJTVEJTJDJTIwdGV4dCUzRGJhdGNoJTVCJTIydHJhbnNjcmlwdGlvbiUyMiU1RCklMEElMjAlMjAlMjAlMjBiYXRjaCU1QiUyMmlucHV0X2xlbmd0aCUyMiU1RCUyMCUzRCUyMGxlbihiYXRjaCU1QiUyMmlucHV0X3ZhbHVlcyUyMiU1RCU1QjAlNUQpJTBBJTIwJTIwJTIwJTIwcmV0dXJuJTIwYmF0Y2g=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">prepare_dataset</span>(<span class="hljs-params">batch</span>):
<span class="hljs-meta">... </span>    audio = batch[<span class="hljs-string">&quot;audio&quot;</span>]
<span class="hljs-meta">... </span>    batch = processor(audio[<span class="hljs-string">&quot;array&quot;</span>], sampling_rate=audio[<span class="hljs-string">&quot;sampling_rate&quot;</span>], text=batch[<span class="hljs-string">&quot;transcription&quot;</span>])
<span class="hljs-meta">... </span>    batch[<span class="hljs-string">&quot;input_length&quot;</span>] = <span class="hljs-built_in">len</span>(batch[<span class="hljs-string">&quot;input_values&quot;</span>][<span class="hljs-number">0</span>])
<span class="hljs-meta">... </span>    <span class="hljs-keyword">return</span> batch`}}),bl=new G({props:{code:"ZW5jb2RlZF9taW5kcyUyMCUzRCUyMG1pbmRzLm1hcChwcmVwYXJlX2RhdGFzZXQlMkMlMjByZW1vdmVfY29sdW1ucyUzRG1pbmRzLmNvbHVtbl9uYW1lcyU1QiUyMnRyYWluJTIyJTVEJTJDJTIwbnVtX3Byb2MlM0Q0KQ==",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>encoded_minds = minds.<span class="hljs-built_in">map</span>(prepare_dataset, remove_columns=minds.column_names[<span class="hljs-string">&quot;train&quot;</span>], num_proc=<span class="hljs-number">4</span>)'}}),Tl=new G({props:{code:"aW1wb3J0JTIwdG9yY2glMEElMEFmcm9tJTIwZGF0YWNsYXNzZXMlMjBpbXBvcnQlMjBkYXRhY2xhc3MlMkMlMjBmaWVsZCUwQWZyb20lMjB0eXBpbmclMjBpbXBvcnQlMjBBbnklMkMlMjBEaWN0JTJDJTIwTGlzdCUyQyUyME9wdGlvbmFsJTJDJTIwVW5pb24lMEElMEElMEElNDBkYXRhY2xhc3MlMEFjbGFzcyUyMERhdGFDb2xsYXRvckNUQ1dpdGhQYWRkaW5nJTNBJTBBJTIwJTIwJTIwJTIwcHJvY2Vzc29yJTNBJTIwQXV0b1Byb2Nlc3NvciUwQSUyMCUyMCUyMCUyMHBhZGRpbmclM0ElMjBVbmlvbiU1QmJvb2wlMkMlMjBzdHIlNUQlMjAlM0QlMjAlMjJsb25nZXN0JTIyJTBBJTBBJTIwJTIwJTIwJTIwZGVmJTIwX19jYWxsX18oc2VsZiUyQyUyMGZlYXR1cmVzJTNBJTIwTGlzdCU1QkRpY3QlNUJzdHIlMkMlMjBVbmlvbiU1Qkxpc3QlNUJpbnQlNUQlMkMlMjB0b3JjaC5UZW5zb3IlNUQlNUQlNUQpJTIwLSUzRSUyMERpY3QlNUJzdHIlMkMlMjB0b3JjaC5UZW5zb3IlNUQlM0ElMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjMlMjAlRUMlOUUlODUlRUIlQTAlQTUlRUElQjMlQkMlMjAlRUIlQTAlODglRUMlOUQlQjQlRUIlQjglOTQlRUMlOUQlODQlMjAlRUIlQjYlODQlRUQlOTUlQTAlRUQlOTUlQTklRUIlOEIlODglRUIlOEIlQTQlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjMlMjAlRUElQjglQjglRUMlOUQlQjQlRUElQjAlODAlMjAlRUIlOEIlQTQlRUIlQTUlQjQlRUElQjMlQTAlMkMlMjAlRUElQjAlODElRUElQjAlODElMjAlRUIlOEIlQTQlRUIlQTUlQjglMjAlRUQlOEMlQTglRUIlOTQlQTklMjAlRUIlQjAlQTklRUIlQjIlOTUlRUMlOUQlODQlMjAlRUMlODIlQUMlRUMlOUElQTklRUQlOTUlQjQlRUMlOTUlQkMlMjAlRUQlOTUlOTglRUElQjglQjAlMjAlRUIlOTUlOEMlRUIlQUMlQjglRUMlOUUlODUlRUIlOEIlODglRUIlOEIlQTQlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBpbnB1dF9mZWF0dXJlcyUyMCUzRCUyMCU1QiU3QiUyMmlucHV0X3ZhbHVlcyUyMiUzQSUyMGZlYXR1cmUlNUIlMjJpbnB1dF92YWx1ZXMlMjIlNUQlNUIwJTVEJTdEJTIwZm9yJTIwZmVhdHVyZSUyMGluJTIwZmVhdHVyZXMlNUQlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBsYWJlbF9mZWF0dXJlcyUyMCUzRCUyMCU1QiU3QiUyMmlucHV0X2lkcyUyMiUzQSUyMGZlYXR1cmUlNUIlMjJsYWJlbHMlMjIlNUQlN0QlMjBmb3IlMjBmZWF0dXJlJTIwaW4lMjBmZWF0dXJlcyU1RCUwQSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGJhdGNoJTIwJTNEJTIwc2VsZi5wcm9jZXNzb3IucGFkKGlucHV0X2ZlYXR1cmVzJTJDJTIwcGFkZGluZyUzRHNlbGYucGFkZGluZyUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpJTBBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwbGFiZWxzX2JhdGNoJTIwJTNEJTIwc2VsZi5wcm9jZXNzb3IucGFkKGxhYmVscyUzRGxhYmVsX2ZlYXR1cmVzJTJDJTIwcGFkZGluZyUzRHNlbGYucGFkZGluZyUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpJTBBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIzJTIwJUVEJThDJUE4JUVCJTk0JUE5JUVDJTk3JTkwJTIwJUVCJThDJTgwJUVEJTk1JUI0JTIwJUVDJTg2JTkwJUVDJThCJUE0JUVDJTlEJTg0JTIwJUVDJUEwJTgxJUVDJTlBJUE5JUVEJTk1JTk4JUVDJUE3JTgwJTIwJUVDJTk1JThBJUVCJThGJTg0JUVCJUExJTlEJTIwLTEwMCVFQyU5QyVCQyVFQiVBMSU5QyUyMCVFQiU4QyU4MCVFQyVCMiVCNCVFRCU5NSVBOSVFQiU4QiU4OCVFQiU4QiVBNCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGxhYmVscyUyMCUzRCUyMGxhYmVsc19iYXRjaCU1QiUyMmlucHV0X2lkcyUyMiU1RC5tYXNrZWRfZmlsbChsYWJlbHNfYmF0Y2guYXR0ZW50aW9uX21hc2submUoMSklMkMlMjAtMTAwKSUwQSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGJhdGNoJTVCJTIybGFiZWxzJTIyJTVEJTIwJTNEJTIwbGFiZWxzJTBBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwcmV0dXJuJTIwYmF0Y2g=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> dataclasses <span class="hljs-keyword">import</span> dataclass, field
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> typing <span class="hljs-keyword">import</span> <span class="hljs-type">Any</span>, <span class="hljs-type">Dict</span>, <span class="hljs-type">List</span>, <span class="hljs-type">Optional</span>, <span class="hljs-type">Union</span>


<span class="hljs-meta">&gt;&gt;&gt; </span>@dataclass
<span class="hljs-meta">... </span><span class="hljs-keyword">class</span> <span class="hljs-title class_">DataCollatorCTCWithPadding</span>:
<span class="hljs-meta">... </span>    processor: AutoProcessor
<span class="hljs-meta">... </span>    padding: <span class="hljs-type">Union</span>[<span class="hljs-built_in">bool</span>, <span class="hljs-built_in">str</span>] = <span class="hljs-string">&quot;longest&quot;</span>

<span class="hljs-meta">... </span>    <span class="hljs-keyword">def</span> <span class="hljs-title function_">__call__</span>(<span class="hljs-params">self, features: <span class="hljs-type">List</span>[<span class="hljs-type">Dict</span>[<span class="hljs-built_in">str</span>, <span class="hljs-type">Union</span>[<span class="hljs-type">List</span>[<span class="hljs-built_in">int</span>], torch.Tensor]]]</span>) -&gt; <span class="hljs-type">Dict</span>[<span class="hljs-built_in">str</span>, torch.Tensor]:
<span class="hljs-meta">... </span>        <span class="hljs-comment"># \uC785\uB825\uACFC \uB808\uC774\uBE14\uC744 \uBD84\uD560\uD569\uB2C8\uB2E4</span>
<span class="hljs-meta">... </span>        <span class="hljs-comment"># \uAE38\uC774\uAC00 \uB2E4\uB974\uACE0, \uAC01\uAC01 \uB2E4\uB978 \uD328\uB529 \uBC29\uBC95\uC744 \uC0AC\uC6A9\uD574\uC57C \uD558\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4</span>
<span class="hljs-meta">... </span>        input_features = [{<span class="hljs-string">&quot;input_values&quot;</span>: feature[<span class="hljs-string">&quot;input_values&quot;</span>][<span class="hljs-number">0</span>]} <span class="hljs-keyword">for</span> feature <span class="hljs-keyword">in</span> features]
<span class="hljs-meta">... </span>        label_features = [{<span class="hljs-string">&quot;input_ids&quot;</span>: feature[<span class="hljs-string">&quot;labels&quot;</span>]} <span class="hljs-keyword">for</span> feature <span class="hljs-keyword">in</span> features]

<span class="hljs-meta">... </span>        batch = self.processor.pad(input_features, padding=self.padding, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">... </span>        labels_batch = self.processor.pad(labels=label_features, padding=self.padding, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">... </span>        <span class="hljs-comment"># \uD328\uB529\uC5D0 \uB300\uD574 \uC190\uC2E4\uC744 \uC801\uC6A9\uD558\uC9C0 \uC54A\uB3C4\uB85D -100\uC73C\uB85C \uB300\uCCB4\uD569\uB2C8\uB2E4</span>
<span class="hljs-meta">... </span>        labels = labels_batch[<span class="hljs-string">&quot;input_ids&quot;</span>].masked_fill(labels_batch.attention_mask.ne(<span class="hljs-number">1</span>), -<span class="hljs-number">100</span>)

<span class="hljs-meta">... </span>        batch[<span class="hljs-string">&quot;labels&quot;</span>] = labels

<span class="hljs-meta">... </span>        <span class="hljs-keyword">return</span> batch`}}),_l=new G({props:{code:"ZGF0YV9jb2xsYXRvciUyMCUzRCUyMERhdGFDb2xsYXRvckNUQ1dpdGhQYWRkaW5nKHByb2Nlc3NvciUzRHByb2Nlc3NvciUyQyUyMHBhZGRpbmclM0QlMjJsb25nZXN0JTIyKQ==",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>data_collator = DataCollatorCTCWithPadding(processor=processor, padding=<span class="hljs-string">&quot;longest&quot;</span>)'}}),gl=new Ll({}),Il=new G({props:{code:"aW1wb3J0JTIwZXZhbHVhdGUlMEElMEF3ZXIlMjAlM0QlMjBldmFsdWF0ZS5sb2FkKCUyMndlciUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> evaluate

<span class="hljs-meta">&gt;&gt;&gt; </span>wer = evaluate.load(<span class="hljs-string">&quot;wer&quot;</span>)`}}),Cl=new G({props:{code:"aW1wb3J0JTIwbnVtcHklMjBhcyUyMG5wJTBBJTBBJTBBZGVmJTIwY29tcHV0ZV9tZXRyaWNzKHByZWQpJTNBJTBBJTIwJTIwJTIwJTIwcHJlZF9sb2dpdHMlMjAlM0QlMjBwcmVkLnByZWRpY3Rpb25zJTBBJTIwJTIwJTIwJTIwcHJlZF9pZHMlMjAlM0QlMjBucC5hcmdtYXgocHJlZF9sb2dpdHMlMkMlMjBheGlzJTNELTEpJTBBJTBBJTIwJTIwJTIwJTIwcHJlZC5sYWJlbF9pZHMlNUJwcmVkLmxhYmVsX2lkcyUyMCUzRCUzRCUyMC0xMDAlNUQlMjAlM0QlMjBwcm9jZXNzb3IudG9rZW5pemVyLnBhZF90b2tlbl9pZCUwQSUwQSUyMCUyMCUyMCUyMHByZWRfc3RyJTIwJTNEJTIwcHJvY2Vzc29yLmJhdGNoX2RlY29kZShwcmVkX2lkcyklMEElMjAlMjAlMjAlMjBsYWJlbF9zdHIlMjAlM0QlMjBwcm9jZXNzb3IuYmF0Y2hfZGVjb2RlKHByZWQubGFiZWxfaWRzJTJDJTIwZ3JvdXBfdG9rZW5zJTNERmFsc2UpJTBBJTBBJTIwJTIwJTIwJTIwd2VyJTIwJTNEJTIwd2VyLmNvbXB1dGUocHJlZGljdGlvbnMlM0RwcmVkX3N0ciUyQyUyMHJlZmVyZW5jZXMlM0RsYWJlbF9zdHIpJTBBJTBBJTIwJTIwJTIwJTIwcmV0dXJuJTIwJTdCJTIyd2VyJTIyJTNBJTIwd2VyJTdE",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">pred</span>):
<span class="hljs-meta">... </span>    pred_logits = pred.predictions
<span class="hljs-meta">... </span>    pred_ids = np.argmax(pred_logits, axis=-<span class="hljs-number">1</span>)

<span class="hljs-meta">... </span>    pred.label_ids[pred.label_ids == -<span class="hljs-number">100</span>] = processor.tokenizer.pad_token_id

<span class="hljs-meta">... </span>    pred_str = processor.batch_decode(pred_ids)
<span class="hljs-meta">... </span>    label_str = processor.batch_decode(pred.label_ids, group_tokens=<span class="hljs-literal">False</span>)

<span class="hljs-meta">... </span>    wer = wer.compute(predictions=pred_str, references=label_str)

<span class="hljs-meta">... </span>    <span class="hljs-keyword">return</span> {<span class="hljs-string">&quot;wer&quot;</span>: wer}`}}),Rl=new Ll({}),sl=new Qp({props:{pytorch:!0,tensorflow:!1,jax:!1,$$slots:{pytorch:[Hp]},$$scope:{ctx:q}}}),ll=new Nt({props:{$$slots:{default:[xp]},$$scope:{ctx:q}}}),kl=new Ll({}),Ql=new G({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTJDJTIwQXVkaW8lMEElMEFkYXRhc2V0JTIwJTNEJTIwbG9hZF9kYXRhc2V0KCUyMlBvbHlBSSUyRm1pbmRzMTQlMjIlMkMlMjAlMjJlbi1VUyUyMiUyQyUyMHNwbGl0JTNEJTIydHJhaW4lMjIpJTBBZGF0YXNldCUyMCUzRCUyMGRhdGFzZXQuY2FzdF9jb2x1bW4oJTIyYXVkaW8lMjIlMkMlMjBBdWRpbyhzYW1wbGluZ19yYXRlJTNEMTYwMDApKSUwQXNhbXBsaW5nX3JhdGUlMjAlM0QlMjBkYXRhc2V0LmZlYXR1cmVzJTVCJTIyYXVkaW8lMjIlNUQuc2FtcGxpbmdfcmF0ZSUwQWF1ZGlvX2ZpbGUlMjAlM0QlMjBkYXRhc2V0JTVCMCU1RCU1QiUyMmF1ZGlvJTIyJTVEJTVCJTIycGF0aCUyMiU1RA==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset, Audio

<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;PolyAI/minds14&quot;</span>, <span class="hljs-string">&quot;en-US&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = dataset.cast_column(<span class="hljs-string">&quot;audio&quot;</span>, Audio(sampling_rate=<span class="hljs-number">16000</span>))
<span class="hljs-meta">&gt;&gt;&gt; </span>sampling_rate = dataset.features[<span class="hljs-string">&quot;audio&quot;</span>].sampling_rate
<span class="hljs-meta">&gt;&gt;&gt; </span>audio_file = dataset[<span class="hljs-number">0</span>][<span class="hljs-string">&quot;audio&quot;</span>][<span class="hljs-string">&quot;path&quot;</span>]`}}),Wl=new G({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBdHJhbnNjcmliZXIlMjAlM0QlMjBwaXBlbGluZSglMjJhdXRvbWF0aWMtc3BlZWNoLXJlY29nbml0aW9uJTIyJTJDJTIwbW9kZWwlM0QlMjJzdGV2aGxpdSUyRm15X2F3ZXNvbWVfYXNyX21pbmRzX21vZGVsJTIyKSUwQXRyYW5zY3JpYmVyKGF1ZGlvX2ZpbGUp",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>transcriber = pipeline(<span class="hljs-string">&quot;automatic-speech-recognition&quot;</span>, model=<span class="hljs-string">&quot;stevhliu/my_awesome_asr_minds_model&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>transcriber(audio_file)
{<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;I WOUD LIKE O SET UP JOINT ACOUNT WTH Y PARTNER&#x27;</span>}`}}),tl=new Nt({props:{$$slots:{default:[Sp]},$$scope:{ctx:q}}}),el=new Qp({props:{pytorch:!0,tensorflow:!1,jax:!1,$$slots:{pytorch:[Op]},$$scope:{ctx:q}}}),{c(){f=n("meta"),u=i(),h=n("h1"),y=n("a"),g=n("span"),J(E.$$.fragment),Z=i(),C=n("span"),v=t("\uC790\uB3D9 \uC74C\uC131 \uC778\uC2DD"),W=i(),J(V.$$.fragment),R=i(),J(F.$$.fragment),A=i(),D=n("p"),O=t(`\uC790\uB3D9 \uC74C\uC131 \uC778\uC2DD(Automatic Speech Recognition, ASR)\uC740 \uC74C\uC131 \uC2E0\uD638\uB97C \uD14D\uC2A4\uD2B8\uB85C \uBCC0\uD658\uD558\uC5EC \uC74C\uC131 \uC785\uB825 \uC2DC\uD000\uC2A4\uB97C \uD14D\uC2A4\uD2B8 \uCD9C\uB825\uC5D0 \uB9E4\uD551\uD569\uB2C8\uB2E4.
Siri\uC640 Alexa\uC640 \uAC19\uC740 \uAC00\uC0C1 \uC5B4\uC2DC\uC2A4\uD134\uD2B8\uB294 ASR \uBAA8\uB378\uC744 \uC0AC\uC6A9\uD558\uC5EC \uC77C\uC0C1\uC801\uC73C\uB85C \uC0AC\uC6A9\uC790\uB97C \uB3D5\uACE0 \uC788\uC73C\uBA70, \uD68C\uC758 \uC911 \uB77C\uC774\uBE0C \uCEA1\uC158 \uBC0F \uBA54\uBAA8 \uC791\uC131\uACFC \uAC19\uC740 \uC720\uC6A9\uD55C \uC0AC\uC6A9\uC790 \uCE5C\uD654\uC801 \uC751\uC6A9 \uD504\uB85C\uADF8\uB7A8\uB3C4 \uB9CE\uC774 \uC788\uC2B5\uB2C8\uB2E4.`),X=i(),k=n("p"),H=t("\uC774 \uAC00\uC774\uB4DC\uC5D0\uC11C \uC18C\uAC1C\uD560 \uB0B4\uC6A9\uC740 \uC544\uB798\uC640 \uAC19\uC2B5\uB2C8\uB2E4:"),K=i(),B=n("ol"),N=n("li"),Y=n("a"),x=t("MInDS-14"),M=t(" \uB370\uC774\uD130 \uC138\uD2B8\uC5D0\uC11C "),I=n("a"),L=t("Wav2Vec2"),ss=t("\uB97C \uBBF8\uC138 \uC870\uC815\uD558\uC5EC \uC624\uB514\uC624\uB97C \uD14D\uC2A4\uD2B8\uB85C \uBCC0\uD658\uD569\uB2C8\uB2E4."),P=i(),S=n("li"),ps=t("\uBBF8\uC138 \uC870\uC815\uD55C \uBAA8\uB378\uC744 \uCD94\uB860\uC5D0 \uC0AC\uC6A9\uD569\uB2C8\uB2E4."),z=i(),J($.$$.fragment),ms=i(),fs=n("p"),gs=t("\uC2DC\uC791\uD558\uAE30 \uC804\uC5D0 \uD544\uC694\uD55C \uBAA8\uB4E0 \uB77C\uC774\uBE0C\uB7EC\uB9AC\uAC00 \uC124\uCE58\uB418\uC5B4 \uC788\uB294\uC9C0 \uD655\uC778\uD558\uC138\uC694:"),hs=i(),J(rs.$$.fragment),bs=i(),ds=n("p"),us=t("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."),Ms=i(),J(os.$$.fragment),Bs=i(),cs=n("h2"),ls=n("a"),$s=n("span"),J(as.$$.fragment),rl=i(),Ts=n("span"),ol=t("MInDS-14 \uB370\uC774\uD130 \uC138\uD2B8 \uAC00\uC838\uC624\uAE30"),Ns=i(),js=n("p"),_s=t("\uBA3C\uC800, \u{1F917} Datasets \uB77C\uC774\uBE0C\uB7EC\uB9AC\uC5D0\uC11C "),ys=n("a"),d=t("MInDS-14"),Q=t(` \uB370\uC774\uD130 \uC138\uD2B8\uC758 \uC77C\uBD80\uBD84\uC744 \uAC00\uC838\uC624\uC138\uC694.
\uC774\uB807\uAC8C \uD558\uBA74 \uC804\uCCB4 \uB370\uC774\uD130 \uC138\uD2B8\uC5D0 \uB300\uD55C \uD6C8\uB828\uC5D0 \uC2DC\uAC04\uC744 \uB4E4\uC774\uAE30 \uC804\uC5D0 \uBAA8\uB4E0 \uAC83\uC774 \uC791\uB3D9\uD558\uB294\uC9C0 \uC2E4\uD5D8\uD558\uACE0 \uAC80\uC99D\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.`),Es=i(),J(vs.$$.fragment),cl=i(),ts=n("p"),ns=n("code"),Al=t("~Dataset.train_test_split"),Gl=t(" \uBA54\uC18C\uB4DC\uB97C \uC0AC\uC6A9\uD558\uC5EC \uB370\uC774\uD130 \uC138\uD2B8\uC758 "),Ys=n("code"),Xl=t("train"),Is=t("\uC744 \uD6C8\uB828 \uC138\uD2B8\uC640 \uD14C\uC2A4\uD2B8 \uC138\uD2B8\uB85C \uB098\uB204\uC138\uC694:"),il=i(),J(Cs.$$.fragment),zs=i(),Ws=n("p"),Fs=t("\uADF8\uB9AC\uACE0 \uB370\uC774\uD130 \uC138\uD2B8\uB97C \uD655\uC778\uD558\uC138\uC694:"),ml=i(),J(fl.$$.fragment),Xa=i(),es=n("p"),Yt=t("\uB370\uC774\uD130 \uC138\uD2B8\uC5D0\uB294 "),Kl=n("code"),zt=t("lang_id"),Ft=t("\uC640 "),sa=n("code"),Dt=t("english_transcription"),Ht=t("\uACFC \uAC19\uC740 \uC720\uC6A9\uD55C \uC815\uBCF4\uAC00 \uB9CE\uC774 \uD3EC\uD568\uB418\uC5B4 \uC788\uC9C0\uB9CC, \uC774 \uAC00\uC774\uB4DC\uC5D0\uC11C\uB294 "),la=n("code"),xt=t("audio"),St=t("\uC640 "),aa=n("code"),qt=t("transcription"),Ot=t("\uC5D0 \uCD08\uC810\uC744 \uB9DE\uCD9C \uAC83\uC785\uB2C8\uB2E4. \uB2E4\uB978 \uC5F4\uC740 "),ta=n("code"),Pt=t("remove_columns"),Lt=t(" \uBA54\uC18C\uB4DC\uB97C \uC0AC\uC6A9\uD558\uC5EC \uC81C\uAC70\uD558\uC138\uC694:"),Ba=i(),J(hl.$$.fragment),Na=i(),Bl=n("p"),Kt=t("\uC608\uC2DC\uB97C \uB2E4\uC2DC \uD55C\uBC88 \uD655\uC778\uD574\uBCF4\uC138\uC694:"),Ya=i(),J(dl.$$.fragment),za=i(),Nl=n("p"),se=t("\uB450 \uAC1C\uC758 \uD544\uB4DC\uAC00 \uC788\uC2B5\uB2C8\uB2E4:"),Fa=i(),Ds=n("ul"),ul=n("li"),ea=n("code"),le=t("audio"),ae=t(": \uC624\uB514\uC624 \uD30C\uC77C\uC744 \uAC00\uC838\uC624\uACE0 \uB9AC\uC0D8\uD50C\uB9C1\uD558\uAE30 \uC704\uD574 \uD638\uCD9C\uD574\uC57C \uD558\uB294 \uC74C\uC131 \uC2E0\uD638\uC758 1\uCC28\uC6D0 "),na=n("code"),te=t("array(\uBC30\uC5F4)"),ee=i(),Yl=n("li"),pa=n("code"),ne=t("transcription"),pe=t(": \uBAA9\uD45C \uD14D\uC2A4\uD2B8"),Da=i(),Zs=n("h2"),Hs=n("a"),ra=n("span"),J(Ml.$$.fragment),re=i(),oa=n("span"),oe=t("\uC804\uCC98\uB9AC"),Ha=i(),zl=n("p"),ce=t("\uB2E4\uC74C\uC73C\uB85C \uC624\uB514\uC624 \uC2E0\uD638\uB97C \uCC98\uB9AC\uD558\uAE30 \uC704\uD55C Wav2Vec2 \uD504\uB85C\uC138\uC11C\uB97C \uAC00\uC838\uC635\uB2C8\uB2E4:"),xa=i(),J(jl.$$.fragment),Sa=i(),xs=n("p"),ie=t("MInDS-14 \uB370\uC774\uD130 \uC138\uD2B8\uC758 \uC0D8\uD50C\uB9C1 \uB808\uC774\uD2B8\uB294 8000kHz\uC774\uBBC0\uB85C("),yl=n("a"),me=t("\uB370\uC774\uD130 \uC138\uD2B8 \uCE74\uB4DC"),fe=t("\uC5D0\uC11C \uD655\uC778), \uC0AC\uC804 \uD6C8\uB828\uB41C Wav2Vec2 \uBAA8\uB378\uC744 \uC0AC\uC6A9\uD558\uB824\uBA74 \uB370\uC774\uD130 \uC138\uD2B8\uB97C 16000kHz\uB85C \uB9AC\uC0D8\uD50C\uB9C1\uD574\uC57C \uD569\uB2C8\uB2E4:"),qa=i(),J(Jl.$$.fragment),Oa=i(),Fl=n("p"),he=t("\uC704\uC758 \u2018transcription\u2019\uC5D0\uC11C \uBCFC \uC218 \uC788\uB4EF\uC774 \uD14D\uC2A4\uD2B8\uB294 \uB300\uBB38\uC790\uC640 \uC18C\uBB38\uC790\uAC00 \uC11E\uC5EC \uC788\uC2B5\uB2C8\uB2E4. Wav2Vec2 \uD1A0\uD06C\uB098\uC774\uC800\uB294 \uB300\uBB38\uC790 \uBB38\uC790\uC5D0 \uB300\uD574\uC11C\uB9CC \uD6C8\uB828\uB418\uC5B4 \uC788\uC73C\uBBC0\uB85C \uD14D\uC2A4\uD2B8\uAC00 \uD1A0\uD06C\uB098\uC774\uC800\uC758 \uC5B4\uD718\uC640 \uC77C\uCE58\uD558\uB294\uC9C0 \uD655\uC778\uD574\uC57C \uD569\uB2C8\uB2E4:"),Pa=i(),J(Ul.$$.fragment),La=i(),Dl=n("p"),de=t("\uC774\uC81C \uB2E4\uC74C \uC791\uC5C5\uC744 \uC218\uD589\uD560 \uC804\uCC98\uB9AC \uD568\uC218\uB97C \uB9CC\uB4E4\uC5B4\uBCF4\uACA0\uC2B5\uB2C8\uB2E4:"),Ka=i(),Ss=n("ol"),Hl=n("li"),ca=n("code"),ue=t("audio"),Me=t(" \uC5F4\uC744 \uD638\uCD9C\uD558\uC5EC \uC624\uB514\uC624 \uD30C\uC77C\uC744 \uAC00\uC838\uC624\uACE0 \uB9AC\uC0D8\uD50C\uB9C1\uD569\uB2C8\uB2E4."),je=i(),Vs=n("li"),ye=t("\uC624\uB514\uC624 \uD30C\uC77C\uC5D0\uC11C "),ia=n("code"),Je=t("input_values"),Ue=t("\uB97C \uCD94\uCD9C\uD558\uACE0 \uD504\uB85C\uC138\uC11C\uB85C "),ma=n("code"),we=t("transcription"),be=t(" \uC5F4\uC744 \uD1A0\uD070\uD654\uD569\uB2C8\uB2E4."),st=i(),J(wl.$$.fragment),lt=i(),is=n("p"),Te=t("\uC804\uCCB4 \uB370\uC774\uD130 \uC138\uD2B8\uC5D0 \uC804\uCC98\uB9AC \uD568\uC218\uB97C \uC801\uC6A9\uD558\uB824\uBA74 \u{1F917} Datasets "),fa=n("code"),_e=t("map"),ge=t(" \uD568\uC218\uB97C \uC0AC\uC6A9\uD558\uC138\uC694. "),ha=n("code"),$e=t("num_proc"),Ee=t(" \uB9E4\uAC1C\uBCC0\uC218\uB97C \uC0AC\uC6A9\uD558\uC5EC \uD504\uB85C\uC138\uC2A4 \uC218\uB97C \uB298\uB9AC\uBA74 "),da=n("code"),ve=t("map"),Ie=t("\uC758 \uC18D\uB3C4\uB97C \uB192\uC77C \uC218 \uC788\uC2B5\uB2C8\uB2E4. "),ua=n("code"),Ce=t("remove_columns"),Re=t(" \uBA54\uC18C\uB4DC\uB97C \uC0AC\uC6A9\uD558\uC5EC \uD544\uC694\uD558\uC9C0 \uC54A\uC740 \uC5F4\uC744 \uC81C\uAC70\uD558\uC138\uC694:"),at=i(),J(bl.$$.fragment),tt=i(),Js=n("p"),ke=t("\u{1F917} Transformers\uC5D0\uB294 \uC790\uB3D9 \uC74C\uC131 \uC778\uC2DD\uC6A9 \uB370\uC774\uD130 \uCF5C\uB808\uC774\uD130\uAC00 \uC5C6\uC73C\uBBC0\uB85C \uC608\uC81C \uBC30\uCE58\uB97C \uC0DD\uC131\uD558\uB824\uBA74 "),Ma=n("code"),Qe=t("DataCollatorWithPadding"),We=t("\uC744 \uC870\uC815\uD574\uC57C \uD569\uB2C8\uB2E4. \uC774\uB807\uAC8C \uD558\uBA74 \uB370\uC774\uD130 \uCF5C\uB808\uC774\uD130\uB294 \uD14D\uC2A4\uD2B8\uC640 \uB808\uC774\uBE14\uC744 \uBC30\uCE58\uC5D0\uC11C \uAC00\uC7A5 \uAE34 \uC694\uC18C\uC758 \uAE38\uC774\uC5D0 \uB3D9\uC801\uC73C\uB85C \uD328\uB529\uD558\uC5EC \uAE38\uC774\uB97C \uADE0\uC77C\uD558\uAC8C \uD569\uB2C8\uB2E4. "),ja=n("code"),Ze=t("tokenizer"),Ve=t(" \uD568\uC218\uC5D0\uC11C "),ya=n("code"),Ae=t("padding=True"),Ge=t("\uB97C \uC124\uC815\uD558\uC5EC \uD14D\uC2A4\uD2B8\uB97C \uD328\uB529\uD560 \uC218 \uC788\uC9C0\uB9CC, \uB3D9\uC801 \uD328\uB529\uC774 \uB354 \uD6A8\uC728\uC801\uC785\uB2C8\uB2E4."),et=i(),Rs=n("p"),Xe=t("\uB2E4\uB978 \uB370\uC774\uD130 \uCF5C\uB808\uC774\uD130\uC640 \uB2EC\uB9AC \uC774 \uD2B9\uC815 \uB370\uC774\uD130 \uCF5C\uB808\uC774\uD130\uB294 "),Ja=n("code"),Be=t("input_values"),Ne=t("\uC640 "),Ua=n("code"),Ye=t("labels"),ze=t("\uC5D0 \uB300\uD574 \uB2E4\uB978 \uD328\uB529 \uBC29\uBC95\uC744 \uC801\uC6A9\uD574\uC57C \uD569\uB2C8\uB2E4."),nt=i(),J(Tl.$$.fragment),pt=i(),qs=n("p"),Fe=t("\uC774\uC81C "),wa=n("code"),De=t("DataCollatorForCTCWithPadding"),He=t("\uC744 \uC778\uC2A4\uD134\uC2A4\uD654\uD569\uB2C8\uB2E4:"),rt=i(),J(_l.$$.fragment),ot=i(),As=n("h2"),Os=n("a"),ba=n("span"),J(gl.$$.fragment),xe=i(),Ta=n("span"),Se=t("\uD3C9\uAC00\uD558\uAE30"),ct=i(),Us=n("p"),qe=t("\uD6C8\uB828 \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} "),$l=n("a"),Oe=t("Evaluate"),Pe=t(` \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 `),El=n("a"),Le=t("\uB2E8\uC5B4 \uC624\uB958\uC728(Word Error Rate, WER)"),Ke=t(` \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 `),vl=n("a"),sn=t("\uB458\uB7EC\uBCF4\uAE30"),ln=t("\uB97C \uCC38\uC870\uD558\uC138\uC694):"),it=i(),J(Il.$$.fragment),mt=i(),Ps=n("p"),an=t("\uADF8\uB7F0 \uB2E4\uC74C \uC608\uCE21\uAC12\uACFC \uB808\uC774\uBE14\uC744 "),_a=n("code"),tn=t("compute"),en=t("\uC5D0 \uC804\uB2EC\uD558\uC5EC WER\uC744 \uACC4\uC0B0\uD558\uB294 \uD568\uC218\uB97C \uB9CC\uB4ED\uB2C8\uB2E4:"),ft=i(),J(Cl.$$.fragment),ht=i(),Ls=n("p"),nn=t("\uC774\uC81C "),ga=n("code"),pn=t("compute_metrics"),rn=t(" \uD568\uC218\uB97C \uC0AC\uC6A9\uD560 \uC900\uBE44\uAC00 \uB418\uC5C8\uC73C\uBA70, \uD6C8\uB828\uC744 \uC124\uC815\uD560 \uB54C \uC774 \uD568\uC218\uB85C \uB418\uB3CC\uC544\uC62C \uAC83\uC785\uB2C8\uB2E4."),dt=i(),Gs=n("h2"),Ks=n("a"),$a=n("span"),J(Rl.$$.fragment),on=i(),Ea=n("span"),cn=t("\uD6C8\uB828\uD558\uAE30"),ut=i(),J(sl.$$.fragment),Mt=i(),J(ll.$$.fragment),jt=i(),Xs=n("h2"),al=n("a"),va=n("span"),J(kl.$$.fragment),mn=i(),Ia=n("span"),fn=t("\uCD94\uB860\uD558\uAE30"),yt=i(),xl=n("p"),hn=t("\uC88B\uC544\uC694, \uC774\uC81C \uBAA8\uB378\uC744 \uBBF8\uC138 \uC870\uC815\uD588\uC73C\uB2C8 \uCD94\uB860\uC5D0 \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4!"),Jt=i(),Sl=n("p"),dn=t("\uCD94\uB860\uC5D0 \uC0AC\uC6A9\uD560 \uC624\uB514\uC624 \uD30C\uC77C\uC744 \uAC00\uC838\uC624\uC138\uC694. \uD544\uC694\uD55C \uACBD\uC6B0 \uC624\uB514\uC624 \uD30C\uC77C\uC758 \uC0D8\uD50C\uB9C1 \uBE44\uC728\uC744 \uBAA8\uB378\uC758 \uC0D8\uD50C\uB9C1 \uB808\uC774\uD2B8\uC5D0 \uB9DE\uAC8C \uB9AC\uC0D8\uD50C\uB9C1\uD558\uB294 \uAC83\uC744 \uC78A\uC9C0 \uB9C8\uC138\uC694!"),Ut=i(),J(Ql.$$.fragment),wt=i(),ks=n("p"),un=t("\uCD94\uB860\uC744 \uC704\uD574 \uBBF8\uC138 \uC870\uC815\uB41C \uBAA8\uB378\uC744 \uC2DC\uD5D8\uD574\uBCF4\uB294 \uAC00\uC7A5 \uAC04\uB2E8\uD55C \uBC29\uBC95\uC740 "),Ca=n("code"),Mn=t("pipeline()"),jn=t("\uC744 \uC0AC\uC6A9\uD558\uB294 \uAC83\uC785\uB2C8\uB2E4. \uBAA8\uB378\uC744 \uC0AC\uC6A9\uD558\uC5EC \uC790\uB3D9 \uC74C\uC131 \uC778\uC2DD\uC744 \uC704\uD55C "),Ra=n("code"),yn=t("pipeline"),Jn=t("\uC744 \uC778\uC2A4\uD134\uC2A4\uD654\uD558\uACE0 \uC624\uB514\uC624 \uD30C\uC77C\uC744 \uC804\uB2EC\uD558\uC138\uC694:"),bt=i(),J(Wl.$$.fragment),Tt=i(),J(tl.$$.fragment),_t=i(),Zl=n("p"),ka=n("code"),Un=t("pipeline"),wn=t("\uC758 \uACB0\uACFC\uB97C \uC218\uB3D9\uC73C\uB85C \uC7AC\uD604\uD560 \uC218\uB3C4 \uC788\uC2B5\uB2C8\uB2E4:"),gt=i(),J(el.$$.fragment),this.h()},l(s){const o=Gp('[data-svelte="svelte-1phssyn"]',document.head);f=p(o,"META",{name:!0,content:!0}),o.forEach(a),u=m(s),h=p(s,"H1",{class:!0});var Vl=r(h);y=p(Vl,"A",{id:!0,class:!0,href:!0});var Qa=r(y);g=p(Qa,"SPAN",{});var Wa=r(g);U(E.$$.fragment,Wa),Wa.forEach(a),Qa.forEach(a),Z=m(Vl),C=p(Vl,"SPAN",{});var Za=r(C);v=e(Za,"\uC790\uB3D9 \uC74C\uC131 \uC778\uC2DD"),Za.forEach(a),Vl.forEach(a),W=m(s),U(V.$$.fragment,s),R=m(s),U(F.$$.fragment,s),A=m(s),D=p(s,"P",{});var Va=r(D);O=e(Va,`\uC790\uB3D9 \uC74C\uC131 \uC778\uC2DD(Automatic Speech Recognition, ASR)\uC740 \uC74C\uC131 \uC2E0\uD638\uB97C \uD14D\uC2A4\uD2B8\uB85C \uBCC0\uD658\uD558\uC5EC \uC74C\uC131 \uC785\uB825 \uC2DC\uD000\uC2A4\uB97C \uD14D\uC2A4\uD2B8 \uCD9C\uB825\uC5D0 \uB9E4\uD551\uD569\uB2C8\uB2E4.
Siri\uC640 Alexa\uC640 \uAC19\uC740 \uAC00\uC0C1 \uC5B4\uC2DC\uC2A4\uD134\uD2B8\uB294 ASR \uBAA8\uB378\uC744 \uC0AC\uC6A9\uD558\uC5EC \uC77C\uC0C1\uC801\uC73C\uB85C \uC0AC\uC6A9\uC790\uB97C \uB3D5\uACE0 \uC788\uC73C\uBA70, \uD68C\uC758 \uC911 \uB77C\uC774\uBE0C \uCEA1\uC158 \uBC0F \uBA54\uBAA8 \uC791\uC131\uACFC \uAC19\uC740 \uC720\uC6A9\uD55C \uC0AC\uC6A9\uC790 \uCE5C\uD654\uC801 \uC751\uC6A9 \uD504\uB85C\uADF8\uB7A8\uB3C4 \uB9CE\uC774 \uC788\uC2B5\uB2C8\uB2E4.`),Va.forEach(a),X=m(s),k=p(s,"P",{});var gn=r(k);H=e(gn,"\uC774 \uAC00\uC774\uB4DC\uC5D0\uC11C \uC18C\uAC1C\uD560 \uB0B4\uC6A9\uC740 \uC544\uB798\uC640 \uAC19\uC2B5\uB2C8\uB2E4:"),gn.forEach(a),K=m(s),B=p(s,"OL",{});var Et=r(B);N=p(Et,"LI",{});var Aa=r(N);Y=p(Aa,"A",{href:!0,rel:!0});var $n=r(Y);x=e($n,"MInDS-14"),$n.forEach(a),M=e(Aa," \uB370\uC774\uD130 \uC138\uD2B8\uC5D0\uC11C "),I=p(Aa,"A",{href:!0,rel:!0});var En=r(I);L=e(En,"Wav2Vec2"),En.forEach(a),ss=e(Aa,"\uB97C \uBBF8\uC138 \uC870\uC815\uD558\uC5EC \uC624\uB514\uC624\uB97C \uD14D\uC2A4\uD2B8\uB85C \uBCC0\uD658\uD569\uB2C8\uB2E4."),Aa.forEach(a),P=m(Et),S=p(Et,"LI",{});var vn=r(S);ps=e(vn,"\uBBF8\uC138 \uC870\uC815\uD55C \uBAA8\uB378\uC744 \uCD94\uB860\uC5D0 \uC0AC\uC6A9\uD569\uB2C8\uB2E4."),vn.forEach(a),Et.forEach(a),z=m(s),U($.$$.fragment,s),ms=m(s),fs=p(s,"P",{});var In=r(fs);gs=e(In,"\uC2DC\uC791\uD558\uAE30 \uC804\uC5D0 \uD544\uC694\uD55C \uBAA8\uB4E0 \uB77C\uC774\uBE0C\uB7EC\uB9AC\uAC00 \uC124\uCE58\uB418\uC5B4 \uC788\uB294\uC9C0 \uD655\uC778\uD558\uC138\uC694:"),In.forEach(a),hs=m(s),U(rs.$$.fragment,s),bs=m(s),ds=p(s,"P",{});var Cn=r(ds);us=e(Cn,"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."),Cn.forEach(a),Ms=m(s),U(os.$$.fragment,s),Bs=m(s),cs=p(s,"H2",{class:!0});var vt=r(cs);ls=p(vt,"A",{id:!0,class:!0,href:!0});var Rn=r(ls);$s=p(Rn,"SPAN",{});var kn=r($s);U(as.$$.fragment,kn),kn.forEach(a),Rn.forEach(a),rl=m(vt),Ts=p(vt,"SPAN",{});var Qn=r(Ts);ol=e(Qn,"MInDS-14 \uB370\uC774\uD130 \uC138\uD2B8 \uAC00\uC838\uC624\uAE30"),Qn.forEach(a),vt.forEach(a),Ns=m(s),js=p(s,"P",{});var It=r(js);_s=e(It,"\uBA3C\uC800, \u{1F917} Datasets \uB77C\uC774\uBE0C\uB7EC\uB9AC\uC5D0\uC11C "),ys=p(It,"A",{href:!0,rel:!0});var Wn=r(ys);d=e(Wn,"MInDS-14"),Wn.forEach(a),Q=e(It,` \uB370\uC774\uD130 \uC138\uD2B8\uC758 \uC77C\uBD80\uBD84\uC744 \uAC00\uC838\uC624\uC138\uC694.
\uC774\uB807\uAC8C \uD558\uBA74 \uC804\uCCB4 \uB370\uC774\uD130 \uC138\uD2B8\uC5D0 \uB300\uD55C \uD6C8\uB828\uC5D0 \uC2DC\uAC04\uC744 \uB4E4\uC774\uAE30 \uC804\uC5D0 \uBAA8\uB4E0 \uAC83\uC774 \uC791\uB3D9\uD558\uB294\uC9C0 \uC2E4\uD5D8\uD558\uACE0 \uAC80\uC99D\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.`),It.forEach(a),Es=m(s),U(vs.$$.fragment,s),cl=m(s),ts=p(s,"P",{});var Ga=r(ts);ns=p(Ga,"CODE",{});var Zn=r(ns);Al=e(Zn,"~Dataset.train_test_split"),Zn.forEach(a),Gl=e(Ga," \uBA54\uC18C\uB4DC\uB97C \uC0AC\uC6A9\uD558\uC5EC \uB370\uC774\uD130 \uC138\uD2B8\uC758 "),Ys=p(Ga,"CODE",{});var Vn=r(Ys);Xl=e(Vn,"train"),Vn.forEach(a),Is=e(Ga,"\uC744 \uD6C8\uB828 \uC138\uD2B8\uC640 \uD14C\uC2A4\uD2B8 \uC138\uD2B8\uB85C \uB098\uB204\uC138\uC694:"),Ga.forEach(a),il=m(s),U(Cs.$$.fragment,s),zs=m(s),Ws=p(s,"P",{});var An=r(Ws);Fs=e(An,"\uADF8\uB9AC\uACE0 \uB370\uC774\uD130 \uC138\uD2B8\uB97C \uD655\uC778\uD558\uC138\uC694:"),An.forEach(a),ml=m(s),U(fl.$$.fragment,s),Xa=m(s),es=p(s,"P",{});var ws=r(es);Yt=e(ws,"\uB370\uC774\uD130 \uC138\uD2B8\uC5D0\uB294 "),Kl=p(ws,"CODE",{});var Gn=r(Kl);zt=e(Gn,"lang_id"),Gn.forEach(a),Ft=e(ws,"\uC640 "),sa=p(ws,"CODE",{});var Xn=r(sa);Dt=e(Xn,"english_transcription"),Xn.forEach(a),Ht=e(ws,"\uACFC \uAC19\uC740 \uC720\uC6A9\uD55C \uC815\uBCF4\uAC00 \uB9CE\uC774 \uD3EC\uD568\uB418\uC5B4 \uC788\uC9C0\uB9CC, \uC774 \uAC00\uC774\uB4DC\uC5D0\uC11C\uB294 "),la=p(ws,"CODE",{});var Bn=r(la);xt=e(Bn,"audio"),Bn.forEach(a),St=e(ws,"\uC640 "),aa=p(ws,"CODE",{});var Nn=r(aa);qt=e(Nn,"transcription"),Nn.forEach(a),Ot=e(ws,"\uC5D0 \uCD08\uC810\uC744 \uB9DE\uCD9C \uAC83\uC785\uB2C8\uB2E4. \uB2E4\uB978 \uC5F4\uC740 "),ta=p(ws,"CODE",{});var Yn=r(ta);Pt=e(Yn,"remove_columns"),Yn.forEach(a),Lt=e(ws," \uBA54\uC18C\uB4DC\uB97C \uC0AC\uC6A9\uD558\uC5EC \uC81C\uAC70\uD558\uC138\uC694:"),ws.forEach(a),Ba=m(s),U(hl.$$.fragment,s),Na=m(s),Bl=p(s,"P",{});var zn=r(Bl);Kt=e(zn,"\uC608\uC2DC\uB97C \uB2E4\uC2DC \uD55C\uBC88 \uD655\uC778\uD574\uBCF4\uC138\uC694:"),zn.forEach(a),Ya=m(s),U(dl.$$.fragment,s),za=m(s),Nl=p(s,"P",{});var Fn=r(Nl);se=e(Fn,"\uB450 \uAC1C\uC758 \uD544\uB4DC\uAC00 \uC788\uC2B5\uB2C8\uB2E4:"),Fn.forEach(a),Fa=m(s),Ds=p(s,"UL",{});var Ct=r(Ds);ul=p(Ct,"LI",{});var Rt=r(ul);ea=p(Rt,"CODE",{});var Dn=r(ea);le=e(Dn,"audio"),Dn.forEach(a),ae=e(Rt,": \uC624\uB514\uC624 \uD30C\uC77C\uC744 \uAC00\uC838\uC624\uACE0 \uB9AC\uC0D8\uD50C\uB9C1\uD558\uAE30 \uC704\uD574 \uD638\uCD9C\uD574\uC57C \uD558\uB294 \uC74C\uC131 \uC2E0\uD638\uC758 1\uCC28\uC6D0 "),na=p(Rt,"CODE",{});var Hn=r(na);te=e(Hn,"array(\uBC30\uC5F4)"),Hn.forEach(a),Rt.forEach(a),ee=m(Ct),Yl=p(Ct,"LI",{});var bn=r(Yl);pa=p(bn,"CODE",{});var xn=r(pa);ne=e(xn,"transcription"),xn.forEach(a),pe=e(bn,": \uBAA9\uD45C \uD14D\uC2A4\uD2B8"),bn.forEach(a),Ct.forEach(a),Da=m(s),Zs=p(s,"H2",{class:!0});var kt=r(Zs);Hs=p(kt,"A",{id:!0,class:!0,href:!0});var Sn=r(Hs);ra=p(Sn,"SPAN",{});var qn=r(ra);U(Ml.$$.fragment,qn),qn.forEach(a),Sn.forEach(a),re=m(kt),oa=p(kt,"SPAN",{});var On=r(oa);oe=e(On,"\uC804\uCC98\uB9AC"),On.forEach(a),kt.forEach(a),Ha=m(s),zl=p(s,"P",{});var Pn=r(zl);ce=e(Pn,"\uB2E4\uC74C\uC73C\uB85C \uC624\uB514\uC624 \uC2E0\uD638\uB97C \uCC98\uB9AC\uD558\uAE30 \uC704\uD55C Wav2Vec2 \uD504\uB85C\uC138\uC11C\uB97C \uAC00\uC838\uC635\uB2C8\uB2E4:"),Pn.forEach(a),xa=m(s),U(jl.$$.fragment,s),Sa=m(s),xs=p(s,"P",{});var Qt=r(xs);ie=e(Qt,"MInDS-14 \uB370\uC774\uD130 \uC138\uD2B8\uC758 \uC0D8\uD50C\uB9C1 \uB808\uC774\uD2B8\uB294 8000kHz\uC774\uBBC0\uB85C("),yl=p(Qt,"A",{href:!0,rel:!0});var Ln=r(yl);me=e(Ln,"\uB370\uC774\uD130 \uC138\uD2B8 \uCE74\uB4DC"),Ln.forEach(a),fe=e(Qt,"\uC5D0\uC11C \uD655\uC778), \uC0AC\uC804 \uD6C8\uB828\uB41C Wav2Vec2 \uBAA8\uB378\uC744 \uC0AC\uC6A9\uD558\uB824\uBA74 \uB370\uC774\uD130 \uC138\uD2B8\uB97C 16000kHz\uB85C \uB9AC\uC0D8\uD50C\uB9C1\uD574\uC57C \uD569\uB2C8\uB2E4:"),Qt.forEach(a),qa=m(s),U(Jl.$$.fragment,s),Oa=m(s),Fl=p(s,"P",{});var Kn=r(Fl);he=e(Kn,"\uC704\uC758 \u2018transcription\u2019\uC5D0\uC11C \uBCFC \uC218 \uC788\uB4EF\uC774 \uD14D\uC2A4\uD2B8\uB294 \uB300\uBB38\uC790\uC640 \uC18C\uBB38\uC790\uAC00 \uC11E\uC5EC \uC788\uC2B5\uB2C8\uB2E4. Wav2Vec2 \uD1A0\uD06C\uB098\uC774\uC800\uB294 \uB300\uBB38\uC790 \uBB38\uC790\uC5D0 \uB300\uD574\uC11C\uB9CC \uD6C8\uB828\uB418\uC5B4 \uC788\uC73C\uBBC0\uB85C \uD14D\uC2A4\uD2B8\uAC00 \uD1A0\uD06C\uB098\uC774\uC800\uC758 \uC5B4\uD718\uC640 \uC77C\uCE58\uD558\uB294\uC9C0 \uD655\uC778\uD574\uC57C \uD569\uB2C8\uB2E4:"),Kn.forEach(a),Pa=m(s),U(Ul.$$.fragment,s),La=m(s),Dl=p(s,"P",{});var sp=r(Dl);de=e(sp,"\uC774\uC81C \uB2E4\uC74C \uC791\uC5C5\uC744 \uC218\uD589\uD560 \uC804\uCC98\uB9AC \uD568\uC218\uB97C \uB9CC\uB4E4\uC5B4\uBCF4\uACA0\uC2B5\uB2C8\uB2E4:"),sp.forEach(a),Ka=m(s),Ss=p(s,"OL",{});var Wt=r(Ss);Hl=p(Wt,"LI",{});var Tn=r(Hl);ca=p(Tn,"CODE",{});var lp=r(ca);ue=e(lp,"audio"),lp.forEach(a),Me=e(Tn," \uC5F4\uC744 \uD638\uCD9C\uD558\uC5EC \uC624\uB514\uC624 \uD30C\uC77C\uC744 \uAC00\uC838\uC624\uACE0 \uB9AC\uC0D8\uD50C\uB9C1\uD569\uB2C8\uB2E4."),Tn.forEach(a),je=m(Wt),Vs=p(Wt,"LI",{});var ql=r(Vs);ye=e(ql,"\uC624\uB514\uC624 \uD30C\uC77C\uC5D0\uC11C "),ia=p(ql,"CODE",{});var ap=r(ia);Je=e(ap,"input_values"),ap.forEach(a),Ue=e(ql,"\uB97C \uCD94\uCD9C\uD558\uACE0 \uD504\uB85C\uC138\uC11C\uB85C "),ma=p(ql,"CODE",{});var tp=r(ma);we=e(tp,"transcription"),tp.forEach(a),be=e(ql," \uC5F4\uC744 \uD1A0\uD070\uD654\uD569\uB2C8\uB2E4."),ql.forEach(a),Wt.forEach(a),st=m(s),U(wl.$$.fragment,s),lt=m(s),is=p(s,"P",{});var Qs=r(is);Te=e(Qs,"\uC804\uCCB4 \uB370\uC774\uD130 \uC138\uD2B8\uC5D0 \uC804\uCC98\uB9AC \uD568\uC218\uB97C \uC801\uC6A9\uD558\uB824\uBA74 \u{1F917} Datasets "),fa=p(Qs,"CODE",{});var ep=r(fa);_e=e(ep,"map"),ep.forEach(a),ge=e(Qs," \uD568\uC218\uB97C \uC0AC\uC6A9\uD558\uC138\uC694. "),ha=p(Qs,"CODE",{});var np=r(ha);$e=e(np,"num_proc"),np.forEach(a),Ee=e(Qs," \uB9E4\uAC1C\uBCC0\uC218\uB97C \uC0AC\uC6A9\uD558\uC5EC \uD504\uB85C\uC138\uC2A4 \uC218\uB97C \uB298\uB9AC\uBA74 "),da=p(Qs,"CODE",{});var pp=r(da);ve=e(pp,"map"),pp.forEach(a),Ie=e(Qs,"\uC758 \uC18D\uB3C4\uB97C \uB192\uC77C \uC218 \uC788\uC2B5\uB2C8\uB2E4. "),ua=p(Qs,"CODE",{});var rp=r(ua);Ce=e(rp,"remove_columns"),rp.forEach(a),Re=e(Qs," \uBA54\uC18C\uB4DC\uB97C \uC0AC\uC6A9\uD558\uC5EC \uD544\uC694\uD558\uC9C0 \uC54A\uC740 \uC5F4\uC744 \uC81C\uAC70\uD558\uC138\uC694:"),Qs.forEach(a),at=m(s),U(bl.$$.fragment,s),tt=m(s),Js=p(s,"P",{});var nl=r(Js);ke=e(nl,"\u{1F917} Transformers\uC5D0\uB294 \uC790\uB3D9 \uC74C\uC131 \uC778\uC2DD\uC6A9 \uB370\uC774\uD130 \uCF5C\uB808\uC774\uD130\uAC00 \uC5C6\uC73C\uBBC0\uB85C \uC608\uC81C \uBC30\uCE58\uB97C \uC0DD\uC131\uD558\uB824\uBA74 "),Ma=p(nl,"CODE",{});var op=r(Ma);Qe=e(op,"DataCollatorWithPadding"),op.forEach(a),We=e(nl,"\uC744 \uC870\uC815\uD574\uC57C \uD569\uB2C8\uB2E4. \uC774\uB807\uAC8C \uD558\uBA74 \uB370\uC774\uD130 \uCF5C\uB808\uC774\uD130\uB294 \uD14D\uC2A4\uD2B8\uC640 \uB808\uC774\uBE14\uC744 \uBC30\uCE58\uC5D0\uC11C \uAC00\uC7A5 \uAE34 \uC694\uC18C\uC758 \uAE38\uC774\uC5D0 \uB3D9\uC801\uC73C\uB85C \uD328\uB529\uD558\uC5EC \uAE38\uC774\uB97C \uADE0\uC77C\uD558\uAC8C \uD569\uB2C8\uB2E4. "),ja=p(nl,"CODE",{});var cp=r(ja);Ze=e(cp,"tokenizer"),cp.forEach(a),Ve=e(nl," \uD568\uC218\uC5D0\uC11C "),ya=p(nl,"CODE",{});var ip=r(ya);Ae=e(ip,"padding=True"),ip.forEach(a),Ge=e(nl,"\uB97C \uC124\uC815\uD558\uC5EC \uD14D\uC2A4\uD2B8\uB97C \uD328\uB529\uD560 \uC218 \uC788\uC9C0\uB9CC, \uB3D9\uC801 \uD328\uB529\uC774 \uB354 \uD6A8\uC728\uC801\uC785\uB2C8\uB2E4."),nl.forEach(a),et=m(s),Rs=p(s,"P",{});var Ol=r(Rs);Xe=e(Ol,"\uB2E4\uB978 \uB370\uC774\uD130 \uCF5C\uB808\uC774\uD130\uC640 \uB2EC\uB9AC \uC774 \uD2B9\uC815 \uB370\uC774\uD130 \uCF5C\uB808\uC774\uD130\uB294 "),Ja=p(Ol,"CODE",{});var mp=r(Ja);Be=e(mp,"input_values"),mp.forEach(a),Ne=e(Ol,"\uC640 "),Ua=p(Ol,"CODE",{});var fp=r(Ua);Ye=e(fp,"labels"),fp.forEach(a),ze=e(Ol,"\uC5D0 \uB300\uD574 \uB2E4\uB978 \uD328\uB529 \uBC29\uBC95\uC744 \uC801\uC6A9\uD574\uC57C \uD569\uB2C8\uB2E4."),Ol.forEach(a),nt=m(s),U(Tl.$$.fragment,s),pt=m(s),qs=p(s,"P",{});var Zt=r(qs);Fe=e(Zt,"\uC774\uC81C "),wa=p(Zt,"CODE",{});var hp=r(wa);De=e(hp,"DataCollatorForCTCWithPadding"),hp.forEach(a),He=e(Zt,"\uC744 \uC778\uC2A4\uD134\uC2A4\uD654\uD569\uB2C8\uB2E4:"),Zt.forEach(a),rt=m(s),U(_l.$$.fragment,s),ot=m(s),As=p(s,"H2",{class:!0});var Vt=r(As);Os=p(Vt,"A",{id:!0,class:!0,href:!0});var dp=r(Os);ba=p(dp,"SPAN",{});var up=r(ba);U(gl.$$.fragment,up),up.forEach(a),dp.forEach(a),xe=m(Vt),Ta=p(Vt,"SPAN",{});var Mp=r(Ta);Se=e(Mp,"\uD3C9\uAC00\uD558\uAE30"),Mp.forEach(a),Vt.forEach(a),ct=m(s),Us=p(s,"P",{});var pl=r(Us);qe=e(pl,"\uD6C8\uB828 \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} "),$l=p(pl,"A",{href:!0,rel:!0});var jp=r($l);Oe=e(jp,"Evaluate"),jp.forEach(a),Pe=e(pl,` \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 `),El=p(pl,"A",{href:!0,rel:!0});var yp=r(El);Le=e(yp,"\uB2E8\uC5B4 \uC624\uB958\uC728(Word Error Rate, WER)"),yp.forEach(a),Ke=e(pl,` \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 `),vl=p(pl,"A",{href:!0,rel:!0});var Jp=r(vl);sn=e(Jp,"\uB458\uB7EC\uBCF4\uAE30"),Jp.forEach(a),ln=e(pl,"\uB97C \uCC38\uC870\uD558\uC138\uC694):"),pl.forEach(a),it=m(s),U(Il.$$.fragment,s),mt=m(s),Ps=p(s,"P",{});var At=r(Ps);an=e(At,"\uADF8\uB7F0 \uB2E4\uC74C \uC608\uCE21\uAC12\uACFC \uB808\uC774\uBE14\uC744 "),_a=p(At,"CODE",{});var Up=r(_a);tn=e(Up,"compute"),Up.forEach(a),en=e(At,"\uC5D0 \uC804\uB2EC\uD558\uC5EC WER\uC744 \uACC4\uC0B0\uD558\uB294 \uD568\uC218\uB97C \uB9CC\uB4ED\uB2C8\uB2E4:"),At.forEach(a),ft=m(s),U(Cl.$$.fragment,s),ht=m(s),Ls=p(s,"P",{});var Gt=r(Ls);nn=e(Gt,"\uC774\uC81C "),ga=p(Gt,"CODE",{});var wp=r(ga);pn=e(wp,"compute_metrics"),wp.forEach(a),rn=e(Gt," \uD568\uC218\uB97C \uC0AC\uC6A9\uD560 \uC900\uBE44\uAC00 \uB418\uC5C8\uC73C\uBA70, \uD6C8\uB828\uC744 \uC124\uC815\uD560 \uB54C \uC774 \uD568\uC218\uB85C \uB418\uB3CC\uC544\uC62C \uAC83\uC785\uB2C8\uB2E4."),Gt.forEach(a),dt=m(s),Gs=p(s,"H2",{class:!0});var Xt=r(Gs);Ks=p(Xt,"A",{id:!0,class:!0,href:!0});var bp=r(Ks);$a=p(bp,"SPAN",{});var Tp=r($a);U(Rl.$$.fragment,Tp),Tp.forEach(a),bp.forEach(a),on=m(Xt),Ea=p(Xt,"SPAN",{});var _p=r(Ea);cn=e(_p,"\uD6C8\uB828\uD558\uAE30"),_p.forEach(a),Xt.forEach(a),ut=m(s),U(sl.$$.fragment,s),Mt=m(s),U(ll.$$.fragment,s),jt=m(s),Xs=p(s,"H2",{class:!0});var Bt=r(Xs);al=p(Bt,"A",{id:!0,class:!0,href:!0});var gp=r(al);va=p(gp,"SPAN",{});var $p=r(va);U(kl.$$.fragment,$p),$p.forEach(a),gp.forEach(a),mn=m(Bt),Ia=p(Bt,"SPAN",{});var Ep=r(Ia);fn=e(Ep,"\uCD94\uB860\uD558\uAE30"),Ep.forEach(a),Bt.forEach(a),yt=m(s),xl=p(s,"P",{});var vp=r(xl);hn=e(vp,"\uC88B\uC544\uC694, \uC774\uC81C \uBAA8\uB378\uC744 \uBBF8\uC138 \uC870\uC815\uD588\uC73C\uB2C8 \uCD94\uB860\uC5D0 \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4!"),vp.forEach(a),Jt=m(s),Sl=p(s,"P",{});var Ip=r(Sl);dn=e(Ip,"\uCD94\uB860\uC5D0 \uC0AC\uC6A9\uD560 \uC624\uB514\uC624 \uD30C\uC77C\uC744 \uAC00\uC838\uC624\uC138\uC694. \uD544\uC694\uD55C \uACBD\uC6B0 \uC624\uB514\uC624 \uD30C\uC77C\uC758 \uC0D8\uD50C\uB9C1 \uBE44\uC728\uC744 \uBAA8\uB378\uC758 \uC0D8\uD50C\uB9C1 \uB808\uC774\uD2B8\uC5D0 \uB9DE\uAC8C \uB9AC\uC0D8\uD50C\uB9C1\uD558\uB294 \uAC83\uC744 \uC78A\uC9C0 \uB9C8\uC138\uC694!"),Ip.forEach(a),Ut=m(s),U(Ql.$$.fragment,s),wt=m(s),ks=p(s,"P",{});var Pl=r(ks);un=e(Pl,"\uCD94\uB860\uC744 \uC704\uD574 \uBBF8\uC138 \uC870\uC815\uB41C \uBAA8\uB378\uC744 \uC2DC\uD5D8\uD574\uBCF4\uB294 \uAC00\uC7A5 \uAC04\uB2E8\uD55C \uBC29\uBC95\uC740 "),Ca=p(Pl,"CODE",{});var Cp=r(Ca);Mn=e(Cp,"pipeline()"),Cp.forEach(a),jn=e(Pl,"\uC744 \uC0AC\uC6A9\uD558\uB294 \uAC83\uC785\uB2C8\uB2E4. \uBAA8\uB378\uC744 \uC0AC\uC6A9\uD558\uC5EC \uC790\uB3D9 \uC74C\uC131 \uC778\uC2DD\uC744 \uC704\uD55C "),Ra=p(Pl,"CODE",{});var Rp=r(Ra);yn=e(Rp,"pipeline"),Rp.forEach(a),Jn=e(Pl,"\uC744 \uC778\uC2A4\uD134\uC2A4\uD654\uD558\uACE0 \uC624\uB514\uC624 \uD30C\uC77C\uC744 \uC804\uB2EC\uD558\uC138\uC694:"),Pl.forEach(a),bt=m(s),U(Wl.$$.fragment,s),Tt=m(s),U(tl.$$.fragment,s),_t=m(s),Zl=p(s,"P",{});var _n=r(Zl);ka=p(_n,"CODE",{});var kp=r(ka);Un=e(kp,"pipeline"),kp.forEach(a),wn=e(_n,"\uC758 \uACB0\uACFC\uB97C \uC218\uB3D9\uC73C\uB85C \uC7AC\uD604\uD560 \uC218\uB3C4 \uC788\uC2B5\uB2C8\uB2E4:"),_n.forEach(a),gt=m(s),U(el.$$.fragment,s),this.h()},h(){j(f,"name","hf:doc:metadata"),j(f,"content",JSON.stringify(Lp)),j(y,"id","automatic-speech-recognition"),j(y,"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"),j(y,"href","#automatic-speech-recognition"),j(h,"class","relative group"),j(Y,"href","https://huggingface.co/datasets/PolyAI/minds14"),j(Y,"rel","nofollow"),j(I,"href","https://huggingface.co/facebook/wav2vec2-base"),j(I,"rel","nofollow"),j(ls,"id","load-minds-14-dataset"),j(ls,"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"),j(ls,"href","#load-minds-14-dataset"),j(cs,"class","relative group"),j(ys,"href","https://huggingface.co/datasets/PolyAI/minds14"),j(ys,"rel","nofollow"),j(Hs,"id","preprocess"),j(Hs,"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"),j(Hs,"href","#preprocess"),j(Zs,"class","relative group"),j(yl,"href","https://huggingface.co/datasets/PolyAI/minds14"),j(yl,"rel","nofollow"),j(Os,"id","evaluate"),j(Os,"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"),j(Os,"href","#evaluate"),j(As,"class","relative group"),j($l,"href","https://huggingface.co/docs/evaluate/index"),j($l,"rel","nofollow"),j(El,"href","https://huggingface.co/spaces/evaluate-metric/wer"),j(El,"rel","nofollow"),j(vl,"href","https://huggingface.co/docs/evaluate/a_quick_tour"),j(vl,"rel","nofollow"),j(Ks,"id","train"),j(Ks,"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"),j(Ks,"href","#train"),j(Gs,"class","relative group"),j(al,"id","inference"),j(al,"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"),j(al,"href","#inference"),j(Xs,"class","relative group")},m(s,o){l(document.head,f),c(s,u,o),c(s,h,o),l(h,y),l(y,g),w(E,g,null),l(h,Z),l(h,C),l(C,v),c(s,W,o),w(V,s,o),c(s,R,o),w(F,s,o),c(s,A,o),c(s,D,o),l(D,O),c(s,X,o),c(s,k,o),l(k,H),c(s,K,o),c(s,B,o),l(B,N),l(N,Y),l(Y,x),l(N,M),l(N,I),l(I,L),l(N,ss),l(B,P),l(B,S),l(S,ps),c(s,z,o),w($,s,o),c(s,ms,o),c(s,fs,o),l(fs,gs),c(s,hs,o),w(rs,s,o),c(s,bs,o),c(s,ds,o),l(ds,us),c(s,Ms,o),w(os,s,o),c(s,Bs,o),c(s,cs,o),l(cs,ls),l(ls,$s),w(as,$s,null),l(cs,rl),l(cs,Ts),l(Ts,ol),c(s,Ns,o),c(s,js,o),l(js,_s),l(js,ys),l(ys,d),l(js,Q),c(s,Es,o),w(vs,s,o),c(s,cl,o),c(s,ts,o),l(ts,ns),l(ns,Al),l(ts,Gl),l(ts,Ys),l(Ys,Xl),l(ts,Is),c(s,il,o),w(Cs,s,o),c(s,zs,o),c(s,Ws,o),l(Ws,Fs),c(s,ml,o),w(fl,s,o),c(s,Xa,o),c(s,es,o),l(es,Yt),l(es,Kl),l(Kl,zt),l(es,Ft),l(es,sa),l(sa,Dt),l(es,Ht),l(es,la),l(la,xt),l(es,St),l(es,aa),l(aa,qt),l(es,Ot),l(es,ta),l(ta,Pt),l(es,Lt),c(s,Ba,o),w(hl,s,o),c(s,Na,o),c(s,Bl,o),l(Bl,Kt),c(s,Ya,o),w(dl,s,o),c(s,za,o),c(s,Nl,o),l(Nl,se),c(s,Fa,o),c(s,Ds,o),l(Ds,ul),l(ul,ea),l(ea,le),l(ul,ae),l(ul,na),l(na,te),l(Ds,ee),l(Ds,Yl),l(Yl,pa),l(pa,ne),l(Yl,pe),c(s,Da,o),c(s,Zs,o),l(Zs,Hs),l(Hs,ra),w(Ml,ra,null),l(Zs,re),l(Zs,oa),l(oa,oe),c(s,Ha,o),c(s,zl,o),l(zl,ce),c(s,xa,o),w(jl,s,o),c(s,Sa,o),c(s,xs,o),l(xs,ie),l(xs,yl),l(yl,me),l(xs,fe),c(s,qa,o),w(Jl,s,o),c(s,Oa,o),c(s,Fl,o),l(Fl,he),c(s,Pa,o),w(Ul,s,o),c(s,La,o),c(s,Dl,o),l(Dl,de),c(s,Ka,o),c(s,Ss,o),l(Ss,Hl),l(Hl,ca),l(ca,ue),l(Hl,Me),l(Ss,je),l(Ss,Vs),l(Vs,ye),l(Vs,ia),l(ia,Je),l(Vs,Ue),l(Vs,ma),l(ma,we),l(Vs,be),c(s,st,o),w(wl,s,o),c(s,lt,o),c(s,is,o),l(is,Te),l(is,fa),l(fa,_e),l(is,ge),l(is,ha),l(ha,$e),l(is,Ee),l(is,da),l(da,ve),l(is,Ie),l(is,ua),l(ua,Ce),l(is,Re),c(s,at,o),w(bl,s,o),c(s,tt,o),c(s,Js,o),l(Js,ke),l(Js,Ma),l(Ma,Qe),l(Js,We),l(Js,ja),l(ja,Ze),l(Js,Ve),l(Js,ya),l(ya,Ae),l(Js,Ge),c(s,et,o),c(s,Rs,o),l(Rs,Xe),l(Rs,Ja),l(Ja,Be),l(Rs,Ne),l(Rs,Ua),l(Ua,Ye),l(Rs,ze),c(s,nt,o),w(Tl,s,o),c(s,pt,o),c(s,qs,o),l(qs,Fe),l(qs,wa),l(wa,De),l(qs,He),c(s,rt,o),w(_l,s,o),c(s,ot,o),c(s,As,o),l(As,Os),l(Os,ba),w(gl,ba,null),l(As,xe),l(As,Ta),l(Ta,Se),c(s,ct,o),c(s,Us,o),l(Us,qe),l(Us,$l),l($l,Oe),l(Us,Pe),l(Us,El),l(El,Le),l(Us,Ke),l(Us,vl),l(vl,sn),l(Us,ln),c(s,it,o),w(Il,s,o),c(s,mt,o),c(s,Ps,o),l(Ps,an),l(Ps,_a),l(_a,tn),l(Ps,en),c(s,ft,o),w(Cl,s,o),c(s,ht,o),c(s,Ls,o),l(Ls,nn),l(Ls,ga),l(ga,pn),l(Ls,rn),c(s,dt,o),c(s,Gs,o),l(Gs,Ks),l(Ks,$a),w(Rl,$a,null),l(Gs,on),l(Gs,Ea),l(Ea,cn),c(s,ut,o),w(sl,s,o),c(s,Mt,o),w(ll,s,o),c(s,jt,o),c(s,Xs,o),l(Xs,al),l(al,va),w(kl,va,null),l(Xs,mn),l(Xs,Ia),l(Ia,fn),c(s,yt,o),c(s,xl,o),l(xl,hn),c(s,Jt,o),c(s,Sl,o),l(Sl,dn),c(s,Ut,o),w(Ql,s,o),c(s,wt,o),c(s,ks,o),l(ks,un),l(ks,Ca),l(Ca,Mn),l(ks,jn),l(ks,Ra),l(Ra,yn),l(ks,Jn),c(s,bt,o),w(Wl,s,o),c(s,Tt,o),w(tl,s,o),c(s,_t,o),c(s,Zl,o),l(Zl,ka),l(ka,Un),l(Zl,wn),c(s,gt,o),w(el,s,o),$t=!0},p(s,[o]){const Vl={};o&2&&(Vl.$$scope={dirty:o,ctx:s}),$.$set(Vl);const Qa={};o&2&&(Qa.$$scope={dirty:o,ctx:s}),sl.$set(Qa);const Wa={};o&2&&(Wa.$$scope={dirty:o,ctx:s}),ll.$set(Wa);const Za={};o&2&&(Za.$$scope={dirty:o,ctx:s}),tl.$set(Za);const Va={};o&2&&(Va.$$scope={dirty:o,ctx:s}),el.$set(Va)},i(s){$t||(b(E.$$.fragment,s),b(V.$$.fragment,s),b(F.$$.fragment,s),b($.$$.fragment,s),b(rs.$$.fragment,s),b(os.$$.fragment,s),b(as.$$.fragment,s),b(vs.$$.fragment,s),b(Cs.$$.fragment,s),b(fl.$$.fragment,s),b(hl.$$.fragment,s),b(dl.$$.fragment,s),b(Ml.$$.fragment,s),b(jl.$$.fragment,s),b(Jl.$$.fragment,s),b(Ul.$$.fragment,s),b(wl.$$.fragment,s),b(bl.$$.fragment,s),b(Tl.$$.fragment,s),b(_l.$$.fragment,s),b(gl.$$.fragment,s),b(Il.$$.fragment,s),b(Cl.$$.fragment,s),b(Rl.$$.fragment,s),b(sl.$$.fragment,s),b(ll.$$.fragment,s),b(kl.$$.fragment,s),b(Ql.$$.fragment,s),b(Wl.$$.fragment,s),b(tl.$$.fragment,s),b(el.$$.fragment,s),$t=!0)},o(s){T(E.$$.fragment,s),T(V.$$.fragment,s),T(F.$$.fragment,s),T($.$$.fragment,s),T(rs.$$.fragment,s),T(os.$$.fragment,s),T(as.$$.fragment,s),T(vs.$$.fragment,s),T(Cs.$$.fragment,s),T(fl.$$.fragment,s),T(hl.$$.fragment,s),T(dl.$$.fragment,s),T(Ml.$$.fragment,s),T(jl.$$.fragment,s),T(Jl.$$.fragment,s),T(Ul.$$.fragment,s),T(wl.$$.fragment,s),T(bl.$$.fragment,s),T(Tl.$$.fragment,s),T(_l.$$.fragment,s),T(gl.$$.fragment,s),T(Il.$$.fragment,s),T(Cl.$$.fragment,s),T(Rl.$$.fragment,s),T(sl.$$.fragment,s),T(ll.$$.fragment,s),T(kl.$$.fragment,s),T(Ql.$$.fragment,s),T(Wl.$$.fragment,s),T(tl.$$.fragment,s),T(el.$$.fragment,s),$t=!1},d(s){a(f),s&&a(u),s&&a(h),_(E),s&&a(W),_(V,s),s&&a(R),_(F,s),s&&a(A),s&&a(D),s&&a(X),s&&a(k),s&&a(K),s&&a(B),s&&a(z),_($,s),s&&a(ms),s&&a(fs),s&&a(hs),_(rs,s),s&&a(bs),s&&a(ds),s&&a(Ms),_(os,s),s&&a(Bs),s&&a(cs),_(as),s&&a(Ns),s&&a(js),s&&a(Es),_(vs,s),s&&a(cl),s&&a(ts),s&&a(il),_(Cs,s),s&&a(zs),s&&a(Ws),s&&a(ml),_(fl,s),s&&a(Xa),s&&a(es),s&&a(Ba),_(hl,s),s&&a(Na),s&&a(Bl),s&&a(Ya),_(dl,s),s&&a(za),s&&a(Nl),s&&a(Fa),s&&a(Ds),s&&a(Da),s&&a(Zs),_(Ml),s&&a(Ha),s&&a(zl),s&&a(xa),_(jl,s),s&&a(Sa),s&&a(xs),s&&a(qa),_(Jl,s),s&&a(Oa),s&&a(Fl),s&&a(Pa),_(Ul,s),s&&a(La),s&&a(Dl),s&&a(Ka),s&&a(Ss),s&&a(st),_(wl,s),s&&a(lt),s&&a(is),s&&a(at),_(bl,s),s&&a(tt),s&&a(Js),s&&a(et),s&&a(Rs),s&&a(nt),_(Tl,s),s&&a(pt),s&&a(qs),s&&a(rt),_(_l,s),s&&a(ot),s&&a(As),_(gl),s&&a(ct),s&&a(Us),s&&a(it),_(Il,s),s&&a(mt),s&&a(Ps),s&&a(ft),_(Cl,s),s&&a(ht),s&&a(Ls),s&&a(dt),s&&a(Gs),_(Rl),s&&a(ut),_(sl,s),s&&a(Mt),_(ll,s),s&&a(jt),s&&a(Xs),_(kl),s&&a(yt),s&&a(xl),s&&a(Jt),s&&a(Sl),s&&a(Ut),_(Ql,s),s&&a(wt),s&&a(ks),s&&a(bt),_(Wl,s),s&&a(Tt),_(tl,s),s&&a(_t),s&&a(Zl),s&&a(gt),_(el,s)}}}const Lp={local:"automatic-speech-recognition",sections:[{local:"load-minds-14-dataset",title:"MInDS-14 \uB370\uC774\uD130 \uC138\uD2B8 \uAC00\uC838\uC624\uAE30"},{local:"preprocess",title:"\uC804\uCC98\uB9AC"},{local:"evaluate",title:"\uD3C9\uAC00\uD558\uAE30"},{local:"train",title:"\uD6C8\uB828\uD558\uAE30"},{local:"inference",title:"\uCD94\uB860\uD558\uAE30"}],title:"\uC790\uB3D9 \uC74C\uC131 \uC778\uC2DD"};function Kp(q){return Xp(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class rr extends Zp{constructor(f){super();Vp(this,f,Kp,Pp,Ap,{})}}export{rr as default,Lp as metadata};
