import{S as Jt,i as Tt,s as dt,e as i,k as f,w as u,t as n,M as Et,c as a,d as l,m,a as o,x as c,h as r,b as w,G as s,g as p,y as M,L as vt,q as U,o as $,B as J,v as wt}from"../../chunks/vendor-hf-doc-builder.js";import{I as bt}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as d}from"../../chunks/CodeBlock-hf-doc-builder.js";function It(Al){let E,Je,v,b,pe,j,el,ie,ll,Te,z,tl,de,I,sl,ae,pl,il,Ee,_,al,X,ol,nl,ve,h,rl,oe,fl,ml,we,C,be,P,yl,Ie,R,_e,Y,ne,ul,he,Z,Se,D,cl,Ge,k,je,Q,re,Ml,Ce,W,Re,H,Ul,Ze,T,$l,N,Jl,Tl,fe,dl,El,ke,S,vl,me,wl,bl,We,q,Ne,L,Il,qe,B,Be,O,ye,_l,Ve,V,xe,g,hl,Fe,x,Ae,K,ue,Sl,ze,F,Xe,ee,Gl,Pe,le,jl,Ye,y,ce,Cl,Rl,te,Me,Zl,kl,Wl,Ue,Nl,ql,A,Bl,$e,Vl,xl,De;return j=new bt({}),C=new d({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBYXNyJTIwJTNEJTIwcGlwZWxpbmUoJTIyYXV0b21hdGljLXNwZWVjaC1yZWNvZ25pdGlvbiUyMik=",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

asr = pipeline(<span class="hljs-string">&quot;automatic-speech-recognition&quot;</span>)`}}),R=new d({props:{code:"ZXhhbXBsZSUyMCUzRCUyMG1pbmRzJTVCMCU1RCUwQWFzcihleGFtcGxlJTVCJTIyYXVkaW8lMjIlNUQlNUIlMjJhcnJheSUyMiU1RCk=",highlighted:`example = minds[<span class="hljs-number">0</span>]
asr(example[<span class="hljs-string">&quot;audio&quot;</span>][<span class="hljs-string">&quot;array&quot;</span>])`}}),Z=new d({props:{code:"JTdCJTIydGV4dCUyMiUzQSUyMCUyMkklMjBXT1VMRCUyMExJS0UlMjBUTyUyMFBBWSUyME1ZJTIwRUxFQ1RSSUNJVFklMjBCSUxMJTIwVVNJTkclMjBNWSUyMENPRCUyMENBTiUyMFlPVSUyMFBMRUFTRSUyMEFTU0lTVCUyMiU3RA==",highlighted:'<span class="hljs-comment">{&quot;text&quot;: &quot;I WOULD LIKE TO PAY MY ELECTRICITY BILL USING MY COD CAN YOU PLEASE ASSIST&quot;}</span>'}}),k=new d({props:{code:"ZXhhbXBsZSU1QiUyMmVuZ2xpc2hfdHJhbnNjcmlwdGlvbiUyMiU1RA==",highlighted:'example[<span class="hljs-string">&quot;english_transcription&quot;</span>]'}}),W=new d({props:{code:"JTIySSUyMHdvdWxkJTIwbGlrZSUyMHRvJTIwcGF5JTIwbXklMjBlbGVjdHJpY2l0eSUyMGJpbGwlMjB1c2luZyUyMG15JTIwY2FyZCUyMGNhbiUyMHlvdSUyMHBsZWFzZSUyMGFzc2lzdCUyMg==",highlighted:'<span class="hljs-comment">&quot;I would like to pay my electricity bill using my card can you please assist&quot;</span>'}}),q=new d({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwQXVkaW8lMEElMEFtaW5kcyUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJQb2x5QUklMkZtaW5kczE0JTIyJTJDJTIwbmFtZSUzRCUyMmRlLURFJTIyJTJDJTIwc3BsaXQlM0QlMjJ0cmFpbiUyMiklMEFtaW5kcyUyMCUzRCUyMG1pbmRzLmNhc3RfY29sdW1uKCUyMmF1ZGlvJTIyJTJDJTIwQXVkaW8oc2FtcGxpbmdfcmF0ZSUzRDE2XzAwMCkp",highlighted:`<span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> Audio

minds = load_dataset(<span class="hljs-string">&quot;PolyAI/minds14&quot;</span>, name=<span class="hljs-string">&quot;de-DE&quot;</span>, split=<span class="hljs-string">&quot;train&quot;</span>)
minds = minds.cast_column(<span class="hljs-string">&quot;audio&quot;</span>, Audio(sampling_rate=<span class="hljs-number">16_000</span>))`}}),B=new d({props:{code:"ZXhhbXBsZSUyMCUzRCUyMG1pbmRzJTVCMCU1RCUwQWV4YW1wbGUlNUIlMjJ0cmFuc2NyaXB0aW9uJTIyJTVE",highlighted:`example = minds[<span class="hljs-number">0</span>]
example[<span class="hljs-string">&quot;transcription&quot;</span>]`}}),V=new d({props:{code:"JTIyaWNoJTIwbSVDMyVCNmNodGUlMjBnZXJuZSUyMEdlbGQlMjBhdWYlMjBtZWluJTIwS29udG8lMjBlaW56YWhsZW4lMjI=",highlighted:'<span class="hljs-comment">&quot;ich m\xF6chte gerne Geld auf mein Konto einzahlen&quot;</span>'}}),x=new d({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBYXNyJTIwJTNEJTIwcGlwZWxpbmUoJTIyYXV0b21hdGljLXNwZWVjaC1yZWNvZ25pdGlvbiUyMiUyQyUyMG1vZGVsJTNEJTIybWF4aWRsJTJGd2F2MnZlYzItbGFyZ2UteGxzci1nZXJtYW4lMjIpJTBBYXNyKGV4YW1wbGUlNUIlMjJhdWRpbyUyMiU1RCU1QiUyMmFycmF5JTIyJTVEKQ==",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

asr = pipeline(<span class="hljs-string">&quot;automatic-speech-recognition&quot;</span>, model=<span class="hljs-string">&quot;maxidl/wav2vec2-large-xlsr-german&quot;</span>)
asr(example[<span class="hljs-string">&quot;audio&quot;</span>][<span class="hljs-string">&quot;array&quot;</span>])`}}),F=new d({props:{code:"JTdCJTIydGV4dCUyMiUzQSUyMCUyMmljaCUyMG0lQzMlQjZjaHRlJTIwZ2VybmUlMjBnZWxkJTIwYXVmJTIwbWVpbiUyMGtvbnRvJTIwZWluemFsbGVuJTIyJTdE",highlighted:'{&quot;text&quot;: <span class="hljs-string">&quot;ich m\xF6chte gerne geld auf mein konto einzallen&quot;</span>}'}}),{c(){E=i("meta"),Je=f(),v=i("h1"),b=i("a"),pe=i("span"),u(j.$$.fragment),el=f(),ie=i("span"),ll=n("\u5229\u7528pipeline\u8FDB\u884C\u81EA\u52A8\u8BED\u97F3\u8BC6\u522B"),Te=f(),z=i("p"),tl=n("\u81EA\u52A8\u8BED\u97F3\u8BC6\u522B\uFF08Automatic Speech Recognition, ASR\uFF09\u662F\u4E00\u4E2A\u5C06\u5F55\u97F3\u8F6C\u5F55\u4E3A\u6587\u5B57\u7684\u4EFB\u52A1\u3002\u8BE5\u4EFB\u52A1\u6709\u8BB8\u591A\u975E\u5E38\u5B9E\u7528\u7684\u5E94\u7528\uFF0C\u5305\u62EC\u751F\u6210\u89C6\u9891\u5B57\u5E55\u3001\u8BED\u97F3\u52A9\u624B\uFF08Siri\u3001Alexa\u7B49\uFF09\u7684\u8BED\u97F3\u6307\u4EE4\u529F\u80FD\u7B49\u7B49\u3002"),de=f(),I=i("p"),sl=n("\u672C\u5C0F\u8282\u4E2D\uFF0C\u6211\u4EEC\u5C06\u4F7F\u7528"),ae=i("code"),pl=n("automatic-speech-recognition"),il=n(" pipeline\u6765\u8F6C\u5F55MINDS-14\u6570\u636E\u96C6\u4E2D\u4E00\u6BB5\u7528\u6237\u8BE2\u95EE\u8D26\u5355\u4FE1\u606F\u7684\u5F55\u97F3\u3002"),Ee=f(),_=i("p"),al=n("\u9996\u5148\uFF0C\u6211\u4EEC\u6839\u636E"),X=i("a"),ol=n("\u5229\u7528pipeline\u8FDB\u884C\u97F3\u9891\u5206\u7C7B"),nl=n("\u4E00\u8282\u7684\u65B9\u6CD5\u52A0\u8F7D\u6570\u636E\u5E76\u4E0A\u91C7\u6837\u81F316\u5343\u8D6B\u5179\u3002"),ve=f(),h=i("p"),rl=n("\u63A5\u4E0B\u6765\uFF0C\u6211\u4EEC\u5229\u7528\u{1F917} Transformers\u4E2D\u7684"),oe=i("code"),fl=n("automatic-speech-recognition"),ml=n(" pipeline\u6765\u6784\u5EFA\u81EA\u52A8\u8BED\u97F3\u8BC6\u522B\u7684\u4EFB\u52A1\uFF1A"),we=f(),u(C.$$.fragment),be=f(),P=i("p"),yl=n("\u4E0B\u9762\uFF0C\u6211\u4EEC\u4ECE\u6570\u636E\u96C6\u4E2D\u9009\u53D6\u4E00\u4E2A\u6837\u672C\uFF0C\u5E76\u5C06\u8BE5\u6837\u672C\u7684\u539F\u59CB\u97F3\u9891\u6570\u636E\u4F20\u9012\u7ED9pipeline\uFF1A"),Ie=f(),u(R.$$.fragment),_e=f(),Y=i("p"),ne=i("strong"),ul=n("\u8F93\u51FA"),he=f(),u(Z.$$.fragment),Se=f(),D=i("p"),cl=n("\u6211\u4EEC\u53EF\u4EE5\u5C06\u6A21\u578B\u8F6C\u5F55\u7684\u7ED3\u679C\u548C\u8BE5\u6837\u672C\u6807\u7B7E\u4E2D\u771F\u5B9E\u7684\u8F6C\u5F55\u6587\u5B57\u8FDB\u884C\u5BF9\u6BD4\uFF1A"),Ge=f(),u(k.$$.fragment),je=f(),Q=i("p"),re=i("strong"),Ml=n("\u8F93\u51FA\uFF1A"),Ce=f(),u(W.$$.fragment),Re=f(),H=i("p"),Ul=n("\u770B\u8D77\u6765\u6A21\u578B\u5728\u6587\u5B57\u8F6C\u5F55\u4E0A\u7684\u6548\u679C\u8FD8\u4E0D\u9519\uFF01\u548C\u539F\u59CB\u8F6C\u5F55\u76F8\u6BD4\uFF0C\u4EC5\u6709\u4E00\u4E2A\u8BCD\uFF08card\uFF09\u8F6C\u5F55\u9519\u8BEF\u3002\u8003\u8651\u5230\u7528\u6237\u4F7F\u7528\u7684\u6FB3\u5927\u5229\u4E9A\u65B9\u8A00\u4E2D\u201Cr\u201D\u901A\u5E38\u4E0D\u53D1\u97F3\uFF0C\u8FD9\u4E2A\u7ED3\u679C\u5DF2\u7ECF\u5F88\u4E0D\u9519\u4E86\u3002 \u4E0D\u8FC7\u6211\u5E76\u4E0D\u63A8\u8350\u7528\u4E00\u6761\u9C7C\u6765\u652F\u4ED8\u4F60\u7684\u4E0B\u4E00\u5F20\u7535\u8D39\u8D26\u5355\u5C31\u662F\u4E86\uFF01\uFF08\u8BD1\u6CE8\uFF1Acod\u4E3A\u9CD5\u9C7C\uFF09"),Ze=f(),T=i("p"),$l=n("\u5728\u9ED8\u8BA4\u6761\u4EF6\u4E0B\uFF0C\u8BE5pipeline\u4F7F\u7528\u7684\u662F\u4E00\u4E2A\u9488\u5BF9\u82F1\u8BED\u8BED\u8A00\u7684\u81EA\u52A8\u8BED\u97F3\u8BC6\u522B\u6A21\u578B\uFF0C\u8FD9\u5728\u672C\u4F8B\u4E2D\u662F\u53EF\u4EE5\u7684\u3002\u5982\u679C\u4F60\u60F3\u5C1D\u8BD5\u8F6C\u5F55MINDS-14\u6570\u636E\u96C6\u4E2D\u5176\u4ED6\u8BED\u8A00\u7684\u5B50\u96C6\uFF0C\u4F60\u53EF\u4EE5\u5728"),N=i("a"),Jl=n("\u{1F917} Hub"),Tl=n("\u4E0A\u627E\u5230\u4E00\u4E2A\u9884\u8BAD\u7EC3\u7684ASR\u6A21\u578B\u3002\u4F60\u53EF\u4EE5\u9996\u5148\u6309\u4EFB\u52A1\u8FC7\u6EE4\u6A21\u578B\u5217\u8868\uFF0C\u7136\u540E\u518D\u6309\u8BED\u8A00\u8FC7\u6EE4\u3002\u4E00\u65E6\u4F60\u627E\u5230\u4E86\u559C\u6B22\u7684\u6A21\u578B\uFF0C\u5C06\u5176\u540D\u79F0\u4F5C\u4E3A"),fe=i("code"),dl=n("model"),El=n("\u53C2\u6570\u4F20\u9012\u7ED9pipeline\u5373\u53EF\u3002"),ke=f(),S=i("p"),vl=n("\u8BA9\u6211\u4EEC\u5C1D\u8BD5\u4E00\u4E0BMINDS-14\u6570\u636E\u96C6\u4E2D\u5FB7\u8BED\u5B50\u96C6\u7684\u8F6C\u5F55\u3002\u9996\u5148\u52A0\u8F7D"),me=i("code"),wl=n("de-DE"),bl=n("\u5B50\u96C6\uFF1A"),We=f(),u(q.$$.fragment),Ne=f(),L=i("p"),Il=n("\u63A5\u4E0B\u6765\uFF0C\u6211\u4EEC\u83B7\u53D6\u4E00\u4E2A\u6837\u672C\u5E76\u67E5\u770B\u5176\u8F6C\u5F55\uFF1A"),qe=f(),u(B.$$.fragment),Be=f(),O=i("p"),ye=i("strong"),_l=n("\u8F93\u51FA"),Ve=f(),u(V.$$.fragment),xe=f(),g=i("p"),hl=n("\u63A5\u4E0B\u6765\uFF0C\u6211\u4EEC\u5728\u{1F917} Hub\u4E0A\u627E\u5230\u4E00\u4E2A\u9488\u5BF9\u5FB7\u8BED\u8BED\u8A00\u7684\u9884\u8BAD\u7EC3ASR\u6A21\u578B\uFF0C\u7136\u540E\u5C06\u5176\u540D\u79F0\u4F20\u9012\u7ED9pipeline\uFF0C\u5E76\u5BF9\u6837\u672C\u8FDB\u884C\u8F6C\u5F55\uFF1A"),Fe=f(),u(x.$$.fragment),Ae=f(),K=i("p"),ue=i("strong"),Sl=n("\u8F93\u51FA"),ze=f(),u(F.$$.fragment),Xe=f(),ee=i("p"),Gl=n("\u5FB7\u8BED\u4E5F\u6CA1\u95EE\u9898\uFF01"),Pe=f(),le=i("p"),jl=n("\u5F53\u4F60\u5728\u89E3\u51B3\u81EA\u5DF1\u7684\u4EFB\u52A1\u65F6\uFF0C\u4ECE\u672C\u5355\u5143\u4E2D\u5C55\u793A\u7684\u7B80\u5355pipeline\u5F00\u59CB\u662F\u4E00\u4E2A\u975E\u5E38\u6709\u4EF7\u503C\u7684\u5DE5\u5177\uFF0C\u5B83\u6709\u4EE5\u4E0B\u51E0\u4E2A\u597D\u5904\uFF1A"),Ye=f(),y=i("ul"),ce=i("li"),Cl=n("\u9884\u8BAD\u7EC3\u6A21\u578B\u53EF\u80FD\u5DF2\u7ECF\u80FD\u591F\u5F88\u597D\u5730\u89E3\u51B3\u4F60\u7684\u4EFB\u52A1\uFF0C\u4ECE\u800C\u8282\u7701\u4E86\u5927\u91CF\u65F6\u95F4"),Rl=f(),te=i("li"),Me=i("code"),Zl=n("pipeline()"),kl=n("\u4F1A\u4E3A\u4F60\u8FDB\u884C\u6240\u6709\u7684\u9884\u5904\u7406\u548C\u540E\u5904\u7406\u64CD\u4F5C\uFF0C\u56E0\u6B64\u4F60\u4E0D\u5FC5\u518D\u82B1\u65F6\u95F4\u5C06\u6570\u636E\u8F6C\u6362\u4E3A\u6A21\u578B\u6B63\u786E\u7684\u683C\u5F0F"),Wl=f(),Ue=i("li"),Nl=n("\u5982\u679C\u7ED3\u679C\u4E0D\u7406\u60F3\uFF0Cpipeline\u4ECD\u7136\u53EF\u4EE5\u4E3A\u4F60\u63D0\u4F9B\u4E00\u4E2A\u5FEB\u901F\u5B9E\u73B0\u7684\u57FA\u7EBF\uFF0C\u4EE5\u4FBF\u5728\u672A\u6765\u5BF9\u5176\u8FDB\u884C\u5FAE\u8C03"),ql=f(),A=i("li"),Bl=n("\u5982\u679C\u4F60\u5728\u81EA\u5DF1\u7684\u6570\u636E\u96C6\u4E0A\u5FAE\u8C03\u4E86\u4E00\u4E2A\u6A21\u578B\u5E76\u5C06\u5176\u5206\u4EAB\u5230Hub\u4E0A\uFF0C\u6574\u4E2A\u793E\u533A\u90FD\u53EF\u4EE5\u901A\u8FC7"),$e=i("code"),Vl=n("pipeline()"),xl=n("\u65B9\u6CD5\u5FEB\u901F\u8F7B\u677E\u5730\u4F7F\u7528\u5B83\uFF0C\u4ECE\u800C\u4F7FAI\u66F4\u52A0\u6613\u4E8E\u4F7F\u7528\u3002"),this.h()},l(e){const t=Et('[data-svelte="svelte-1phssyn"]',document.head);E=a(t,"META",{name:!0,content:!0}),t.forEach(l),Je=m(e),v=a(e,"H1",{class:!0});var Qe=o(v);b=a(Qe,"A",{id:!0,class:!0,href:!0});var zl=o(b);pe=a(zl,"SPAN",{});var Xl=o(pe);c(j.$$.fragment,Xl),Xl.forEach(l),zl.forEach(l),el=m(Qe),ie=a(Qe,"SPAN",{});var Pl=o(ie);ll=r(Pl,"\u5229\u7528pipeline\u8FDB\u884C\u81EA\u52A8\u8BED\u97F3\u8BC6\u522B"),Pl.forEach(l),Qe.forEach(l),Te=m(e),z=a(e,"P",{});var Yl=o(z);tl=r(Yl,"\u81EA\u52A8\u8BED\u97F3\u8BC6\u522B\uFF08Automatic Speech Recognition, ASR\uFF09\u662F\u4E00\u4E2A\u5C06\u5F55\u97F3\u8F6C\u5F55\u4E3A\u6587\u5B57\u7684\u4EFB\u52A1\u3002\u8BE5\u4EFB\u52A1\u6709\u8BB8\u591A\u975E\u5E38\u5B9E\u7528\u7684\u5E94\u7528\uFF0C\u5305\u62EC\u751F\u6210\u89C6\u9891\u5B57\u5E55\u3001\u8BED\u97F3\u52A9\u624B\uFF08Siri\u3001Alexa\u7B49\uFF09\u7684\u8BED\u97F3\u6307\u4EE4\u529F\u80FD\u7B49\u7B49\u3002"),Yl.forEach(l),de=m(e),I=a(e,"P",{});var He=o(I);sl=r(He,"\u672C\u5C0F\u8282\u4E2D\uFF0C\u6211\u4EEC\u5C06\u4F7F\u7528"),ae=a(He,"CODE",{});var Dl=o(ae);pl=r(Dl,"automatic-speech-recognition"),Dl.forEach(l),il=r(He," pipeline\u6765\u8F6C\u5F55MINDS-14\u6570\u636E\u96C6\u4E2D\u4E00\u6BB5\u7528\u6237\u8BE2\u95EE\u8D26\u5355\u4FE1\u606F\u7684\u5F55\u97F3\u3002"),He.forEach(l),Ee=m(e),_=a(e,"P",{});var Le=o(_);al=r(Le,"\u9996\u5148\uFF0C\u6211\u4EEC\u6839\u636E"),X=a(Le,"A",{href:!0});var Ql=o(X);ol=r(Ql,"\u5229\u7528pipeline\u8FDB\u884C\u97F3\u9891\u5206\u7C7B"),Ql.forEach(l),nl=r(Le,"\u4E00\u8282\u7684\u65B9\u6CD5\u52A0\u8F7D\u6570\u636E\u5E76\u4E0A\u91C7\u6837\u81F316\u5343\u8D6B\u5179\u3002"),Le.forEach(l),ve=m(e),h=a(e,"P",{});var Oe=o(h);rl=r(Oe,"\u63A5\u4E0B\u6765\uFF0C\u6211\u4EEC\u5229\u7528\u{1F917} Transformers\u4E2D\u7684"),oe=a(Oe,"CODE",{});var Hl=o(oe);fl=r(Hl,"automatic-speech-recognition"),Hl.forEach(l),ml=r(Oe," pipeline\u6765\u6784\u5EFA\u81EA\u52A8\u8BED\u97F3\u8BC6\u522B\u7684\u4EFB\u52A1\uFF1A"),Oe.forEach(l),we=m(e),c(C.$$.fragment,e),be=m(e),P=a(e,"P",{});var Ll=o(P);yl=r(Ll,"\u4E0B\u9762\uFF0C\u6211\u4EEC\u4ECE\u6570\u636E\u96C6\u4E2D\u9009\u53D6\u4E00\u4E2A\u6837\u672C\uFF0C\u5E76\u5C06\u8BE5\u6837\u672C\u7684\u539F\u59CB\u97F3\u9891\u6570\u636E\u4F20\u9012\u7ED9pipeline\uFF1A"),Ll.forEach(l),Ie=m(e),c(R.$$.fragment,e),_e=m(e),Y=a(e,"P",{});var Ol=o(Y);ne=a(Ol,"STRONG",{});var gl=o(ne);ul=r(gl,"\u8F93\u51FA"),gl.forEach(l),Ol.forEach(l),he=m(e),c(Z.$$.fragment,e),Se=m(e),D=a(e,"P",{});var Kl=o(D);cl=r(Kl,"\u6211\u4EEC\u53EF\u4EE5\u5C06\u6A21\u578B\u8F6C\u5F55\u7684\u7ED3\u679C\u548C\u8BE5\u6837\u672C\u6807\u7B7E\u4E2D\u771F\u5B9E\u7684\u8F6C\u5F55\u6587\u5B57\u8FDB\u884C\u5BF9\u6BD4\uFF1A"),Kl.forEach(l),Ge=m(e),c(k.$$.fragment,e),je=m(e),Q=a(e,"P",{});var et=o(Q);re=a(et,"STRONG",{});var lt=o(re);Ml=r(lt,"\u8F93\u51FA\uFF1A"),lt.forEach(l),et.forEach(l),Ce=m(e),c(W.$$.fragment,e),Re=m(e),H=a(e,"P",{});var tt=o(H);Ul=r(tt,"\u770B\u8D77\u6765\u6A21\u578B\u5728\u6587\u5B57\u8F6C\u5F55\u4E0A\u7684\u6548\u679C\u8FD8\u4E0D\u9519\uFF01\u548C\u539F\u59CB\u8F6C\u5F55\u76F8\u6BD4\uFF0C\u4EC5\u6709\u4E00\u4E2A\u8BCD\uFF08card\uFF09\u8F6C\u5F55\u9519\u8BEF\u3002\u8003\u8651\u5230\u7528\u6237\u4F7F\u7528\u7684\u6FB3\u5927\u5229\u4E9A\u65B9\u8A00\u4E2D\u201Cr\u201D\u901A\u5E38\u4E0D\u53D1\u97F3\uFF0C\u8FD9\u4E2A\u7ED3\u679C\u5DF2\u7ECF\u5F88\u4E0D\u9519\u4E86\u3002 \u4E0D\u8FC7\u6211\u5E76\u4E0D\u63A8\u8350\u7528\u4E00\u6761\u9C7C\u6765\u652F\u4ED8\u4F60\u7684\u4E0B\u4E00\u5F20\u7535\u8D39\u8D26\u5355\u5C31\u662F\u4E86\uFF01\uFF08\u8BD1\u6CE8\uFF1Acod\u4E3A\u9CD5\u9C7C\uFF09"),tt.forEach(l),Ze=m(e),T=a(e,"P",{});var se=o(T);$l=r(se,"\u5728\u9ED8\u8BA4\u6761\u4EF6\u4E0B\uFF0C\u8BE5pipeline\u4F7F\u7528\u7684\u662F\u4E00\u4E2A\u9488\u5BF9\u82F1\u8BED\u8BED\u8A00\u7684\u81EA\u52A8\u8BED\u97F3\u8BC6\u522B\u6A21\u578B\uFF0C\u8FD9\u5728\u672C\u4F8B\u4E2D\u662F\u53EF\u4EE5\u7684\u3002\u5982\u679C\u4F60\u60F3\u5C1D\u8BD5\u8F6C\u5F55MINDS-14\u6570\u636E\u96C6\u4E2D\u5176\u4ED6\u8BED\u8A00\u7684\u5B50\u96C6\uFF0C\u4F60\u53EF\u4EE5\u5728"),N=a(se,"A",{href:!0,rel:!0});var st=o(N);Jl=r(st,"\u{1F917} Hub"),st.forEach(l),Tl=r(se,"\u4E0A\u627E\u5230\u4E00\u4E2A\u9884\u8BAD\u7EC3\u7684ASR\u6A21\u578B\u3002\u4F60\u53EF\u4EE5\u9996\u5148\u6309\u4EFB\u52A1\u8FC7\u6EE4\u6A21\u578B\u5217\u8868\uFF0C\u7136\u540E\u518D\u6309\u8BED\u8A00\u8FC7\u6EE4\u3002\u4E00\u65E6\u4F60\u627E\u5230\u4E86\u559C\u6B22\u7684\u6A21\u578B\uFF0C\u5C06\u5176\u540D\u79F0\u4F5C\u4E3A"),fe=a(se,"CODE",{});var pt=o(fe);dl=r(pt,"model"),pt.forEach(l),El=r(se,"\u53C2\u6570\u4F20\u9012\u7ED9pipeline\u5373\u53EF\u3002"),se.forEach(l),ke=m(e),S=a(e,"P",{});var ge=o(S);vl=r(ge,"\u8BA9\u6211\u4EEC\u5C1D\u8BD5\u4E00\u4E0BMINDS-14\u6570\u636E\u96C6\u4E2D\u5FB7\u8BED\u5B50\u96C6\u7684\u8F6C\u5F55\u3002\u9996\u5148\u52A0\u8F7D"),me=a(ge,"CODE",{});var it=o(me);wl=r(it,"de-DE"),it.forEach(l),bl=r(ge,"\u5B50\u96C6\uFF1A"),ge.forEach(l),We=m(e),c(q.$$.fragment,e),Ne=m(e),L=a(e,"P",{});var at=o(L);Il=r(at,"\u63A5\u4E0B\u6765\uFF0C\u6211\u4EEC\u83B7\u53D6\u4E00\u4E2A\u6837\u672C\u5E76\u67E5\u770B\u5176\u8F6C\u5F55\uFF1A"),at.forEach(l),qe=m(e),c(B.$$.fragment,e),Be=m(e),O=a(e,"P",{});var ot=o(O);ye=a(ot,"STRONG",{});var nt=o(ye);_l=r(nt,"\u8F93\u51FA"),nt.forEach(l),ot.forEach(l),Ve=m(e),c(V.$$.fragment,e),xe=m(e),g=a(e,"P",{});var rt=o(g);hl=r(rt,"\u63A5\u4E0B\u6765\uFF0C\u6211\u4EEC\u5728\u{1F917} Hub\u4E0A\u627E\u5230\u4E00\u4E2A\u9488\u5BF9\u5FB7\u8BED\u8BED\u8A00\u7684\u9884\u8BAD\u7EC3ASR\u6A21\u578B\uFF0C\u7136\u540E\u5C06\u5176\u540D\u79F0\u4F20\u9012\u7ED9pipeline\uFF0C\u5E76\u5BF9\u6837\u672C\u8FDB\u884C\u8F6C\u5F55\uFF1A"),rt.forEach(l),Fe=m(e),c(x.$$.fragment,e),Ae=m(e),K=a(e,"P",{});var ft=o(K);ue=a(ft,"STRONG",{});var mt=o(ue);Sl=r(mt,"\u8F93\u51FA"),mt.forEach(l),ft.forEach(l),ze=m(e),c(F.$$.fragment,e),Xe=m(e),ee=a(e,"P",{});var yt=o(ee);Gl=r(yt,"\u5FB7\u8BED\u4E5F\u6CA1\u95EE\u9898\uFF01"),yt.forEach(l),Pe=m(e),le=a(e,"P",{});var ut=o(le);jl=r(ut,"\u5F53\u4F60\u5728\u89E3\u51B3\u81EA\u5DF1\u7684\u4EFB\u52A1\u65F6\uFF0C\u4ECE\u672C\u5355\u5143\u4E2D\u5C55\u793A\u7684\u7B80\u5355pipeline\u5F00\u59CB\u662F\u4E00\u4E2A\u975E\u5E38\u6709\u4EF7\u503C\u7684\u5DE5\u5177\uFF0C\u5B83\u6709\u4EE5\u4E0B\u51E0\u4E2A\u597D\u5904\uFF1A"),ut.forEach(l),Ye=m(e),y=a(e,"UL",{});var G=o(y);ce=a(G,"LI",{});var ct=o(ce);Cl=r(ct,"\u9884\u8BAD\u7EC3\u6A21\u578B\u53EF\u80FD\u5DF2\u7ECF\u80FD\u591F\u5F88\u597D\u5730\u89E3\u51B3\u4F60\u7684\u4EFB\u52A1\uFF0C\u4ECE\u800C\u8282\u7701\u4E86\u5927\u91CF\u65F6\u95F4"),ct.forEach(l),Rl=m(G),te=a(G,"LI",{});var Fl=o(te);Me=a(Fl,"CODE",{});var Mt=o(Me);Zl=r(Mt,"pipeline()"),Mt.forEach(l),kl=r(Fl,"\u4F1A\u4E3A\u4F60\u8FDB\u884C\u6240\u6709\u7684\u9884\u5904\u7406\u548C\u540E\u5904\u7406\u64CD\u4F5C\uFF0C\u56E0\u6B64\u4F60\u4E0D\u5FC5\u518D\u82B1\u65F6\u95F4\u5C06\u6570\u636E\u8F6C\u6362\u4E3A\u6A21\u578B\u6B63\u786E\u7684\u683C\u5F0F"),Fl.forEach(l),Wl=m(G),Ue=a(G,"LI",{});var Ut=o(Ue);Nl=r(Ut,"\u5982\u679C\u7ED3\u679C\u4E0D\u7406\u60F3\uFF0Cpipeline\u4ECD\u7136\u53EF\u4EE5\u4E3A\u4F60\u63D0\u4F9B\u4E00\u4E2A\u5FEB\u901F\u5B9E\u73B0\u7684\u57FA\u7EBF\uFF0C\u4EE5\u4FBF\u5728\u672A\u6765\u5BF9\u5176\u8FDB\u884C\u5FAE\u8C03"),Ut.forEach(l),ql=m(G),A=a(G,"LI",{});var Ke=o(A);Bl=r(Ke,"\u5982\u679C\u4F60\u5728\u81EA\u5DF1\u7684\u6570\u636E\u96C6\u4E0A\u5FAE\u8C03\u4E86\u4E00\u4E2A\u6A21\u578B\u5E76\u5C06\u5176\u5206\u4EAB\u5230Hub\u4E0A\uFF0C\u6574\u4E2A\u793E\u533A\u90FD\u53EF\u4EE5\u901A\u8FC7"),$e=a(Ke,"CODE",{});var $t=o($e);Vl=r($t,"pipeline()"),$t.forEach(l),xl=r(Ke,"\u65B9\u6CD5\u5FEB\u901F\u8F7B\u677E\u5730\u4F7F\u7528\u5B83\uFF0C\u4ECE\u800C\u4F7FAI\u66F4\u52A0\u6613\u4E8E\u4F7F\u7528\u3002"),Ke.forEach(l),G.forEach(l),this.h()},h(){w(E,"name","hf:doc:metadata"),w(E,"content",JSON.stringify(_t)),w(b,"id","pipeline"),w(b,"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"),w(b,"href","#pipeline"),w(v,"class","relative group"),w(X,"href","audio_classification_pipeline.mdx"),w(N,"href","https://huggingface.co/models?pipeline_tag=automatic-speech-recognition&language=fr&sort=downloads"),w(N,"rel","nofollow")},m(e,t){s(document.head,E),p(e,Je,t),p(e,v,t),s(v,b),s(b,pe),M(j,pe,null),s(v,el),s(v,ie),s(ie,ll),p(e,Te,t),p(e,z,t),s(z,tl),p(e,de,t),p(e,I,t),s(I,sl),s(I,ae),s(ae,pl),s(I,il),p(e,Ee,t),p(e,_,t),s(_,al),s(_,X),s(X,ol),s(_,nl),p(e,ve,t),p(e,h,t),s(h,rl),s(h,oe),s(oe,fl),s(h,ml),p(e,we,t),M(C,e,t),p(e,be,t),p(e,P,t),s(P,yl),p(e,Ie,t),M(R,e,t),p(e,_e,t),p(e,Y,t),s(Y,ne),s(ne,ul),p(e,he,t),M(Z,e,t),p(e,Se,t),p(e,D,t),s(D,cl),p(e,Ge,t),M(k,e,t),p(e,je,t),p(e,Q,t),s(Q,re),s(re,Ml),p(e,Ce,t),M(W,e,t),p(e,Re,t),p(e,H,t),s(H,Ul),p(e,Ze,t),p(e,T,t),s(T,$l),s(T,N),s(N,Jl),s(T,Tl),s(T,fe),s(fe,dl),s(T,El),p(e,ke,t),p(e,S,t),s(S,vl),s(S,me),s(me,wl),s(S,bl),p(e,We,t),M(q,e,t),p(e,Ne,t),p(e,L,t),s(L,Il),p(e,qe,t),M(B,e,t),p(e,Be,t),p(e,O,t),s(O,ye),s(ye,_l),p(e,Ve,t),M(V,e,t),p(e,xe,t),p(e,g,t),s(g,hl),p(e,Fe,t),M(x,e,t),p(e,Ae,t),p(e,K,t),s(K,ue),s(ue,Sl),p(e,ze,t),M(F,e,t),p(e,Xe,t),p(e,ee,t),s(ee,Gl),p(e,Pe,t),p(e,le,t),s(le,jl),p(e,Ye,t),p(e,y,t),s(y,ce),s(ce,Cl),s(y,Rl),s(y,te),s(te,Me),s(Me,Zl),s(te,kl),s(y,Wl),s(y,Ue),s(Ue,Nl),s(y,ql),s(y,A),s(A,Bl),s(A,$e),s($e,Vl),s(A,xl),De=!0},p:vt,i(e){De||(U(j.$$.fragment,e),U(C.$$.fragment,e),U(R.$$.fragment,e),U(Z.$$.fragment,e),U(k.$$.fragment,e),U(W.$$.fragment,e),U(q.$$.fragment,e),U(B.$$.fragment,e),U(V.$$.fragment,e),U(x.$$.fragment,e),U(F.$$.fragment,e),De=!0)},o(e){$(j.$$.fragment,e),$(C.$$.fragment,e),$(R.$$.fragment,e),$(Z.$$.fragment,e),$(k.$$.fragment,e),$(W.$$.fragment,e),$(q.$$.fragment,e),$(B.$$.fragment,e),$(V.$$.fragment,e),$(x.$$.fragment,e),$(F.$$.fragment,e),De=!1},d(e){l(E),e&&l(Je),e&&l(v),J(j),e&&l(Te),e&&l(z),e&&l(de),e&&l(I),e&&l(Ee),e&&l(_),e&&l(ve),e&&l(h),e&&l(we),J(C,e),e&&l(be),e&&l(P),e&&l(Ie),J(R,e),e&&l(_e),e&&l(Y),e&&l(he),J(Z,e),e&&l(Se),e&&l(D),e&&l(Ge),J(k,e),e&&l(je),e&&l(Q),e&&l(Ce),J(W,e),e&&l(Re),e&&l(H),e&&l(Ze),e&&l(T),e&&l(ke),e&&l(S),e&&l(We),J(q,e),e&&l(Ne),e&&l(L),e&&l(qe),J(B,e),e&&l(Be),e&&l(O),e&&l(Ve),J(V,e),e&&l(xe),e&&l(g),e&&l(Fe),J(x,e),e&&l(Ae),e&&l(K),e&&l(ze),J(F,e),e&&l(Xe),e&&l(ee),e&&l(Pe),e&&l(le),e&&l(Ye),e&&l(y)}}}const _t={local:"pipeline",title:"\u5229\u7528pipeline\u8FDB\u884C\u81EA\u52A8\u8BED\u97F3\u8BC6\u522B"};function ht(Al){return wt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ct extends Jt{constructor(E){super();Tt(this,E,ht,It,dt,{})}}export{Ct as default,_t as metadata};
