import{s as wn,o as $n,n as te}from"../chunks/scheduler.25b97de1.js";import{S as xn,i as kn,g as d,s as a,r as f,A as jn,h as m,f as o,c as s,j as x,u as h,x as C,k,y as l,a as i,v as u,d as g,t as _,w as T}from"../chunks/index.d9030fc9.js";import{T as Oe}from"../chunks/Tip.baa67368.js";import{D as J}from"../chunks/Docstring.e257edda.js";import{C as en}from"../chunks/CodeBlock.e6cd0d95.js";import{E as Kt}from"../chunks/ExampleCodeBlock.20db4b6e.js";import{H as B,E as zn}from"../chunks/EditOnGithub.91d95064.js";function Jn($){let t,M="This model is in maintenance mode only, so we won’t accept any new PRs changing its code.",c,p,b=`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(){t=d("p"),t.textContent=M,c=a(),p=d("p"),p.innerHTML=b},l(r){t=m(r,"P",{"data-svelte-h":!0}),C(t)!=="svelte-lwu440"&&(t.textContent=M),c=s(r),p=m(r,"P",{"data-svelte-h":!0}),C(p)!=="svelte-4042uy"&&(p.innerHTML=b)},m(r,v){i(r,t,v),i(r,c,v),i(r,p,v)},p:te,d(r){r&&(o(t),o(c),o(p))}}}function Un($){let t,M="Example:",c,p,b;return p=new en({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`,wrap:!1}}),{c(){t=d("p"),t.textContent=M,c=a(),f(p.$$.fragment)},l(r){t=m(r,"P",{"data-svelte-h":!0}),C(t)!=="svelte-11lpom8"&&(t.textContent=M),c=s(r),h(p.$$.fragment,r)},m(r,v){i(r,t,v),i(r,c,v),u(p,r,v),b=!0},p:te,i(r){b||(g(p.$$.fragment,r),b=!0)},o(r){_(p.$$.fragment,r),b=!1},d(r){r&&(o(t),o(c)),T(p,r)}}}function Fn($){let t,M=`This class method is simply calling the feature extractor
<a href="/docs/transformers/pr_30021/en/main_classes/feature_extractor#transformers.FeatureExtractionMixin.from_pretrained">from_pretrained()</a>, image processor
<a href="/docs/transformers/pr_30021/en/internal/image_processing_utils#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(){t=d("p"),t.innerHTML=M},l(c){t=m(c,"P",{"data-svelte-h":!0}),C(t)!=="svelte-34x15"&&(t.innerHTML=M)},m(c,p){i(c,t,p)},p:te,d(c){c&&o(t)}}}function Nn($){let t,M=`This class method is simply calling <a href="/docs/transformers/pr_30021/en/main_classes/feature_extractor#transformers.FeatureExtractionMixin.save_pretrained">save_pretrained()</a> and
<a href="/docs/transformers/pr_30021/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(){t=d("p"),t.innerHTML=M},l(c){t=m(c,"P",{"data-svelte-h":!0}),C(t)!=="svelte-10mnkp6"&&(t.innerHTML=M)},m(c,p){i(c,t,p)},p:te,d(c){c&&o(t)}}}function In($){let t,M=`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(){t=d("p"),t.innerHTML=M},l(c){t=m(c,"P",{"data-svelte-h":!0}),C(t)!=="svelte-fincs2"&&(t.innerHTML=M)},m(c,p){i(c,t,p)},p:te,d(c){c&&o(t)}}}function En($){let t,M="Example:",c,p,b;return p=new en({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`,wrap:!1}}),{c(){t=d("p"),t.textContent=M,c=a(),f(p.$$.fragment)},l(r){t=m(r,"P",{"data-svelte-h":!0}),C(t)!=="svelte-11lpom8"&&(t.textContent=M),c=s(r),h(p.$$.fragment,r)},m(r,v){i(r,t,v),i(r,c,v),u(p,r,v),b=!0},p:te,i(r){b||(g(p.$$.fragment,r),b=!0)},o(r){_(p.$$.fragment,r),b=!1},d(r){r&&(o(t),o(c)),T(p,r)}}}function Zn($){let t,M=`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(){t=d("p"),t.innerHTML=M},l(c){t=m(c,"P",{"data-svelte-h":!0}),C(t)!=="svelte-fincs2"&&(t.innerHTML=M)},m(c,p){i(c,t,p)},p:te,d(c){c&&o(t)}}}function qn($){let t,M="Example:",c,p,b;return p=new en({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>`,wrap:!1}}),{c(){t=d("p"),t.textContent=M,c=a(),f(p.$$.fragment)},l(r){t=m(r,"P",{"data-svelte-h":!0}),C(t)!=="svelte-11lpom8"&&(t.textContent=M),c=s(r),h(p.$$.fragment,r)},m(r,v){i(r,t,v),i(r,c,v),u(p,r,v),b=!0},p:te,i(r){b||(g(p.$$.fragment,r),b=!0)},o(r){_(p.$$.fragment,r),b=!1},d(r){r&&(o(t),o(c)),T(p,r)}}}function Pn($){let t,M,c,p,b,r,v,Ke,ne,et,oe,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.',tt,re,nn="The abstract from the paper is the following:",nt,ae,on=`<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>`,ot,se,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>.',rt,le,at,ie,an="The PyTorch version of this model is only available in torch 1.9 and higher.",st,ce,lt,de,sn='<li><a href="../tasks/asr">Automatic speech recognition task guide</a></li>',it,me,ct,j,pe,vt,Ne,ln=`This is the configuration class to store the configuration of a <a href="/docs/transformers/pr_30021/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.`,yt,Ie,cn=`Configuration objects inherit from <a href="/docs/transformers/pr_30021/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/pr_30021/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,wt,R,dt,fe,mt,z,he,$t,Ee,dn="Constructs a M-CTC-T feature extractor.",xt,Ze,mn=`This feature extractor inherits from <a href="/docs/transformers/pr_30021/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.`,kt,L,ue,jt,qe,pn=`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.`,pt,ge,ft,y,_e,zt,Pe,fn="Constructs a MCTCT processor which wraps a MCTCT feature extractor and a MCTCT tokenizer into a single processor.",Jt,We,hn=`<a href="/docs/transformers/pr_30021/en/model_doc/mctct#transformers.MCTCTProcessor">MCTCTProcessor</a> offers all the functionalities of <a href="/docs/transformers/pr_30021/en/model_doc/mctct#transformers.MCTCTFeatureExtractor">MCTCTFeatureExtractor</a> and <a href="/docs/transformers/pr_30021/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See the
<a href="/docs/transformers/pr_30021/en/model_doc/mctct#transformers.MCTCTProcessor.__call__"><strong>call</strong>()</a> and <a href="/docs/transformers/pr_30021/en/model_doc/mctct#transformers.MCTCTProcessor.decode">decode()</a> for more information.`,Ut,V,Te,Ft,Ge,un=`When used in normal mode, this method forwards all its arguments to MCTCTFeatureExtractor’s
<a href="/docs/transformers/pr_30021/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.`,Nt,q,Ce,It,Be,gn="Instantiate a processor associated with a pretrained model.",Et,H,Zt,P,Me,qt,Re,_n=`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/pr_30021/en/main_classes/processors#transformers.ProcessorMixin.from_pretrained">from_pretrained()</a> method.`,Pt,X,Wt,Q,be,Gt,Le,Tn=`This method forwards all its arguments to AutoTokenizer’s <a href="/docs/transformers/pr_30021/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.batch_decode">batch_decode()</a>. Please refer
to the docstring of this method for more information.`,Bt,Y,ve,Rt,Ve,Cn=`This method forwards all its arguments to AutoTokenizer’s <a href="/docs/transformers/pr_30021/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.decode">decode()</a>. Please refer to the
docstring of this method for more information.`,ht,ye,ut,N,we,Lt,He,Mn=`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.`,Vt,U,$e,Ht,Xe,bn='The <a href="/docs/transformers/pr_30021/en/model_doc/mctct#transformers.MCTCTModel">MCTCTModel</a> forward method, overrides the <code>__call__</code> special method.',Xt,S,Qt,D,gt,xe,_t,I,ke,Yt,Qe,vn=`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.`,St,F,je,Dt,Ye,yn='The <a href="/docs/transformers/pr_30021/en/model_doc/mctct#transformers.MCTCTForCTC">MCTCTForCTC</a> forward method, overrides the <code>__call__</code> special method.',At,A,Ot,O,Tt,ze,Ct,Ae,Mt;return b=new B({props:{title:"M-CTC-T",local:"m-ctc-t",headingTag:"h1"}}),v=new Oe({props:{warning:!0,$$slots:{default:[Jn]},$$scope:{ctx:$}}}),ne=new B({props:{title:"Overview",local:"overview",headingTag:"h2"}}),le=new B({props:{title:"Usage tips",local:"usage-tips",headingTag:"h2"}}),ce=new B({props:{title:"Resources",local:"resources",headingTag:"h2"}}),me=new B({props:{title:"MCTCTConfig",local:"transformers.MCTCTConfig",headingTag:"h2"}}),pe=new J({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/pr_30021/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-05) &#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.3) &#x2014;
The dropout probability 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.3) &#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>Sequence[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>Sequence[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>) &#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/pr_30021/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/pr_30021/en/model_doc/mctct#transformers.MCTCTForCTC">MCTCTForCTC</a>.`,name:"ctc_zero_infinity"}],source:"https://github.com/huggingface/transformers/blob/vr_30021/src/transformers/models/deprecated/mctct/configuration_mctct.py#L24"}}),R=new Kt({props:{anchor:"transformers.MCTCTConfig.example",$$slots:{default:[Un]},$$scope:{ctx:$}}}),fe=new B({props:{title:"MCTCTFeatureExtractor",local:"transformers.MCTCTFeatureExtractor",headingTag:"h2"}}),he=new J({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/vr_30021/src/transformers/models/deprecated/mctct/feature_extraction_mctct.py#L33"}}),ue=new J({props:{name:"__call__",anchor:"transformers.MCTCTFeatureExtractor.__call__",parameters:[{name:"raw_speech",val:": Union"},{name:"padding",val:": Union = False"},{name:"max_length",val:": Optional = None"},{name:"truncation",val:": bool = False"},{name:"pad_to_multiple_of",val:": Optional = None"},{name:"return_attention_mask",val:": Optional = None"},{name:"return_tensors",val:": Union = None"},{name:"sampling_rate",val:": Optional = 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/pr_30021/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/pr_30021/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/vr_30021/src/transformers/models/deprecated/mctct/feature_extraction_mctct.py#L161"}}),ge=new B({props:{title:"MCTCTProcessor",local:"transformers.MCTCTProcessor",headingTag:"h2"}}),_e=new J({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/pr_30021/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/pr_30021/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. The tokenizer is a required input.`,name:"tokenizer"}],source:"https://github.com/huggingface/transformers/blob/vr_30021/src/transformers/models/deprecated/mctct/processing_mctct.py#L25"}}),Te=new J({props:{name:"__call__",anchor:"transformers.MCTCTProcessor.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_30021/src/transformers/models/deprecated/mctct/processing_mctct.py#L47"}}),Ce=new J({props:{name:"from_pretrained",anchor:"transformers.MCTCTProcessor.from_pretrained",parameters:[{name:"pretrained_model_name_or_path",val:": Union"},{name:"cache_dir",val:": Union = None"},{name:"force_download",val:": bool = False"},{name:"local_files_only",val:": bool = False"},{name:"token",val:": Union = 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.</li>
<li>a path to a <em>directory</em> containing a feature extractor file saved using the
<a href="/docs/transformers/pr_30021/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/pr_30021/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/vr_30021/src/transformers/processing_utils.py#L412"}}),H=new Oe({props:{$$slots:{default:[Fn]},$$scope:{ctx:$}}}),Me=new J({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/pr_30021/en/main_classes/model#transformers.utils.PushToHubMixin.push_to_hub">push_to_hub()</a> method.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/vr_30021/src/transformers/processing_utils.py#L168"}}),X=new Oe({props:{$$slots:{default:[Nn]},$$scope:{ctx:$}}}),be=new J({props:{name:"batch_decode",anchor:"transformers.MCTCTProcessor.batch_decode",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_30021/src/transformers/models/deprecated/mctct/processing_mctct.py#L85"}}),ve=new J({props:{name:"decode",anchor:"transformers.MCTCTProcessor.decode",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_30021/src/transformers/models/deprecated/mctct/processing_mctct.py#L122"}}),ye=new B({props:{title:"MCTCTModel",local:"transformers.MCTCTModel",headingTag:"h2"}}),we=new J({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/pr_30021/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/pr_30021/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/vr_30021/src/transformers/models/deprecated/mctct/modeling_mctct.py#L626"}}),$e=new J({props:{name:"forward",anchor:"transformers.MCTCTModel.forward",parameters:[{name:"input_features",val:": Tensor"},{name:"attention_mask",val:": Optional = None"},{name:"head_mask",val:": Optional = None"},{name:"output_attentions",val:": Optional = None"},{name:"output_hidden_states",val:": Optional = None"},{name:"return_dict",val:": Optional = 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/pr_30021/en/model_doc/wav2vec2#transformers.Wav2Vec2CTCTokenizer">Wav2Vec2CTCTokenizer</a>. See <a href="/docs/transformers/pr_30021/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/pr_30021/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/pr_30021/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/vr_30021/src/transformers/models/deprecated/mctct/modeling_mctct.py#L640",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <a
  href="/docs/transformers/pr_30021/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/pr_30021/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:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/transformers/pr_30021/en/main_classes/output#transformers.modeling_outputs.BaseModelOutput"
>transformers.modeling_outputs.BaseModelOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),S=new Oe({props:{$$slots:{default:[In]},$$scope:{ctx:$}}}),D=new Kt({props:{anchor:"transformers.MCTCTModel.forward.example",$$slots:{default:[En]},$$scope:{ctx:$}}}),xe=new B({props:{title:"MCTCTForCTC",local:"transformers.MCTCTForCTC",headingTag:"h2"}}),ke=new J({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/pr_30021/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/pr_30021/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/vr_30021/src/transformers/models/deprecated/mctct/modeling_mctct.py#L686"}}),je=new J({props:{name:"forward",anchor:"transformers.MCTCTForCTC.forward",parameters:[{name:"input_features",val:": Tensor"},{name:"attention_mask",val:": Optional = None"},{name:"head_mask",val:": Optional = None"},{name:"output_attentions",val:": Optional = None"},{name:"output_hidden_states",val:": Optional = None"},{name:"return_dict",val:": Optional = None"},{name:"labels",val:": Optional = 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/pr_30021/en/model_doc/wav2vec2#transformers.Wav2Vec2CTCTokenizer">Wav2Vec2CTCTokenizer</a>. See <a href="/docs/transformers/pr_30021/en/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/pr_30021/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/pr_30021/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/vr_30021/src/transformers/models/deprecated/mctct/modeling_mctct.py#L710",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <a
  href="/docs/transformers/pr_30021/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/pr_30021/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:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/transformers/pr_30021/en/main_classes/output#transformers.modeling_outputs.CausalLMOutput"
>transformers.modeling_outputs.CausalLMOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),A=new Oe({props:{$$slots:{default:[Zn]},$$scope:{ctx:$}}}),O=new Kt({props:{anchor:"transformers.MCTCTForCTC.forward.example",$$slots:{default:[qn]},$$scope:{ctx:$}}}),ze=new zn({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/en/model_doc/mctct.md"}}),{c(){t=d("meta"),M=a(),c=d("p"),p=a(),f(b.$$.fragment),r=a(),f(v.$$.fragment),Ke=a(),f(ne.$$.fragment),et=a(),oe=d("p"),oe.innerHTML=tn,tt=a(),re=d("p"),re.textContent=nn,nt=a(),ae=d("p"),ae.innerHTML=on,ot=a(),se=d("p"),se.innerHTML=rn,rt=a(),f(le.$$.fragment),at=a(),ie=d("p"),ie.textContent=an,st=a(),f(ce.$$.fragment),lt=a(),de=d("ul"),de.innerHTML=sn,it=a(),f(me.$$.fragment),ct=a(),j=d("div"),f(pe.$$.fragment),vt=a(),Ne=d("p"),Ne.innerHTML=ln,yt=a(),Ie=d("p"),Ie.innerHTML=cn,wt=a(),f(R.$$.fragment),dt=a(),f(fe.$$.fragment),mt=a(),z=d("div"),f(he.$$.fragment),$t=a(),Ee=d("p"),Ee.textContent=dn,xt=a(),Ze=d("p"),Ze.innerHTML=mn,kt=a(),L=d("div"),f(ue.$$.fragment),jt=a(),qe=d("p"),qe.textContent=pn,pt=a(),f(ge.$$.fragment),ft=a(),y=d("div"),f(_e.$$.fragment),zt=a(),Pe=d("p"),Pe.textContent=fn,Jt=a(),We=d("p"),We.innerHTML=hn,Ut=a(),V=d("div"),f(Te.$$.fragment),Ft=a(),Ge=d("p"),Ge.innerHTML=un,Nt=a(),q=d("div"),f(Ce.$$.fragment),It=a(),Be=d("p"),Be.textContent=gn,Et=a(),f(H.$$.fragment),Zt=a(),P=d("div"),f(Me.$$.fragment),qt=a(),Re=d("p"),Re.innerHTML=_n,Pt=a(),f(X.$$.fragment),Wt=a(),Q=d("div"),f(be.$$.fragment),Gt=a(),Le=d("p"),Le.innerHTML=Tn,Bt=a(),Y=d("div"),f(ve.$$.fragment),Rt=a(),Ve=d("p"),Ve.innerHTML=Cn,ht=a(),f(ye.$$.fragment),ut=a(),N=d("div"),f(we.$$.fragment),Lt=a(),He=d("p"),He.innerHTML=Mn,Vt=a(),U=d("div"),f($e.$$.fragment),Ht=a(),Xe=d("p"),Xe.innerHTML=bn,Xt=a(),f(S.$$.fragment),Qt=a(),f(D.$$.fragment),gt=a(),f(xe.$$.fragment),_t=a(),I=d("div"),f(ke.$$.fragment),Yt=a(),Qe=d("p"),Qe.innerHTML=vn,St=a(),F=d("div"),f(je.$$.fragment),Dt=a(),Ye=d("p"),Ye.innerHTML=yn,At=a(),f(A.$$.fragment),Ot=a(),f(O.$$.fragment),Tt=a(),f(ze.$$.fragment),Ct=a(),Ae=d("p"),this.h()},l(e){const n=jn("svelte-u9bgzb",document.head);t=m(n,"META",{name:!0,content:!0}),n.forEach(o),M=s(e),c=m(e,"P",{}),x(c).forEach(o),p=s(e),h(b.$$.fragment,e),r=s(e),h(v.$$.fragment,e),Ke=s(e),h(ne.$$.fragment,e),et=s(e),oe=m(e,"P",{"data-svelte-h":!0}),C(oe)!=="svelte-sgpevv"&&(oe.innerHTML=tn),tt=s(e),re=m(e,"P",{"data-svelte-h":!0}),C(re)!=="svelte-vfdo9a"&&(re.textContent=nn),nt=s(e),ae=m(e,"P",{"data-svelte-h":!0}),C(ae)!=="svelte-35ulb8"&&(ae.innerHTML=on),ot=s(e),se=m(e,"P",{"data-svelte-h":!0}),C(se)!=="svelte-12s67rv"&&(se.innerHTML=rn),rt=s(e),h(le.$$.fragment,e),at=s(e),ie=m(e,"P",{"data-svelte-h":!0}),C(ie)!=="svelte-eygw0k"&&(ie.textContent=an),st=s(e),h(ce.$$.fragment,e),lt=s(e),de=m(e,"UL",{"data-svelte-h":!0}),C(de)!=="svelte-c521vh"&&(de.innerHTML=sn),it=s(e),h(me.$$.fragment,e),ct=s(e),j=m(e,"DIV",{class:!0});var E=x(j);h(pe.$$.fragment,E),vt=s(E),Ne=m(E,"P",{"data-svelte-h":!0}),C(Ne)!=="svelte-1xgwjz0"&&(Ne.innerHTML=ln),yt=s(E),Ie=m(E,"P",{"data-svelte-h":!0}),C(Ie)!=="svelte-9cvfg3"&&(Ie.innerHTML=cn),wt=s(E),h(R.$$.fragment,E),E.forEach(o),dt=s(e),h(fe.$$.fragment,e),mt=s(e),z=m(e,"DIV",{class:!0});var Z=x(z);h(he.$$.fragment,Z),$t=s(Z),Ee=m(Z,"P",{"data-svelte-h":!0}),C(Ee)!=="svelte-u8ff7m"&&(Ee.textContent=dn),xt=s(Z),Ze=m(Z,"P",{"data-svelte-h":!0}),C(Ze)!=="svelte-14c8lra"&&(Ze.innerHTML=mn),kt=s(Z),L=m(Z,"DIV",{class:!0});var Je=x(L);h(ue.$$.fragment,Je),jt=s(Je),qe=m(Je,"P",{"data-svelte-h":!0}),C(qe)!=="svelte-18g1o8a"&&(qe.textContent=pn),Je.forEach(o),Z.forEach(o),pt=s(e),h(ge.$$.fragment,e),ft=s(e),y=m(e,"DIV",{class:!0});var w=x(y);h(_e.$$.fragment,w),zt=s(w),Pe=m(w,"P",{"data-svelte-h":!0}),C(Pe)!=="svelte-g05zhb"&&(Pe.textContent=fn),Jt=s(w),We=m(w,"P",{"data-svelte-h":!0}),C(We)!=="svelte-1ablw40"&&(We.innerHTML=hn),Ut=s(w),V=m(w,"DIV",{class:!0});var Ue=x(V);h(Te.$$.fragment,Ue),Ft=s(Ue),Ge=m(Ue,"P",{"data-svelte-h":!0}),C(Ge)!=="svelte-ik4w7"&&(Ge.innerHTML=un),Ue.forEach(o),Nt=s(w),q=m(w,"DIV",{class:!0});var W=x(q);h(Ce.$$.fragment,W),It=s(W),Be=m(W,"P",{"data-svelte-h":!0}),C(Be)!=="svelte-1cj8dcb"&&(Be.textContent=gn),Et=s(W),h(H.$$.fragment,W),W.forEach(o),Zt=s(w),P=m(w,"DIV",{class:!0});var G=x(P);h(Me.$$.fragment,G),qt=s(G),Re=m(G,"P",{"data-svelte-h":!0}),C(Re)!=="svelte-kfw0xn"&&(Re.innerHTML=_n),Pt=s(G),h(X.$$.fragment,G),G.forEach(o),Wt=s(w),Q=m(w,"DIV",{class:!0});var Fe=x(Q);h(be.$$.fragment,Fe),Gt=s(Fe),Le=m(Fe,"P",{"data-svelte-h":!0}),C(Le)!=="svelte-y3twhw"&&(Le.innerHTML=Tn),Fe.forEach(o),Bt=s(w),Y=m(w,"DIV",{class:!0});var bt=x(Y);h(ve.$$.fragment,bt),Rt=s(bt),Ve=m(bt,"P",{"data-svelte-h":!0}),C(Ve)!=="svelte-z9q0bi"&&(Ve.innerHTML=Cn),bt.forEach(o),w.forEach(o),ht=s(e),h(ye.$$.fragment,e),ut=s(e),N=m(e,"DIV",{class:!0});var Se=x(N);h(we.$$.fragment,Se),Lt=s(Se),He=m(Se,"P",{"data-svelte-h":!0}),C(He)!=="svelte-6c6j4z"&&(He.innerHTML=Mn),Vt=s(Se),U=m(Se,"DIV",{class:!0});var K=x(U);h($e.$$.fragment,K),Ht=s(K),Xe=m(K,"P",{"data-svelte-h":!0}),C(Xe)!=="svelte-wf8rf0"&&(Xe.innerHTML=bn),Xt=s(K),h(S.$$.fragment,K),Qt=s(K),h(D.$$.fragment,K),K.forEach(o),Se.forEach(o),gt=s(e),h(xe.$$.fragment,e),_t=s(e),I=m(e,"DIV",{class:!0});var De=x(I);h(ke.$$.fragment,De),Yt=s(De),Qe=m(De,"P",{"data-svelte-h":!0}),C(Qe)!=="svelte-14zwgek"&&(Qe.innerHTML=vn),St=s(De),F=m(De,"DIV",{class:!0});var ee=x(F);h(je.$$.fragment,ee),Dt=s(ee),Ye=m(ee,"P",{"data-svelte-h":!0}),C(Ye)!=="svelte-5b0pcs"&&(Ye.innerHTML=yn),At=s(ee),h(A.$$.fragment,ee),Ot=s(ee),h(O.$$.fragment,ee),ee.forEach(o),De.forEach(o),Tt=s(e),h(ze.$$.fragment,e),Ct=s(e),Ae=m(e,"P",{}),x(Ae).forEach(o),this.h()},h(){k(t,"name","hf:doc:metadata"),k(t,"content",Wn),k(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),k(I,"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,n){l(document.head,t),i(e,M,n),i(e,c,n),i(e,p,n),u(b,e,n),i(e,r,n),u(v,e,n),i(e,Ke,n),u(ne,e,n),i(e,et,n),i(e,oe,n),i(e,tt,n),i(e,re,n),i(e,nt,n),i(e,ae,n),i(e,ot,n),i(e,se,n),i(e,rt,n),u(le,e,n),i(e,at,n),i(e,ie,n),i(e,st,n),u(ce,e,n),i(e,lt,n),i(e,de,n),i(e,it,n),u(me,e,n),i(e,ct,n),i(e,j,n),u(pe,j,null),l(j,vt),l(j,Ne),l(j,yt),l(j,Ie),l(j,wt),u(R,j,null),i(e,dt,n),u(fe,e,n),i(e,mt,n),i(e,z,n),u(he,z,null),l(z,$t),l(z,Ee),l(z,xt),l(z,Ze),l(z,kt),l(z,L),u(ue,L,null),l(L,jt),l(L,qe),i(e,pt,n),u(ge,e,n),i(e,ft,n),i(e,y,n),u(_e,y,null),l(y,zt),l(y,Pe),l(y,Jt),l(y,We),l(y,Ut),l(y,V),u(Te,V,null),l(V,Ft),l(V,Ge),l(y,Nt),l(y,q),u(Ce,q,null),l(q,It),l(q,Be),l(q,Et),u(H,q,null),l(y,Zt),l(y,P),u(Me,P,null),l(P,qt),l(P,Re),l(P,Pt),u(X,P,null),l(y,Wt),l(y,Q),u(be,Q,null),l(Q,Gt),l(Q,Le),l(y,Bt),l(y,Y),u(ve,Y,null),l(Y,Rt),l(Y,Ve),i(e,ht,n),u(ye,e,n),i(e,ut,n),i(e,N,n),u(we,N,null),l(N,Lt),l(N,He),l(N,Vt),l(N,U),u($e,U,null),l(U,Ht),l(U,Xe),l(U,Xt),u(S,U,null),l(U,Qt),u(D,U,null),i(e,gt,n),u(xe,e,n),i(e,_t,n),i(e,I,n),u(ke,I,null),l(I,Yt),l(I,Qe),l(I,St),l(I,F),u(je,F,null),l(F,Dt),l(F,Ye),l(F,At),u(A,F,null),l(F,Ot),u(O,F,null),i(e,Tt,n),u(ze,e,n),i(e,Ct,n),i(e,Ae,n),Mt=!0},p(e,[n]){const E={};n&2&&(E.$$scope={dirty:n,ctx:e}),v.$set(E);const Z={};n&2&&(Z.$$scope={dirty:n,ctx:e}),R.$set(Z);const Je={};n&2&&(Je.$$scope={dirty:n,ctx:e}),H.$set(Je);const w={};n&2&&(w.$$scope={dirty:n,ctx:e}),X.$set(w);const Ue={};n&2&&(Ue.$$scope={dirty:n,ctx:e}),S.$set(Ue);const W={};n&2&&(W.$$scope={dirty:n,ctx:e}),D.$set(W);const G={};n&2&&(G.$$scope={dirty:n,ctx:e}),A.$set(G);const Fe={};n&2&&(Fe.$$scope={dirty:n,ctx:e}),O.$set(Fe)},i(e){Mt||(g(b.$$.fragment,e),g(v.$$.fragment,e),g(ne.$$.fragment,e),g(le.$$.fragment,e),g(ce.$$.fragment,e),g(me.$$.fragment,e),g(pe.$$.fragment,e),g(R.$$.fragment,e),g(fe.$$.fragment,e),g(he.$$.fragment,e),g(ue.$$.fragment,e),g(ge.$$.fragment,e),g(_e.$$.fragment,e),g(Te.$$.fragment,e),g(Ce.$$.fragment,e),g(H.$$.fragment,e),g(Me.$$.fragment,e),g(X.$$.fragment,e),g(be.$$.fragment,e),g(ve.$$.fragment,e),g(ye.$$.fragment,e),g(we.$$.fragment,e),g($e.$$.fragment,e),g(S.$$.fragment,e),g(D.$$.fragment,e),g(xe.$$.fragment,e),g(ke.$$.fragment,e),g(je.$$.fragment,e),g(A.$$.fragment,e),g(O.$$.fragment,e),g(ze.$$.fragment,e),Mt=!0)},o(e){_(b.$$.fragment,e),_(v.$$.fragment,e),_(ne.$$.fragment,e),_(le.$$.fragment,e),_(ce.$$.fragment,e),_(me.$$.fragment,e),_(pe.$$.fragment,e),_(R.$$.fragment,e),_(fe.$$.fragment,e),_(he.$$.fragment,e),_(ue.$$.fragment,e),_(ge.$$.fragment,e),_(_e.$$.fragment,e),_(Te.$$.fragment,e),_(Ce.$$.fragment,e),_(H.$$.fragment,e),_(Me.$$.fragment,e),_(X.$$.fragment,e),_(be.$$.fragment,e),_(ve.$$.fragment,e),_(ye.$$.fragment,e),_(we.$$.fragment,e),_($e.$$.fragment,e),_(S.$$.fragment,e),_(D.$$.fragment,e),_(xe.$$.fragment,e),_(ke.$$.fragment,e),_(je.$$.fragment,e),_(A.$$.fragment,e),_(O.$$.fragment,e),_(ze.$$.fragment,e),Mt=!1},d(e){e&&(o(M),o(c),o(p),o(r),o(Ke),o(et),o(oe),o(tt),o(re),o(nt),o(ae),o(ot),o(se),o(rt),o(at),o(ie),o(st),o(lt),o(de),o(it),o(ct),o(j),o(dt),o(mt),o(z),o(pt),o(ft),o(y),o(ht),o(ut),o(N),o(gt),o(_t),o(I),o(Tt),o(Ct),o(Ae)),o(t),T(b,e),T(v,e),T(ne,e),T(le,e),T(ce,e),T(me,e),T(pe),T(R),T(fe,e),T(he),T(ue),T(ge,e),T(_e),T(Te),T(Ce),T(H),T(Me),T(X),T(be),T(ve),T(ye,e),T(we),T($e),T(S),T(D),T(xe,e),T(ke),T(je),T(A),T(O),T(ze,e)}}}const Wn='{"title":"M-CTC-T","local":"m-ctc-t","sections":[{"title":"Overview","local":"overview","sections":[],"depth":2},{"title":"Usage tips","local":"usage-tips","sections":[],"depth":2},{"title":"Resources","local":"resources","sections":[],"depth":2},{"title":"MCTCTConfig","local":"transformers.MCTCTConfig","sections":[],"depth":2},{"title":"MCTCTFeatureExtractor","local":"transformers.MCTCTFeatureExtractor","sections":[],"depth":2},{"title":"MCTCTProcessor","local":"transformers.MCTCTProcessor","sections":[],"depth":2},{"title":"MCTCTModel","local":"transformers.MCTCTModel","sections":[],"depth":2},{"title":"MCTCTForCTC","local":"transformers.MCTCTForCTC","sections":[],"depth":2}],"depth":1}';function Gn($){return $n(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Yn extends xn{constructor(t){super(),kn(this,t,Gn,Pn,wn,{})}}export{Yn as component};
