import{s as Rn,o as Bn,n as fe}from"../chunks/scheduler.9bc65507.js";import{S as Hn,i as Vn,g as n,s as l,u as g,A as Xn,h as r,f as t,c as i,j as u,v as _,y as f,k as p,o,a as d,w as T,d as C,t as v,x as M}from"../chunks/index.78c82d43.js";import{T as Nt}from"../chunks/Tip.87d55b76.js";import{D as F}from"../chunks/Docstring.f3d04bd2.js";import{C as Oo}from"../chunks/CodeBlock.48618ec2.js";import{I as he}from"../chunks/IconCopyLink.bedaa44d.js";import{E as Do}from"../chunks/ExampleCodeBlock.872b014d.js";function Sn($){let a,b="This model is in maintenance mode only, so we won’t accept any new PRs changing its code.",m,h,y=`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: <code>pip install -U transformers==4.30.0</code>.`;return{c(){a=n("p"),a.textContent=b,m=l(),h=n("p"),h.innerHTML=y},l(c){a=r(c,"P",{"data-svelte-h":!0}),f(a)!=="svelte-lwu440"&&(a.textContent=b),m=i(c),h=r(c,"P",{"data-svelte-h":!0}),f(h)!=="svelte-4042uy"&&(h.innerHTML=y)},m(c,w){d(c,a,w),d(c,m,w),d(c,h,w)},p:fe,d(c){c&&(t(a),t(m),t(h))}}}function Qn($){let a,b="Example:",m,h,y;return h=new Oo({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(){a=n("p"),a.textContent=b,m=l(),g(h.$$.fragment)},l(c){a=r(c,"P",{"data-svelte-h":!0}),f(a)!=="svelte-11lpom8"&&(a.textContent=b),m=i(c),_(h.$$.fragment,c)},m(c,w){d(c,a,w),d(c,m,w),T(h,c,w),y=!0},p:fe,i(c){y||(C(h.$$.fragment,c),y=!0)},o(c){v(h.$$.fragment,c),y=!1},d(c){c&&(t(a),t(m)),M(h,c)}}}function An($){let a,b=`This class method is simply calling the feature extractor
<a href="/docs/transformers/v4.33.3/en/main_classes/feature_extractor#transformers.FeatureExtractionMixin.from_pretrained">from_pretrained()</a>, image processor
<a href="/docs/transformers/v4.33.3/en/main_classes/image_processor#transformers.ImageProcessingMixin">ImageProcessingMixin</a> and the tokenizer
<code>~tokenization_utils_base.PreTrainedTokenizer.from_pretrained</code> methods. Please refer to the docstrings of the
methods above for more information.`;return{c(){a=n("p"),a.innerHTML=b},l(m){a=r(m,"P",{"data-svelte-h":!0}),f(a)!=="svelte-mykxjj"&&(a.innerHTML=b)},m(m,h){d(m,a,h)},p:fe,d(m){m&&t(a)}}}function Yn($){let a,b=`This class method is simply calling <a href="/docs/transformers/v4.33.3/en/main_classes/feature_extractor#transformers.FeatureExtractionMixin.save_pretrained">save_pretrained()</a> and
<a href="/docs/transformers/v4.33.3/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.save_pretrained">save_pretrained()</a>. Please refer to the docstrings of the
methods above for more information.`;return{c(){a=n("p"),a.innerHTML=b},l(m){a=r(m,"P",{"data-svelte-h":!0}),f(a)!=="svelte-kktsru"&&(a.innerHTML=b)},m(m,h){d(m,a,h)},p:fe,d(m){m&&t(a)}}}function Dn($){let a,b=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){a=n("p"),a.innerHTML=b},l(m){a=r(m,"P",{"data-svelte-h":!0}),f(a)!=="svelte-fincs2"&&(a.innerHTML=b)},m(m,h){d(m,a,h)},p:fe,d(m){m&&t(a)}}}function On($){let a,b="Example:",m,h,y;return h=new Oo({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(){a=n("p"),a.textContent=b,m=l(),g(h.$$.fragment)},l(c){a=r(c,"P",{"data-svelte-h":!0}),f(a)!=="svelte-11lpom8"&&(a.textContent=b),m=i(c),_(h.$$.fragment,c)},m(c,w){d(c,a,w),d(c,m,w),T(h,c,w),y=!0},p:fe,i(c){y||(C(h.$$.fragment,c),y=!0)},o(c){v(h.$$.fragment,c),y=!1},d(c){c&&(t(a),t(m)),M(h,c)}}}function Kn($){let a,b=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){a=n("p"),a.innerHTML=b},l(m){a=r(m,"P",{"data-svelte-h":!0}),f(a)!=="svelte-fincs2"&&(a.innerHTML=b)},m(m,h){d(m,a,h)},p:fe,d(m){m&&t(a)}}}function er($){let a,b="Example:",m,h,y;return h=new Oo({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(){a=n("p"),a.textContent=b,m=l(),g(h.$$.fragment)},l(c){a=r(c,"P",{"data-svelte-h":!0}),f(a)!=="svelte-11lpom8"&&(a.textContent=b),m=i(c),_(h.$$.fragment,c)},m(c,w){d(c,a,w),d(c,m,w),T(h,c,w),y=!0},p:fe,i(c){y||(C(h.$$.fragment,c),y=!0)},o(c){v(h.$$.fragment,c),y=!1},d(c){c&&(t(a),t(m)),M(h,c)}}}function tr($){let a,b,m,h,y,c,w,ue,po,Xe,Ko="M-CTC-T",Et,H,It,Z,V,vt,ge,ho,Se,en="Overview",Pt,_e,tn='The M-CTC-T model was proposed in <a href="https://arxiv.org/abs/2111.00161" rel="nofollow">Pseudo-Labeling For Massively Multilingual Speech Recognition</a> 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.',Zt,Te,on="The abstract from the paper is the following:",Lt,Ce,nn=`<em>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.</em>`,qt,ve,rn='This model was contributed by <a href="https://huggingface.co/cwkeam" rel="nofollow">cwkeam</a>. The original code can be found <a href="https://github.com/flashlight/wav2letter/tree/main/recipes/mling_pl" rel="nofollow">here</a>.',Wt,L,X,Mt,Me,fo,Qe,an="Documentation resources",Gt,be,sn='<li><a href="../tasks/asr">Automatic speech recognition task guide</a></li>',Rt,ye,ln="Tips:",Bt,we,cn="<li>The PyTorch version of this model is only available in torch 1.9 and higher.</li>",Ht,q,S,bt,xe,uo,Ae,dn="MCTCTConfig",Vt,j,$e,go,Ye,mn=`This is the configuration class to store the configuration of a <a href="/docs/transformers/v4.33.3/en/model_doc/mctct#transformers.MCTCTModel">MCTCTModel</a>. 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
<a href="https://huggingface.co/speechbrain/m-ctc-t-large" rel="nofollow">speechbrain/m-ctc-t-large</a> architecture.`,_o,De,pn=`Configuration objects inherit from <a href="/docs/transformers/v4.33.3/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> and can be used to control the model outputs. Read the
documentation from <a href="/docs/transformers/v4.33.3/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,To,Q,Xt,W,A,yt,ke,Co,Oe,hn="MCTCTFeatureExtractor",St,z,je,vo,Ke,fn="Constructs a M-CTC-T feature extractor.",Mo,et,un=`This feature extractor inherits from <a href="/docs/transformers/v4.33.3/en/main_classes/feature_extractor#transformers.SequenceFeatureExtractor">SequenceFeatureExtractor</a> 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’s C++ code. For more information about the implementation, one can refer to
this <a href="https://colab.research.google.com/drive/1GLtINkkhzms-IsdcGy_-tVCkv0qNF-Gt#scrollTo=pMCRGMmUC_an" rel="nofollow">notebook</a>
that takes the user step-by-step in the implementation.`,bo,Y,ze,yo,tt,gn=`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.`,Qt,G,D,wt,Fe,wo,ot,_n="MCTCTProcessor",At,x,Je,xo,nt,Tn="Constructs a MCTCT processor which wraps a MCTCT feature extractor and a MCTCT tokenizer into a single processor.",$o,rt,Cn=`<a href="/docs/transformers/v4.33.3/en/model_doc/mctct#transformers.MCTCTProcessor">MCTCTProcessor</a> offers all the functionalities of <a href="/docs/transformers/v4.33.3/en/model_doc/mctct#transformers.MCTCTFeatureExtractor">MCTCTFeatureExtractor</a> and <a href="/docs/transformers/v4.33.3/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See the
<a href="/docs/transformers/v4.33.3/en/model_doc/mctct#transformers.MCTCTProcessor.__call__"><strong>call</strong>()</a> and <a href="/docs/transformers/v4.33.3/en/model_doc/mctct#transformers.MCTCTProcessor.decode">decode()</a> for more information.`,ko,O,Ue,jo,at,vn=`When used in normal mode, this method forwards all its arguments to MCTCTFeatureExtractor’s
<a href="/docs/transformers/v4.33.3/en/model_doc/mctct#transformers.MCTCTFeatureExtractor.__call__"><strong>call</strong>()</a> and returns its output. If used in the context
<code>as_target_processor()</code> this method forwards all its arguments to AutoTokenizer’s
<code>__call__()</code>. Please refer to the doctsring of the above two methods for more information.`,zo,I,Ne,Fo,st,Mn="Instantiate a processor associated with a pretrained model.",Jo,K,Uo,P,Ee,No,lt,bn=`Saves the attributes of this processor (feature extractor, tokenizer…) in the specified directory so that it
can be reloaded using the <a href="/docs/transformers/v4.33.3/en/main_classes/processors#transformers.ProcessorMixin.from_pretrained">from_pretrained()</a> method.`,Eo,ee,Io,te,Ie,Po,it,yn=`This method forwards all its arguments to AutoTokenizer’s <a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.batch_decode">batch_decode()</a>. Please refer
to the docstring of this method for more information.`,Zo,oe,Pe,Lo,ct,wn=`This method forwards all its arguments to AutoTokenizer’s <a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.decode">decode()</a>. Please refer to the
docstring of this method for more information.`,Yt,R,ne,xt,Ze,qo,dt,xn="MCTCTModel",Dt,N,Le,Wo,mt,$n=`The bare M-CTC-T Model transformer outputting raw hidden-states without any specific head on top.
This model is a PyTorch <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow">torch.nn.Module</a> sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`,Go,J,qe,Ro,pt,kn='The <a href="/docs/transformers/v4.33.3/en/model_doc/mctct#transformers.MCTCTModel">MCTCTModel</a> forward method, overrides the <code>__call__</code> special method.',Bo,re,Ho,ae,Ot,B,se,$t,We,Vo,ht,jn="MCTCTForCTC",Kt,E,Ge,Xo,ft,zn=`MCTCT Model with a <code>language modeling</code> head on top for Connectionist Temporal Classification (CTC).
This model is a PyTorch <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow">torch.nn.Module</a> sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`,So,U,Re,Qo,ut,Fn='The <a href="/docs/transformers/v4.33.3/en/model_doc/mctct#transformers.MCTCTForCTC">MCTCTForCTC</a> forward method, overrides the <code>__call__</code> special method.',Ao,le,Yo,ie,eo,kt,to;return ue=new he({}),H=new Nt({props:{warning:!0,$$slots:{default:[Sn]},$$scope:{ctx:$}}}),ge=new he({}),Me=new he({}),xe=new he({}),$e=new F({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.3/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.3/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.3/en/model_doc/mctct#transformers.MCTCTForCTC">MCTCTForCTC</a>.`,name:"ctc_zero_infinity"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/deprecated/mctct/configuration_mctct.py#L29"}}),Q=new Do({props:{anchor:"transformers.MCTCTConfig.example",$$slots:{default:[Qn]},$$scope:{ctx:$}}}),ke=new he({}),je=new F({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.3/src/transformers/models/deprecated/mctct/feature_extraction_mctct.py#L33"}}),ze=new F({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[str, transformers.utils.generic.TensorType, 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.3/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.3/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.3/src/transformers/models/deprecated/mctct/feature_extraction_mctct.py#L161"}}),Fe=new he({}),Je=new F({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.3/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.3/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.3/src/transformers/models/deprecated/mctct/processing_mctct.py#L24"}}),Ue=new F({props:{name:"__call__",anchor:"transformers.MCTCTProcessor.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/deprecated/mctct/processing_mctct.py#L45"}}),Ne=new F({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[str, bool, 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.3/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.3/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.3/src/transformers/processing_utils.py#L167"}}),K=new Nt({props:{$$slots:{default:[An]},$$scope:{ctx:$}}}),Ee=new F({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.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.push_to_hub">push_to_hub()</a> method.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/processing_utils.py#L93"}}),ee=new Nt({props:{$$slots:{default:[Yn]},$$scope:{ctx:$}}}),Ie=new F({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.3/src/transformers/models/deprecated/mctct/processing_mctct.py#L83"}}),Pe=new F({props:{name:"decode",anchor:"transformers.MCTCTProcessor.decode",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/deprecated/mctct/processing_mctct.py#L120"}}),Ze=new he({}),Le=new F({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.3/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.3/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.3/src/transformers/models/deprecated/mctct/modeling_mctct.py#L661"}}),qe=new F({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.3/en/model_doc/wav2vec2#transformers.Wav2Vec2CTCTokenizer">Wav2Vec2CTCTokenizer</a>. See <a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__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.3/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.3/src/transformers/models/deprecated/mctct/modeling_mctct.py#L671",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.33.3/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.3/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>) — 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>) — 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>) — 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.3/en/main_classes/output#transformers.modeling_outputs.BaseModelOutput"
>transformers.modeling_outputs.BaseModelOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),re=new Nt({props:{$$slots:{default:[Dn]},$$scope:{ctx:$}}}),ae=new Do({props:{anchor:"transformers.MCTCTModel.forward.example",$$slots:{default:[On]},$$scope:{ctx:$}}}),We=new he({}),Ge=new F({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.3/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.3/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.3/src/transformers/models/deprecated/mctct/modeling_mctct.py#L721"}}),Re=new F({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.3/en/model_doc/wav2vec2#transformers.Wav2Vec2CTCTokenizer">Wav2Vec2CTCTokenizer</a>. See <a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.__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.3/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.3/src/transformers/models/deprecated/mctct/modeling_mctct.py#L741",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.33.3/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.3/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) — 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>) — 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>) — 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>) — 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.3/en/main_classes/output#transformers.modeling_outputs.CausalLMOutput"
>transformers.modeling_outputs.CausalLMOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),le=new Nt({props:{$$slots:{default:[Kn]},$$scope:{ctx:$}}}),ie=new Do({props:{anchor:"transformers.MCTCTForCTC.forward.example",$$slots:{default:[er]},$$scope:{ctx:$}}}),{c(){a=n("meta"),b=l(),m=n("p"),h=l(),y=n("h1"),c=n("a"),w=n("span"),g(ue.$$.fragment),po=l(),Xe=n("span"),Xe.textContent=Ko,Et=l(),g(H.$$.fragment),It=l(),Z=n("h2"),V=n("a"),vt=n("span"),g(ge.$$.fragment),ho=l(),Se=n("span"),Se.textContent=en,Pt=l(),_e=n("p"),_e.innerHTML=tn,Zt=l(),Te=n("p"),Te.textContent=on,Lt=l(),Ce=n("p"),Ce.innerHTML=nn,qt=l(),ve=n("p"),ve.innerHTML=rn,Wt=l(),L=n("h2"),X=n("a"),Mt=n("span"),g(Me.$$.fragment),fo=l(),Qe=n("span"),Qe.textContent=an,Gt=l(),be=n("ul"),be.innerHTML=sn,Rt=l(),ye=n("p"),ye.textContent=ln,Bt=l(),we=n("ul"),we.innerHTML=cn,Ht=l(),q=n("h2"),S=n("a"),bt=n("span"),g(xe.$$.fragment),uo=l(),Ae=n("span"),Ae.textContent=dn,Vt=l(),j=n("div"),g($e.$$.fragment),go=l(),Ye=n("p"),Ye.innerHTML=mn,_o=l(),De=n("p"),De.innerHTML=pn,To=l(),g(Q.$$.fragment),Xt=l(),W=n("h2"),A=n("a"),yt=n("span"),g(ke.$$.fragment),Co=l(),Oe=n("span"),Oe.textContent=hn,St=l(),z=n("div"),g(je.$$.fragment),vo=l(),Ke=n("p"),Ke.textContent=fn,Mo=l(),et=n("p"),et.innerHTML=un,bo=l(),Y=n("div"),g(ze.$$.fragment),yo=l(),tt=n("p"),tt.textContent=gn,Qt=l(),G=n("h2"),D=n("a"),wt=n("span"),g(Fe.$$.fragment),wo=l(),ot=n("span"),ot.textContent=_n,At=l(),x=n("div"),g(Je.$$.fragment),xo=l(),nt=n("p"),nt.textContent=Tn,$o=l(),rt=n("p"),rt.innerHTML=Cn,ko=l(),O=n("div"),g(Ue.$$.fragment),jo=l(),at=n("p"),at.innerHTML=vn,zo=l(),I=n("div"),g(Ne.$$.fragment),Fo=l(),st=n("p"),st.textContent=Mn,Jo=l(),g(K.$$.fragment),Uo=l(),P=n("div"),g(Ee.$$.fragment),No=l(),lt=n("p"),lt.innerHTML=bn,Eo=l(),g(ee.$$.fragment),Io=l(),te=n("div"),g(Ie.$$.fragment),Po=l(),it=n("p"),it.innerHTML=yn,Zo=l(),oe=n("div"),g(Pe.$$.fragment),Lo=l(),ct=n("p"),ct.innerHTML=wn,Yt=l(),R=n("h2"),ne=n("a"),xt=n("span"),g(Ze.$$.fragment),qo=l(),dt=n("span"),dt.textContent=xn,Dt=l(),N=n("div"),g(Le.$$.fragment),Wo=l(),mt=n("p"),mt.innerHTML=$n,Go=l(),J=n("div"),g(qe.$$.fragment),Ro=l(),pt=n("p"),pt.innerHTML=kn,Bo=l(),g(re.$$.fragment),Ho=l(),g(ae.$$.fragment),Ot=l(),B=n("h2"),se=n("a"),$t=n("span"),g(We.$$.fragment),Vo=l(),ht=n("span"),ht.textContent=jn,Kt=l(),E=n("div"),g(Ge.$$.fragment),Xo=l(),ft=n("p"),ft.innerHTML=zn,So=l(),U=n("div"),g(Re.$$.fragment),Qo=l(),ut=n("p"),ut.innerHTML=Fn,Ao=l(),g(le.$$.fragment),Yo=l(),g(ie.$$.fragment),eo=l(),kt=n("p"),this.h()},l(e){const s=Xn("svelte-1phssyn",document.head);a=r(s,"META",{name:!0,content:!0}),s.forEach(t),b=i(e),m=r(e,"P",{}),u(m).forEach(t),h=i(e),y=r(e,"H1",{class:!0});var Be=u(y);c=r(Be,"A",{id:!0,class:!0,href:!0});var jt=u(c);w=r(jt,"SPAN",{});var zt=u(w);_(ue.$$.fragment,zt),zt.forEach(t),jt.forEach(t),po=i(Be),Xe=r(Be,"SPAN",{"data-svelte-h":!0}),f(Xe)!=="svelte-97envg"&&(Xe.textContent=Ko),Be.forEach(t),Et=i(e),_(H.$$.fragment,e),It=i(e),Z=r(e,"H2",{class:!0});var He=u(Z);V=r(He,"A",{id:!0,class:!0,href:!0});var Ft=u(V);vt=r(Ft,"SPAN",{});var Jt=u(vt);_(ge.$$.fragment,Jt),Jt.forEach(t),Ft.forEach(t),ho=i(He),Se=r(He,"SPAN",{"data-svelte-h":!0}),f(Se)!=="svelte-1jsw1pg"&&(Se.textContent=en),He.forEach(t),Pt=i(e),_e=r(e,"P",{"data-svelte-h":!0}),f(_e)!=="svelte-sgpevv"&&(_e.innerHTML=tn),Zt=i(e),Te=r(e,"P",{"data-svelte-h":!0}),f(Te)!=="svelte-vfdo9a"&&(Te.textContent=on),Lt=i(e),Ce=r(e,"P",{"data-svelte-h":!0}),f(Ce)!=="svelte-35ulb8"&&(Ce.innerHTML=nn),qt=i(e),ve=r(e,"P",{"data-svelte-h":!0}),f(ve)!=="svelte-12s67rv"&&(ve.innerHTML=rn),Wt=i(e),L=r(e,"H2",{class:!0});var Ve=u(L);X=r(Ve,"A",{id:!0,class:!0,href:!0});var Ut=u(X);Mt=r(Ut,"SPAN",{});var Jn=u(Mt);_(Me.$$.fragment,Jn),Jn.forEach(t),Ut.forEach(t),fo=i(Ve),Qe=r(Ve,"SPAN",{"data-svelte-h":!0}),f(Qe)!=="svelte-n3f0j0"&&(Qe.textContent=an),Ve.forEach(t),Gt=i(e),be=r(e,"UL",{"data-svelte-h":!0}),f(be)!=="svelte-c521vh"&&(be.innerHTML=sn),Rt=i(e),ye=r(e,"P",{"data-svelte-h":!0}),f(ye)!=="svelte-axv494"&&(ye.textContent=ln),Bt=i(e),we=r(e,"UL",{"data-svelte-h":!0}),f(we)!=="svelte-12sue3f"&&(we.innerHTML=cn),Ht=i(e),q=r(e,"H2",{class:!0});var oo=u(q);S=r(oo,"A",{id:!0,class:!0,href:!0});var Un=u(S);bt=r(Un,"SPAN",{});var Nn=u(bt);_(xe.$$.fragment,Nn),Nn.forEach(t),Un.forEach(t),uo=i(oo),Ae=r(oo,"SPAN",{"data-svelte-h":!0}),f(Ae)!=="svelte-1onyp4u"&&(Ae.textContent=dn),oo.forEach(t),Vt=i(e),j=r(e,"DIV",{class:!0});var ce=u(j);_($e.$$.fragment,ce),go=i(ce),Ye=r(ce,"P",{"data-svelte-h":!0}),f(Ye)!=="svelte-s0btvi"&&(Ye.innerHTML=mn),_o=i(ce),De=r(ce,"P",{"data-svelte-h":!0}),f(De)!=="svelte-cfh5wl"&&(De.innerHTML=pn),To=i(ce),_(Q.$$.fragment,ce),ce.forEach(t),Xt=i(e),W=r(e,"H2",{class:!0});var no=u(W);A=r(no,"A",{id:!0,class:!0,href:!0});var En=u(A);yt=r(En,"SPAN",{});var In=u(yt);_(ke.$$.fragment,In),In.forEach(t),En.forEach(t),Co=i(no),Oe=r(no,"SPAN",{"data-svelte-h":!0}),f(Oe)!=="svelte-1390v3u"&&(Oe.textContent=hn),no.forEach(t),St=i(e),z=r(e,"DIV",{class:!0});var de=u(z);_(je.$$.fragment,de),vo=i(de),Ke=r(de,"P",{"data-svelte-h":!0}),f(Ke)!=="svelte-u8ff7m"&&(Ke.textContent=fn),Mo=i(de),et=r(de,"P",{"data-svelte-h":!0}),f(et)!=="svelte-19gq50"&&(et.innerHTML=un),bo=i(de),Y=r(de,"DIV",{class:!0});var ro=u(Y);_(ze.$$.fragment,ro),yo=i(ro),tt=r(ro,"P",{"data-svelte-h":!0}),f(tt)!=="svelte-18g1o8a"&&(tt.textContent=gn),ro.forEach(t),de.forEach(t),Qt=i(e),G=r(e,"H2",{class:!0});var ao=u(G);D=r(ao,"A",{id:!0,class:!0,href:!0});var Pn=u(D);wt=r(Pn,"SPAN",{});var Zn=u(wt);_(Fe.$$.fragment,Zn),Zn.forEach(t),Pn.forEach(t),wo=i(ao),ot=r(ao,"SPAN",{"data-svelte-h":!0}),f(ot)!=="svelte-1kduy02"&&(ot.textContent=_n),ao.forEach(t),At=i(e),x=r(e,"DIV",{class:!0});var k=u(x);_(Je.$$.fragment,k),xo=i(k),nt=r(k,"P",{"data-svelte-h":!0}),f(nt)!=="svelte-g05zhb"&&(nt.textContent=Tn),$o=i(k),rt=r(k,"P",{"data-svelte-h":!0}),f(rt)!=="svelte-1jt8da0"&&(rt.innerHTML=Cn),ko=i(k),O=r(k,"DIV",{class:!0});var so=u(O);_(Ue.$$.fragment,so),jo=i(so),at=r(so,"P",{"data-svelte-h":!0}),f(at)!=="svelte-lzi587"&&(at.innerHTML=vn),so.forEach(t),zo=i(k),I=r(k,"DIV",{class:!0});var gt=u(I);_(Ne.$$.fragment,gt),Fo=i(gt),st=r(gt,"P",{"data-svelte-h":!0}),f(st)!=="svelte-1cj8dcb"&&(st.textContent=Mn),Jo=i(gt),_(K.$$.fragment,gt),gt.forEach(t),Uo=i(k),P=r(k,"DIV",{class:!0});var _t=u(P);_(Ee.$$.fragment,_t),No=i(_t),lt=r(_t,"P",{"data-svelte-h":!0}),f(lt)!=="svelte-x0jn8n"&&(lt.innerHTML=bn),Eo=i(_t),_(ee.$$.fragment,_t),_t.forEach(t),Io=i(k),te=r(k,"DIV",{class:!0});var lo=u(te);_(Ie.$$.fragment,lo),Po=i(lo),it=r(lo,"P",{"data-svelte-h":!0}),f(it)!=="svelte-lu6omq"&&(it.innerHTML=yn),lo.forEach(t),Zo=i(k),oe=r(k,"DIV",{class:!0});var io=u(oe);_(Pe.$$.fragment,io),Lo=i(io),ct=r(io,"P",{"data-svelte-h":!0}),f(ct)!=="svelte-1f4xy0s"&&(ct.innerHTML=wn),io.forEach(t),k.forEach(t),Yt=i(e),R=r(e,"H2",{class:!0});var co=u(R);ne=r(co,"A",{id:!0,class:!0,href:!0});var Ln=u(ne);xt=r(Ln,"SPAN",{});var qn=u(xt);_(Ze.$$.fragment,qn),qn.forEach(t),Ln.forEach(t),qo=i(co),dt=r(co,"SPAN",{"data-svelte-h":!0}),f(dt)!=="svelte-h9hln9"&&(dt.textContent=xn),co.forEach(t),Dt=i(e),N=r(e,"DIV",{class:!0});var Tt=u(N);_(Le.$$.fragment,Tt),Wo=i(Tt),mt=r(Tt,"P",{"data-svelte-h":!0}),f(mt)!=="svelte-6c6j4z"&&(mt.innerHTML=$n),Go=i(Tt),J=r(Tt,"DIV",{class:!0});var me=u(J);_(qe.$$.fragment,me),Ro=i(me),pt=r(me,"P",{"data-svelte-h":!0}),f(pt)!=="svelte-58oi0s"&&(pt.innerHTML=kn),Bo=i(me),_(re.$$.fragment,me),Ho=i(me),_(ae.$$.fragment,me),me.forEach(t),Tt.forEach(t),Ot=i(e),B=r(e,"H2",{class:!0});var mo=u(B);se=r(mo,"A",{id:!0,class:!0,href:!0});var Wn=u(se);$t=r(Wn,"SPAN",{});var Gn=u($t);_(We.$$.fragment,Gn),Gn.forEach(t),Wn.forEach(t),Vo=i(mo),ht=r(mo,"SPAN",{"data-svelte-h":!0}),f(ht)!=="svelte-sgn6m9"&&(ht.textContent=jn),mo.forEach(t),Kt=i(e),E=r(e,"DIV",{class:!0});var Ct=u(E);_(Ge.$$.fragment,Ct),Xo=i(Ct),ft=r(Ct,"P",{"data-svelte-h":!0}),f(ft)!=="svelte-14zwgek"&&(ft.innerHTML=zn),So=i(Ct),U=r(Ct,"DIV",{class:!0});var pe=u(U);_(Re.$$.fragment,pe),Qo=i(pe),ut=r(pe,"P",{"data-svelte-h":!0}),f(ut)!=="svelte-n2t898"&&(ut.innerHTML=Fn),Ao=i(pe),_(le.$$.fragment,pe),Yo=i(pe),_(ie.$$.fragment,pe),pe.forEach(t),Ct.forEach(t),eo=i(e),kt=r(e,"P",{}),u(kt).forEach(t),this.h()},h(){p(a,"name","hf:doc:metadata"),p(a,"content",JSON.stringify(or)),p(c,"id","mctct"),p(c,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),p(c,"href","#mctct"),p(y,"class","relative group"),p(V,"id","overview"),p(V,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),p(V,"href","#overview"),p(Z,"class","relative group"),p(X,"id","documentation-resources"),p(X,"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"),p(X,"href","#documentation-resources"),p(L,"class","relative group"),p(S,"id","transformers.MCTCTConfig"),p(S,"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"),p(S,"href","#transformers.MCTCTConfig"),p(q,"class","relative group"),p(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(A,"id","transformers.MCTCTFeatureExtractor"),p(A,"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"),p(A,"href","#transformers.MCTCTFeatureExtractor"),p(W,"class","relative group"),p(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(D,"id","transformers.MCTCTProcessor"),p(D,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),p(D,"href","#transformers.MCTCTProcessor"),p(G,"class","relative group"),p(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(ne,"id","transformers.MCTCTModel"),p(ne,"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"),p(ne,"href","#transformers.MCTCTModel"),p(R,"class","relative group"),p(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(se,"id","transformers.MCTCTForCTC"),p(se,"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"),p(se,"href","#transformers.MCTCTForCTC"),p(B,"class","relative group"),p(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),p(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,s){o(document.head,a),d(e,b,s),d(e,m,s),d(e,h,s),d(e,y,s),o(y,c),o(c,w),T(ue,w,null),o(y,po),o(y,Xe),d(e,Et,s),T(H,e,s),d(e,It,s),d(e,Z,s),o(Z,V),o(V,vt),T(ge,vt,null),o(Z,ho),o(Z,Se),d(e,Pt,s),d(e,_e,s),d(e,Zt,s),d(e,Te,s),d(e,Lt,s),d(e,Ce,s),d(e,qt,s),d(e,ve,s),d(e,Wt,s),d(e,L,s),o(L,X),o(X,Mt),T(Me,Mt,null),o(L,fo),o(L,Qe),d(e,Gt,s),d(e,be,s),d(e,Rt,s),d(e,ye,s),d(e,Bt,s),d(e,we,s),d(e,Ht,s),d(e,q,s),o(q,S),o(S,bt),T(xe,bt,null),o(q,uo),o(q,Ae),d(e,Vt,s),d(e,j,s),T($e,j,null),o(j,go),o(j,Ye),o(j,_o),o(j,De),o(j,To),T(Q,j,null),d(e,Xt,s),d(e,W,s),o(W,A),o(A,yt),T(ke,yt,null),o(W,Co),o(W,Oe),d(e,St,s),d(e,z,s),T(je,z,null),o(z,vo),o(z,Ke),o(z,Mo),o(z,et),o(z,bo),o(z,Y),T(ze,Y,null),o(Y,yo),o(Y,tt),d(e,Qt,s),d(e,G,s),o(G,D),o(D,wt),T(Fe,wt,null),o(G,wo),o(G,ot),d(e,At,s),d(e,x,s),T(Je,x,null),o(x,xo),o(x,nt),o(x,$o),o(x,rt),o(x,ko),o(x,O),T(Ue,O,null),o(O,jo),o(O,at),o(x,zo),o(x,I),T(Ne,I,null),o(I,Fo),o(I,st),o(I,Jo),T(K,I,null),o(x,Uo),o(x,P),T(Ee,P,null),o(P,No),o(P,lt),o(P,Eo),T(ee,P,null),o(x,Io),o(x,te),T(Ie,te,null),o(te,Po),o(te,it),o(x,Zo),o(x,oe),T(Pe,oe,null),o(oe,Lo),o(oe,ct),d(e,Yt,s),d(e,R,s),o(R,ne),o(ne,xt),T(Ze,xt,null),o(R,qo),o(R,dt),d(e,Dt,s),d(e,N,s),T(Le,N,null),o(N,Wo),o(N,mt),o(N,Go),o(N,J),T(qe,J,null),o(J,Ro),o(J,pt),o(J,Bo),T(re,J,null),o(J,Ho),T(ae,J,null),d(e,Ot,s),d(e,B,s),o(B,se),o(se,$t),T(We,$t,null),o(B,Vo),o(B,ht),d(e,Kt,s),d(e,E,s),T(Ge,E,null),o(E,Xo),o(E,ft),o(E,So),o(E,U),T(Re,U,null),o(U,Qo),o(U,ut),o(U,Ao),T(le,U,null),o(U,Yo),T(ie,U,null),d(e,eo,s),d(e,kt,s),to=!0},p(e,[s]){const Be={};s&2&&(Be.$$scope={dirty:s,ctx:e}),H.$set(Be);const jt={};s&2&&(jt.$$scope={dirty:s,ctx:e}),Q.$set(jt);const zt={};s&2&&(zt.$$scope={dirty:s,ctx:e}),K.$set(zt);const He={};s&2&&(He.$$scope={dirty:s,ctx:e}),ee.$set(He);const Ft={};s&2&&(Ft.$$scope={dirty:s,ctx:e}),re.$set(Ft);const Jt={};s&2&&(Jt.$$scope={dirty:s,ctx:e}),ae.$set(Jt);const Ve={};s&2&&(Ve.$$scope={dirty:s,ctx:e}),le.$set(Ve);const Ut={};s&2&&(Ut.$$scope={dirty:s,ctx:e}),ie.$set(Ut)},i(e){to||(C(ue.$$.fragment,e),C(H.$$.fragment,e),C(ge.$$.fragment,e),C(Me.$$.fragment,e),C(xe.$$.fragment,e),C($e.$$.fragment,e),C(Q.$$.fragment,e),C(ke.$$.fragment,e),C(je.$$.fragment,e),C(ze.$$.fragment,e),C(Fe.$$.fragment,e),C(Je.$$.fragment,e),C(Ue.$$.fragment,e),C(Ne.$$.fragment,e),C(K.$$.fragment,e),C(Ee.$$.fragment,e),C(ee.$$.fragment,e),C(Ie.$$.fragment,e),C(Pe.$$.fragment,e),C(Ze.$$.fragment,e),C(Le.$$.fragment,e),C(qe.$$.fragment,e),C(re.$$.fragment,e),C(ae.$$.fragment,e),C(We.$$.fragment,e),C(Ge.$$.fragment,e),C(Re.$$.fragment,e),C(le.$$.fragment,e),C(ie.$$.fragment,e),to=!0)},o(e){v(ue.$$.fragment,e),v(H.$$.fragment,e),v(ge.$$.fragment,e),v(Me.$$.fragment,e),v(xe.$$.fragment,e),v($e.$$.fragment,e),v(Q.$$.fragment,e),v(ke.$$.fragment,e),v(je.$$.fragment,e),v(ze.$$.fragment,e),v(Fe.$$.fragment,e),v(Je.$$.fragment,e),v(Ue.$$.fragment,e),v(Ne.$$.fragment,e),v(K.$$.fragment,e),v(Ee.$$.fragment,e),v(ee.$$.fragment,e),v(Ie.$$.fragment,e),v(Pe.$$.fragment,e),v(Ze.$$.fragment,e),v(Le.$$.fragment,e),v(qe.$$.fragment,e),v(re.$$.fragment,e),v(ae.$$.fragment,e),v(We.$$.fragment,e),v(Ge.$$.fragment,e),v(Re.$$.fragment,e),v(le.$$.fragment,e),v(ie.$$.fragment,e),to=!1},d(e){e&&(t(b),t(m),t(h),t(y),t(Et),t(It),t(Z),t(Pt),t(_e),t(Zt),t(Te),t(Lt),t(Ce),t(qt),t(ve),t(Wt),t(L),t(Gt),t(be),t(Rt),t(ye),t(Bt),t(we),t(Ht),t(q),t(Vt),t(j),t(Xt),t(W),t(St),t(z),t(Qt),t(G),t(At),t(x),t(Yt),t(R),t(Dt),t(N),t(Ot),t(B),t(Kt),t(E),t(eo),t(kt)),t(a),M(ue),M(H,e),M(ge),M(Me),M(xe),M($e),M(Q),M(ke),M(je),M(ze),M(Fe),M(Je),M(Ue),M(Ne),M(K),M(Ee),M(ee),M(Ie),M(Pe),M(Ze),M(Le),M(qe),M(re),M(ae),M(We),M(Ge),M(Re),M(le),M(ie)}}}const or={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 nr($){return Bn(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class mr extends Hn{constructor(a){super(),Vn(this,a,nr,tr,Rn,{})}}export{mr as component};
