import{S as js,i as zs,s as Fs,e as r,k as m,w as v,t as s,M as Us,c as n,d as o,m as p,a,x as b,h as l,b as c,G as e,g,y as M,q as y,o as w,B as $,v as Js,L as ya}from"../../chunks/vendor-hf-doc-builder.js";import{T as yo}from"../../chunks/Tip-hf-doc-builder.js";import{D as q}from"../../chunks/Docstring-hf-doc-builder.js";import{C as wa}from"../../chunks/CodeBlock-hf-doc-builder.js";import{I as Ue}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{E as Ma}from"../../chunks/ExampleCodeBlock-hf-doc-builder.js";function Ns(U){let d,C,u,f,T,i,_,E;return{c(){d=r("p"),C=s("This model is in maintenance mode only, so we won\u2019t accept any new PRs changing its code."),u=m(),f=r("p"),T=s(`If you run into any issues running this model, please reinstall the last version that supported this model: v4.30.0.
You can do so by running the following command: `),i=r("code"),_=s("pip install -U transformers==4.30.0"),E=s(".")},l(k){d=n(k,"P",{});var x=a(d);C=l(x,"This model is in maintenance mode only, so we won\u2019t accept any new PRs changing its code."),x.forEach(o),u=p(k),f=n(k,"P",{});var z=a(f);T=l(z,`If you run into any issues running this model, please reinstall the last version that supported this model: v4.30.0.
You can do so by running the following command: `),i=n(z,"CODE",{});var J=a(i);_=l(J,"pip install -U transformers==4.30.0"),J.forEach(o),E=l(z,"."),z.forEach(o)},m(k,x){g(k,d,x),e(d,C),g(k,u,x),g(k,f,x),e(f,T),e(f,i),e(i,_),e(f,E)},d(k){k&&o(d),k&&o(u),k&&o(f)}}}function Ps(U){let d,C,u,f,T;return f=new wa({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyME1DVENUQ29uZmlnJTJDJTIwTUNUQ1RNb2RlbCUwQSUwQSUyMyUyMEluaXRpYWxpemluZyUyMGElMjBNLUNUQy1UJTIwbWN0Y3QtbGFyZ2UlMjBzdHlsZSUyMGNvbmZpZ3VyYXRpb24lMEFjb25maWd1cmF0aW9uJTIwJTNEJTIwTUNUQ1RDb25maWcoKSUwQSUwQSUyMyUyMEluaXRpYWxpemluZyUyMGElMjBtb2RlbCUyMCh3aXRoJTIwcmFuZG9tJTIwd2VpZ2h0cyklMjBmcm9tJTIwdGhlJTIwbWN0Y3QtbGFyZ2UlMjBzdHlsZSUyMGNvbmZpZ3VyYXRpb24lMEFtb2RlbCUyMCUzRCUyME1DVENUTW9kZWwoY29uZmlndXJhdGlvbiklMEElMEElMjMlMjBBY2Nlc3NpbmclMjB0aGUlMjBtb2RlbCUyMGNvbmZpZ3VyYXRpb24lMEFjb25maWd1cmF0aW9uJTIwJTNEJTIwbW9kZWwuY29uZmln",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> MCTCTConfig, MCTCTModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a M-CTC-T mctct-large style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = MCTCTConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a model (with random weights) from the mctct-large style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = MCTCTModel(configuration)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Accessing the model configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = model.config`}}),{c(){d=r("p"),C=s("Example:"),u=m(),v(f.$$.fragment)},l(i){d=n(i,"P",{});var _=a(d);C=l(_,"Example:"),_.forEach(o),u=p(i),b(f.$$.fragment,i)},m(i,_){g(i,d,_),e(d,C),g(i,u,_),M(f,i,_),T=!0},p:ya,i(i){T||(y(f.$$.fragment,i),T=!0)},o(i){w(f.$$.fragment,i),T=!1},d(i){i&&o(d),i&&o(u),$(f,i)}}}function Is(U){let d,C,u,f,T,i,_,E,k,x,z;return{c(){d=r("p"),C=s(`This class method is simply calling the feature extractor
`),u=r("a"),f=s("from_pretrained()"),T=s(`, image processor
`),i=r("a"),_=s("ImageProcessingMixin"),E=s(` and the tokenizer
`),k=r("code"),x=s("~tokenization_utils_base.PreTrainedTokenizer.from_pretrained"),z=s(` methods. Please refer to the docstrings of the
methods above for more information.`),this.h()},l(J){d=n(J,"P",{});var F=a(d);C=l(F,`This class method is simply calling the feature extractor
`),u=n(F,"A",{href:!0});var R=a(u);f=l(R,"from_pretrained()"),R.forEach(o),T=l(F,`, image processor
`),i=n(F,"A",{href:!0});var ie=a(i);_=l(ie,"ImageProcessingMixin"),ie.forEach(o),E=l(F,` and the tokenizer
`),k=n(F,"CODE",{});var X=a(k);x=l(X,"~tokenization_utils_base.PreTrainedTokenizer.from_pretrained"),X.forEach(o),z=l(F,` methods. Please refer to the docstrings of the
methods above for more information.`),F.forEach(o),this.h()},h(){c(u,"href","/docs/transformers/v4.33.0/en/main_classes/feature_extractor#transformers.FeatureExtractionMixin.from_pretrained"),c(i,"href","/docs/transformers/v4.33.0/en/internal/image_processing_utils#transformers.ImageProcessingMixin")},m(J,F){g(J,d,F),e(d,C),e(d,u),e(u,f),e(d,T),e(d,i),e(i,_),e(d,E),e(d,k),e(k,x),e(d,z)},d(J){J&&o(d)}}}function Zs(U){let d,C,u,f,T,i,_,E;return{c(){d=r("p"),C=s("This class method is simply calling "),u=r("a"),f=s("save_pretrained()"),T=s(` and
`),i=r("a"),_=s("save_pretrained()"),E=s(`. Please refer to the docstrings of the
methods above for more information.`),this.h()},l(k){d=n(k,"P",{});var x=a(d);C=l(x,"This class method is simply calling "),u=n(x,"A",{href:!0});var z=a(u);f=l(z,"save_pretrained()"),z.forEach(o),T=l(x,` and
`),i=n(x,"A",{href:!0});var J=a(i);_=l(J,"save_pretrained()"),J.forEach(o),E=l(x,`. Please refer to the docstrings of the
methods above for more information.`),x.forEach(o),this.h()},h(){c(u,"href","/docs/transformers/v4.33.0/en/main_classes/feature_extractor#transformers.FeatureExtractionMixin.save_pretrained"),c(i,"href","/docs/transformers/v4.33.0/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.save_pretrained")},m(k,x){g(k,d,x),e(d,C),e(d,u),e(u,f),e(d,T),e(d,i),e(i,_),e(d,E)},d(k){k&&o(d)}}}function qs(U){let d,C,u,f,T;return{c(){d=r("p"),C=s("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=r("code"),f=s("Module"),T=s(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(i){d=n(i,"P",{});var _=a(d);C=l(_,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n(_,"CODE",{});var E=a(u);f=l(E,"Module"),E.forEach(o),T=l(_,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),_.forEach(o)},m(i,_){g(i,d,_),e(d,C),e(d,u),e(u,f),e(d,T)},d(i){i&&o(d)}}}function Ws(U){let d,C,u,f,T;return f=new wa({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Qcm9jZXNzb3IlMkMlMjBNQ1RDVE1vZGVsJTBBZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBaW1wb3J0JTIwdG9yY2glMEElMEFkYXRhc2V0JTIwJTNEJTIwbG9hZF9kYXRhc2V0KCUyMmhmLWludGVybmFsLXRlc3RpbmclMkZsaWJyaXNwZWVjaF9hc3JfZGVtbyUyMiUyQyUyMCUyMmNsZWFuJTIyJTJDJTIwc3BsaXQlM0QlMjJ2YWxpZGF0aW9uJTIyKSUwQWRhdGFzZXQlMjAlM0QlMjBkYXRhc2V0LnNvcnQoJTIyaWQlMjIpJTBBc2FtcGxpbmdfcmF0ZSUyMCUzRCUyMGRhdGFzZXQuZmVhdHVyZXMlNUIlMjJhdWRpbyUyMiU1RC5zYW1wbGluZ19yYXRlJTBBJTBBcHJvY2Vzc29yJTIwJTNEJTIwQXV0b1Byb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIyc3BlZWNoYnJhaW4lMkZtLWN0Yy10LWxhcmdlJTIyKSUwQW1vZGVsJTIwJTNEJTIwTUNUQ1RNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyc3BlZWNoYnJhaW4lMkZtLWN0Yy10LWxhcmdlJTIyKSUwQSUwQSUyMyUyMGF1ZGlvJTIwZmlsZSUyMGlzJTIwZGVjb2RlZCUyMG9uJTIwdGhlJTIwZmx5JTBBaW5wdXRzJTIwJTNEJTIwcHJvY2Vzc29yKGRhdGFzZXQlNUIwJTVEJTVCJTIyYXVkaW8lMjIlNUQlNUIlMjJhcnJheSUyMiU1RCUyQyUyMHNhbXBsaW5nX3JhdGUlM0RzYW1wbGluZ19yYXRlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEF3aXRoJTIwdG9yY2gubm9fZ3JhZCgpJTNBJTBBJTIwJTIwJTIwJTIwbG9naXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpLmxvZ2l0cyUwQXByZWRpY3RlZF9pZHMlMjAlM0QlMjB0b3JjaC5hcmdtYXgobG9naXRzJTJDJTIwZGltJTNELTEpJTBBJTBBJTIzJTIwdHJhbnNjcmliZSUyMHNwZWVjaCUwQXRyYW5zY3JpcHRpb24lMjAlM0QlMjBwcm9jZXNzb3IuYmF0Y2hfZGVjb2RlKHByZWRpY3RlZF9pZHMpJTBBdHJhbnNjcmlwdGlvbiU1QjAlNUQlMEElMEFpbnB1dHMlNUIlMjJsYWJlbHMlMjIlNUQlMjAlM0QlMjBwcm9jZXNzb3IodGV4dCUzRGRhdGFzZXQlNUIwJTVEJTVCJTIydGV4dCUyMiU1RCUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpLmlucHV0X2lkcyUwQSUwQSUyMyUyMGNvbXB1dGUlMjBsb3NzJTBBbG9zcyUyMCUzRCUyMG1vZGVsKCoqaW5wdXRzKS5sb3Nz",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoProcessor, MCTCTModel
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch

<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;hf-internal-testing/librispeech_asr_demo&quot;</span>, <span class="hljs-string">&quot;clean&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = dataset.sort(<span class="hljs-string">&quot;id&quot;</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>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;speechbrain/m-ctc-t-large&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = MCTCTModel.from_pretrained(<span class="hljs-string">&quot;speechbrain/m-ctc-t-large&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># audio file is decoded on the fly</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>)
<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
<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><span class="hljs-comment"># transcribe speech</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-number">0</span>]
[<span class="hljs-number">1</span>, <span class="hljs-number">195</span>, <span class="hljs-number">1536</span>]

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs[<span class="hljs-string">&quot;labels&quot;</span>] = processor(text=dataset[<span class="hljs-number">0</span>][<span class="hljs-string">&quot;text&quot;</span>], return_tensors=<span class="hljs-string">&quot;pt&quot;</span>).input_ids

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># compute loss</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>loss = model(**inputs).loss`}}),{c(){d=r("p"),C=s("Example:"),u=m(),v(f.$$.fragment)},l(i){d=n(i,"P",{});var _=a(d);C=l(_,"Example:"),_.forEach(o),u=p(i),b(f.$$.fragment,i)},m(i,_){g(i,d,_),e(d,C),g(i,u,_),M(f,i,_),T=!0},p:ya,i(i){T||(y(f.$$.fragment,i),T=!0)},o(i){w(f.$$.fragment,i),T=!1},d(i){i&&o(d),i&&o(u),$(f,i)}}}function Gs(U){let d,C,u,f,T;return{c(){d=r("p"),C=s("Although the recipe for forward pass needs to be defined within this function, one should call the "),u=r("code"),f=s("Module"),T=s(`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`)},l(i){d=n(i,"P",{});var _=a(d);C=l(_,"Although the recipe for forward pass needs to be defined within this function, one should call the "),u=n(_,"CODE",{});var E=a(u);f=l(E,"Module"),E.forEach(o),T=l(_,`
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`),_.forEach(o)},m(i,_){g(i,d,_),e(d,C),e(d,u),e(u,f),e(d,T)},d(i){i&&o(d)}}}function Rs(U){let d,C,u,f,T;return f=new wa({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Qcm9jZXNzb3IlMkMlMjBNQ1RDVEZvckNUQyUwQWZyb20lMjBkYXRhc2V0cyUyMGltcG9ydCUyMGxvYWRfZGF0YXNldCUwQWltcG9ydCUyMHRvcmNoJTBBJTBBZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJoZi1pbnRlcm5hbC10ZXN0aW5nJTJGbGlicmlzcGVlY2hfYXNyX2RlbW8lMjIlMkMlMjAlMjJjbGVhbiUyMiUyQyUyMHNwbGl0JTNEJTIydmFsaWRhdGlvbiUyMiklMEFkYXRhc2V0JTIwJTNEJTIwZGF0YXNldC5zb3J0KCUyMmlkJTIyKSUwQXNhbXBsaW5nX3JhdGUlMjAlM0QlMjBkYXRhc2V0LmZlYXR1cmVzJTVCJTIyYXVkaW8lMjIlNUQuc2FtcGxpbmdfcmF0ZSUwQSUwQXByb2Nlc3NvciUyMCUzRCUyMEF1dG9Qcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMnNwZWVjaGJyYWluJTJGbS1jdGMtdC1sYXJnZSUyMiklMEFtb2RlbCUyMCUzRCUyME1DVENURm9yQ1RDLmZyb21fcHJldHJhaW5lZCglMjJzcGVlY2hicmFpbiUyRm0tY3RjLXQtbGFyZ2UlMjIpJTBBJTBBJTIzJTIwYXVkaW8lMjBmaWxlJTIwaXMlMjBkZWNvZGVkJTIwb24lMjB0aGUlMjBmbHklMEFpbnB1dHMlMjAlM0QlMjBwcm9jZXNzb3IoZGF0YXNldCU1QjAlNUQlNUIlMjJhdWRpbyUyMiU1RCU1QiUyMmFycmF5JTIyJTVEJTJDJTIwc2FtcGxpbmdfcmF0ZSUzRHNhbXBsaW5nX3JhdGUlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQXdpdGglMjB0b3JjaC5ub19ncmFkKCklM0ElMEElMjAlMjAlMjAlMjBsb2dpdHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cykubG9naXRzJTBBcHJlZGljdGVkX2lkcyUyMCUzRCUyMHRvcmNoLmFyZ21heChsb2dpdHMlMkMlMjBkaW0lM0QtMSklMEElMEElMjMlMjB0cmFuc2NyaWJlJTIwc3BlZWNoJTBBdHJhbnNjcmlwdGlvbiUyMCUzRCUyMHByb2Nlc3Nvci5iYXRjaF9kZWNvZGUocHJlZGljdGVkX2lkcyklMEF0cmFuc2NyaXB0aW9uJTVCMCU1RCUwQSUwQWlucHV0cyU1QiUyMmxhYmVscyUyMiU1RCUyMCUzRCUyMHByb2Nlc3Nvcih0ZXh0JTNEZGF0YXNldCU1QjAlNUQlNUIlMjJ0ZXh0JTIyJTVEJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMikuaW5wdXRfaWRzJTBBJTBBJTIzJTIwY29tcHV0ZSUyMGxvc3MlMEFsb3NzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpLmxvc3MlMEFyb3VuZChsb3NzLml0ZW0oKSUyQyUyMDIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoProcessor, MCTCTForCTC
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch

<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;hf-internal-testing/librispeech_asr_demo&quot;</span>, <span class="hljs-string">&quot;clean&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = dataset.sort(<span class="hljs-string">&quot;id&quot;</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>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;speechbrain/m-ctc-t-large&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = MCTCTForCTC.from_pretrained(<span class="hljs-string">&quot;speechbrain/m-ctc-t-large&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># audio file is decoded on the fly</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>)
<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
<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><span class="hljs-comment"># transcribe speech</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-number">0</span>]
<span class="hljs-string">&quot;Mr. Quilter is the apostle of the middle classes, and we&#x27;re glad to welcome his gospel.&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs[<span class="hljs-string">&quot;labels&quot;</span>] = processor(text=dataset[<span class="hljs-number">0</span>][<span class="hljs-string">&quot;text&quot;</span>], return_tensors=<span class="hljs-string">&quot;pt&quot;</span>).input_ids

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># compute loss</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>loss = model(**inputs).loss
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">round</span>(loss.item(), <span class="hljs-number">2</span>)
<span class="hljs-number">1885.65</span>`}}),{c(){d=r("p"),C=s("Example:"),u=m(),v(f.$$.fragment)},l(i){d=n(i,"P",{});var _=a(d);C=l(_,"Example:"),_.forEach(o),u=p(i),b(f.$$.fragment,i)},m(i,_){g(i,d,_),e(d,C),g(i,u,_),M(f,i,_),T=!0},p:ya,i(i){T||(y(f.$$.fragment,i),T=!0)},o(i){w(f.$$.fragment,i),T=!1},d(i){i&&o(d),i&&o(u),$(f,i)}}}function Bs(U){let d,C,u,f,T,i,_,E,k,x,z,J,F,R,ie,X,nr,At,ar,wo,ce,sr,Je,lr,ir,$o,ht,cr,ko,ft,Vt,dr,xo,L,mr,Ne,pr,hr,Pe,fr,ur,Eo,Y,de,St,Ie,gr,Xt,_r,jo,ut,Lt,gt,Tr,zo,_t,Cr,Fo,Tt,Dt,vr,Uo,H,me,Qt,Ze,br,Yt,Mr,Jo,I,qe,yr,O,wr,Ct,$r,kr,We,xr,Er,jr,K,zr,vt,Fr,Ur,bt,Jr,Nr,Pr,pe,No,ee,he,Ht,Ge,Ir,Ot,Zr,Po,Z,Re,qr,Kt,Wr,Gr,te,Rr,Mt,Br,Ar,Be,Vr,Sr,Xr,fe,Ae,Lr,eo,Dr,Io,oe,ue,to,Ve,Qr,oo,Yr,Zo,j,Se,Hr,ro,Or,Kr,P,yt,en,tn,wt,on,rn,$t,nn,an,Xe,no,sn,ln,cn,kt,dn,mn,pn,ge,Le,hn,B,fn,De,ao,un,gn,_n,so,Tn,Cn,lo,vn,bn,Mn,D,Qe,yn,io,wn,$n,_e,kn,Q,Ye,xn,He,En,xt,jn,zn,Fn,Te,Un,Ce,Oe,Jn,Ke,Nn,Et,Pn,In,Zn,ve,et,qn,tt,Wn,jt,Gn,Rn,qo,re,be,co,ot,Bn,mo,An,Wo,A,rt,Vn,nt,Sn,at,Xn,Ln,Dn,W,st,Qn,ne,Yn,zt,Hn,On,po,Kn,ea,ta,Me,oa,ye,Go,ae,we,ho,lt,ra,fo,na,Ro,V,it,aa,se,sa,uo,la,ia,ct,ca,da,ma,G,dt,pa,le,ha,Ft,fa,ua,go,ga,_a,Ta,$e,Ca,ke,Bo;return i=new Ue({}),z=new yo({props:{warning:!0,$$slots:{default:[Ns]},$$scope:{ctx:U}}}),X=new Ue({}),Ie=new Ue({}),Ze=new Ue({}),qe=new q({props:{name:"class transformers.MCTCTConfig",anchor:"transformers.MCTCTConfig",parameters:[{name:"vocab_size",val:" = 8065"},{name:"hidden_size",val:" = 1536"},{name:"num_hidden_layers",val:" = 36"},{name:"intermediate_size",val:" = 6144"},{name:"num_attention_heads",val:" = 4"},{name:"attention_head_dim",val:" = 384"},{name:"max_position_embeddings",val:" = 920"},{name:"layer_norm_eps",val:" = 1e-05"},{name:"layerdrop",val:" = 0.3"},{name:"hidden_act",val:" = 'relu'"},{name:"initializer_range",val:" = 0.02"},{name:"hidden_dropout_prob",val:" = 0.3"},{name:"attention_probs_dropout_prob",val:" = 0.3"},{name:"pad_token_id",val:" = 1"},{name:"bos_token_id",val:" = 0"},{name:"eos_token_id",val:" = 2"},{name:"conv_glu_dim",val:" = 1"},{name:"conv_dropout",val:" = 0.3"},{name:"num_conv_layers",val:" = 1"},{name:"conv_kernel",val:" = (7,)"},{name:"conv_stride",val:" = (3,)"},{name:"input_feat_per_channel",val:" = 80"},{name:"input_channels",val:" = 1"},{name:"conv_channels",val:" = None"},{name:"ctc_loss_reduction",val:" = 'sum'"},{name:"ctc_zero_infinity",val:" = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.MCTCTConfig.vocab_size",description:`<strong>vocab_size</strong> (<code>int</code>, <em>optional</em>, defaults to 8065) &#x2014;
Vocabulary size of the M-CTC-T model. Defines the number of different tokens that can be represented by the
<code>inputs_ids</code> passed when calling <a href="/docs/transformers/v4.33.0/en/model_doc/mctct#transformers.MCTCTModel">MCTCTModel</a>.`,name:"vocab_size"},{anchor:"transformers.MCTCTConfig.hidden_size",description:`<strong>hidden_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1536) &#x2014;
Dimension of the encoder layers and the pooler layer.`,name:"hidden_size"},{anchor:"transformers.MCTCTConfig.num_hidden_layers",description:`<strong>num_hidden_layers</strong> (<code>int</code>, <em>optional</em>, defaults to 36) &#x2014;
Number of hidden layers in the Transformer encoder.`,name:"num_hidden_layers"},{anchor:"transformers.MCTCTConfig.intermediate_size",description:`<strong>intermediate_size</strong> (<code>int</code>, <em>optional</em>, defaults to 6144) &#x2014;
Dimension of the &#x201C;intermediate&#x201D; (i.e., feed-forward) layer in the Transformer encoder.`,name:"intermediate_size"},{anchor:"transformers.MCTCTConfig.num_attention_heads",description:`<strong>num_attention_heads</strong> (<code>int</code>, <em>optional</em>, defaults to 4) &#x2014;
Number of attention heads for each attention layer in the Transformer encoder.`,name:"num_attention_heads"},{anchor:"transformers.MCTCTConfig.attention_head_dim",description:`<strong>attention_head_dim</strong> (<code>int</code>, <em>optional</em>, defaults to 384) &#x2014;
Dimensions of each attention head for each attention layer in the Transformer encoder.`,name:"attention_head_dim"},{anchor:"transformers.MCTCTConfig.max_position_embeddings",description:`<strong>max_position_embeddings</strong> (<code>int</code>, <em>optional</em>, defaults to 920) &#x2014;
The maximum sequence length that this model might ever be used with (after log-mel spectrogram extraction).`,name:"max_position_embeddings"},{anchor:"transformers.MCTCTConfig.layer_norm_eps",description:`<strong>layer_norm_eps</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-5) &#x2014;
The epsilon used by the layer normalization layers.`,name:"layer_norm_eps"},{anchor:"transformers.MCTCTConfig.layerdrop",description:`<strong>layerdrop</strong> (<code>float</code>, <em>optional</em>, defaults to 0.3) &#x2014;
The probability of dropping an encoder layer during training. The default 0.3 value is used in the original
implementation.`,name:"layerdrop"},{anchor:"transformers.MCTCTConfig.hidden_act",description:`<strong>hidden_act</strong> (<code>str</code> or <code>function</code>, <em>optional</em>, defaults to <code>&quot;relu&quot;</code>) &#x2014;
The non-linear activation function (function or string) in the encoder and pooler. If string, <code>&quot;gelu&quot;</code>,
<code>&quot;relu&quot;</code>, <code>&quot;selu&quot;</code> and <code>&quot;gelu_new&quot;</code> are supported.`,name:"hidden_act"},{anchor:"transformers.MCTCTConfig.initializer_range",description:`<strong>initializer_range</strong> (<code>float</code>, <em>optional</em>, defaults to 0.02) &#x2014;
The standard deviation of the truncated_normal_initializer for initializing all weight matrices.`,name:"initializer_range"},{anchor:"transformers.MCTCTConfig.hidden_dropout_prob",description:`<strong>hidden_dropout_prob</strong> (<code>float</code>, <em>optional</em>, defaults to 0.1) &#x2014;
The dropout probabilitiy for all fully connected layers in the embeddings, encoder, and pooler.`,name:"hidden_dropout_prob"},{anchor:"transformers.MCTCTConfig.attention_probs_dropout_prob",description:`<strong>attention_probs_dropout_prob</strong> (<code>float</code>, <em>optional</em>, defaults to 0.1) &#x2014;
The dropout ratio for the attention probabilities.`,name:"attention_probs_dropout_prob"},{anchor:"transformers.MCTCTConfig.pad_token_id",description:`<strong>pad_token_id</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The tokenizer index of the pad token.`,name:"pad_token_id"},{anchor:"transformers.MCTCTConfig.bos_token_id",description:`<strong>bos_token_id</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
The tokenizer index of the bos token.`,name:"bos_token_id"},{anchor:"transformers.MCTCTConfig.eos_token_id",description:`<strong>eos_token_id</strong> (<code>int</code>, <em>optional</em>, defaults to 2) &#x2014;
The tokenizer index of the eos token.`,name:"eos_token_id"},{anchor:"transformers.MCTCTConfig.conv_glu_dim",description:`<strong>conv_glu_dim</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The dimension of the output of the <code>Conv1dSubsampler</code> layer in which GLU is applied on. Though the original
Flashlight code uses the value of 2, here it&#x2019;s adapted to 1 due to transposition differences.`,name:"conv_glu_dim"},{anchor:"transformers.MCTCTConfig.conv_dropout",description:`<strong>conv_dropout</strong> (<code>int</code>, <em>optional</em>, defaults to 0.3) &#x2014;
The probability of randomly dropping the <code>Conv1dSubsampler</code> layer during training.`,name:"conv_dropout"},{anchor:"transformers.MCTCTConfig.num_conv_layers",description:`<strong>num_conv_layers</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
Number of convolution layers before applying transformer encoder layers.`,name:"num_conv_layers"},{anchor:"transformers.MCTCTConfig.conv_kernel",description:`<strong>conv_kernel</strong> (<code>List[int]</code>, <em>optional</em>, defaults to <code>[7]</code>) &#x2014;
The kernel size of the 1D convolution applied before transformer layers. <code>len(conv_kernel)</code> must be equal
to <code>num_conv_layers</code>.`,name:"conv_kernel"},{anchor:"transformers.MCTCTConfig.conv_stride",description:`<strong>conv_stride</strong> (<code>List[int]</code>, <em>optional</em>, defaults to <code>[3]</code>) &#x2014;
The stride length of the 1D convolution applied before transformer layers. <code>len(conv_stride)</code> must be equal
to <code>num_conv_layers</code>.`,name:"conv_stride"},{anchor:"transformers.MCTCTConfig.input_feat_per_channel",description:`<strong>input_feat_per_channel</strong> (<code>int</code>, <em>optional</em>, defaults to 80) &#x2014;
Feature dimensions of the channels of the input to the Conv1D layer.`,name:"input_feat_per_channel"},{anchor:"transformers.MCTCTConfig.input_channels",description:`<strong>input_channels</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
Number of input channels of the input to the Conv1D layer.`,name:"input_channels"},{anchor:"transformers.MCTCTConfig.conv_channels",description:`<strong>conv_channels</strong> (<code>List[int]</code>, <em>optional</em>, defaults to None) &#x2014;
Channel sizes of intermediate Conv1D layers.`,name:"conv_channels"},{anchor:"transformers.MCTCTConfig.ctc_loss_reduction",description:`<strong>ctc_loss_reduction</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;sum&quot;</code>) &#x2014;
Specifies the reduction to apply to the output of <code>torch.nn.CTCLoss</code>. Only relevant when training an
instance of <a href="/docs/transformers/v4.33.0/en/model_doc/mctct#transformers.MCTCTForCTC">MCTCTForCTC</a>.`,name:"ctc_loss_reduction"},{anchor:"transformers.MCTCTConfig.ctc_zero_infinity",description:`<strong>ctc_zero_infinity</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to zero infinite losses and the associated gradients of <code>torch.nn.CTCLoss</code>. Infinite losses mainly
occur when the inputs are too short to be aligned to the targets. Only relevant when training an instance
of <a href="/docs/transformers/v4.33.0/en/model_doc/mctct#transformers.MCTCTForCTC">MCTCTForCTC</a>.`,name:"ctc_zero_infinity"}],source:"https://github.com/huggingface/transformers/blob/v4.33.0/src/transformers/models/deprecated/mctct/configuration_mctct.py#L29"}}),pe=new Ma({props:{anchor:"transformers.MCTCTConfig.example",$$slots:{default:[Ps]},$$scope:{ctx:U}}}),Ge=new Ue({}),Re=new q({props:{name:"class transformers.MCTCTFeatureExtractor",anchor:"transformers.MCTCTFeatureExtractor",parameters:[{name:"feature_size",val:" = 80"},{name:"sampling_rate",val:" = 16000"},{name:"padding_value",val:" = 0.0"},{name:"hop_length",val:" = 10"},{name:"win_length",val:" = 25"},{name:"win_function",val:" = 'hamming_window'"},{name:"frame_signal_scale",val:" = 32768.0"},{name:"preemphasis_coeff",val:" = 0.97"},{name:"mel_floor",val:" = 1.0"},{name:"normalize_means",val:" = True"},{name:"normalize_vars",val:" = True"},{name:"return_attention_mask",val:" = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.MCTCTFeatureExtractor.feature_size",description:`<strong>feature_size</strong> (<code>int</code>, defaults to 80) &#x2014;
The feature dimension of the extracted features. This is the number of mel_frequency`,name:"feature_size"},{anchor:"transformers.MCTCTFeatureExtractor.sampling_rate",description:`<strong>sampling_rate</strong> (<code>int</code>, defaults to 16000) &#x2014;
The sampling rate at which the audio files should be digitalized expressed in hertz (Hz).`,name:"sampling_rate"},{anchor:"transformers.MCTCTFeatureExtractor.padding_value",description:`<strong>padding_value</strong> (<code>float</code>, defaults to 0.0) &#x2014;
The value that is used to fill the padding values.`,name:"padding_value"},{anchor:"transformers.MCTCTFeatureExtractor.hop_length",description:`<strong>hop_length</strong> (<code>int</code>, defaults to 10) &#x2014;
Number of audio samples between windows. Otherwise referred to as &#x201C;shift&#x201D; in many papers.`,name:"hop_length"},{anchor:"transformers.MCTCTFeatureExtractor.win_length",description:`<strong>win_length</strong> (<code>int</code>, defaults to 25) &#x2014;
Number of ms per window`,name:"win_length"},{anchor:"transformers.MCTCTFeatureExtractor.win_function",description:`<strong>win_function</strong> (<code>str</code>, defaults to <code>&quot;hamming_window&quot;</code>) &#x2014;
Name for the window function used for windowing, must be accessible via <code>torch.{win_function}</code>`,name:"win_function"},{anchor:"transformers.MCTCTFeatureExtractor.frame_signal_scale",description:`<strong>frame_signal_scale</strong> (<code>float</code>, defaults to 32768.0) &#x2014;
Constant multiplied in creating the frames before applying DFT.`,name:"frame_signal_scale"},{anchor:"transformers.MCTCTFeatureExtractor.preemphasis_coeff",description:`<strong>preemphasis_coeff</strong> (<code>float</code>, defaults to 0.97) &#x2014;
Constant multiplied in applying Pre-emphasis before DFT.`,name:"preemphasis_coeff"},{anchor:"transformers.MCTCTFeatureExtractor.mel_floor",description:`<strong>mel_floor</strong> (<code>float</code> defaults to 1.0) &#x2014;
Minimum value of mel frequency banks.`,name:"mel_floor"},{anchor:"transformers.MCTCTFeatureExtractor.normalize_means",description:`<strong>normalize_means</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to zero-mean normalize the extracted features.`,name:"normalize_means"},{anchor:"transformers.MCTCTFeatureExtractor.normalize_vars",description:`<strong>normalize_vars</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to unit-variance normalize the extracted features.`,name:"normalize_vars"}],source:"https://github.com/huggingface/transformers/blob/v4.33.0/src/transformers/models/deprecated/mctct/feature_extraction_mctct.py#L33"}}),Ae=new q({props:{name:"__call__",anchor:"transformers.MCTCTFeatureExtractor.__call__",parameters:[{name:"raw_speech",val:": typing.Union[numpy.ndarray, typing.List[float], typing.List[numpy.ndarray], typing.List[typing.List[float]]]"},{name:"padding",val:": typing.Union[bool, str, transformers.utils.generic.PaddingStrategy] = False"},{name:"max_length",val:": typing.Optional[int] = None"},{name:"truncation",val:": bool = False"},{name:"pad_to_multiple_of",val:": typing.Optional[int] = None"},{name:"return_attention_mask",val:": typing.Optional[bool] = None"},{name:"return_tensors",val:": typing.Union[transformers.utils.generic.TensorType, str, NoneType] = None"},{name:"sampling_rate",val:": typing.Optional[int] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.MCTCTFeatureExtractor.__call__.raw_speech",description:`<strong>raw_speech</strong> (<code>torch.Tensor</code>, <code>np.ndarray</code>, <code>List[float]</code>, <code>List[torch.Tensor]</code>, <code>List[np.ndarray]</code>, <code>List[List[float]]</code>) &#x2014;
The sequence or batch of sequences to be padded. Each sequence can be a tensor, a numpy array, a list
of float values, a list of tensors, a list of numpy arrays or a list of list of float values. Must be
mono channel audio, not stereo, i.e. single float per timestep.`,name:"raw_speech"},{anchor:"transformers.MCTCTFeatureExtractor.__call__.padding",description:`<strong>padding</strong> (<code>bool</code>, <code>str</code> or <a href="/docs/transformers/v4.33.0/en/internal/file_utils#transformers.utils.PaddingStrategy">PaddingStrategy</a>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Select a strategy to pad the returned sequences (according to the model&#x2019;s padding side and padding
index) among:</p>
<ul>
<li><code>True</code> or <code>&apos;longest&apos;</code>: Pad to the longest sequence in the batch (or no padding if only a single
sequence if provided).</li>
<li><code>&apos;max_length&apos;</code>: Pad to a maximum length specified with the argument <code>max_length</code> or to the maximum
acceptable input length for the model if that argument is not provided.</li>
<li><code>False</code> or <code>&apos;do_not_pad&apos;</code> (default): No padding (i.e., can output a batch with sequences of different
lengths).</li>
</ul>`,name:"padding"},{anchor:"transformers.MCTCTFeatureExtractor.__call__.max_length",description:`<strong>max_length</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Maximum length of the returned list and optionally padding length (see above).`,name:"max_length"},{anchor:"transformers.MCTCTFeatureExtractor.__call__.truncation",description:`<strong>truncation</strong> (<code>bool</code>) &#x2014;
Activates truncation to cut input sequences longer than <em>max_length</em> to <em>max_length</em>.`,name:"truncation"},{anchor:"transformers.MCTCTFeatureExtractor.__call__.pad_to_multiple_of",description:`<strong>pad_to_multiple_of</strong> (<code>int</code>, <em>optional</em>) &#x2014;
If set will pad the sequence to a multiple of the provided value.</p>
<p>This is especially useful to enable the use of Tensor Cores on NVIDIA hardware with compute capability
<code>&gt;= 7.5</code> (Volta), or on TPUs which benefit from having sequence lengths be a multiple of 128.`,name:"pad_to_multiple_of"},{anchor:"transformers.MCTCTFeatureExtractor.__call__.return_attention_mask",description:`<strong>return_attention_mask</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to return the attention mask. If left to the default, will return the attention mask according
to the specific feature_extractor&#x2019;s default.</p>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"return_attention_mask"},{anchor:"transformers.MCTCTFeatureExtractor.__call__.return_tensors",description:`<strong>return_tensors</strong> (<code>str</code> or <a href="/docs/transformers/v4.33.0/en/internal/file_utils#transformers.TensorType">TensorType</a>, <em>optional</em>) &#x2014;
If set, will return tensors instead of list of python integers. Acceptable values are:</p>
<ul>
<li><code>&apos;tf&apos;</code>: Return TensorFlow <code>tf.constant</code> objects.</li>
<li><code>&apos;pt&apos;</code>: Return PyTorch <code>torch.Tensor</code> objects.</li>
<li><code>&apos;np&apos;</code>: Return Numpy <code>np.ndarray</code> objects.</li>
</ul>`,name:"return_tensors"},{anchor:"transformers.MCTCTFeatureExtractor.__call__.sampling_rate",description:`<strong>sampling_rate</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The sampling rate at which the <code>raw_speech</code> input was sampled. It is strongly recommended to pass
<code>sampling_rate</code> at the forward call to prevent silent errors.`,name:"sampling_rate"},{anchor:"transformers.MCTCTFeatureExtractor.__call__.padding_value",description:"<strong>padding_value</strong> (<code>float</code>, defaults to 0.0) &#x2014;",name:"padding_value"}],source:"https://github.com/huggingface/transformers/blob/v4.33.0/src/transformers/models/deprecated/mctct/feature_extraction_mctct.py#L161"}}),Ve=new Ue({}),Se=new q({props:{name:"class transformers.MCTCTProcessor",anchor:"transformers.MCTCTProcessor",parameters:[{name:"feature_extractor",val:""},{name:"tokenizer",val:""}],parametersDescription:[{anchor:"transformers.MCTCTProcessor.feature_extractor",description:`<strong>feature_extractor</strong> (<code>MCTCTFeatureExtractor</code>) &#x2014;
An instance of <a href="/docs/transformers/v4.33.0/en/model_doc/mctct#transformers.MCTCTFeatureExtractor">MCTCTFeatureExtractor</a>. The feature extractor is a required input.`,name:"feature_extractor"},{anchor:"transformers.MCTCTProcessor.tokenizer",description:`<strong>tokenizer</strong> (<code>AutoTokenizer</code>) &#x2014;
An instance of <a href="/docs/transformers/v4.33.0/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. The tokenizer is a required input.`,name:"tokenizer"}],source:"https://github.com/huggingface/transformers/blob/v4.33.0/src/transformers/models/deprecated/mctct/processing_mctct.py#L24"}}),Le=new q({props:{name:"__call__",anchor:"transformers.MCTCTProcessor.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.0/src/transformers/models/deprecated/mctct/processing_mctct.py#L45"}}),Qe=new q({props:{name:"from_pretrained",anchor:"transformers.MCTCTProcessor.from_pretrained",parameters:[{name:"pretrained_model_name_or_path",val:": typing.Union[str, os.PathLike]"},{name:"cache_dir",val:": typing.Union[str, os.PathLike, NoneType] = None"},{name:"force_download",val:": bool = False"},{name:"local_files_only",val:": bool = False"},{name:"token",val:": typing.Union[bool, str, NoneType] = None"},{name:"revision",val:": str = 'main'"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.MCTCTProcessor.from_pretrained.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
This can be either:</p>
<ul>
<li>a string, the <em>model id</em> of a pretrained feature_extractor hosted inside a model repo on
huggingface.co. Valid model ids can be located at the root-level, like <code>bert-base-uncased</code>, or
namespaced under a user or organization name, like <code>dbmdz/bert-base-german-cased</code>.</li>
<li>a path to a <em>directory</em> containing a feature extractor file saved using the
<a href="/docs/transformers/v4.33.0/en/main_classes/feature_extractor#transformers.FeatureExtractionMixin.save_pretrained">save_pretrained()</a> method, e.g., <code>./my_model_directory/</code>.</li>
<li>a path or url to a saved feature extractor JSON <em>file</em>, e.g.,
<code>./my_model_directory/preprocessor_config.json</code>.
**kwargs &#x2014;
Additional keyword arguments passed along to both
<a href="/docs/transformers/v4.33.0/en/main_classes/feature_extractor#transformers.FeatureExtractionMixin.from_pretrained">from_pretrained()</a> and
<code>~tokenization_utils_base.PreTrainedTokenizer.from_pretrained</code>.</li>
</ul>`,name:"pretrained_model_name_or_path"}],source:"https://github.com/huggingface/transformers/blob/v4.33.0/src/transformers/processing_utils.py#L167"}}),_e=new yo({props:{$$slots:{default:[Is]},$$scope:{ctx:U}}}),Ye=new q({props:{name:"save_pretrained",anchor:"transformers.MCTCTProcessor.save_pretrained",parameters:[{name:"save_directory",val:""},{name:"push_to_hub",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.MCTCTProcessor.save_pretrained.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory where the feature extractor JSON file and the tokenizer files will be saved (directory will
be created if it does not exist).`,name:"save_directory"},{anchor:"transformers.MCTCTProcessor.save_pretrained.push_to_hub",description:`<strong>push_to_hub</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to push your model to the Hugging Face model hub after saving it. You can specify the
repository you want to push to with <code>repo_id</code> (will default to the name of <code>save_directory</code> in your
namespace).`,name:"push_to_hub"},{anchor:"transformers.MCTCTProcessor.save_pretrained.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional key word arguments passed along to the <a href="/docs/transformers/v4.33.0/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.push_to_hub">push_to_hub()</a> method.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.33.0/src/transformers/processing_utils.py#L93"}}),Te=new yo({props:{$$slots:{default:[Zs]},$$scope:{ctx:U}}}),Oe=new q({props:{name:"batch_decode",anchor:"transformers.MCTCTProcessor.batch_decode",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.0/src/transformers/models/deprecated/mctct/processing_mctct.py#L83"}}),et=new q({props:{name:"decode",anchor:"transformers.MCTCTProcessor.decode",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.0/src/transformers/models/deprecated/mctct/processing_mctct.py#L120"}}),ot=new Ue({}),rt=new q({props:{name:"class transformers.MCTCTModel",anchor:"transformers.MCTCTModel",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.MCTCTModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.33.0/en/model_doc/mctct#transformers.MCTCTConfig">MCTCTConfig</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.33.0/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.33.0/src/transformers/models/deprecated/mctct/modeling_mctct.py#L661"}}),st=new q({props:{name:"forward",anchor:"transformers.MCTCTModel.forward",parameters:[{name:"input_features",val:": Tensor"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"head_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.MCTCTModel.forward.input_features",description:`<strong>input_features</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.33.0/en/model_doc/wav2vec2#transformers.Wav2Vec2CTCTokenizer">Wav2Vec2CTCTokenizer</a>. See <a href="/docs/transformers/v4.33.0/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.33.0/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_features"},{anchor:"transformers.MCTCTModel.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.MCTCTModel.forward.head_mask",description:`<strong>head_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(num_heads,)</code> or <code>(num_layers, num_heads)</code>, <em>optional</em>) &#x2014;
Mask to nullify selected heads of the self-attention modules. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.MCTCTModel.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.MCTCTModel.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.MCTCTModel.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.33.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.33.0/src/transformers/models/deprecated/mctct/modeling_mctct.py#L671",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.33.0/en/main_classes/output#transformers.modeling_outputs.BaseModelOutput"
>transformers.modeling_outputs.BaseModelOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.33.0/en/model_doc/mctct#transformers.MCTCTConfig"
>MCTCTConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>last_hidden_state</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>) \u2014 Sequence of hidden-states at the output of the last layer of the model.</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings, if the model has an embedding layer, +
one for the output of each layer) of shape <code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.33.0/en/main_classes/output#transformers.modeling_outputs.BaseModelOutput"
>transformers.modeling_outputs.BaseModelOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Me=new yo({props:{$$slots:{default:[qs]},$$scope:{ctx:U}}}),ye=new Ma({props:{anchor:"transformers.MCTCTModel.forward.example",$$slots:{default:[Ws]},$$scope:{ctx:U}}}),lt=new Ue({}),it=new q({props:{name:"class transformers.MCTCTForCTC",anchor:"transformers.MCTCTForCTC",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.MCTCTForCTC.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.33.0/en/model_doc/mctct#transformers.MCTCTConfig">MCTCTConfig</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/v4.33.0/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.33.0/src/transformers/models/deprecated/mctct/modeling_mctct.py#L721"}}),dt=new q({props:{name:"forward",anchor:"transformers.MCTCTForCTC.forward",parameters:[{name:"input_features",val:": Tensor"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"head_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"},{name:"labels",val:": typing.Optional[torch.LongTensor] = None"}],parametersDescription:[{anchor:"transformers.MCTCTForCTC.forward.input_features",description:`<strong>input_features</strong> (<code>torch.LongTensor</code> of shape <code>({0})</code>) &#x2014;
Indices of input sequence tokens in the vocabulary.</p>
<p>Indices can be obtained using <a href="/docs/transformers/v4.33.0/en/model_doc/wav2vec2#transformers.Wav2Vec2CTCTokenizer">Wav2Vec2CTCTokenizer</a>. See <a href="/docs/transformers/v4.33.0/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.33.0/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_features"},{anchor:"transformers.MCTCTForCTC.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.FloatTensor</code> of shape <code>({0})</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.MCTCTForCTC.forward.head_mask",description:`<strong>head_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(num_heads,)</code> or <code>(num_layers, num_heads)</code>, <em>optional</em>) &#x2014;
Mask to nullify selected heads of the self-attention modules. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.MCTCTForCTC.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.MCTCTForCTC.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.MCTCTForCTC.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.33.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.MCTCTForCTC.forward.labels",description:`<strong>labels</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, target_length)</code>, <em>optional</em>) &#x2014;
Labels for connectionist temporal classification. Note that <code>target_length</code> has to be smaller or equal to
the sequence length of the output logits. Indices are selected in <code>[-100, 0, ..., config.vocab_size - 1]</code>.
All labels set to <code>-100</code> are ignored (masked), the loss is only computed for labels in <code>[0, ..., config.vocab_size - 1]</code>.`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/v4.33.0/src/transformers/models/deprecated/mctct/modeling_mctct.py#L741",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.33.0/en/main_classes/output#transformers.modeling_outputs.CausalLMOutput"
>transformers.modeling_outputs.CausalLMOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/v4.33.0/en/model_doc/mctct#transformers.MCTCTConfig"
>MCTCTConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>torch.FloatTensor</code> of shape <code>(1,)</code>, <em>optional</em>, returned when <code>labels</code> is provided) \u2014 Language modeling loss (for next-token prediction).</p>
</li>
<li>
<p><strong>logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, config.vocab_size)</code>) \u2014 Prediction scores of the language modeling head (scores for each vocabulary token before SoftMax).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings, if the model has an embedding layer, +
one for the output of each layer) of shape <code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) \u2014 Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.33.0/en/main_classes/output#transformers.modeling_outputs.CausalLMOutput"
>transformers.modeling_outputs.CausalLMOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),$e=new yo({props:{$$slots:{default:[Gs]},$$scope:{ctx:U}}}),ke=new Ma({props:{anchor:"transformers.MCTCTForCTC.forward.example",$$slots:{default:[Rs]},$$scope:{ctx:U}}}),{c(){d=r("meta"),C=m(),u=r("h1"),f=r("a"),T=r("span"),v(i.$$.fragment),_=m(),E=r("span"),k=s("M-CTC-T"),x=m(),v(z.$$.fragment),J=m(),F=r("h2"),R=r("a"),ie=r("span"),v(X.$$.fragment),nr=m(),At=r("span"),ar=s("Overview"),wo=m(),ce=r("p"),sr=s("The M-CTC-T model was proposed in "),Je=r("a"),lr=s("Pseudo-Labeling For Massively Multilingual Speech Recognition"),ir=s(" by Loren Lugosch, Tatiana Likhomanenko, Gabriel Synnaeve, and Ronan Collobert. The model is a 1B-param transformer encoder, with a CTC head over 8065 character labels and a language identification head over 60 language ID labels. It is trained on Common Voice (version 6.1, December 2020 release) and VoxPopuli. After training on Common Voice and VoxPopuli, the model is trained on Common Voice only. The labels are unnormalized character-level transcripts (punctuation and capitalization are not removed). The model takes as input Mel filterbank features from a 16Khz audio signal."),$o=m(),ht=r("p"),cr=s("The abstract from the paper is the following:"),ko=m(),ft=r("p"),Vt=r("em"),dr=s(`Semi-supervised learning through pseudo-labeling has become a staple of state-of-the-art monolingual
speech recognition systems. In this work, we extend pseudo-labeling to massively multilingual speech
recognition with 60 languages. We propose a simple pseudo-labeling recipe that works well even
with low-resource languages: train a supervised multilingual model, fine-tune it with semi-supervised
learning on a target language, generate pseudo-labels for that language, and train a final model using
pseudo-labels for all languages, either from scratch or by fine-tuning. Experiments on the labeled
Common Voice and unlabeled VoxPopuli datasets show that our recipe can yield a model with better
performance for many languages that also transfers well to LibriSpeech.`),xo=m(),L=r("p"),mr=s("This model was contributed by "),Ne=r("a"),pr=s("cwkeam"),hr=s(". The original code can be found "),Pe=r("a"),fr=s("here"),ur=s("."),Eo=m(),Y=r("h2"),de=r("a"),St=r("span"),v(Ie.$$.fragment),gr=m(),Xt=r("span"),_r=s("Documentation resources"),jo=m(),ut=r("ul"),Lt=r("li"),gt=r("a"),Tr=s("Automatic speech recognition task guide"),zo=m(),_t=r("p"),Cr=s("Tips:"),Fo=m(),Tt=r("ul"),Dt=r("li"),vr=s("The PyTorch version of this model is only available in torch 1.9 and higher."),Uo=m(),H=r("h2"),me=r("a"),Qt=r("span"),v(Ze.$$.fragment),br=m(),Yt=r("span"),Mr=s("MCTCTConfig"),Jo=m(),I=r("div"),v(qe.$$.fragment),yr=m(),O=r("p"),wr=s("This is the configuration class to store the configuration of a "),Ct=r("a"),$r=s("MCTCTModel"),kr=s(`. It is used to instantiate an
M-CTC-T model according to the specified arguments, defining the model architecture. Instantiating a configuration
with the defaults will yield a similar configuration to that of the M-CTC-T
`),We=r("a"),xr=s("speechbrain/m-ctc-t-large"),Er=s(" architecture."),jr=m(),K=r("p"),zr=s("Configuration objects inherit from "),vt=r("a"),Fr=s("PretrainedConfig"),Ur=s(` and can be used to control the model outputs. Read the
documentation from `),bt=r("a"),Jr=s("PretrainedConfig"),Nr=s(" for more information."),Pr=m(),v(pe.$$.fragment),No=m(),ee=r("h2"),he=r("a"),Ht=r("span"),v(Ge.$$.fragment),Ir=m(),Ot=r("span"),Zr=s("MCTCTFeatureExtractor"),Po=m(),Z=r("div"),v(Re.$$.fragment),qr=m(),Kt=r("p"),Wr=s("Constructs a M-CTC-T feature extractor."),Gr=m(),te=r("p"),Rr=s("This feature extractor inherits from "),Mt=r("a"),Br=s("SequenceFeatureExtractor"),Ar=s(` which contains
most of the main methods. Users should refer to this superclass for more information regarding those methods. This
code has been adapted from Flashlight\u2019s C++ code. For more information about the implementation, one can refer to
this `),Be=r("a"),Vr=s("notebook"),Sr=s(`
that takes the user step-by-step in the implementation.`),Xr=m(),fe=r("div"),v(Ae.$$.fragment),Lr=m(),eo=r("p"),Dr=s(`Main method to featurize and prepare for the model one or several sequence(s). sequences. It returns the
log-mel spectrogram of the input audio, as implemented in the original Flashlight MFSC feature extraction code.`),Io=m(),oe=r("h2"),ue=r("a"),to=r("span"),v(Ve.$$.fragment),Qr=m(),oo=r("span"),Yr=s("MCTCTProcessor"),Zo=m(),j=r("div"),v(Se.$$.fragment),Hr=m(),ro=r("p"),Or=s("Constructs a MCTCT processor which wraps a MCTCT feature extractor and a MCTCT tokenizer into a single processor."),Kr=m(),P=r("p"),yt=r("a"),en=s("MCTCTProcessor"),tn=s(" offers all the functionalities of "),wt=r("a"),on=s("MCTCTFeatureExtractor"),rn=s(" and "),$t=r("a"),nn=s("AutoTokenizer"),an=s(`. See the
`),Xe=r("a"),no=r("strong"),sn=s("call"),ln=s("()"),cn=s(" and "),kt=r("a"),dn=s("decode()"),mn=s(" for more information."),pn=m(),ge=r("div"),v(Le.$$.fragment),hn=m(),B=r("p"),fn=s(`When used in normal mode, this method forwards all its arguments to MCTCTFeatureExtractor\u2019s
`),De=r("a"),ao=r("strong"),un=s("call"),gn=s("()"),_n=s(` and returns its output. If used in the context
`),so=r("code"),Tn=s("as_target_processor()"),Cn=s(` this method forwards all its arguments to AutoTokenizer\u2019s
`),lo=r("code"),vn=s("__call__()"),bn=s(". Please refer to the doctsring of the above two methods for more information."),Mn=m(),D=r("div"),v(Qe.$$.fragment),yn=m(),io=r("p"),wn=s("Instantiate a processor associated with a pretrained model."),$n=m(),v(_e.$$.fragment),kn=m(),Q=r("div"),v(Ye.$$.fragment),xn=m(),He=r("p"),En=s(`Saves the attributes of this processor (feature extractor, tokenizer\u2026) in the specified directory so that it
can be reloaded using the `),xt=r("a"),jn=s("from_pretrained()"),zn=s(" method."),Fn=m(),v(Te.$$.fragment),Un=m(),Ce=r("div"),v(Oe.$$.fragment),Jn=m(),Ke=r("p"),Nn=s("This method forwards all its arguments to AutoTokenizer\u2019s "),Et=r("a"),Pn=s("batch_decode()"),In=s(`. Please refer
to the docstring of this method for more information.`),Zn=m(),ve=r("div"),v(et.$$.fragment),qn=m(),tt=r("p"),Wn=s("This method forwards all its arguments to AutoTokenizer\u2019s "),jt=r("a"),Gn=s("decode()"),Rn=s(`. Please refer to the
docstring of this method for more information.`),qo=m(),re=r("h2"),be=r("a"),co=r("span"),v(ot.$$.fragment),Bn=m(),mo=r("span"),An=s("MCTCTModel"),Wo=m(),A=r("div"),v(rt.$$.fragment),Vn=m(),nt=r("p"),Sn=s(`The bare M-CTC-T Model transformer outputting raw hidden-states without any specific head on top.
This model is a PyTorch `),at=r("a"),Xn=s("torch.nn.Module"),Ln=s(` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),Dn=m(),W=r("div"),v(st.$$.fragment),Qn=m(),ne=r("p"),Yn=s("The "),zt=r("a"),Hn=s("MCTCTModel"),On=s(" forward method, overrides the "),po=r("code"),Kn=s("__call__"),ea=s(" special method."),ta=m(),v(Me.$$.fragment),oa=m(),v(ye.$$.fragment),Go=m(),ae=r("h2"),we=r("a"),ho=r("span"),v(lt.$$.fragment),ra=m(),fo=r("span"),na=s("MCTCTForCTC"),Ro=m(),V=r("div"),v(it.$$.fragment),aa=m(),se=r("p"),sa=s("MCTCT Model with a "),uo=r("code"),la=s("language modeling"),ia=s(` head on top for Connectionist Temporal Classification (CTC).
This model is a PyTorch `),ct=r("a"),ca=s("torch.nn.Module"),da=s(` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),ma=m(),G=r("div"),v(dt.$$.fragment),pa=m(),le=r("p"),ha=s("The "),Ft=r("a"),fa=s("MCTCTForCTC"),ua=s(" forward method, overrides the "),go=r("code"),ga=s("__call__"),_a=s(" special method."),Ta=m(),v($e.$$.fragment),Ca=m(),v(ke.$$.fragment),this.h()},l(t){const h=Us('[data-svelte="svelte-1phssyn"]',document.head);d=n(h,"META",{name:!0,content:!0}),h.forEach(o),C=p(t),u=n(t,"H1",{class:!0});var mt=a(u);f=n(mt,"A",{id:!0,class:!0,href:!0});var _o=a(f);T=n(_o,"SPAN",{});var To=a(T);b(i.$$.fragment,To),To.forEach(o),_o.forEach(o),_=p(mt),E=n(mt,"SPAN",{});var Co=a(E);k=l(Co,"M-CTC-T"),Co.forEach(o),mt.forEach(o),x=p(t),b(z.$$.fragment,t),J=p(t),F=n(t,"H2",{class:!0});var pt=a(F);R=n(pt,"A",{id:!0,class:!0,href:!0});var vo=a(R);ie=n(vo,"SPAN",{});var bo=a(ie);b(X.$$.fragment,bo),bo.forEach(o),vo.forEach(o),nr=p(pt),At=n(pt,"SPAN",{});var Mo=a(At);ar=l(Mo,"Overview"),Mo.forEach(o),pt.forEach(o),wo=p(t),ce=n(t,"P",{});var Ao=a(ce);sr=l(Ao,"The M-CTC-T model was proposed in "),Je=n(Ao,"A",{href:!0,rel:!0});var $a=a(Je);lr=l($a,"Pseudo-Labeling For Massively Multilingual Speech Recognition"),$a.forEach(o),ir=l(Ao," by Loren Lugosch, Tatiana Likhomanenko, Gabriel Synnaeve, and Ronan Collobert. The model is a 1B-param transformer encoder, with a CTC head over 8065 character labels and a language identification head over 60 language ID labels. It is trained on Common Voice (version 6.1, December 2020 release) and VoxPopuli. After training on Common Voice and VoxPopuli, the model is trained on Common Voice only. The labels are unnormalized character-level transcripts (punctuation and capitalization are not removed). The model takes as input Mel filterbank features from a 16Khz audio signal."),Ao.forEach(o),$o=p(t),ht=n(t,"P",{});var ka=a(ht);cr=l(ka,"The abstract from the paper is the following:"),ka.forEach(o),ko=p(t),ft=n(t,"P",{});var xa=a(ft);Vt=n(xa,"EM",{});var Ea=a(Vt);dr=l(Ea,`Semi-supervised learning through pseudo-labeling has become a staple of state-of-the-art monolingual
speech recognition systems. In this work, we extend pseudo-labeling to massively multilingual speech
recognition with 60 languages. We propose a simple pseudo-labeling recipe that works well even
with low-resource languages: train a supervised multilingual model, fine-tune it with semi-supervised
learning on a target language, generate pseudo-labels for that language, and train a final model using
pseudo-labels for all languages, either from scratch or by fine-tuning. Experiments on the labeled
Common Voice and unlabeled VoxPopuli datasets show that our recipe can yield a model with better
performance for many languages that also transfers well to LibriSpeech.`),Ea.forEach(o),xa.forEach(o),xo=p(t),L=n(t,"P",{});var Ut=a(L);mr=l(Ut,"This model was contributed by "),Ne=n(Ut,"A",{href:!0,rel:!0});var ja=a(Ne);pr=l(ja,"cwkeam"),ja.forEach(o),hr=l(Ut,". The original code can be found "),Pe=n(Ut,"A",{href:!0,rel:!0});var za=a(Pe);fr=l(za,"here"),za.forEach(o),ur=l(Ut,"."),Ut.forEach(o),Eo=p(t),Y=n(t,"H2",{class:!0});var Vo=a(Y);de=n(Vo,"A",{id:!0,class:!0,href:!0});var Fa=a(de);St=n(Fa,"SPAN",{});var Ua=a(St);b(Ie.$$.fragment,Ua),Ua.forEach(o),Fa.forEach(o),gr=p(Vo),Xt=n(Vo,"SPAN",{});var Ja=a(Xt);_r=l(Ja,"Documentation resources"),Ja.forEach(o),Vo.forEach(o),jo=p(t),ut=n(t,"UL",{});var Na=a(ut);Lt=n(Na,"LI",{});var Pa=a(Lt);gt=n(Pa,"A",{href:!0});var Ia=a(gt);Tr=l(Ia,"Automatic speech recognition task guide"),Ia.forEach(o),Pa.forEach(o),Na.forEach(o),zo=p(t),_t=n(t,"P",{});var Za=a(_t);Cr=l(Za,"Tips:"),Za.forEach(o),Fo=p(t),Tt=n(t,"UL",{});var qa=a(Tt);Dt=n(qa,"LI",{});var Wa=a(Dt);vr=l(Wa,"The PyTorch version of this model is only available in torch 1.9 and higher."),Wa.forEach(o),qa.forEach(o),Uo=p(t),H=n(t,"H2",{class:!0});var So=a(H);me=n(So,"A",{id:!0,class:!0,href:!0});var Ga=a(me);Qt=n(Ga,"SPAN",{});var Ra=a(Qt);b(Ze.$$.fragment,Ra),Ra.forEach(o),Ga.forEach(o),br=p(So),Yt=n(So,"SPAN",{});var Ba=a(Yt);Mr=l(Ba,"MCTCTConfig"),Ba.forEach(o),So.forEach(o),Jo=p(t),I=n(t,"DIV",{class:!0});var xe=a(I);b(qe.$$.fragment,xe),yr=p(xe),O=n(xe,"P",{});var Jt=a(O);wr=l(Jt,"This is the configuration class to store the configuration of a "),Ct=n(Jt,"A",{href:!0});var Aa=a(Ct);$r=l(Aa,"MCTCTModel"),Aa.forEach(o),kr=l(Jt,`. It is used to instantiate an
M-CTC-T model according to the specified arguments, defining the model architecture. Instantiating a configuration
with the defaults will yield a similar configuration to that of the M-CTC-T
`),We=n(Jt,"A",{href:!0,rel:!0});var Va=a(We);xr=l(Va,"speechbrain/m-ctc-t-large"),Va.forEach(o),Er=l(Jt," architecture."),Jt.forEach(o),jr=p(xe),K=n(xe,"P",{});var Nt=a(K);zr=l(Nt,"Configuration objects inherit from "),vt=n(Nt,"A",{href:!0});var Sa=a(vt);Fr=l(Sa,"PretrainedConfig"),Sa.forEach(o),Ur=l(Nt,` and can be used to control the model outputs. Read the
documentation from `),bt=n(Nt,"A",{href:!0});var Xa=a(bt);Jr=l(Xa,"PretrainedConfig"),Xa.forEach(o),Nr=l(Nt," for more information."),Nt.forEach(o),Pr=p(xe),b(pe.$$.fragment,xe),xe.forEach(o),No=p(t),ee=n(t,"H2",{class:!0});var Xo=a(ee);he=n(Xo,"A",{id:!0,class:!0,href:!0});var La=a(he);Ht=n(La,"SPAN",{});var Da=a(Ht);b(Ge.$$.fragment,Da),Da.forEach(o),La.forEach(o),Ir=p(Xo),Ot=n(Xo,"SPAN",{});var Qa=a(Ot);Zr=l(Qa,"MCTCTFeatureExtractor"),Qa.forEach(o),Xo.forEach(o),Po=p(t),Z=n(t,"DIV",{class:!0});var Ee=a(Z);b(Re.$$.fragment,Ee),qr=p(Ee),Kt=n(Ee,"P",{});var Ya=a(Kt);Wr=l(Ya,"Constructs a M-CTC-T feature extractor."),Ya.forEach(o),Gr=p(Ee),te=n(Ee,"P",{});var Pt=a(te);Rr=l(Pt,"This feature extractor inherits from "),Mt=n(Pt,"A",{href:!0});var Ha=a(Mt);Br=l(Ha,"SequenceFeatureExtractor"),Ha.forEach(o),Ar=l(Pt,` which contains
most of the main methods. Users should refer to this superclass for more information regarding those methods. This
code has been adapted from Flashlight\u2019s C++ code. For more information about the implementation, one can refer to
this `),Be=n(Pt,"A",{href:!0,rel:!0});var Oa=a(Be);Vr=l(Oa,"notebook"),Oa.forEach(o),Sr=l(Pt,`
that takes the user step-by-step in the implementation.`),Pt.forEach(o),Xr=p(Ee),fe=n(Ee,"DIV",{class:!0});var Lo=a(fe);b(Ae.$$.fragment,Lo),Lr=p(Lo),eo=n(Lo,"P",{});var Ka=a(eo);Dr=l(Ka,`Main method to featurize and prepare for the model one or several sequence(s). sequences. It returns the
log-mel spectrogram of the input audio, as implemented in the original Flashlight MFSC feature extraction code.`),Ka.forEach(o),Lo.forEach(o),Ee.forEach(o),Io=p(t),oe=n(t,"H2",{class:!0});var Do=a(oe);ue=n(Do,"A",{id:!0,class:!0,href:!0});var es=a(ue);to=n(es,"SPAN",{});var ts=a(to);b(Ve.$$.fragment,ts),ts.forEach(o),es.forEach(o),Qr=p(Do),oo=n(Do,"SPAN",{});var os=a(oo);Yr=l(os,"MCTCTProcessor"),os.forEach(o),Do.forEach(o),Zo=p(t),j=n(t,"DIV",{class:!0});var N=a(j);b(Se.$$.fragment,N),Hr=p(N),ro=n(N,"P",{});var rs=a(ro);Or=l(rs,"Constructs a MCTCT processor which wraps a MCTCT feature extractor and a MCTCT tokenizer into a single processor."),rs.forEach(o),Kr=p(N),P=n(N,"P",{});var S=a(P);yt=n(S,"A",{href:!0});var ns=a(yt);en=l(ns,"MCTCTProcessor"),ns.forEach(o),tn=l(S," offers all the functionalities of "),wt=n(S,"A",{href:!0});var as=a(wt);on=l(as,"MCTCTFeatureExtractor"),as.forEach(o),rn=l(S," and "),$t=n(S,"A",{href:!0});var ss=a($t);nn=l(ss,"AutoTokenizer"),ss.forEach(o),an=l(S,`. See the
`),Xe=n(S,"A",{href:!0});var va=a(Xe);no=n(va,"STRONG",{});var ls=a(no);sn=l(ls,"call"),ls.forEach(o),ln=l(va,"()"),va.forEach(o),cn=l(S," and "),kt=n(S,"A",{href:!0});var is=a(kt);dn=l(is,"decode()"),is.forEach(o),mn=l(S," for more information."),S.forEach(o),pn=p(N),ge=n(N,"DIV",{class:!0});var Qo=a(ge);b(Le.$$.fragment,Qo),hn=p(Qo),B=n(Qo,"P",{});var je=a(B);fn=l(je,`When used in normal mode, this method forwards all its arguments to MCTCTFeatureExtractor\u2019s
`),De=n(je,"A",{href:!0});var ba=a(De);ao=n(ba,"STRONG",{});var cs=a(ao);un=l(cs,"call"),cs.forEach(o),gn=l(ba,"()"),ba.forEach(o),_n=l(je,` and returns its output. If used in the context
`),so=n(je,"CODE",{});var ds=a(so);Tn=l(ds,"as_target_processor()"),ds.forEach(o),Cn=l(je,` this method forwards all its arguments to AutoTokenizer\u2019s
`),lo=n(je,"CODE",{});var ms=a(lo);vn=l(ms,"__call__()"),ms.forEach(o),bn=l(je,". Please refer to the doctsring of the above two methods for more information."),je.forEach(o),Qo.forEach(o),Mn=p(N),D=n(N,"DIV",{class:!0});var It=a(D);b(Qe.$$.fragment,It),yn=p(It),io=n(It,"P",{});var ps=a(io);wn=l(ps,"Instantiate a processor associated with a pretrained model."),ps.forEach(o),$n=p(It),b(_e.$$.fragment,It),It.forEach(o),kn=p(N),Q=n(N,"DIV",{class:!0});var Zt=a(Q);b(Ye.$$.fragment,Zt),xn=p(Zt),He=n(Zt,"P",{});var Yo=a(He);En=l(Yo,`Saves the attributes of this processor (feature extractor, tokenizer\u2026) in the specified directory so that it
can be reloaded using the `),xt=n(Yo,"A",{href:!0});var hs=a(xt);jn=l(hs,"from_pretrained()"),hs.forEach(o),zn=l(Yo," method."),Yo.forEach(o),Fn=p(Zt),b(Te.$$.fragment,Zt),Zt.forEach(o),Un=p(N),Ce=n(N,"DIV",{class:!0});var Ho=a(Ce);b(Oe.$$.fragment,Ho),Jn=p(Ho),Ke=n(Ho,"P",{});var Oo=a(Ke);Nn=l(Oo,"This method forwards all its arguments to AutoTokenizer\u2019s "),Et=n(Oo,"A",{href:!0});var fs=a(Et);Pn=l(fs,"batch_decode()"),fs.forEach(o),In=l(Oo,`. Please refer
to the docstring of this method for more information.`),Oo.forEach(o),Ho.forEach(o),Zn=p(N),ve=n(N,"DIV",{class:!0});var Ko=a(ve);b(et.$$.fragment,Ko),qn=p(Ko),tt=n(Ko,"P",{});var er=a(tt);Wn=l(er,"This method forwards all its arguments to AutoTokenizer\u2019s "),jt=n(er,"A",{href:!0});var us=a(jt);Gn=l(us,"decode()"),us.forEach(o),Rn=l(er,`. Please refer to the
docstring of this method for more information.`),er.forEach(o),Ko.forEach(o),N.forEach(o),qo=p(t),re=n(t,"H2",{class:!0});var tr=a(re);be=n(tr,"A",{id:!0,class:!0,href:!0});var gs=a(be);co=n(gs,"SPAN",{});var _s=a(co);b(ot.$$.fragment,_s),_s.forEach(o),gs.forEach(o),Bn=p(tr),mo=n(tr,"SPAN",{});var Ts=a(mo);An=l(Ts,"MCTCTModel"),Ts.forEach(o),tr.forEach(o),Wo=p(t),A=n(t,"DIV",{class:!0});var qt=a(A);b(rt.$$.fragment,qt),Vn=p(qt),nt=n(qt,"P",{});var or=a(nt);Sn=l(or,`The bare M-CTC-T Model transformer outputting raw hidden-states without any specific head on top.
This model is a PyTorch `),at=n(or,"A",{href:!0,rel:!0});var Cs=a(at);Xn=l(Cs,"torch.nn.Module"),Cs.forEach(o),Ln=l(or,` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),or.forEach(o),Dn=p(qt),W=n(qt,"DIV",{class:!0});var ze=a(W);b(st.$$.fragment,ze),Qn=p(ze),ne=n(ze,"P",{});var Wt=a(ne);Yn=l(Wt,"The "),zt=n(Wt,"A",{href:!0});var vs=a(zt);Hn=l(vs,"MCTCTModel"),vs.forEach(o),On=l(Wt," forward method, overrides the "),po=n(Wt,"CODE",{});var bs=a(po);Kn=l(bs,"__call__"),bs.forEach(o),ea=l(Wt," special method."),Wt.forEach(o),ta=p(ze),b(Me.$$.fragment,ze),oa=p(ze),b(ye.$$.fragment,ze),ze.forEach(o),qt.forEach(o),Go=p(t),ae=n(t,"H2",{class:!0});var rr=a(ae);we=n(rr,"A",{id:!0,class:!0,href:!0});var Ms=a(we);ho=n(Ms,"SPAN",{});var ys=a(ho);b(lt.$$.fragment,ys),ys.forEach(o),Ms.forEach(o),ra=p(rr),fo=n(rr,"SPAN",{});var ws=a(fo);na=l(ws,"MCTCTForCTC"),ws.forEach(o),rr.forEach(o),Ro=p(t),V=n(t,"DIV",{class:!0});var Gt=a(V);b(it.$$.fragment,Gt),aa=p(Gt),se=n(Gt,"P",{});var Rt=a(se);sa=l(Rt,"MCTCT Model with a "),uo=n(Rt,"CODE",{});var $s=a(uo);la=l($s,"language modeling"),$s.forEach(o),ia=l(Rt,` head on top for Connectionist Temporal Classification (CTC).
This model is a PyTorch `),ct=n(Rt,"A",{href:!0,rel:!0});var ks=a(ct);ca=l(ks,"torch.nn.Module"),ks.forEach(o),da=l(Rt,` sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`),Rt.forEach(o),ma=p(Gt),G=n(Gt,"DIV",{class:!0});var Fe=a(G);b(dt.$$.fragment,Fe),pa=p(Fe),le=n(Fe,"P",{});var Bt=a(le);ha=l(Bt,"The "),Ft=n(Bt,"A",{href:!0});var xs=a(Ft);fa=l(xs,"MCTCTForCTC"),xs.forEach(o),ua=l(Bt," forward method, overrides the "),go=n(Bt,"CODE",{});var Es=a(go);ga=l(Es,"__call__"),Es.forEach(o),_a=l(Bt," special method."),Bt.forEach(o),Ta=p(Fe),b($e.$$.fragment,Fe),Ca=p(Fe),b(ke.$$.fragment,Fe),Fe.forEach(o),Gt.forEach(o),this.h()},h(){c(d,"name","hf:doc:metadata"),c(d,"content",JSON.stringify(As)),c(f,"id","mctct"),c(f,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(f,"href","#mctct"),c(u,"class","relative group"),c(R,"id","overview"),c(R,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(R,"href","#overview"),c(F,"class","relative group"),c(Je,"href","https://arxiv.org/abs/2111.00161"),c(Je,"rel","nofollow"),c(Ne,"href","https://huggingface.co/cwkeam"),c(Ne,"rel","nofollow"),c(Pe,"href","https://github.com/flashlight/wav2letter/tree/main/recipes/mling_pl"),c(Pe,"rel","nofollow"),c(de,"id","documentation-resources"),c(de,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(de,"href","#documentation-resources"),c(Y,"class","relative group"),c(gt,"href","../tasks/asr"),c(me,"id","transformers.MCTCTConfig"),c(me,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(me,"href","#transformers.MCTCTConfig"),c(H,"class","relative group"),c(Ct,"href","/docs/transformers/v4.33.0/en/model_doc/mctct#transformers.MCTCTModel"),c(We,"href","https://huggingface.co/speechbrain/m-ctc-t-large"),c(We,"rel","nofollow"),c(vt,"href","/docs/transformers/v4.33.0/en/main_classes/configuration#transformers.PretrainedConfig"),c(bt,"href","/docs/transformers/v4.33.0/en/main_classes/configuration#transformers.PretrainedConfig"),c(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(he,"id","transformers.MCTCTFeatureExtractor"),c(he,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(he,"href","#transformers.MCTCTFeatureExtractor"),c(ee,"class","relative group"),c(Mt,"href","/docs/transformers/v4.33.0/en/main_classes/feature_extractor#transformers.SequenceFeatureExtractor"),c(Be,"href","https://colab.research.google.com/drive/1GLtINkkhzms-IsdcGy_-tVCkv0qNF-Gt#scrollTo=pMCRGMmUC_an"),c(Be,"rel","nofollow"),c(fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(ue,"id","transformers.MCTCTProcessor"),c(ue,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(ue,"href","#transformers.MCTCTProcessor"),c(oe,"class","relative group"),c(yt,"href","/docs/transformers/v4.33.0/en/model_doc/mctct#transformers.MCTCTProcessor"),c(wt,"href","/docs/transformers/v4.33.0/en/model_doc/mctct#transformers.MCTCTFeatureExtractor"),c($t,"href","/docs/transformers/v4.33.0/en/model_doc/auto#transformers.AutoTokenizer"),c(Xe,"href","/docs/transformers/v4.33.0/en/model_doc/mctct#transformers.MCTCTProcessor.__call__"),c(kt,"href","/docs/transformers/v4.33.0/en/model_doc/mctct#transformers.MCTCTProcessor.decode"),c(De,"href","/docs/transformers/v4.33.0/en/model_doc/mctct#transformers.MCTCTFeatureExtractor.__call__"),c(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(xt,"href","/docs/transformers/v4.33.0/en/model_doc/donut#transformers.DonutProcessor.from_pretrained"),c(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Et,"href","/docs/transformers/v4.33.0/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.batch_decode"),c(Ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(jt,"href","/docs/transformers/v4.33.0/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.decode"),c(ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(be,"id","transformers.MCTCTModel"),c(be,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(be,"href","#transformers.MCTCTModel"),c(re,"class","relative group"),c(at,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),c(at,"rel","nofollow"),c(zt,"href","/docs/transformers/v4.33.0/en/model_doc/mctct#transformers.MCTCTModel"),c(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(we,"id","transformers.MCTCTForCTC"),c(we,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(we,"href","#transformers.MCTCTForCTC"),c(ae,"class","relative group"),c(ct,"href","https://pytorch.org/docs/stable/nn.html#torch.nn.Module"),c(ct,"rel","nofollow"),c(Ft,"href","/docs/transformers/v4.33.0/en/model_doc/mctct#transformers.MCTCTForCTC"),c(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(t,h){e(document.head,d),g(t,C,h),g(t,u,h),e(u,f),e(f,T),M(i,T,null),e(u,_),e(u,E),e(E,k),g(t,x,h),M(z,t,h),g(t,J,h),g(t,F,h),e(F,R),e(R,ie),M(X,ie,null),e(F,nr),e(F,At),e(At,ar),g(t,wo,h),g(t,ce,h),e(ce,sr),e(ce,Je),e(Je,lr),e(ce,ir),g(t,$o,h),g(t,ht,h),e(ht,cr),g(t,ko,h),g(t,ft,h),e(ft,Vt),e(Vt,dr),g(t,xo,h),g(t,L,h),e(L,mr),e(L,Ne),e(Ne,pr),e(L,hr),e(L,Pe),e(Pe,fr),e(L,ur),g(t,Eo,h),g(t,Y,h),e(Y,de),e(de,St),M(Ie,St,null),e(Y,gr),e(Y,Xt),e(Xt,_r),g(t,jo,h),g(t,ut,h),e(ut,Lt),e(Lt,gt),e(gt,Tr),g(t,zo,h),g(t,_t,h),e(_t,Cr),g(t,Fo,h),g(t,Tt,h),e(Tt,Dt),e(Dt,vr),g(t,Uo,h),g(t,H,h),e(H,me),e(me,Qt),M(Ze,Qt,null),e(H,br),e(H,Yt),e(Yt,Mr),g(t,Jo,h),g(t,I,h),M(qe,I,null),e(I,yr),e(I,O),e(O,wr),e(O,Ct),e(Ct,$r),e(O,kr),e(O,We),e(We,xr),e(O,Er),e(I,jr),e(I,K),e(K,zr),e(K,vt),e(vt,Fr),e(K,Ur),e(K,bt),e(bt,Jr),e(K,Nr),e(I,Pr),M(pe,I,null),g(t,No,h),g(t,ee,h),e(ee,he),e(he,Ht),M(Ge,Ht,null),e(ee,Ir),e(ee,Ot),e(Ot,Zr),g(t,Po,h),g(t,Z,h),M(Re,Z,null),e(Z,qr),e(Z,Kt),e(Kt,Wr),e(Z,Gr),e(Z,te),e(te,Rr),e(te,Mt),e(Mt,Br),e(te,Ar),e(te,Be),e(Be,Vr),e(te,Sr),e(Z,Xr),e(Z,fe),M(Ae,fe,null),e(fe,Lr),e(fe,eo),e(eo,Dr),g(t,Io,h),g(t,oe,h),e(oe,ue),e(ue,to),M(Ve,to,null),e(oe,Qr),e(oe,oo),e(oo,Yr),g(t,Zo,h),g(t,j,h),M(Se,j,null),e(j,Hr),e(j,ro),e(ro,Or),e(j,Kr),e(j,P),e(P,yt),e(yt,en),e(P,tn),e(P,wt),e(wt,on),e(P,rn),e(P,$t),e($t,nn),e(P,an),e(P,Xe),e(Xe,no),e(no,sn),e(Xe,ln),e(P,cn),e(P,kt),e(kt,dn),e(P,mn),e(j,pn),e(j,ge),M(Le,ge,null),e(ge,hn),e(ge,B),e(B,fn),e(B,De),e(De,ao),e(ao,un),e(De,gn),e(B,_n),e(B,so),e(so,Tn),e(B,Cn),e(B,lo),e(lo,vn),e(B,bn),e(j,Mn),e(j,D),M(Qe,D,null),e(D,yn),e(D,io),e(io,wn),e(D,$n),M(_e,D,null),e(j,kn),e(j,Q),M(Ye,Q,null),e(Q,xn),e(Q,He),e(He,En),e(He,xt),e(xt,jn),e(He,zn),e(Q,Fn),M(Te,Q,null),e(j,Un),e(j,Ce),M(Oe,Ce,null),e(Ce,Jn),e(Ce,Ke),e(Ke,Nn),e(Ke,Et),e(Et,Pn),e(Ke,In),e(j,Zn),e(j,ve),M(et,ve,null),e(ve,qn),e(ve,tt),e(tt,Wn),e(tt,jt),e(jt,Gn),e(tt,Rn),g(t,qo,h),g(t,re,h),e(re,be),e(be,co),M(ot,co,null),e(re,Bn),e(re,mo),e(mo,An),g(t,Wo,h),g(t,A,h),M(rt,A,null),e(A,Vn),e(A,nt),e(nt,Sn),e(nt,at),e(at,Xn),e(nt,Ln),e(A,Dn),e(A,W),M(st,W,null),e(W,Qn),e(W,ne),e(ne,Yn),e(ne,zt),e(zt,Hn),e(ne,On),e(ne,po),e(po,Kn),e(ne,ea),e(W,ta),M(Me,W,null),e(W,oa),M(ye,W,null),g(t,Go,h),g(t,ae,h),e(ae,we),e(we,ho),M(lt,ho,null),e(ae,ra),e(ae,fo),e(fo,na),g(t,Ro,h),g(t,V,h),M(it,V,null),e(V,aa),e(V,se),e(se,sa),e(se,uo),e(uo,la),e(se,ia),e(se,ct),e(ct,ca),e(se,da),e(V,ma),e(V,G),M(dt,G,null),e(G,pa),e(G,le),e(le,ha),e(le,Ft),e(Ft,fa),e(le,ua),e(le,go),e(go,ga),e(le,_a),e(G,Ta),M($e,G,null),e(G,Ca),M(ke,G,null),Bo=!0},p(t,[h]){const mt={};h&2&&(mt.$$scope={dirty:h,ctx:t}),z.$set(mt);const _o={};h&2&&(_o.$$scope={dirty:h,ctx:t}),pe.$set(_o);const To={};h&2&&(To.$$scope={dirty:h,ctx:t}),_e.$set(To);const Co={};h&2&&(Co.$$scope={dirty:h,ctx:t}),Te.$set(Co);const pt={};h&2&&(pt.$$scope={dirty:h,ctx:t}),Me.$set(pt);const vo={};h&2&&(vo.$$scope={dirty:h,ctx:t}),ye.$set(vo);const bo={};h&2&&(bo.$$scope={dirty:h,ctx:t}),$e.$set(bo);const Mo={};h&2&&(Mo.$$scope={dirty:h,ctx:t}),ke.$set(Mo)},i(t){Bo||(y(i.$$.fragment,t),y(z.$$.fragment,t),y(X.$$.fragment,t),y(Ie.$$.fragment,t),y(Ze.$$.fragment,t),y(qe.$$.fragment,t),y(pe.$$.fragment,t),y(Ge.$$.fragment,t),y(Re.$$.fragment,t),y(Ae.$$.fragment,t),y(Ve.$$.fragment,t),y(Se.$$.fragment,t),y(Le.$$.fragment,t),y(Qe.$$.fragment,t),y(_e.$$.fragment,t),y(Ye.$$.fragment,t),y(Te.$$.fragment,t),y(Oe.$$.fragment,t),y(et.$$.fragment,t),y(ot.$$.fragment,t),y(rt.$$.fragment,t),y(st.$$.fragment,t),y(Me.$$.fragment,t),y(ye.$$.fragment,t),y(lt.$$.fragment,t),y(it.$$.fragment,t),y(dt.$$.fragment,t),y($e.$$.fragment,t),y(ke.$$.fragment,t),Bo=!0)},o(t){w(i.$$.fragment,t),w(z.$$.fragment,t),w(X.$$.fragment,t),w(Ie.$$.fragment,t),w(Ze.$$.fragment,t),w(qe.$$.fragment,t),w(pe.$$.fragment,t),w(Ge.$$.fragment,t),w(Re.$$.fragment,t),w(Ae.$$.fragment,t),w(Ve.$$.fragment,t),w(Se.$$.fragment,t),w(Le.$$.fragment,t),w(Qe.$$.fragment,t),w(_e.$$.fragment,t),w(Ye.$$.fragment,t),w(Te.$$.fragment,t),w(Oe.$$.fragment,t),w(et.$$.fragment,t),w(ot.$$.fragment,t),w(rt.$$.fragment,t),w(st.$$.fragment,t),w(Me.$$.fragment,t),w(ye.$$.fragment,t),w(lt.$$.fragment,t),w(it.$$.fragment,t),w(dt.$$.fragment,t),w($e.$$.fragment,t),w(ke.$$.fragment,t),Bo=!1},d(t){o(d),t&&o(C),t&&o(u),$(i),t&&o(x),$(z,t),t&&o(J),t&&o(F),$(X),t&&o(wo),t&&o(ce),t&&o($o),t&&o(ht),t&&o(ko),t&&o(ft),t&&o(xo),t&&o(L),t&&o(Eo),t&&o(Y),$(Ie),t&&o(jo),t&&o(ut),t&&o(zo),t&&o(_t),t&&o(Fo),t&&o(Tt),t&&o(Uo),t&&o(H),$(Ze),t&&o(Jo),t&&o(I),$(qe),$(pe),t&&o(No),t&&o(ee),$(Ge),t&&o(Po),t&&o(Z),$(Re),$(Ae),t&&o(Io),t&&o(oe),$(Ve),t&&o(Zo),t&&o(j),$(Se),$(Le),$(Qe),$(_e),$(Ye),$(Te),$(Oe),$(et),t&&o(qo),t&&o(re),$(ot),t&&o(Wo),t&&o(A),$(rt),$(st),$(Me),$(ye),t&&o(Go),t&&o(ae),$(lt),t&&o(Ro),t&&o(V),$(it),$(dt),$($e),$(ke)}}}const As={local:"mctct",sections:[{local:"overview",title:"Overview"},{local:"documentation-resources",title:"Documentation resources"},{local:"transformers.MCTCTConfig",title:"MCTCTConfig"},{local:"transformers.MCTCTFeatureExtractor",title:"MCTCTFeatureExtractor"},{local:"transformers.MCTCTProcessor",title:"MCTCTProcessor"},{local:"transformers.MCTCTModel",title:"MCTCTModel"},{local:"transformers.MCTCTForCTC",title:"MCTCTForCTC"}],title:"M-CTC-T"};function Vs(U){return Js(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Hs extends js{constructor(d){super();zs(this,d,Vs,Bs,Fs,{})}}export{Hs as default,As as metadata};
