import{s as ck,o as dk,n as C}from"../chunks/scheduler.9bc65507.js";import{S as mk,i as hk,g as a,s as r,u as f,A as fk,h as o,f as s,c as i,j as w,v as g,y as d,k as h,o as t,a as p,w as u,d as T,t as b,x as y}from"../chunks/index.78c82d43.js";import{T as pk}from"../chunks/Tip.87d55b76.js";import{D as k}from"../chunks/Docstring.f3d04bd2.js";import{C as j}from"../chunks/CodeBlock.48618ec2.js";import{I as P}from"../chunks/IconCopyLink.bedaa44d.js";import{E as J}from"../chunks/ExampleCodeBlock.872b014d.js";function gk(U){let c,M="Examples:",x,m,v;return m=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTJDJTIwQXV0b01vZGVsRm9yVG9rZW5DbGFzc2lmaWNhdGlvbiUyQyUyMEF1dG9Ub2tlbml6ZXIlMEElMEElMjMlMjBTZW50aW1lbnQlMjBhbmFseXNpcyUyMHBpcGVsaW5lJTBBYW5hbHl6ZXIlMjAlM0QlMjBwaXBlbGluZSglMjJzZW50aW1lbnQtYW5hbHlzaXMlMjIpJTBBJTBBJTIzJTIwUXVlc3Rpb24lMjBhbnN3ZXJpbmclMjBwaXBlbGluZSUyQyUyMHNwZWNpZnlpbmclMjB0aGUlMjBjaGVja3BvaW50JTIwaWRlbnRpZmllciUwQW9yYWNsZSUyMCUzRCUyMHBpcGVsaW5lKCUwQSUyMCUyMCUyMCUyMCUyMnF1ZXN0aW9uLWFuc3dlcmluZyUyMiUyQyUyMG1vZGVsJTNEJTIyZGlzdGlsYmVydC1iYXNlLWNhc2VkLWRpc3RpbGxlZC1zcXVhZCUyMiUyQyUyMHRva2VuaXplciUzRCUyMmJlcnQtYmFzZS1jYXNlZCUyMiUwQSklMEElMEElMjMlMjBOYW1lZCUyMGVudGl0eSUyMHJlY29nbml0aW9uJTIwcGlwZWxpbmUlMkMlMjBwYXNzaW5nJTIwaW4lMjBhJTIwc3BlY2lmaWMlMjBtb2RlbCUyMGFuZCUyMHRva2VuaXplciUwQW1vZGVsJTIwJTNEJTIwQXV0b01vZGVsRm9yVG9rZW5DbGFzc2lmaWNhdGlvbi5mcm9tX3ByZXRyYWluZWQoJTIyZGJtZHolMkZiZXJ0LWxhcmdlLWNhc2VkLWZpbmV0dW5lZC1jb25sbDAzLWVuZ2xpc2glMjIpJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIyYmVydC1iYXNlLWNhc2VkJTIyKSUwQXJlY29nbml6ZXIlMjAlM0QlMjBwaXBlbGluZSglMjJuZXIlMjIlMkMlMjBtb2RlbCUzRG1vZGVsJTJDJTIwdG9rZW5pemVyJTNEdG9rZW5pemVyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline, AutoModelForTokenClassification, AutoTokenizer

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Sentiment analysis pipeline</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>analyzer = pipeline(<span class="hljs-string">&quot;sentiment-analysis&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Question answering pipeline, specifying the checkpoint identifier</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>oracle = pipeline(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;question-answering&quot;</span>, model=<span class="hljs-string">&quot;distilbert-base-cased-distilled-squad&quot;</span>, tokenizer=<span class="hljs-string">&quot;bert-base-cased&quot;</span>
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Named entity recognition pipeline, passing in a specific model and tokenizer</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = AutoModelForTokenClassification.from_pretrained(<span class="hljs-string">&quot;dbmdz/bert-large-cased-finetuned-conll03-english&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;bert-base-cased&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>recognizer = pipeline(<span class="hljs-string">&quot;ner&quot;</span>, model=model, tokenizer=tokenizer)`}}),{c(){c=a("p"),c.textContent=M,x=r(),f(m.$$.fragment)},l(n){c=o(n,"P",{"data-svelte-h":!0}),d(c)!=="svelte-kvfsh7"&&(c.textContent=M),x=i(n),g(m.$$.fragment,n)},m(n,_){p(n,c,_),p(n,x,_),u(m,n,_),v=!0},p:C,i(n){v||(T(m.$$.fragment,n),v=!0)},o(n){b(m.$$.fragment,n),v=!1},d(n){n&&(s(c),s(x)),y(m,n)}}}function uk(U){let c,M=`However, this is not automatically a win for performance. It can be either a 10x speedup or 5x slowdown depending
on hardware, data and the actual model being used.`,x,m,v="Example where it’s mostly a speedup:";return{c(){c=a("p"),c.textContent=M,x=r(),m=a("p"),m.textContent=v},l(n){c=o(n,"P",{"data-svelte-h":!0}),d(c)!=="svelte-gpletg"&&(c.textContent=M),x=i(n),m=o(n,"P",{"data-svelte-h":!0}),d(m)!=="svelte-1aumu59"&&(m.textContent=v)},m(n,_){p(n,c,_),p(n,x,_),p(n,m,_)},p:C,d(n){n&&(s(c),s(x),s(m))}}}function Tk(U){let c,M="Example:",x,m,v;return m=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBY2xhc3NpZmllciUyMCUzRCUyMHBpcGVsaW5lKG1vZGVsJTNEJTIyc3VwZXJiJTJGd2F2MnZlYzItYmFzZS1zdXBlcmIta3MlMjIpJTBBY2xhc3NpZmllciglMjJodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGZGF0YXNldHMlMkZOYXJzaWwlMkZhc3JfZHVtbXklMkZyZXNvbHZlJTJGbWFpbiUyRjEuZmxhYyUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>classifier = pipeline(model=<span class="hljs-string">&quot;superb/wav2vec2-base-superb-ks&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>classifier(<span class="hljs-string">&quot;https://huggingface.co/datasets/Narsil/asr_dummy/resolve/main/1.flac&quot;</span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.997</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;_unknown_&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.002</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;left&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.0</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;yes&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.0</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;down&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.0</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;stop&#x27;</span>}]`}}),{c(){c=a("p"),c.textContent=M,x=r(),f(m.$$.fragment)},l(n){c=o(n,"P",{"data-svelte-h":!0}),d(c)!=="svelte-11lpom8"&&(c.textContent=M),x=i(n),g(m.$$.fragment,n)},m(n,_){p(n,c,_),p(n,x,_),u(m,n,_),v=!0},p:C,i(n){v||(T(m.$$.fragment,n),v=!0)},o(n){b(m.$$.fragment,n),v=!1},d(n){n&&(s(c),s(x)),y(m,n)}}}function bk(U){let c,M="Example:",x,m,v;return m=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBdHJhbnNjcmliZXIlMjAlM0QlMjBwaXBlbGluZShtb2RlbCUzRCUyMm9wZW5haSUyRndoaXNwZXItYmFzZSUyMiklMEF0cmFuc2NyaWJlciglMjJodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGZGF0YXNldHMlMkZOYXJzaWwlMkZhc3JfZHVtbXklMkZyZXNvbHZlJTJGbWFpbiUyRjEuZmxhYyUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>transcriber = pipeline(model=<span class="hljs-string">&quot;openai/whisper-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>transcriber(<span class="hljs-string">&quot;https://huggingface.co/datasets/Narsil/asr_dummy/resolve/main/1.flac&quot;</span>)
{<span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27; He hoped there would be stew for dinner, turnips and carrots and bruised potatoes and fat mutton pieces to be ladled out in thick, peppered flour-fatten sauce.&#x27;</span>}`}}),{c(){c=a("p"),c.textContent=M,x=r(),f(m.$$.fragment)},l(n){c=o(n,"P",{"data-svelte-h":!0}),d(c)!=="svelte-11lpom8"&&(c.textContent=M),x=i(n),g(m.$$.fragment,n)},m(n,_){p(n,c,_),p(n,x,_),u(m,n,_),v=!0},p:C,i(n){v||(T(m.$$.fragment,n),v=!0)},o(n){b(m.$$.fragment,n),v=!1},d(n){n&&(s(c),s(x)),y(m,n)}}}function yk(U){let c,M="Example:",x,m,v;return m=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBcGlwZSUyMCUzRCUyMHBpcGVsaW5lKG1vZGVsJTNEJTIyc3VubyUyRmJhcmstc21hbGwlMjIpJTBBb3V0cHV0JTIwJTNEJTIwcGlwZSglMjJIZXklMjBpdCdzJTIwSHVnZ2luZ0ZhY2UlMjBvbiUyMHRoZSUyMHBob25lISUyMiklMEElMEFhdWRpbyUyMCUzRCUyMG91dHB1dCU1QiUyMmF1ZGlvJTIyJTVEJTBBc2FtcGxpbmdfcmF0ZSUyMCUzRCUyMG91dHB1dCU1QiUyMnNhbXBsaW5nX3JhdGUlMjIlNUQ=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = pipeline(model=<span class="hljs-string">&quot;suno/bark-small&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>output = pipe(<span class="hljs-string">&quot;Hey it&#x27;s HuggingFace on the phone!&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>audio = output[<span class="hljs-string">&quot;audio&quot;</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>sampling_rate = output[<span class="hljs-string">&quot;sampling_rate&quot;</span>]`}}),{c(){c=a("p"),c.textContent=M,x=r(),f(m.$$.fragment)},l(n){c=o(n,"P",{"data-svelte-h":!0}),d(c)!=="svelte-11lpom8"&&(c.textContent=M),x=i(n),g(m.$$.fragment,n)},m(n,_){p(n,c,_),p(n,x,_),u(m,n,_),v=!0},p:C,i(n){v||(T(m.$$.fragment,n),v=!0)},o(n){b(m.$$.fragment,n),v=!1},d(n){n&&(s(c),s(x)),y(m,n)}}}function wk(U){let c,M="Example:",x,m,v;return m=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBJTBBZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJhc2hyYXElMkZlc2M1MCUyMiklMEFhdWRpbyUyMCUzRCUyMG5leHQoaXRlcihkYXRhc2V0JTVCJTIydHJhaW4lMjIlNUQlNUIlMjJhdWRpbyUyMiU1RCkpJTVCJTIyYXJyYXklMjIlNUQlMEFjbGFzc2lmaWVyJTIwJTNEJTIwcGlwZWxpbmUodGFzayUzRCUyMnplcm8tc2hvdC1hdWRpby1jbGFzc2lmaWNhdGlvbiUyMiUyQyUyMG1vZGVsJTNEJTIybGFpb24lMkZjbGFwLWh0c2F0LXVuZnVzZWQlMjIpJTBBY2xhc3NpZmllcihhdWRpbyUyQyUyMGNhbmRpZGF0ZV9sYWJlbHMlM0QlNUIlMjJTb3VuZCUyMG9mJTIwYSUyMGRvZyUyMiUyQyUyMCUyMlNvdW5kJTIwb2YlMjB2YWNjdW0lMjBjbGVhbmVyJTIyJTVEKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset

<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;ashraq/esc50&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>audio = <span class="hljs-built_in">next</span>(<span class="hljs-built_in">iter</span>(dataset[<span class="hljs-string">&quot;train&quot;</span>][<span class="hljs-string">&quot;audio&quot;</span>]))[<span class="hljs-string">&quot;array&quot;</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>classifier = pipeline(task=<span class="hljs-string">&quot;zero-shot-audio-classification&quot;</span>, model=<span class="hljs-string">&quot;laion/clap-htsat-unfused&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>classifier(audio, candidate_labels=[<span class="hljs-string">&quot;Sound of a dog&quot;</span>, <span class="hljs-string">&quot;Sound of vaccum cleaner&quot;</span>])
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.9996</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;Sound of a dog&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.0004</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;Sound of vaccum cleaner&#x27;</span>}]`}}),{c(){c=a("p"),c.textContent=M,x=r(),f(m.$$.fragment)},l(n){c=o(n,"P",{"data-svelte-h":!0}),d(c)!=="svelte-11lpom8"&&(c.textContent=M),x=i(n),g(m.$$.fragment,n)},m(n,_){p(n,c,_),p(n,x,_),u(m,n,_),v=!0},p:C,i(n){v||(T(m.$$.fragment,n),v=!0)},o(n){b(m.$$.fragment,n),v=!1},d(n){n&&(s(c),s(x)),y(m,n)}}}function xk(U){let c,M="Example:",x,m,v;return m=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZGVwdGhfZXN0aW1hdG9yJTIwJTNEJTIwcGlwZWxpbmUodGFzayUzRCUyMmRlcHRoLWVzdGltYXRpb24lMjIlMkMlMjBtb2RlbCUzRCUyMkludGVsJTJGZHB0LWxhcmdlJTIyKSUwQW91dHB1dCUyMCUzRCUyMGRlcHRoX2VzdGltYXRvciglMjJodHRwJTNBJTJGJTJGaW1hZ2VzLmNvY29kYXRhc2V0Lm9yZyUyRnZhbDIwMTclMkYwMDAwMDAwMzk3NjkuanBnJTIyKSUwQSUyMyUyMFRoaXMlMjBpcyUyMGElMjB0ZW5zb3IlMjB3aXRoJTIwdGhlJTIwdmFsdWVzJTIwYmVpbmclMjB0aGUlMjBkZXB0aCUyMGV4cHJlc3NlZCUyMGluJTIwbWV0ZXJzJTIwZm9yJTIwZWFjaCUyMHBpeGVsJTBBb3V0cHV0JTVCJTIycHJlZGljdGVkX2RlcHRoJTIyJTVELnNoYXBl",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>depth_estimator = pipeline(task=<span class="hljs-string">&quot;depth-estimation&quot;</span>, model=<span class="hljs-string">&quot;Intel/dpt-large&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>output = depth_estimator(<span class="hljs-string">&quot;http://images.cocodataset.org/val2017/000000039769.jpg&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># This is a tensor with the values being the depth expressed in meters for each pixel</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>output[<span class="hljs-string">&quot;predicted_depth&quot;</span>].shape
torch.Size([<span class="hljs-number">1</span>, <span class="hljs-number">384</span>, <span class="hljs-number">384</span>])`}}),{c(){c=a("p"),c.textContent=M,x=r(),f(m.$$.fragment)},l(n){c=o(n,"P",{"data-svelte-h":!0}),d(c)!=="svelte-11lpom8"&&(c.textContent=M),x=i(n),g(m.$$.fragment,n)},m(n,_){p(n,c,_),p(n,x,_),u(m,n,_),v=!0},p:C,i(n){v||(T(m.$$.fragment,n),v=!0)},o(n){b(m.$$.fragment,n),v=!1},d(n){n&&(s(c),s(x)),y(m,n)}}}function vk(U){let c,M="Example:",x,m,v;return m=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBY2xhc3NpZmllciUyMCUzRCUyMHBpcGVsaW5lKG1vZGVsJTNEJTIybWljcm9zb2Z0JTJGYmVpdC1iYXNlLXBhdGNoMTYtMjI0LXB0MjJrLWZ0MjJrJTIyKSUwQWNsYXNzaWZpZXIoJTIyaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRmRhdGFzZXRzJTJGTmFyc2lsJTJGaW1hZ2VfZHVtbXklMkZyYXclMkZtYWluJTJGcGFycm90cy5wbmclMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>classifier = pipeline(model=<span class="hljs-string">&quot;microsoft/beit-base-patch16-224-pt22k-ft22k&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>classifier(<span class="hljs-string">&quot;https://huggingface.co/datasets/Narsil/image_dummy/raw/main/parrots.png&quot;</span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.442</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;macaw&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.088</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;popinjay&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.075</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;parrot&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.073</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;parodist, lampooner&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.046</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;poll, poll_parrot&#x27;</span>}]`}}),{c(){c=a("p"),c.textContent=M,x=r(),f(m.$$.fragment)},l(n){c=o(n,"P",{"data-svelte-h":!0}),d(c)!=="svelte-11lpom8"&&(c.textContent=M),x=i(n),g(m.$$.fragment,n)},m(n,_){p(n,c,_),p(n,x,_),u(m,n,_),v=!0},p:C,i(n){v||(T(m.$$.fragment,n),v=!0)},o(n){b(m.$$.fragment,n),v=!1},d(n){n&&(s(c),s(x)),y(m,n)}}}function _k(U){let c,M="Example:",x,m,v;return m=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBc2VnbWVudGVyJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJmYWNlYm9vayUyRmRldHItcmVzbmV0LTUwLXBhbm9wdGljJTIyKSUwQXNlZ21lbnRzJTIwJTNEJTIwc2VnbWVudGVyKCUyMmh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZkYXRhc2V0cyUyRk5hcnNpbCUyRmltYWdlX2R1bW15JTJGcmF3JTJGbWFpbiUyRnBhcnJvdHMucG5nJTIyKSUwQWxlbihzZWdtZW50cyklMEElMEFzZWdtZW50cyU1QjAlNUQlNUIlMjJsYWJlbCUyMiU1RCUwQSUwQXNlZ21lbnRzJTVCMSU1RCU1QiUyMmxhYmVsJTIyJTVEJTBBJTBBdHlwZShzZWdtZW50cyU1QjAlNUQlNUIlMjJtYXNrJTIyJTVEKSUyMCUyMCUyMyUyMFRoaXMlMjBpcyUyMGElMjBibGFjayUyMGFuZCUyMHdoaXRlJTIwbWFzayUyMHNob3dpbmclMjB3aGVyZSUyMGlzJTIwdGhlJTIwYmlyZCUyMG9uJTIwdGhlJTIwb3JpZ2luYWwlMjBpbWFnZS4lMEElMEFzZWdtZW50cyU1QjAlNUQlNUIlMjJtYXNrJTIyJTVELnNpemU=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>segmenter = pipeline(model=<span class="hljs-string">&quot;facebook/detr-resnet-50-panoptic&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>segments = segmenter(<span class="hljs-string">&quot;https://huggingface.co/datasets/Narsil/image_dummy/raw/main/parrots.png&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">len</span>(segments)
<span class="hljs-number">2</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>segments[<span class="hljs-number">0</span>][<span class="hljs-string">&quot;label&quot;</span>]
<span class="hljs-string">&#x27;bird&#x27;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>segments[<span class="hljs-number">1</span>][<span class="hljs-string">&quot;label&quot;</span>]
<span class="hljs-string">&#x27;bird&#x27;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">type</span>(segments[<span class="hljs-number">0</span>][<span class="hljs-string">&quot;mask&quot;</span>])  <span class="hljs-comment"># This is a black and white mask showing where is the bird on the original image.</span>
&lt;<span class="hljs-keyword">class</span> <span class="hljs-string">&#x27;PIL.Image.Image&#x27;</span>&gt;

<span class="hljs-meta">&gt;&gt;&gt; </span>segments[<span class="hljs-number">0</span>][<span class="hljs-string">&quot;mask&quot;</span>].size
(<span class="hljs-number">768</span>, <span class="hljs-number">512</span>)`}}),{c(){c=a("p"),c.textContent=M,x=r(),f(m.$$.fragment)},l(n){c=o(n,"P",{"data-svelte-h":!0}),d(c)!=="svelte-11lpom8"&&(c.textContent=M),x=i(n),g(m.$$.fragment,n)},m(n,_){p(n,c,_),p(n,x,_),u(m,n,_),v=!0},p:C,i(n){v||(T(m.$$.fragment,n),v=!0)},o(n){b(m.$$.fragment,n),v=!1},d(n){n&&(s(c),s(x)),y(m,n)}}}function Mk(U){let c,M="Example:",x,m,v;return m=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZGV0ZWN0b3IlMjAlM0QlMjBwaXBlbGluZShtb2RlbCUzRCUyMmZhY2Vib29rJTJGZGV0ci1yZXNuZXQtNTAlMjIpJTBBZGV0ZWN0b3IoJTIyaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRmRhdGFzZXRzJTJGTmFyc2lsJTJGaW1hZ2VfZHVtbXklMkZyYXclMkZtYWluJTJGcGFycm90cy5wbmclMjIpJTBBJTBBJTIzJTIweCUyQyUyMHklMjAlMjBhcmUlMjBleHByZXNzZWQlMjByZWxhdGl2ZSUyMHRvJTIwdGhlJTIwdG9wJTIwbGVmdCUyMGhhbmQlMjBjb3JuZXIu",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>detector = pipeline(model=<span class="hljs-string">&quot;facebook/detr-resnet-50&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>detector(<span class="hljs-string">&quot;https://huggingface.co/datasets/Narsil/image_dummy/raw/main/parrots.png&quot;</span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.997</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;bird&#x27;</span>, <span class="hljs-string">&#x27;box&#x27;</span>: {<span class="hljs-string">&#x27;xmin&#x27;</span>: <span class="hljs-number">69</span>, <span class="hljs-string">&#x27;ymin&#x27;</span>: <span class="hljs-number">171</span>, <span class="hljs-string">&#x27;xmax&#x27;</span>: <span class="hljs-number">396</span>, <span class="hljs-string">&#x27;ymax&#x27;</span>: <span class="hljs-number">507</span>}}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.999</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;bird&#x27;</span>, <span class="hljs-string">&#x27;box&#x27;</span>: {<span class="hljs-string">&#x27;xmin&#x27;</span>: <span class="hljs-number">398</span>, <span class="hljs-string">&#x27;ymin&#x27;</span>: <span class="hljs-number">105</span>, <span class="hljs-string">&#x27;xmax&#x27;</span>: <span class="hljs-number">767</span>, <span class="hljs-string">&#x27;ymax&#x27;</span>: <span class="hljs-number">507</span>}}]

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># x, y  are expressed relative to the top left hand corner.</span>`}}),{c(){c=a("p"),c.textContent=M,x=r(),f(m.$$.fragment)},l(n){c=o(n,"P",{"data-svelte-h":!0}),d(c)!=="svelte-11lpom8"&&(c.textContent=M),x=i(n),g(m.$$.fragment,n)},m(n,_){p(n,c,_),p(n,x,_),u(m,n,_),v=!0},p:C,i(n){v||(T(m.$$.fragment,n),v=!0)},o(n){b(m.$$.fragment,n),v=!1},d(n){n&&(s(c),s(x)),y(m,n)}}}function kk(U){let c,M="Example:",x,m,v;return m=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBY2xhc3NpZmllciUyMCUzRCUyMHBpcGVsaW5lKG1vZGVsJTNEJTIyb3BlbmFpJTJGY2xpcC12aXQtbGFyZ2UtcGF0Y2gxNCUyMiklMEFjbGFzc2lmaWVyKCUwQSUyMCUyMCUyMCUyMCUyMmh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZkYXRhc2V0cyUyRk5hcnNpbCUyRmltYWdlX2R1bW15JTJGcmF3JTJGbWFpbiUyRnBhcnJvdHMucG5nJTIyJTJDJTBBJTIwJTIwJTIwJTIwY2FuZGlkYXRlX2xhYmVscyUzRCU1QiUyMmFuaW1hbHMlMjIlMkMlMjAlMjJodW1hbnMlMjIlMkMlMjAlMjJsYW5kc2NhcGUlMjIlNUQlMkMlMEEpJTBBJTBBY2xhc3NpZmllciglMEElMjAlMjAlMjAlMjAlMjJodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGZGF0YXNldHMlMkZOYXJzaWwlMkZpbWFnZV9kdW1teSUyRnJhdyUyRm1haW4lMkZwYXJyb3RzLnBuZyUyMiUyQyUwQSUyMCUyMCUyMCUyMGNhbmRpZGF0ZV9sYWJlbHMlM0QlNUIlMjJibGFjayUyMGFuZCUyMHdoaXRlJTIyJTJDJTIwJTIycGhvdG9yZWFsaXN0JTIyJTJDJTIwJTIycGFpbnRpbmclMjIlNUQlMkMlMEEp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>classifier = pipeline(model=<span class="hljs-string">&quot;openai/clip-vit-large-patch14&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>classifier(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;https://huggingface.co/datasets/Narsil/image_dummy/raw/main/parrots.png&quot;</span>,
<span class="hljs-meta">... </span>    candidate_labels=[<span class="hljs-string">&quot;animals&quot;</span>, <span class="hljs-string">&quot;humans&quot;</span>, <span class="hljs-string">&quot;landscape&quot;</span>],
<span class="hljs-meta">... </span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.965</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;animals&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.03</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;humans&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.005</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;landscape&#x27;</span>}]

<span class="hljs-meta">&gt;&gt;&gt; </span>classifier(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;https://huggingface.co/datasets/Narsil/image_dummy/raw/main/parrots.png&quot;</span>,
<span class="hljs-meta">... </span>    candidate_labels=[<span class="hljs-string">&quot;black and white&quot;</span>, <span class="hljs-string">&quot;photorealist&quot;</span>, <span class="hljs-string">&quot;painting&quot;</span>],
<span class="hljs-meta">... </span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.996</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;black and white&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.003</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;photorealist&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.0</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;painting&#x27;</span>}]`}}),{c(){c=a("p"),c.textContent=M,x=r(),f(m.$$.fragment)},l(n){c=o(n,"P",{"data-svelte-h":!0}),d(c)!=="svelte-11lpom8"&&(c.textContent=M),x=i(n),g(m.$$.fragment,n)},m(n,_){p(n,c,_),p(n,x,_),u(m,n,_),v=!0},p:C,i(n){v||(T(m.$$.fragment,n),v=!0)},o(n){b(m.$$.fragment,n),v=!1},d(n){n&&(s(c),s(x)),y(m,n)}}}function Uk(U){let c,M="Example:",x,m,v;return m=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZGV0ZWN0b3IlMjAlM0QlMjBwaXBlbGluZShtb2RlbCUzRCUyMmdvb2dsZSUyRm93bHZpdC1iYXNlLXBhdGNoMzIlMjIlMkMlMjB0YXNrJTNEJTIyemVyby1zaG90LW9iamVjdC1kZXRlY3Rpb24lMjIpJTBBZGV0ZWN0b3IoJTBBJTIwJTIwJTIwJTIwJTIyaHR0cCUzQSUyRiUyRmltYWdlcy5jb2NvZGF0YXNldC5vcmclMkZ2YWwyMDE3JTJGMDAwMDAwMDM5NzY5LmpwZyUyMiUyQyUwQSUyMCUyMCUyMCUyMGNhbmRpZGF0ZV9sYWJlbHMlM0QlNUIlMjJjYXQlMjIlMkMlMjAlMjJjb3VjaCUyMiU1RCUyQyUwQSklMEElMEFkZXRlY3RvciglMEElMjAlMjAlMjAlMjAlMjJodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGZGF0YXNldHMlMkZOYXJzaWwlMkZpbWFnZV9kdW1teSUyRnJhdyUyRm1haW4lMkZwYXJyb3RzLnBuZyUyMiUyQyUwQSUyMCUyMCUyMCUyMGNhbmRpZGF0ZV9sYWJlbHMlM0QlNUIlMjJoZWFkJTIyJTJDJTIwJTIyYmlyZCUyMiU1RCUyQyUwQSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>detector = pipeline(model=<span class="hljs-string">&quot;google/owlvit-base-patch32&quot;</span>, task=<span class="hljs-string">&quot;zero-shot-object-detection&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>detector(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;http://images.cocodataset.org/val2017/000000039769.jpg&quot;</span>,
<span class="hljs-meta">... </span>    candidate_labels=[<span class="hljs-string">&quot;cat&quot;</span>, <span class="hljs-string">&quot;couch&quot;</span>],
<span class="hljs-meta">... </span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.287</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;cat&#x27;</span>, <span class="hljs-string">&#x27;box&#x27;</span>: {<span class="hljs-string">&#x27;xmin&#x27;</span>: <span class="hljs-number">324</span>, <span class="hljs-string">&#x27;ymin&#x27;</span>: <span class="hljs-number">20</span>, <span class="hljs-string">&#x27;xmax&#x27;</span>: <span class="hljs-number">640</span>, <span class="hljs-string">&#x27;ymax&#x27;</span>: <span class="hljs-number">373</span>}}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.254</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;cat&#x27;</span>, <span class="hljs-string">&#x27;box&#x27;</span>: {<span class="hljs-string">&#x27;xmin&#x27;</span>: <span class="hljs-number">1</span>, <span class="hljs-string">&#x27;ymin&#x27;</span>: <span class="hljs-number">55</span>, <span class="hljs-string">&#x27;xmax&#x27;</span>: <span class="hljs-number">315</span>, <span class="hljs-string">&#x27;ymax&#x27;</span>: <span class="hljs-number">472</span>}}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.121</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;couch&#x27;</span>, <span class="hljs-string">&#x27;box&#x27;</span>: {<span class="hljs-string">&#x27;xmin&#x27;</span>: <span class="hljs-number">4</span>, <span class="hljs-string">&#x27;ymin&#x27;</span>: <span class="hljs-number">0</span>, <span class="hljs-string">&#x27;xmax&#x27;</span>: <span class="hljs-number">642</span>, <span class="hljs-string">&#x27;ymax&#x27;</span>: <span class="hljs-number">476</span>}}]

<span class="hljs-meta">&gt;&gt;&gt; </span>detector(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;https://huggingface.co/datasets/Narsil/image_dummy/raw/main/parrots.png&quot;</span>,
<span class="hljs-meta">... </span>    candidate_labels=[<span class="hljs-string">&quot;head&quot;</span>, <span class="hljs-string">&quot;bird&quot;</span>],
<span class="hljs-meta">... </span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.119</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;bird&#x27;</span>, <span class="hljs-string">&#x27;box&#x27;</span>: {<span class="hljs-string">&#x27;xmin&#x27;</span>: <span class="hljs-number">71</span>, <span class="hljs-string">&#x27;ymin&#x27;</span>: <span class="hljs-number">170</span>, <span class="hljs-string">&#x27;xmax&#x27;</span>: <span class="hljs-number">410</span>, <span class="hljs-string">&#x27;ymax&#x27;</span>: <span class="hljs-number">508</span>}}]`}}),{c(){c=a("p"),c.textContent=M,x=r(),f(m.$$.fragment)},l(n){c=o(n,"P",{"data-svelte-h":!0}),d(c)!=="svelte-11lpom8"&&(c.textContent=M),x=i(n),g(m.$$.fragment,n)},m(n,_){p(n,c,_),p(n,x,_),u(m,n,_),v=!0},p:C,i(n){v||(T(m.$$.fragment,n),v=!0)},o(n){b(m.$$.fragment,n),v=!1},d(n){n&&(s(c),s(x)),y(m,n)}}}function jk(U){let c,M="Usage:",x,m,v;return m=new j({props:{code:"Y29udmVyc2F0aW9uJTIwJTNEJTIwQ29udmVyc2F0aW9uKCUyMkdvaW5nJTIwdG8lMjB0aGUlMjBtb3ZpZXMlMjB0b25pZ2h0JTIwLSUyMGFueSUyMHN1Z2dlc3Rpb25zJTNGJTIyKSUwQSUwQSUyMyUyMFN0ZXBzJTIwdXN1YWxseSUyMHBlcmZvcm1lZCUyMGJ5JTIwdGhlJTIwbW9kZWwlMjB3aGVuJTIwZ2VuZXJhdGluZyUyMGElMjByZXNwb25zZSUzQSUwQSUyMyUyMDEuJTIwTWFyayUyMHRoZSUyMHVzZXIlMjBpbnB1dCUyMGFzJTIwcHJvY2Vzc2VkJTIwKG1vdmVkJTIwdG8lMjB0aGUlMjBoaXN0b3J5KSUwQWNvbnZlcnNhdGlvbi5tYXJrX3Byb2Nlc3NlZCgpJTBBJTIzJTIwMi4lMjBBcHBlbmQlMjBhJTIwbW9kZSUyMHJlc3BvbnNlJTBBY29udmVyc2F0aW9uLmFwcGVuZF9yZXNwb25zZSglMjJUaGUlMjBCaWclMjBsZWJvd3NraS4lMjIpJTBBJTBBY29udmVyc2F0aW9uLmFkZF91c2VyX2lucHV0KCUyMklzJTIwaXQlMjBnb29kJTNGJTIyKQ==",highlighted:`conversation = Conversation(<span class="hljs-string">&quot;Going to the movies tonight - any suggestions?&quot;</span>)

<span class="hljs-comment"># Steps usually performed by the model when generating a response:</span>
<span class="hljs-comment"># 1. Mark the user input as processed (moved to the history)</span>
conversation.mark_processed()
<span class="hljs-comment"># 2. Append a mode response</span>
conversation.append_response(<span class="hljs-string">&quot;The Big lebowski.&quot;</span>)

conversation.add_user_input(<span class="hljs-string">&quot;Is it good?&quot;</span>)`}}),{c(){c=a("p"),c.textContent=M,x=r(),f(m.$$.fragment)},l(n){c=o(n,"P",{"data-svelte-h":!0}),d(c)!=="svelte-5wyjqd"&&(c.textContent=M),x=i(n),g(m.$$.fragment,n)},m(n,_){p(n,c,_),p(n,x,_),u(m,n,_),v=!0},p:C,i(n){v||(T(m.$$.fragment,n),v=!0)},o(n){b(m.$$.fragment,n),v=!1},d(n){n&&(s(c),s(x)),y(m,n)}}}function Pk(U){let c,M="Example:",x,m,v;return m=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTJDJTIwQ29udmVyc2F0aW9uJTBBJTBBY2hhdGJvdCUyMCUzRCUyMHBpcGVsaW5lKG1vZGVsJTNEJTIybWljcm9zb2Z0JTJGRGlhbG9HUFQtbWVkaXVtJTIyKSUwQWNvbnZlcnNhdGlvbiUyMCUzRCUyMENvbnZlcnNhdGlvbiglMjJHb2luZyUyMHRvJTIwdGhlJTIwbW92aWVzJTIwdG9uaWdodCUyMC0lMjBhbnklMjBzdWdnZXN0aW9ucyUzRiUyMiklMEFjb252ZXJzYXRpb24lMjAlM0QlMjBjaGF0Ym90KGNvbnZlcnNhdGlvbiklMEFjb252ZXJzYXRpb24uZ2VuZXJhdGVkX3Jlc3BvbnNlcyU1Qi0xJTVEJTBBJTBBY29udmVyc2F0aW9uLmFkZF91c2VyX2lucHV0KCUyMklzJTIwaXQlMjBhbiUyMGFjdGlvbiUyMG1vdmllJTNGJTIyKSUwQWNvbnZlcnNhdGlvbiUyMCUzRCUyMGNoYXRib3QoY29udmVyc2F0aW9uKSUwQWNvbnZlcnNhdGlvbi5nZW5lcmF0ZWRfcmVzcG9uc2VzJTVCLTElNUQ=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline, Conversation

<span class="hljs-meta">&gt;&gt;&gt; </span>chatbot = pipeline(model=<span class="hljs-string">&quot;microsoft/DialoGPT-medium&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>conversation = Conversation(<span class="hljs-string">&quot;Going to the movies tonight - any suggestions?&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>conversation = chatbot(conversation)
<span class="hljs-meta">&gt;&gt;&gt; </span>conversation.generated_responses[-<span class="hljs-number">1</span>]
<span class="hljs-string">&#x27;The Big Lebowski&#x27;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>conversation.add_user_input(<span class="hljs-string">&quot;Is it an action movie?&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>conversation = chatbot(conversation)
<span class="hljs-meta">&gt;&gt;&gt; </span>conversation.generated_responses[-<span class="hljs-number">1</span>]
<span class="hljs-string">&quot;It&#x27;s a comedy.&quot;</span>`}}),{c(){c=a("p"),c.textContent=M,x=r(),f(m.$$.fragment)},l(n){c=o(n,"P",{"data-svelte-h":!0}),d(c)!=="svelte-11lpom8"&&(c.textContent=M),x=i(n),g(m.$$.fragment,n)},m(n,_){p(n,c,_),p(n,x,_),u(m,n,_),v=!0},p:C,i(n){v||(T(m.$$.fragment,n),v=!0)},o(n){b(m.$$.fragment,n),v=!1},d(n){n&&(s(c),s(x)),y(m,n)}}}function Ck(U){let c,M="Example:",x,m,v;return m=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZmlsbF9tYXNrZXIlMjAlM0QlMjBwaXBlbGluZShtb2RlbCUzRCUyMmJlcnQtYmFzZS11bmNhc2VkJTIyKSUwQWZpbGxfbWFza2VyKCUyMlRoaXMlMjBpcyUyMGElMjBzaW1wbGUlMjAlNUJNQVNLJTVELiUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>fill_masker = pipeline(model=<span class="hljs-string">&quot;bert-base-uncased&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>fill_masker(<span class="hljs-string">&quot;This is a simple [MASK].&quot;</span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.042</span>, <span class="hljs-string">&#x27;token&#x27;</span>: <span class="hljs-number">3291</span>, <span class="hljs-string">&#x27;token_str&#x27;</span>: <span class="hljs-string">&#x27;problem&#x27;</span>, <span class="hljs-string">&#x27;sequence&#x27;</span>: <span class="hljs-string">&#x27;this is a simple problem.&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.031</span>, <span class="hljs-string">&#x27;token&#x27;</span>: <span class="hljs-number">3160</span>, <span class="hljs-string">&#x27;token_str&#x27;</span>: <span class="hljs-string">&#x27;question&#x27;</span>, <span class="hljs-string">&#x27;sequence&#x27;</span>: <span class="hljs-string">&#x27;this is a simple question.&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.03</span>, <span class="hljs-string">&#x27;token&#x27;</span>: <span class="hljs-number">8522</span>, <span class="hljs-string">&#x27;token_str&#x27;</span>: <span class="hljs-string">&#x27;equation&#x27;</span>, <span class="hljs-string">&#x27;sequence&#x27;</span>: <span class="hljs-string">&#x27;this is a simple equation.&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.027</span>, <span class="hljs-string">&#x27;token&#x27;</span>: <span class="hljs-number">2028</span>, <span class="hljs-string">&#x27;token_str&#x27;</span>: <span class="hljs-string">&#x27;one&#x27;</span>, <span class="hljs-string">&#x27;sequence&#x27;</span>: <span class="hljs-string">&#x27;this is a simple one.&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.024</span>, <span class="hljs-string">&#x27;token&#x27;</span>: <span class="hljs-number">3627</span>, <span class="hljs-string">&#x27;token_str&#x27;</span>: <span class="hljs-string">&#x27;rule&#x27;</span>, <span class="hljs-string">&#x27;sequence&#x27;</span>: <span class="hljs-string">&#x27;this is a simple rule.&#x27;</span>}]`}}),{c(){c=a("p"),c.textContent=M,x=r(),f(m.$$.fragment)},l(n){c=o(n,"P",{"data-svelte-h":!0}),d(c)!=="svelte-11lpom8"&&(c.textContent=M),x=i(n),g(m.$$.fragment,n)},m(n,_){p(n,c,_),p(n,x,_),u(m,n,_),v=!0},p:C,i(n){v||(T(m.$$.fragment,n),v=!0)},o(n){b(m.$$.fragment,n),v=!1},d(n){n&&(s(c),s(x)),y(m,n)}}}function $k(U){let c,M=`This pipeline only works for inputs with exactly one token masked. Experimental: We added support for multiple
masks. The returned values are raw model output, and correspond to disjoint probabilities where one might expect
joint probabilities (See <a href="https://github.com/huggingface/transformers/pull/10222" rel="nofollow">discussion</a>).`;return{c(){c=a("p"),c.innerHTML=M},l(x){c=o(x,"P",{"data-svelte-h":!0}),d(c)!=="svelte-126iymh"&&(c.innerHTML=M)},m(x,m){p(x,c,m)},p:C,d(x){x&&s(c)}}}function Jk(U){let c,M="Example:",x,m,v;return m=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBdG9rZW5fY2xhc3NpZmllciUyMCUzRCUyMHBpcGVsaW5lKG1vZGVsJTNEJTIySmVhbi1CYXB0aXN0ZSUyRmNhbWVtYmVydC1uZXIlMjIlMkMlMjBhZ2dyZWdhdGlvbl9zdHJhdGVneSUzRCUyMnNpbXBsZSUyMiklMEFzZW50ZW5jZSUyMCUzRCUyMCUyMkplJTIwbSdhcHBlbGxlJTIwamVhbi1iYXB0aXN0ZSUyMGV0JTIwamUlMjB2aXMlMjAlQzMlQTAlMjBtb250ciVDMyVBOWFsJTIyJTBBdG9rZW5zJTIwJTNEJTIwdG9rZW5fY2xhc3NpZmllcihzZW50ZW5jZSklMEF0b2tlbnMlMEElMEF0b2tlbiUyMCUzRCUyMHRva2VucyU1QjAlNUQlMEElMjMlMjBTdGFydCUyMGFuZCUyMGVuZCUyMHByb3ZpZGUlMjBhbiUyMGVhc3klMjB3YXklMjB0byUyMGhpZ2hsaWdodCUyMHdvcmRzJTIwaW4lMjB0aGUlMjBvcmlnaW5hbCUyMHRleHQuJTBBc2VudGVuY2UlNUJ0b2tlbiU1QiUyMnN0YXJ0JTIyJTVEJTIwJTNBJTIwdG9rZW4lNUIlMjJlbmQlMjIlNUQlNUQlMEElMEElMjMlMjBTb21lJTIwbW9kZWxzJTIwdXNlJTIwdGhlJTIwc2FtZSUyMGlkZWElMjB0byUyMGRvJTIwcGFydCUyMG9mJTIwc3BlZWNoLiUwQXN5bnRheGVyJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJ2YmxhZ29qZSUyRmJlcnQtZW5nbGlzaC11bmNhc2VkLWZpbmV0dW5lZC1wb3MlMjIlMkMlMjBhZ2dyZWdhdGlvbl9zdHJhdGVneSUzRCUyMnNpbXBsZSUyMiklMEFzeW50YXhlciglMjJNeSUyMG5hbWUlMjBpcyUyMFNhcmFoJTIwYW5kJTIwSSUyMGxpdmUlMjBpbiUyMExvbmRvbiUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>token_classifier = pipeline(model=<span class="hljs-string">&quot;Jean-Baptiste/camembert-ner&quot;</span>, aggregation_strategy=<span class="hljs-string">&quot;simple&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>sentence = <span class="hljs-string">&quot;Je m&#x27;appelle jean-baptiste et je vis à montréal&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>tokens = token_classifier(sentence)
<span class="hljs-meta">&gt;&gt;&gt; </span>tokens
[{<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;PER&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.9931</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;jean-baptiste&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">12</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">26</span>}, {<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;LOC&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.998</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;montréal&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">38</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">47</span>}]

<span class="hljs-meta">&gt;&gt;&gt; </span>token = tokens[<span class="hljs-number">0</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Start and end provide an easy way to highlight words in the original text.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>sentence[token[<span class="hljs-string">&quot;start&quot;</span>] : token[<span class="hljs-string">&quot;end&quot;</span>]]
<span class="hljs-string">&#x27; jean-baptiste&#x27;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Some models use the same idea to do part of speech.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>syntaxer = pipeline(model=<span class="hljs-string">&quot;vblagoje/bert-english-uncased-finetuned-pos&quot;</span>, aggregation_strategy=<span class="hljs-string">&quot;simple&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>syntaxer(<span class="hljs-string">&quot;My name is Sarah and I live in London&quot;</span>)
[{<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;PRON&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.999</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;my&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">0</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">2</span>}, {<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;NOUN&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.997</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;name&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">3</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">7</span>}, {<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;AUX&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.994</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;is&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">8</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">10</span>}, {<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;PROPN&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.999</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;sarah&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">11</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">16</span>}, {<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;CCONJ&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.999</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;and&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">17</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">20</span>}, {<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;PRON&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.999</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;i&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">21</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">22</span>}, {<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;VERB&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.998</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;live&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">23</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">27</span>}, {<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;ADP&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.999</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;in&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">28</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">30</span>}, {<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;PROPN&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.999</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;london&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">31</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">37</span>}]`}}),{c(){c=a("p"),c.textContent=M,x=r(),f(m.$$.fragment)},l(n){c=o(n,"P",{"data-svelte-h":!0}),d(c)!=="svelte-11lpom8"&&(c.textContent=M),x=i(n),g(m.$$.fragment,n)},m(n,_){p(n,c,_),p(n,x,_),u(m,n,_),v=!0},p:C,i(n){v||(T(m.$$.fragment,n),v=!0)},o(n){b(m.$$.fragment,n),v=!1},d(n){n&&(s(c),s(x)),y(m,n)}}}function Ik(U){let c,M="Example:",x,m,v;return m=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBb3JhY2xlJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJkZWVwc2V0JTJGcm9iZXJ0YS1iYXNlLXNxdWFkMiUyMiklMEFvcmFjbGUocXVlc3Rpb24lM0QlMjJXaGVyZSUyMGRvJTIwSSUyMGxpdmUlM0YlMjIlMkMlMjBjb250ZXh0JTNEJTIyTXklMjBuYW1lJTIwaXMlMjBXb2xmZ2FuZyUyMGFuZCUyMEklMjBsaXZlJTIwaW4lMjBCZXJsaW4lMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>oracle = pipeline(model=<span class="hljs-string">&quot;deepset/roberta-base-squad2&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>oracle(question=<span class="hljs-string">&quot;Where do I live?&quot;</span>, context=<span class="hljs-string">&quot;My name is Wolfgang and I live in Berlin&quot;</span>)
{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.9191</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">34</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">40</span>, <span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;Berlin&#x27;</span>}`}}),{c(){c=a("p"),c.textContent=M,x=r(),f(m.$$.fragment)},l(n){c=o(n,"P",{"data-svelte-h":!0}),d(c)!=="svelte-11lpom8"&&(c.textContent=M),x=i(n),g(m.$$.fragment,n)},m(n,_){p(n,c,_),p(n,x,_),u(m,n,_),v=!0},p:C,i(n){v||(T(m.$$.fragment,n),v=!0)},o(n){b(m.$$.fragment,n),v=!1},d(n){n&&(s(c),s(x)),y(m,n)}}}function qk(U){let c,M="Usage:",x,m,v;return m=new j({props:{code:"JTIzJTIwdXNlJTIwYmFydCUyMGluJTIwcHl0b3JjaCUwQXN1bW1hcml6ZXIlMjAlM0QlMjBwaXBlbGluZSglMjJzdW1tYXJpemF0aW9uJTIyKSUwQXN1bW1hcml6ZXIoJTIyQW4lMjBhcHBsZSUyMGElMjBkYXklMkMlMjBrZWVwcyUyMHRoZSUyMGRvY3RvciUyMGF3YXklMjIlMkMlMjBtaW5fbGVuZ3RoJTNENSUyQyUyMG1heF9sZW5ndGglM0QyMCklMEElMEElMjMlMjB1c2UlMjB0NSUyMGluJTIwdGYlMEFzdW1tYXJpemVyJTIwJTNEJTIwcGlwZWxpbmUoJTIyc3VtbWFyaXphdGlvbiUyMiUyQyUyMG1vZGVsJTNEJTIydDUtYmFzZSUyMiUyQyUyMHRva2VuaXplciUzRCUyMnQ1LWJhc2UlMjIlMkMlMjBmcmFtZXdvcmslM0QlMjJ0ZiUyMiklMEFzdW1tYXJpemVyKCUyMkFuJTIwYXBwbGUlMjBhJTIwZGF5JTJDJTIwa2VlcHMlMjB0aGUlMjBkb2N0b3IlMjBhd2F5JTIyJTJDJTIwbWluX2xlbmd0aCUzRDUlMkMlMjBtYXhfbGVuZ3RoJTNEMjAp",highlighted:`<span class="hljs-comment"># use bart in pytorch</span>
summarizer = pipeline(<span class="hljs-string">&quot;summarization&quot;</span>)
summarizer(<span class="hljs-string">&quot;An apple a day, keeps the doctor away&quot;</span>, min_length=<span class="hljs-number">5</span>, max_length=<span class="hljs-number">20</span>)

<span class="hljs-comment"># use t5 in tf</span>
summarizer = pipeline(<span class="hljs-string">&quot;summarization&quot;</span>, model=<span class="hljs-string">&quot;t5-base&quot;</span>, tokenizer=<span class="hljs-string">&quot;t5-base&quot;</span>, framework=<span class="hljs-string">&quot;tf&quot;</span>)
summarizer(<span class="hljs-string">&quot;An apple a day, keeps the doctor away&quot;</span>, min_length=<span class="hljs-number">5</span>, max_length=<span class="hljs-number">20</span>)`}}),{c(){c=a("p"),c.textContent=M,x=r(),f(m.$$.fragment)},l(n){c=o(n,"P",{"data-svelte-h":!0}),d(c)!=="svelte-5wyjqd"&&(c.textContent=M),x=i(n),g(m.$$.fragment,n)},m(n,_){p(n,c,_),p(n,x,_),u(m,n,_),v=!0},p:C,i(n){v||(T(m.$$.fragment,n),v=!0)},o(n){b(m.$$.fragment,n),v=!1},d(n){n&&(s(c),s(x)),y(m,n)}}}function Gk(U){let c,M="Example:",x,m,v;return m=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBb3JhY2xlJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJnb29nbGUlMkZ0YXBhcy1iYXNlLWZpbmV0dW5lZC13dHElMjIpJTBBdGFibGUlMjAlM0QlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjJSZXBvc2l0b3J5JTIyJTNBJTIwJTVCJTIyVHJhbnNmb3JtZXJzJTIyJTJDJTIwJTIyRGF0YXNldHMlMjIlMkMlMjAlMjJUb2tlbml6ZXJzJTIyJTVEJTJDJTBBJTIwJTIwJTIwJTIwJTIyU3RhcnMlMjIlM0ElMjAlNUIlMjIzNjU0MiUyMiUyQyUyMCUyMjQ1MTIlMjIlMkMlMjAlMjIzOTM0JTIyJTVEJTJDJTBBJTIwJTIwJTIwJTIwJTIyQ29udHJpYnV0b3JzJTIyJTNBJTIwJTVCJTIyNjUxJTIyJTJDJTIwJTIyNzclMjIlMkMlMjAlMjIzNCUyMiU1RCUyQyUwQSUyMCUyMCUyMCUyMCUyMlByb2dyYW1taW5nJTIwbGFuZ3VhZ2UlMjIlM0ElMjAlNUIlMjJQeXRob24lMjIlMkMlMjAlMjJQeXRob24lMjIlMkMlMjAlMjJSdXN0JTJDJTIwUHl0aG9uJTIwYW5kJTIwTm9kZUpTJTIyJTVEJTJDJTBBJTdEJTBBb3JhY2xlKHF1ZXJ5JTNEJTIySG93JTIwbWFueSUyMHN0YXJzJTIwZG9lcyUyMHRoZSUyMHRyYW5zZm9ybWVycyUyMHJlcG9zaXRvcnklMjBoYXZlJTNGJTIyJTJDJTIwdGFibGUlM0R0YWJsZSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>oracle = pipeline(model=<span class="hljs-string">&quot;google/tapas-base-finetuned-wtq&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>table = {
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;Repository&quot;</span>: [<span class="hljs-string">&quot;Transformers&quot;</span>, <span class="hljs-string">&quot;Datasets&quot;</span>, <span class="hljs-string">&quot;Tokenizers&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;Stars&quot;</span>: [<span class="hljs-string">&quot;36542&quot;</span>, <span class="hljs-string">&quot;4512&quot;</span>, <span class="hljs-string">&quot;3934&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;Contributors&quot;</span>: [<span class="hljs-string">&quot;651&quot;</span>, <span class="hljs-string">&quot;77&quot;</span>, <span class="hljs-string">&quot;34&quot;</span>],
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;Programming language&quot;</span>: [<span class="hljs-string">&quot;Python&quot;</span>, <span class="hljs-string">&quot;Python&quot;</span>, <span class="hljs-string">&quot;Rust, Python and NodeJS&quot;</span>],
<span class="hljs-meta">... </span>}
<span class="hljs-meta">&gt;&gt;&gt; </span>oracle(query=<span class="hljs-string">&quot;How many stars does the transformers repository have?&quot;</span>, table=table)
{<span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;AVERAGE &gt; 36542&#x27;</span>, <span class="hljs-string">&#x27;coordinates&#x27;</span>: [(<span class="hljs-number">0</span>, <span class="hljs-number">1</span>)], <span class="hljs-string">&#x27;cells&#x27;</span>: [<span class="hljs-string">&#x27;36542&#x27;</span>], <span class="hljs-string">&#x27;aggregator&#x27;</span>: <span class="hljs-string">&#x27;AVERAGE&#x27;</span>}`}}),{c(){c=a("p"),c.textContent=M,x=r(),f(m.$$.fragment)},l(n){c=o(n,"P",{"data-svelte-h":!0}),d(c)!=="svelte-11lpom8"&&(c.textContent=M),x=i(n),g(m.$$.fragment,n)},m(n,_){p(n,c,_),p(n,x,_),u(m,n,_),v=!0},p:C,i(n){v||(T(m.$$.fragment,n),v=!0)},o(n){b(m.$$.fragment,n),v=!1},d(n){n&&(s(c),s(x)),y(m,n)}}}function zk(U){let c,M="Example:",x,m,v;return m=new j({props:{code:"ZGF0YSUyMCUzRCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMmFjdG9ycyUyMiUzQSUyMCU1QiUyMmJyYWQlMjBwaXR0JTIyJTJDJTIwJTIybGVvbmFyZG8lMjBkaSUyMGNhcHJpbyUyMiUyQyUyMCUyMmdlb3JnZSUyMGNsb29uZXklMjIlNUQlMkMlMEElMjAlMjAlMjAlMjAlMjJhZ2UlMjIlM0ElMjAlNUIlMjI1NiUyMiUyQyUyMCUyMjQ1JTIyJTJDJTIwJTIyNTklMjIlNUQlMkMlMEElMjAlMjAlMjAlMjAlMjJudW1iZXIlMjBvZiUyMG1vdmllcyUyMiUzQSUyMCU1QiUyMjg3JTIyJTJDJTIwJTIyNTMlMjIlMkMlMjAlMjI2OSUyMiU1RCUyQyUwQSUyMCUyMCUyMCUyMCUyMmRhdGUlMjBvZiUyMGJpcnRoJTIyJTNBJTIwJTVCJTIyNyUyMGZlYnJ1YXJ5JTIwMTk2NyUyMiUyQyUyMCUyMjEwJTIwanVuZSUyMDE5OTYlMjIlMkMlMjAlMjIyOCUyMG5vdmVtYmVyJTIwMTk2NyUyMiU1RCUyQyUwQSU3RA==",highlighted:`data = {
    <span class="hljs-string">&quot;actors&quot;</span>: [<span class="hljs-string">&quot;brad pitt&quot;</span>, <span class="hljs-string">&quot;leonardo di caprio&quot;</span>, <span class="hljs-string">&quot;george clooney&quot;</span>],
    <span class="hljs-string">&quot;age&quot;</span>: [<span class="hljs-string">&quot;56&quot;</span>, <span class="hljs-string">&quot;45&quot;</span>, <span class="hljs-string">&quot;59&quot;</span>],
    <span class="hljs-string">&quot;number of movies&quot;</span>: [<span class="hljs-string">&quot;87&quot;</span>, <span class="hljs-string">&quot;53&quot;</span>, <span class="hljs-string">&quot;69&quot;</span>],
    <span class="hljs-string">&quot;date of birth&quot;</span>: [<span class="hljs-string">&quot;7 february 1967&quot;</span>, <span class="hljs-string">&quot;10 june 1996&quot;</span>, <span class="hljs-string">&quot;28 november 1967&quot;</span>],
}`}}),{c(){c=a("p"),c.textContent=M,x=r(),f(m.$$.fragment)},l(n){c=o(n,"P",{"data-svelte-h":!0}),d(c)!=="svelte-11lpom8"&&(c.textContent=M),x=i(n),g(m.$$.fragment,n)},m(n,_){p(n,c,_),p(n,x,_),u(m,n,_),v=!0},p:C,i(n){v||(T(m.$$.fragment,n),v=!0)},o(n){b(m.$$.fragment,n),v=!1},d(n){n&&(s(c),s(x)),y(m,n)}}}function Ak(U){let c,M="Example:",x,m,v;return m=new j({props:{code:"aW1wb3J0JTIwcGFuZGFzJTIwYXMlMjBwZCUwQSUwQXRhYmxlJTIwJTNEJTIwcGQuRGF0YUZyYW1lLmZyb21fZGljdChkYXRhKQ==",highlighted:`<span class="hljs-keyword">import</span> pandas <span class="hljs-keyword">as</span> pd

table = pd.DataFrame.from_dict(data)`}}),{c(){c=a("p"),c.textContent=M,x=r(),f(m.$$.fragment)},l(n){c=o(n,"P",{"data-svelte-h":!0}),d(c)!=="svelte-11lpom8"&&(c.textContent=M),x=i(n),g(m.$$.fragment,n)},m(n,_){p(n,c,_),p(n,x,_),u(m,n,_),v=!0},p:C,i(n){v||(T(m.$$.fragment,n),v=!0)},o(n){b(m.$$.fragment,n),v=!1},d(n){n&&(s(c),s(x)),y(m,n)}}}function Nk(U){let c,M="Example:",x,m,v;return m=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBY2xhc3NpZmllciUyMCUzRCUyMHBpcGVsaW5lKG1vZGVsJTNEJTIyZGlzdGlsYmVydC1iYXNlLXVuY2FzZWQtZmluZXR1bmVkLXNzdC0yLWVuZ2xpc2glMjIpJTBBY2xhc3NpZmllciglMjJUaGlzJTIwbW92aWUlMjBpcyUyMGRpc2d1c3RpbmdseSUyMGdvb2QlMjAhJTIyKSUwQSUwQWNsYXNzaWZpZXIoJTIyRGlyZWN0b3IlMjB0cmllZCUyMHRvbyUyMG11Y2guJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>classifier = pipeline(model=<span class="hljs-string">&quot;distilbert-base-uncased-finetuned-sst-2-english&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>classifier(<span class="hljs-string">&quot;This movie is disgustingly good !&quot;</span>)
[{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;POSITIVE&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">1.0</span>}]

<span class="hljs-meta">&gt;&gt;&gt; </span>classifier(<span class="hljs-string">&quot;Director tried too much.&quot;</span>)
[{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;NEGATIVE&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.996</span>}]`}}),{c(){c=a("p"),c.textContent=M,x=r(),f(m.$$.fragment)},l(n){c=o(n,"P",{"data-svelte-h":!0}),d(c)!=="svelte-11lpom8"&&(c.textContent=M),x=i(n),g(m.$$.fragment,n)},m(n,_){p(n,c,_),p(n,x,_),u(m,n,_),v=!0},p:C,i(n){v||(T(m.$$.fragment,n),v=!0)},o(n){b(m.$$.fragment,n),v=!1},d(n){n&&(s(c),s(x)),y(m,n)}}}function Zk(U){let c,M="Example:",x,m,v;return m=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZ2VuZXJhdG9yJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJncHQyJTIyKSUwQWdlbmVyYXRvciglMjJJJTIwY2FuJ3QlMjBiZWxpZXZlJTIweW91JTIwZGlkJTIwc3VjaCUyMGElMjAlMjIlMkMlMjBkb19zYW1wbGUlM0RGYWxzZSklMEElMEElMjMlMjBUaGVzZSUyMHBhcmFtZXRlcnMlMjB3aWxsJTIwcmV0dXJuJTIwc3VnZ2VzdGlvbnMlMkMlMjBhbmQlMjBvbmx5JTIwdGhlJTIwbmV3bHklMjBjcmVhdGVkJTIwdGV4dCUyMG1ha2luZyUyMGl0JTIwZWFzaWVyJTIwZm9yJTIwcHJvbXB0aW5nJTIwc3VnZ2VzdGlvbnMuJTBBb3V0cHV0cyUyMCUzRCUyMGdlbmVyYXRvciglMjJNeSUyMHRhcnQlMjBuZWVkcyUyMHNvbWUlMjIlMkMlMjBudW1fcmV0dXJuX3NlcXVlbmNlcyUzRDQlMkMlMjByZXR1cm5fZnVsbF90ZXh0JTNERmFsc2Up",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>generator = pipeline(model=<span class="hljs-string">&quot;gpt2&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>generator(<span class="hljs-string">&quot;I can&#x27;t believe you did such a &quot;</span>, do_sample=<span class="hljs-literal">False</span>)
[{<span class="hljs-string">&#x27;generated_text&#x27;</span>: <span class="hljs-string">&quot;I can&#x27;t believe you did such a icky thing to me. I&#x27;m so sorry. I&#x27;m so sorry. I&#x27;m so sorry. I&#x27;m so sorry. I&#x27;m so sorry. I&#x27;m so sorry. I&#x27;m so sorry. I&quot;</span>}]

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># These parameters will return suggestions, and only the newly created text making it easier for prompting suggestions.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = generator(<span class="hljs-string">&quot;My tart needs some&quot;</span>, num_return_sequences=<span class="hljs-number">4</span>, return_full_text=<span class="hljs-literal">False</span>)`}}),{c(){c=a("p"),c.textContent=M,x=r(),f(m.$$.fragment)},l(n){c=o(n,"P",{"data-svelte-h":!0}),d(c)!=="svelte-11lpom8"&&(c.textContent=M),x=i(n),g(m.$$.fragment,n)},m(n,_){p(n,c,_),p(n,x,_),u(m,n,_),v=!0},p:C,i(n){v||(T(m.$$.fragment,n),v=!0)},o(n){b(m.$$.fragment,n),v=!1},d(n){n&&(s(c),s(x)),y(m,n)}}}function Fk(U){let c,M="Example:",x,m,v;return m=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZ2VuZXJhdG9yJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJtcm04NDg4JTJGdDUtYmFzZS1maW5ldHVuZWQtcXVlc3Rpb24tZ2VuZXJhdGlvbi1hcCUyMiklMEFnZW5lcmF0b3IoJTBBJTIwJTIwJTIwJTIwJTIyYW5zd2VyJTNBJTIwTWFudWVsJTIwY29udGV4dCUzQSUyME1hbnVlbCUyMGhhcyUyMGNyZWF0ZWQlMjBSdVBFUlRhLWJhc2UlMjB3aXRoJTIwdGhlJTIwc3VwcG9ydCUyMG9mJTIwSEYtVHJhbnNmb3JtZXJzJTIwYW5kJTIwR29vZ2xlJTIyJTBBKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>generator = pipeline(model=<span class="hljs-string">&quot;mrm8488/t5-base-finetuned-question-generation-ap&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>generator(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;answer: Manuel context: Manuel has created RuPERTa-base with the support of HF-Transformers and Google&quot;</span>
<span class="hljs-meta">... </span>)
[{<span class="hljs-string">&#x27;generated_text&#x27;</span>: <span class="hljs-string">&#x27;question: Who created the RuPERTa-base?&#x27;</span>}]`}}),{c(){c=a("p"),c.textContent=M,x=r(),f(m.$$.fragment)},l(n){c=o(n,"P",{"data-svelte-h":!0}),d(c)!=="svelte-11lpom8"&&(c.textContent=M),x=i(n),g(m.$$.fragment,n)},m(n,_){p(n,c,_),p(n,x,_),u(m,n,_),v=!0},p:C,i(n){v||(T(m.$$.fragment,n),v=!0)},o(n){b(m.$$.fragment,n),v=!1},d(n){n&&(s(c),s(x)),y(m,n)}}}function Dk(U){let c,M="Usage:",x,m,v;return m=new j({props:{code:"dGV4dDJ0ZXh0X2dlbmVyYXRvciUyMCUzRCUyMHBpcGVsaW5lKCUyMnRleHQydGV4dC1nZW5lcmF0aW9uJTIyKSUwQXRleHQydGV4dF9nZW5lcmF0b3IoJTIycXVlc3Rpb24lM0ElMjBXaGF0JTIwaXMlMjA0MiUyMCUzRiUyMGNvbnRleHQlM0ElMjA0MiUyMGlzJTIwdGhlJTIwYW5zd2VyJTIwdG8lMjBsaWZlJTJDJTIwdGhlJTIwdW5pdmVyc2UlMjBhbmQlMjBldmVyeXRoaW5nJTIyKQ==",highlighted:`text2text_generator = pipeline(<span class="hljs-string">&quot;text2text-generation&quot;</span>)
text2text_generator(<span class="hljs-string">&quot;question: What is 42 ? context: 42 is the answer to life, the universe and everything&quot;</span>)`}}),{c(){c=a("p"),c.textContent=M,x=r(),f(m.$$.fragment)},l(n){c=o(n,"P",{"data-svelte-h":!0}),d(c)!=="svelte-5wyjqd"&&(c.textContent=M),x=i(n),g(m.$$.fragment,n)},m(n,_){p(n,c,_),p(n,x,_),u(m,n,_),v=!0},p:C,i(n){v||(T(m.$$.fragment,n),v=!0)},o(n){b(m.$$.fragment,n),v=!1},d(n){n&&(s(c),s(x)),y(m,n)}}}function Rk(U){let c,M="Example:",x,m,v;return m=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBdG9rZW5fY2xhc3NpZmllciUyMCUzRCUyMHBpcGVsaW5lKG1vZGVsJTNEJTIySmVhbi1CYXB0aXN0ZSUyRmNhbWVtYmVydC1uZXIlMjIlMkMlMjBhZ2dyZWdhdGlvbl9zdHJhdGVneSUzRCUyMnNpbXBsZSUyMiklMEFzZW50ZW5jZSUyMCUzRCUyMCUyMkplJTIwbSdhcHBlbGxlJTIwamVhbi1iYXB0aXN0ZSUyMGV0JTIwamUlMjB2aXMlMjAlQzMlQTAlMjBtb250ciVDMyVBOWFsJTIyJTBBdG9rZW5zJTIwJTNEJTIwdG9rZW5fY2xhc3NpZmllcihzZW50ZW5jZSklMEF0b2tlbnMlMEElMEF0b2tlbiUyMCUzRCUyMHRva2VucyU1QjAlNUQlMEElMjMlMjBTdGFydCUyMGFuZCUyMGVuZCUyMHByb3ZpZGUlMjBhbiUyMGVhc3klMjB3YXklMjB0byUyMGhpZ2hsaWdodCUyMHdvcmRzJTIwaW4lMjB0aGUlMjBvcmlnaW5hbCUyMHRleHQuJTBBc2VudGVuY2UlNUJ0b2tlbiU1QiUyMnN0YXJ0JTIyJTVEJTIwJTNBJTIwdG9rZW4lNUIlMjJlbmQlMjIlNUQlNUQlMEElMEElMjMlMjBTb21lJTIwbW9kZWxzJTIwdXNlJTIwdGhlJTIwc2FtZSUyMGlkZWElMjB0byUyMGRvJTIwcGFydCUyMG9mJTIwc3BlZWNoLiUwQXN5bnRheGVyJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJ2YmxhZ29qZSUyRmJlcnQtZW5nbGlzaC11bmNhc2VkLWZpbmV0dW5lZC1wb3MlMjIlMkMlMjBhZ2dyZWdhdGlvbl9zdHJhdGVneSUzRCUyMnNpbXBsZSUyMiklMEFzeW50YXhlciglMjJNeSUyMG5hbWUlMjBpcyUyMFNhcmFoJTIwYW5kJTIwSSUyMGxpdmUlMjBpbiUyMExvbmRvbiUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>token_classifier = pipeline(model=<span class="hljs-string">&quot;Jean-Baptiste/camembert-ner&quot;</span>, aggregation_strategy=<span class="hljs-string">&quot;simple&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>sentence = <span class="hljs-string">&quot;Je m&#x27;appelle jean-baptiste et je vis à montréal&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>tokens = token_classifier(sentence)
<span class="hljs-meta">&gt;&gt;&gt; </span>tokens
[{<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;PER&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.9931</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;jean-baptiste&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">12</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">26</span>}, {<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;LOC&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.998</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;montréal&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">38</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">47</span>}]

<span class="hljs-meta">&gt;&gt;&gt; </span>token = tokens[<span class="hljs-number">0</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Start and end provide an easy way to highlight words in the original text.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>sentence[token[<span class="hljs-string">&quot;start&quot;</span>] : token[<span class="hljs-string">&quot;end&quot;</span>]]
<span class="hljs-string">&#x27; jean-baptiste&#x27;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Some models use the same idea to do part of speech.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>syntaxer = pipeline(model=<span class="hljs-string">&quot;vblagoje/bert-english-uncased-finetuned-pos&quot;</span>, aggregation_strategy=<span class="hljs-string">&quot;simple&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>syntaxer(<span class="hljs-string">&quot;My name is Sarah and I live in London&quot;</span>)
[{<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;PRON&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.999</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;my&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">0</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">2</span>}, {<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;NOUN&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.997</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;name&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">3</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">7</span>}, {<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;AUX&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.994</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;is&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">8</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">10</span>}, {<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;PROPN&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.999</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;sarah&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">11</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">16</span>}, {<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;CCONJ&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.999</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;and&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">17</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">20</span>}, {<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;PRON&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.999</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;i&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">21</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">22</span>}, {<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;VERB&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.998</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;live&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">23</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">27</span>}, {<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;ADP&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.999</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;in&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">28</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">30</span>}, {<span class="hljs-string">&#x27;entity_group&#x27;</span>: <span class="hljs-string">&#x27;PROPN&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.999</span>, <span class="hljs-string">&#x27;word&#x27;</span>: <span class="hljs-string">&#x27;london&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">31</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">37</span>}]`}}),{c(){c=a("p"),c.textContent=M,x=r(),f(m.$$.fragment)},l(n){c=o(n,"P",{"data-svelte-h":!0}),d(c)!=="svelte-11lpom8"&&(c.textContent=M),x=i(n),g(m.$$.fragment,n)},m(n,_){p(n,c,_),p(n,x,_),u(m,n,_),v=!0},p:C,i(n){v||(T(m.$$.fragment,n),v=!0)},o(n){b(m.$$.fragment,n),v=!1},d(n){n&&(s(c),s(x)),y(m,n)}}}function Sk(U){let c,M="Usage:",x,m,v;return m=new j({props:{code:"ZW5fZnJfdHJhbnNsYXRvciUyMCUzRCUyMHBpcGVsaW5lKCUyMnRyYW5zbGF0aW9uX2VuX3RvX2ZyJTIyKSUwQWVuX2ZyX3RyYW5zbGF0b3IoJTIySG93JTIwb2xkJTIwYXJlJTIweW91JTNGJTIyKQ==",highlighted:`en_fr_translator = pipeline(<span class="hljs-string">&quot;translation_en_to_fr&quot;</span>)
en_fr_translator(<span class="hljs-string">&quot;How old are you?&quot;</span>)`}}),{c(){c=a("p"),c.textContent=M,x=r(),f(m.$$.fragment)},l(n){c=o(n,"P",{"data-svelte-h":!0}),d(c)!=="svelte-5wyjqd"&&(c.textContent=M),x=i(n),g(m.$$.fragment,n)},m(n,_){p(n,c,_),p(n,x,_),u(m,n,_),v=!0},p:C,i(n){v||(T(m.$$.fragment,n),v=!0)},o(n){b(m.$$.fragment,n),v=!1},d(n){n&&(s(c),s(x)),y(m,n)}}}function Bk(U){let c,M="Example:",x,m,v;return m=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBb3JhY2xlJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJmYWNlYm9vayUyRmJhcnQtbGFyZ2UtbW5saSUyMiklMEFvcmFjbGUoJTBBJTIwJTIwJTIwJTIwJTIySSUyMGhhdmUlMjBhJTIwcHJvYmxlbSUyMHdpdGglMjBteSUyMGlwaG9uZSUyMHRoYXQlMjBuZWVkcyUyMHRvJTIwYmUlMjByZXNvbHZlZCUyMGFzYXAhISUyMiUyQyUwQSUyMCUyMCUyMCUyMGNhbmRpZGF0ZV9sYWJlbHMlM0QlNUIlMjJ1cmdlbnQlMjIlMkMlMjAlMjJub3QlMjB1cmdlbnQlMjIlMkMlMjAlMjJwaG9uZSUyMiUyQyUyMCUyMnRhYmxldCUyMiUyQyUyMCUyMmNvbXB1dGVyJTIyJTVEJTJDJTBBKSUwQSUwQW9yYWNsZSglMEElMjAlMjAlMjAlMjAlMjJJJTIwaGF2ZSUyMGElMjBwcm9ibGVtJTIwd2l0aCUyMG15JTIwaXBob25lJTIwdGhhdCUyMG5lZWRzJTIwdG8lMjBiZSUyMHJlc29sdmVkJTIwYXNhcCEhJTIyJTJDJTBBJTIwJTIwJTIwJTIwY2FuZGlkYXRlX2xhYmVscyUzRCU1QiUyMmVuZ2xpc2glMjIlMkMlMjAlMjJnZXJtYW4lMjIlNUQlMkMlMEEp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>oracle = pipeline(model=<span class="hljs-string">&quot;facebook/bart-large-mnli&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>oracle(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;I have a problem with my iphone that needs to be resolved asap!!&quot;</span>,
<span class="hljs-meta">... </span>    candidate_labels=[<span class="hljs-string">&quot;urgent&quot;</span>, <span class="hljs-string">&quot;not urgent&quot;</span>, <span class="hljs-string">&quot;phone&quot;</span>, <span class="hljs-string">&quot;tablet&quot;</span>, <span class="hljs-string">&quot;computer&quot;</span>],
<span class="hljs-meta">... </span>)
{<span class="hljs-string">&#x27;sequence&#x27;</span>: <span class="hljs-string">&#x27;I have a problem with my iphone that needs to be resolved asap!!&#x27;</span>, <span class="hljs-string">&#x27;labels&#x27;</span>: [<span class="hljs-string">&#x27;urgent&#x27;</span>, <span class="hljs-string">&#x27;phone&#x27;</span>, <span class="hljs-string">&#x27;computer&#x27;</span>, <span class="hljs-string">&#x27;not urgent&#x27;</span>, <span class="hljs-string">&#x27;tablet&#x27;</span>], <span class="hljs-string">&#x27;scores&#x27;</span>: [<span class="hljs-number">0.504</span>, <span class="hljs-number">0.479</span>, <span class="hljs-number">0.013</span>, <span class="hljs-number">0.003</span>, <span class="hljs-number">0.002</span>]}

<span class="hljs-meta">&gt;&gt;&gt; </span>oracle(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;I have a problem with my iphone that needs to be resolved asap!!&quot;</span>,
<span class="hljs-meta">... </span>    candidate_labels=[<span class="hljs-string">&quot;english&quot;</span>, <span class="hljs-string">&quot;german&quot;</span>],
<span class="hljs-meta">... </span>)
{<span class="hljs-string">&#x27;sequence&#x27;</span>: <span class="hljs-string">&#x27;I have a problem with my iphone that needs to be resolved asap!!&#x27;</span>, <span class="hljs-string">&#x27;labels&#x27;</span>: [<span class="hljs-string">&#x27;english&#x27;</span>, <span class="hljs-string">&#x27;german&#x27;</span>], <span class="hljs-string">&#x27;scores&#x27;</span>: [<span class="hljs-number">0.814</span>, <span class="hljs-number">0.186</span>]}`}}),{c(){c=a("p"),c.textContent=M,x=r(),f(m.$$.fragment)},l(n){c=o(n,"P",{"data-svelte-h":!0}),d(c)!=="svelte-11lpom8"&&(c.textContent=M),x=i(n),g(m.$$.fragment,n)},m(n,_){p(n,c,_),p(n,x,_),u(m,n,_),v=!0},p:C,i(n){v||(T(m.$$.fragment,n),v=!0)},o(n){b(m.$$.fragment,n),v=!1},d(n){n&&(s(c),s(x)),y(m,n)}}}function Vk(U){let c,M="Example:",x,m,v;return m=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZG9jdW1lbnRfcWElMjAlM0QlMjBwaXBlbGluZShtb2RlbCUzRCUyMmltcGlyYSUyRmxheW91dGxtLWRvY3VtZW50LXFhJTIyKSUwQWRvY3VtZW50X3FhKCUwQSUyMCUyMCUyMCUyMGltYWdlJTNEJTIyaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRnNwYWNlcyUyRmltcGlyYSUyRmRvY3F1ZXJ5JTJGcmVzb2x2ZSUyRjIzNTkyMjNjMTgzN2E3NTg3NDAyYmRhMGYyNjQzMzgyYTZlZWZlYWIlMkZpbnZvaWNlLnBuZyUyMiUyQyUwQSUyMCUyMCUyMCUyMHF1ZXN0aW9uJTNEJTIyV2hhdCUyMGlzJTIwdGhlJTIwaW52b2ljZSUyMG51bWJlciUzRiUyMiUyQyUwQSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>document_qa = pipeline(model=<span class="hljs-string">&quot;impira/layoutlm-document-qa&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>document_qa(
<span class="hljs-meta">... </span>    image=<span class="hljs-string">&quot;https://huggingface.co/spaces/impira/docquery/resolve/2359223c1837a7587402bda0f2643382a6eefeab/invoice.png&quot;</span>,
<span class="hljs-meta">... </span>    question=<span class="hljs-string">&quot;What is the invoice number?&quot;</span>,
<span class="hljs-meta">... </span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.425</span>, <span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;us-001&#x27;</span>, <span class="hljs-string">&#x27;start&#x27;</span>: <span class="hljs-number">16</span>, <span class="hljs-string">&#x27;end&#x27;</span>: <span class="hljs-number">16</span>}]`}}),{c(){c=a("p"),c.textContent=M,x=r(),f(m.$$.fragment)},l(n){c=o(n,"P",{"data-svelte-h":!0}),d(c)!=="svelte-11lpom8"&&(c.textContent=M),x=i(n),g(m.$$.fragment,n)},m(n,_){p(n,c,_),p(n,x,_),u(m,n,_),v=!0},p:C,i(n){v||(T(m.$$.fragment,n),v=!0)},o(n){b(m.$$.fragment,n),v=!1},d(n){n&&(s(c),s(x)),y(m,n)}}}function Ek(U){let c,M="Example:",x,m,v;return m=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZXh0cmFjdG9yJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJiZXJ0LWJhc2UtdW5jYXNlZCUyMiUyQyUyMHRhc2slM0QlMjJmZWF0dXJlLWV4dHJhY3Rpb24lMjIpJTBBcmVzdWx0JTIwJTNEJTIwZXh0cmFjdG9yKCUyMlRoaXMlMjBpcyUyMGElMjBzaW1wbGUlMjB0ZXN0LiUyMiUyQyUyMHJldHVybl90ZW5zb3JzJTNEVHJ1ZSklMEFyZXN1bHQuc2hhcGUlMjAlMjAlMjMlMjBUaGlzJTIwaXMlMjBhJTIwdGVuc29yJTIwb2YlMjBzaGFwZSUyMCU1QjElMkMlMjBzZXF1ZW5jZV9sZW50aCUyQyUyMGhpZGRlbl9kaW1lbnNpb24lNUQlMjByZXByZXNlbnRpbmclMjB0aGUlMjBpbnB1dCUyMHN0cmluZy4=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>extractor = pipeline(model=<span class="hljs-string">&quot;bert-base-uncased&quot;</span>, task=<span class="hljs-string">&quot;feature-extraction&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>result = extractor(<span class="hljs-string">&quot;This is a simple test.&quot;</span>, return_tensors=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>result.shape  <span class="hljs-comment"># This is a tensor of shape [1, sequence_lenth, hidden_dimension] representing the input string.</span>
torch.Size([<span class="hljs-number">1</span>, <span class="hljs-number">8</span>, <span class="hljs-number">768</span>])`}}),{c(){c=a("p"),c.textContent=M,x=r(),f(m.$$.fragment)},l(n){c=o(n,"P",{"data-svelte-h":!0}),d(c)!=="svelte-11lpom8"&&(c.textContent=M),x=i(n),g(m.$$.fragment,n)},m(n,_){p(n,c,_),p(n,x,_),u(m,n,_),v=!0},p:C,i(n){v||(T(m.$$.fragment,n),v=!0)},o(n){b(m.$$.fragment,n),v=!1},d(n){n&&(s(c),s(x)),y(m,n)}}}function Lk(U){let c,M="Example:",x,m,v;return m=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBY2FwdGlvbmVyJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJ5ZHNoaWVoJTJGdml0LWdwdDItY29jby1lbiUyMiklMEFjYXB0aW9uZXIoJTIyaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRmRhdGFzZXRzJTJGTmFyc2lsJTJGaW1hZ2VfZHVtbXklMkZyYXclMkZtYWluJTJGcGFycm90cy5wbmclMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>captioner = pipeline(model=<span class="hljs-string">&quot;ydshieh/vit-gpt2-coco-en&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>captioner(<span class="hljs-string">&quot;https://huggingface.co/datasets/Narsil/image_dummy/raw/main/parrots.png&quot;</span>)
[{<span class="hljs-string">&#x27;generated_text&#x27;</span>: <span class="hljs-string">&#x27;two birds are standing next to each other &#x27;</span>}]`}}),{c(){c=a("p"),c.textContent=M,x=r(),f(m.$$.fragment)},l(n){c=o(n,"P",{"data-svelte-h":!0}),d(c)!=="svelte-11lpom8"&&(c.textContent=M),x=i(n),g(m.$$.fragment,n)},m(n,_){p(n,c,_),p(n,x,_),u(m,n,_),v=!0},p:C,i(n){v||(T(m.$$.fragment,n),v=!0)},o(n){b(m.$$.fragment,n),v=!1},d(n){n&&(s(c),s(x)),y(m,n)}}}function Wk(U){let c,M="Example:",x,m,v;return m=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBb3JhY2xlJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJkYW5kZWxpbiUyRnZpbHQtYjMyLWZpbmV0dW5lZC12cWElMjIpJTBBaW1hZ2VfdXJsJTIwJTNEJTIwJTIyaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRmRhdGFzZXRzJTJGTmFyc2lsJTJGaW1hZ2VfZHVtbXklMkZyYXclMkZtYWluJTJGbGVuYS5wbmclMjIlMEFvcmFjbGUocXVlc3Rpb24lM0QlMjJXaGF0JTIwaXMlMjBzaGUlMjB3ZWFyaW5nJTIwJTNGJTIyJTJDJTIwaW1hZ2UlM0RpbWFnZV91cmwpJTBBJTBBb3JhY2xlKHF1ZXN0aW9uJTNEJTIyV2hhdCUyMGlzJTIwc2hlJTIwd2VhcmluZyUyMCUzRiUyMiUyQyUyMGltYWdlJTNEaW1hZ2VfdXJsJTJDJTIwdG9wX2slM0QxKSUwQSUwQW9yYWNsZShxdWVzdGlvbiUzRCUyMklzJTIwdGhpcyUyMGElMjBwZXJzb24lMjAlM0YlMjIlMkMlMjBpbWFnZSUzRGltYWdlX3VybCUyQyUyMHRvcF9rJTNEMSklMEElMEFvcmFjbGUocXVlc3Rpb24lM0QlMjJJcyUyMHRoaXMlMjBhJTIwbWFuJTIwJTNGJTIyJTJDJTIwaW1hZ2UlM0RpbWFnZV91cmwlMkMlMjB0b3BfayUzRDEp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>oracle = pipeline(model=<span class="hljs-string">&quot;dandelin/vilt-b32-finetuned-vqa&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image_url = <span class="hljs-string">&quot;https://huggingface.co/datasets/Narsil/image_dummy/raw/main/lena.png&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>oracle(question=<span class="hljs-string">&quot;What is she wearing ?&quot;</span>, image=image_url)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.948</span>, <span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;hat&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.009</span>, <span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;fedora&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.003</span>, <span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;clothes&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.003</span>, <span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;sun hat&#x27;</span>}, {<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.002</span>, <span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;nothing&#x27;</span>}]

<span class="hljs-meta">&gt;&gt;&gt; </span>oracle(question=<span class="hljs-string">&quot;What is she wearing ?&quot;</span>, image=image_url, top_k=<span class="hljs-number">1</span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.948</span>, <span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;hat&#x27;</span>}]

<span class="hljs-meta">&gt;&gt;&gt; </span>oracle(question=<span class="hljs-string">&quot;Is this a person ?&quot;</span>, image=image_url, top_k=<span class="hljs-number">1</span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.993</span>, <span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;yes&#x27;</span>}]

<span class="hljs-meta">&gt;&gt;&gt; </span>oracle(question=<span class="hljs-string">&quot;Is this a man ?&quot;</span>, image=image_url, top_k=<span class="hljs-number">1</span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.996</span>, <span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;no&#x27;</span>}]`}}),{c(){c=a("p"),c.textContent=M,x=r(),f(m.$$.fragment)},l(n){c=o(n,"P",{"data-svelte-h":!0}),d(c)!=="svelte-11lpom8"&&(c.textContent=M),x=i(n),g(m.$$.fragment,n)},m(n,_){p(n,c,_),p(n,x,_),u(m,n,_),v=!0},p:C,i(n){v||(T(m.$$.fragment,n),v=!0)},o(n){b(m.$$.fragment,n),v=!1},d(n){n&&(s(c),s(x)),y(m,n)}}}function Ok(U){let c,M="Examples:",x,m,v;return m=new j({props:{code:"JTIzJTIwRXhwbGljaXRseSUyMGFzayUyMGZvciUyMHRlbnNvciUyMGFsbG9jYXRpb24lMjBvbiUyMENVREElMjBkZXZpY2UlMjAlM0EwJTBBcGlwZSUyMCUzRCUyMHBpcGVsaW5lKC4uLiUyQyUyMGRldmljZSUzRDApJTBBd2l0aCUyMHBpcGUuZGV2aWNlX3BsYWNlbWVudCgpJTNBJTBBJTIwJTIwJTIwJTIwJTIzJTIwRXZlcnklMjBmcmFtZXdvcmslMjBzcGVjaWZpYyUyMHRlbnNvciUyMGFsbG9jYXRpb24lMjB3aWxsJTIwYmUlMjBkb25lJTIwb24lMjB0aGUlMjByZXF1ZXN0JTIwZGV2aWNlJTBBJTIwJTIwJTIwJTIwb3V0cHV0JTIwJTNEJTIwcGlwZSguLi4p",highlighted:`<span class="hljs-comment"># Explicitly ask for tensor allocation on CUDA device :0</span>
pipe = pipeline(..., device=<span class="hljs-number">0</span>)
<span class="hljs-keyword">with</span> pipe.device_placement():
    <span class="hljs-comment"># Every framework specific tensor allocation will be done on the request device</span>
    output = pipe(...)`}}),{c(){c=a("p"),c.textContent=M,x=r(),f(m.$$.fragment)},l(n){c=o(n,"P",{"data-svelte-h":!0}),d(c)!=="svelte-kvfsh7"&&(c.textContent=M),x=i(n),g(m.$$.fragment,n)},m(n,_){p(n,c,_),p(n,x,_),u(m,n,_),v=!0},p:C,i(n){v||(T(m.$$.fragment,n),v=!0)},o(n){b(m.$$.fragment,n),v=!1},d(n){n&&(s(c),s(x)),y(m,n)}}}function Hk(U){let c,M,x,m,v,n,_,zs,gg,Wr,Aw="Pipelines",Hd,As,Nw=`The pipelines are a great and easy way to use models for inference. These pipelines are objects that abstract most of
the complex code from the library, offering a simple API dedicated to several tasks, including Named Entity
Recognition, Masked Language Modeling, Sentiment Analysis, Feature Extraction and Question Answering. See the
<a href="../task_summary">task summary</a> for examples of use.`,Yd,Ns,Zw="There are two categories of pipeline abstractions to be aware about:",Qd,Zs,Fw='<li>The <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> which is the most powerful object encapsulating all other pipelines.</li> <li>Task-specific pipelines are available for <a href="#audio">audio</a>, <a href="#computer-vision">computer vision</a>, <a href="#natural-language-processing">natural language processing</a>, and <a href="#multimodal">multimodal</a> tasks.</li>',Xd,Le,Ct,Lc,Fs,ug,Or,Dw="The pipeline abstraction",Kd,Ds,Rw=`The <em>pipeline</em> abstraction is a wrapper around all the other available pipelines. It is instantiated as any other
pipeline but can provide additional quality of life.`,em,Rs,Sw="Simple call on one item:",tm,Ss,nm,Bs,Bw=`If you want to use a specific model from the <a href="https://huggingface.co" rel="nofollow">hub</a> you can ignore the task if the model on
the hub already defines it:`,sm,Vs,am,Es,Vw="To call a pipeline on many items, you can call it with a <em>list</em>.",om,Ls,rm,Ws,Ew=`To iterate over full datasets it is recommended to use a <code>dataset</code> directly. This means you don’t need to allocate
the whole dataset at once, nor do you need to do batching yourself. This should work just as fast as custom loops on
GPU. If it doesn’t don’t hesitate to create an issue.`,im,Os,lm,Hs,Lw="For ease of use, a generator is also possible:",pm,Ys,cm,fe,Qs,Tg,Hr,Ww='Utility factory method to build a <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.Pipeline">Pipeline</a>.',bg,Yr,Ow="Pipelines are made of:",yg,Qr,Hw='<li>A <a href="tokenizer">tokenizer</a> in charge of mapping raw textual input to token.</li> <li>A <a href="model">model</a> to make predictions from the inputs.</li> <li>Some (optional) post processing for enhancing model’s output.</li>',wg,$t,dm,We,Jt,Wc,Xs,xg,Xr,Yw="Pipeline batching",mm,Ks,Qw=`All pipelines can use batching. This will work
whenever the pipeline uses its streaming ability (so when passing lists or <code>Dataset</code> or <code>generator</code>).`,hm,ea,fm,It,gm,ta,um,na,Tm,sa,Xw="Example where it’s most a slowdown:",bm,aa,ym,oa,Kw=`This is a occasional very long sentence compared to the other. In that case, the <strong>whole</strong> batch will need to be 400
tokens long, so the whole batch will be [64, 400] instead of [64, 4], leading to the high slowdown. Even worse, on
bigger batches, the program simply crashes.`,wm,ra,xm,ia,ex=`There are no good (general) solutions for this problem, and your mileage may vary depending on your use cases. Rule of
thumb:`,vm,la,tx="For users, a rule of thumb is:",_m,pa,nx=`<li><p><strong>Measure performance on your load, with your hardware. Measure, measure, and keep measuring. Real numbers are the
only way to go.</strong></p></li> <li><p>If you are latency constrained (live product doing inference), don’t batch</p></li> <li><p>If you are using CPU, don’t batch.</p></li> <li><p>If you are using throughput (you want to run your model on a bunch of static data), on GPU, then:</p> <ul><li>If you have no clue about the size of the sequence_length (“natural” data), by default don’t batch, measure and
try tentatively to add it, add OOM checks to recover when it will fail (and it will at some point if you don’t
control the sequence_length.)</li> <li>If your sequence_length is super regular, then batching is more likely to be VERY interesting, measure and push
it until you get OOMs.</li> <li>The larger the GPU the more likely batching is going to be more interesting</li></ul></li> <li><p>As soon as you enable batching, make sure you can handle OOMs nicely.</p></li>`,Mm,Oe,qt,Oc,ca,vg,Kr,sx="Pipeline chunk batching",km,da,ax=`<code>zero-shot-classification</code> and <code>question-answering</code> are slightly specific in the sense, that a single input might yield
multiple forward pass of a model. Under normal circumstances, this would yield issues with <code>batch_size</code> argument.`,Um,ma,ox=`In order to circumvent this issue, both of these pipelines are a bit specific, they are <code>ChunkPipeline</code> instead of
regular <code>Pipeline</code>. In short:`,jm,ha,Pm,fa,rx="Now becomes:",Cm,ga,$m,ua,ix=`This should be very transparent to your code because the pipelines are used in
the same way.`,Jm,Ta,lx=`This is a simplified view, since the pipeline can handle automatically the batch to ! Meaning you don’t have to care
about how many forward passes you inputs are actually going to trigger, you can optimize the <code>batch_size</code>
independently of the inputs. The caveats from the previous section still apply.`,Im,He,Gt,Hc,ba,_g,ei,px="Pipeline custom code",qm,ya,cx="If you want to override a specific pipeline.",Gm,wa,dx=`Don’t hesitate to create an issue for your task at hand, the goal of the pipeline is to be easy to use and support most
cases, so <code>transformers</code> could maybe support your use case.`,zm,xa,mx="If you want to try simply you can:",Am,va,hx="<li>Subclass your pipeline of choice</li>",Nm,_a,Zm,Ma,fx="That should enable you to do all the custom code you want.",Fm,Ye,zt,Yc,ka,Mg,ti,gx="Implementing a pipeline",Dm,Ua,ux='<a href="../add_new_pipeline">Implementing a new pipeline</a>',Rm,Qe,At,Qc,ja,kg,ni,Tx="Audio",Sm,Pa,bx="Pipelines available for audio tasks include the following.",Bm,Xe,Nt,Xc,Ca,Ug,si,yx="AudioClassificationPipeline",Vm,S,$a,jg,ai,wx=`Audio classification pipeline using any <code>AutoModelForAudioClassification</code>. This pipeline predicts the class of a
raw waveform or an audio file. In case of an audio file, ffmpeg should be installed to support multiple audio
formats.`,Pg,Zt,Cg,oi,xx='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',$g,ri,vx=`This pipeline can currently be loaded from <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;audio-classification&quot;</code>.`,Jg,ii,_x=`See the list of available models on
<a href="https://huggingface.co/models?filter=audio-classification" rel="nofollow">huggingface.co/models</a>.`,Ig,Ft,Ja,qg,li,Mx=`Classify the sequence(s) given as inputs. See the <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.AutomaticSpeechRecognitionPipeline">AutomaticSpeechRecognitionPipeline</a> documentation for more
information.`,Em,Ke,Dt,Kc,Ia,Gg,pi,kx="AutomaticSpeechRecognitionPipeline",Lm,re,qa,zg,ci,Ux="Pipeline that aims at extracting spoken text contained within some audio.",Ag,di,jx=`The input can be either a raw waveform or a audio file. In case of the audio file, ffmpeg should be installed for
to support multiple audio formats`,Ng,Rt,Zg,mi,Px='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Fg,St,Ga,Dg,hi,Cx=`Transcribe the audio sequence(s) given as inputs to text. See the <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.AutomaticSpeechRecognitionPipeline">AutomaticSpeechRecognitionPipeline</a>
documentation for more information.`,Wm,et,Bt,ed,za,Rg,fi,$x="TextToAudioPipeline",Om,B,Aa,Sg,gi,Jx=`Text-to-audio generation pipeline using any <code>AutoModelForTextToWaveform</code> or <code>AutoModelForTextToSpectrogram</code>. This
pipeline generates an audio file from an input text and optional other conditional inputs.`,Bg,Vt,Vg,ui,Ix='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Eg,Ti,qx=`This pipeline can currently be loaded from <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifiers: <code>&quot;text-to-speech&quot;</code> or
<code>&quot;text-to-audio&quot;</code>.`,Lg,bi,Gx='See the list of available models on <a href="https://huggingface.co/models?filter=text-to-speech" rel="nofollow">huggingface.co/models</a>.',Wg,Et,Na,Og,yi,zx='Generates speech/audio from the inputs. See the <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.TextToAudioPipeline">TextToAudioPipeline</a> documentation for more information.',Hm,tt,Lt,td,Za,Hg,wi,Ax="ZeroShotAudioClassificationPipeline",Ym,ge,Fa,Yg,xi,Nx=`Zero shot audio classification pipeline using <code>ClapModel</code>. This pipeline predicts the class of an audio when you
provide an audio and a set of <code>candidate_labels</code>.`,Qg,Wt,Xg,vi,Zx=`Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a> This audio
classification pipeline can currently be loaded from <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;zero-shot-audio-classification&quot;</code>. See the list of available models on
<a href="https://huggingface.co/models?filter=zero-shot-audio-classification" rel="nofollow">huggingface.co/models</a>.`,Kg,Ot,Da,eu,_i,Fx="Assign labels to the audio(s) passed as inputs.",Qm,nt,Ht,nd,Ra,tu,Mi,Dx="Computer vision",Xm,Sa,Rx="Pipelines available for computer vision tasks include the following.",Km,st,Yt,sd,Ba,nu,ki,Sx="DepthEstimationPipeline",eh,V,Va,su,Ui,Bx="Depth estimation pipeline using any <code>AutoModelForDepthEstimation</code>. This pipeline predicts the depth of an image.",au,Qt,ou,ji,Vx='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',ru,Pi,Ex=`This depth estimation pipeline can currently be loaded from <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;depth-estimation&quot;</code>.`,iu,Ci,Lx='See the list of available models on <a href="https://huggingface.co/models?filter=depth-estimation" rel="nofollow">huggingface.co/models</a>.',lu,Xt,Ea,pu,$i,Wx="Assign labels to the image(s) passed as inputs.",th,at,Kt,ad,La,cu,Ji,Ox="ImageClassificationPipeline",nh,E,Wa,du,Ii,Hx=`Image classification pipeline using any <code>AutoModelForImageClassification</code>. This pipeline predicts the class of an
image.`,mu,en,hu,qi,Yx='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',fu,Gi,Qx=`This image classification pipeline can currently be loaded from <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;image-classification&quot;</code>.`,gu,zi,Xx=`See the list of available models on
<a href="https://huggingface.co/models?filter=image-classification" rel="nofollow">huggingface.co/models</a>.`,uu,tn,Oa,Tu,Ai,Kx="Assign labels to the image(s) passed as inputs.",sh,ot,nn,od,Ha,bu,Ni,ev="ImageSegmentationPipeline",ah,ie,Ya,yu,Zi,tv=`Image segmentation pipeline using any <code>AutoModelForXXXSegmentation</code>. This pipeline predicts masks of objects and
their classes.`,wu,sn,xu,Fi,nv=`This image segmentation pipeline can currently be loaded from <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;image-segmentation&quot;</code>.`,vu,Di,sv=`See the list of available models on
<a href="https://huggingface.co/models?filter=image-segmentation" rel="nofollow">huggingface.co/models</a>.`,_u,an,Qa,Mu,Ri,av="Perform segmentation (detect masks & classes) in the image(s) passed as inputs.",oh,rt,on,rd,Xa,ku,Si,ov="ObjectDetectionPipeline",rh,L,Ka,Uu,Bi,rv=`Object detection pipeline using any <code>AutoModelForObjectDetection</code>. This pipeline predicts bounding boxes of objects
and their classes.`,ju,rn,Pu,Vi,iv='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Cu,Ei,lv=`This object detection pipeline can currently be loaded from <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;object-detection&quot;</code>.`,$u,Li,pv='See the list of available models on <a href="https://huggingface.co/models?filter=object-detection" rel="nofollow">huggingface.co/models</a>.',Ju,ln,eo,Iu,Wi,cv="Detect objects (bounding boxes & classes) in the image(s) passed as inputs.",ih,it,pn,id,to,qu,Oi,dv="VideoClassificationPipeline",lh,ue,no,Gu,Hi,mv=`Video classification pipeline using any <code>AutoModelForVideoClassification</code>. This pipeline predicts the class of a
video.`,zu,Yi,hv=`This video classification pipeline can currently be loaded from <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;video-classification&quot;</code>.`,Au,Qi,fv=`See the list of available models on
<a href="https://huggingface.co/models?filter=video-classification" rel="nofollow">huggingface.co/models</a>.`,Nu,cn,so,Zu,Xi,gv="Assign labels to the video(s) passed as inputs.",ph,lt,dn,ld,ao,Fu,Ki,uv="ZeroShotImageClassificationPipeline",ch,W,oo,Du,el,Tv=`Zero shot image classification pipeline using <code>CLIPModel</code>. This pipeline predicts the class of an image when you
provide an image and a set of <code>candidate_labels</code>.`,Ru,mn,Su,tl,bv='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Bu,nl,yv=`This image classification pipeline can currently be loaded from <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;zero-shot-image-classification&quot;</code>.`,Vu,sl,wv=`See the list of available models on
<a href="https://huggingface.co/models?filter=zero-shot-image-classification" rel="nofollow">huggingface.co/models</a>.`,Eu,hn,ro,Lu,al,xv="Assign labels to the image(s) passed as inputs.",dh,pt,fn,pd,io,Wu,ol,vv="ZeroShotObjectDetectionPipeline",mh,O,lo,Ou,rl,_v=`Zero shot object detection pipeline using <code>OwlViTForObjectDetection</code>. This pipeline predicts bounding boxes of
objects when you provide an image and a set of <code>candidate_labels</code>.`,Hu,gn,Yu,il,Mv='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Qu,ll,kv=`This object detection pipeline can currently be loaded from <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;zero-shot-object-detection&quot;</code>.`,Xu,pl,Uv=`See the list of available models on
<a href="https://huggingface.co/models?filter=zero-shot-object-detection" rel="nofollow">huggingface.co/models</a>.`,Ku,un,po,eT,cl,jv="Detect objects (bounding boxes & classes) in the image(s) passed as inputs.",hh,ct,Tn,cd,co,tT,dl,Pv="Natural Language Processing",fh,mo,Cv="Pipelines available for natural language processing tasks include the following.",gh,dt,bn,dd,ho,nT,ml,$v="ConversationalPipeline",uh,H,fo,sT,hl,Jv=`Utility class containing a conversation and its history. This class is meant to be used as an input to the
<a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.ConversationalPipeline">ConversationalPipeline</a>. The conversation contains several utility functions to manage the addition of new user
inputs and generated model responses. A conversation needs to contain an unprocessed user input before being passed
to the <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.ConversationalPipeline">ConversationalPipeline</a>. This user input is either created when the class is instantiated, or by calling
<code>conversational_pipeline.append_response(&quot;input&quot;)</code> after a conversation turn.`,aT,yn,oT,wn,go,rT,fl,Iv="Add a user input to the conversation for the next round. This populates the internal <code>new_user_input</code> field.",iT,xn,uo,lT,gl,qv="Append a response to the list of generated responses.",pT,Ze,To,cT,ul,Gv="Iterates over all blobs of the conversation.",dT,Tl,zv=`Returns: Iterator of (is_user, text_chunk) in chronological order of the conversation. <code>is_user</code> is a <code>bool</code>,
<code>text_chunks</code> is a <code>str</code>.`,mT,vn,bo,hT,bl,Av=`Mark the conversation as processed (moves the content of <code>new_user_input</code> to <code>past_user_inputs</code>) and empties
the <code>new_user_input</code> field.`,Th,Y,yo,fT,yl,Nv="Multi-turn conversational pipeline.",gT,_n,uT,wl,Zv='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',TT,xl,Fv=`This conversational pipeline can currently be loaded from <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;conversational&quot;</code>.`,bT,vl,Dv=`The models that this pipeline can use are models that have been fine-tuned on a multi-turn conversational task,
currently: <em>‘microsoft/DialoGPT-small’</em>, <em>‘microsoft/DialoGPT-medium’</em>, <em>‘microsoft/DialoGPT-large’</em>. See the
up-to-date list of available models on
<a href="https://huggingface.co/models?filter=conversational" rel="nofollow">huggingface.co/models</a>.`,yT,Mn,wo,wT,_l,Rv="Generate responses for the conversation(s) given as inputs.",bh,mt,kn,md,xo,xT,Ml,Sv="FillMaskPipeline",yh,Z,vo,vT,kl,Bv=`Masked language modeling prediction pipeline using any <code>ModelWithLMHead</code>. See the <a href="../task_summary#masked-language-modeling">masked language modeling
examples</a> for more information.`,_T,Un,MT,Ul,Vv='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',kT,jl,Ev=`This mask filling pipeline can currently be loaded from <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;fill-mask&quot;</code>.`,UT,Pl,Lv=`The models that this pipeline can use are models that have been trained with a masked language modeling objective,
which includes the bi-directional models in the library. See the up-to-date list of available models on
<a href="https://huggingface.co/models?filter=fill-mask" rel="nofollow">huggingface.co/models</a>.`,jT,jn,PT,Pn,_o,CT,Cl,Wv="Fill the masked token in the text(s) given as inputs.",wh,ht,Cn,hd,Mo,$T,$l,Ov="NerPipeline",xh,G,ko,JT,Jl,Hv=`Named Entity Recognition pipeline using any <code>ModelForTokenClassification</code>. See the <a href="../task_summary#named-entity-recognition">named entity recognition
examples</a> for more information.`,IT,$n,qT,Il,Yv='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',GT,ql,Qv=`This token recognition pipeline can currently be loaded from <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;ner&quot;</code> (for predicting the classes of tokens in a sequence: person, organisation, location or miscellaneous).`,zT,Gl,Xv=`The models that this pipeline can use are models that have been fine-tuned on a token classification task. See the
up-to-date list of available models on
<a href="https://huggingface.co/models?filter=token-classification" rel="nofollow">huggingface.co/models</a>.`,AT,Fe,Uo,NT,zl,Kv="Override tokens from a given word that disagree to force agreement on word boundaries.",ZT,Al,e_=`Example: micro|soft| com|pany| B-ENT I-NAME I-ENT I-ENT will be rewritten with first strategy as microsoft|
company| B-ENT I-ENT`,FT,Jn,jo,DT,Nl,t_="Fuse various numpy arrays into dicts with all the information needed for aggregation",RT,In,Po,ST,Zl,n_="Find and group together the adjacent tokens with the same entity predicted.",BT,qn,Co,VT,Fl,s_="Group together the adjacent tokens with the same entity predicted.",vh,$o,a_='See <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.TokenClassificationPipeline">TokenClassificationPipeline</a> for all details.',_h,ft,Gn,fd,Jo,ET,Dl,o_="QuestionAnsweringPipeline",Mh,z,Io,LT,Rl,r_=`Question Answering pipeline using any <code>ModelForQuestionAnswering</code>. See the <a href="../task_summary#question-answering">question answering
examples</a> for more information.`,WT,zn,OT,Sl,i_='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',HT,Bl,l_=`This question answering pipeline can currently be loaded from <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;question-answering&quot;</code>.`,YT,Vl,p_=`The models that this pipeline can use are models that have been fine-tuned on a question answering task. See the
up-to-date list of available models on
<a href="https://huggingface.co/models?filter=question-answering" rel="nofollow">huggingface.co/models</a>.`,QT,An,qo,XT,El,c_="Answer the question(s) given as inputs by using the context(s).",KT,De,Go,eb,Ll,d_=`QuestionAnsweringPipeline leverages the <code>SquadExample</code> internally. This helper method encapsulate all the
logic for converting question(s) and context(s) to <code>SquadExample</code>.`,tb,Wl,m_="We currently support extractive question answering.",nb,Nn,zo,sb,Ol,h_="When decoding from token probabilities, this method maps token indexes to actual word in the initial context.",kh,gt,Zn,gd,Ao,ab,Hl,f_="SummarizationPipeline",Uh,le,No,ob,Yl,g_="Summarize news articles and other documents.",rb,Ql,u_=`This summarizing pipeline can currently be loaded from <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;summarization&quot;</code>.`,ib,Xl,T_=`The models that this pipeline can use are models that have been fine-tuned on a summarization task, which is
currently, ’<em>bart-large-cnn</em>’, ’<em>t5-small</em>’, ’<em>t5-base</em>’, ’<em>t5-large</em>’, ’<em>t5-3b</em>’, ’<em>t5-11b</em>’. See the up-to-date
list of available models on <a href="https://huggingface.co/models?filter=summarization" rel="nofollow">huggingface.co/models</a>. For a list
of available parameters, see the <a href="https://huggingface.co/docs/transformers/en/main_classes/text_generation#transformers.generation.GenerationMixin.generate" rel="nofollow">following
documentation</a>`,lb,Fn,pb,Dn,Zo,cb,Kl,b_="Summarize the text(s) given as inputs.",jh,ut,Rn,ud,Fo,db,ep,y_="TableQuestionAnsweringPipeline",Ph,Q,Do,mb,tp,w_=`Table Question Answering pipeline using a <code>ModelForTableQuestionAnswering</code>. This pipeline is only available in
PyTorch.`,hb,Sn,fb,np,x_='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',gb,sp,v_=`This tabular question answering pipeline can currently be loaded from <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task
identifier: <code>&quot;table-question-answering&quot;</code>.`,ub,ap,__=`The models that this pipeline can use are models that have been fine-tuned on a tabular question answering task.
See the up-to-date list of available models on
<a href="https://huggingface.co/models?filter=table-question-answering" rel="nofollow">huggingface.co/models</a>.`,Tb,se,Ro,bb,op,M_="Answers queries according to a table. The pipeline accepts several types of inputs which are detailed below:",yb,rp,k_="<li><code>pipeline(table, query)</code></li> <li><code>pipeline(table, [query])</code></li> <li><code>pipeline(table=table, query=query)</code></li> <li><code>pipeline(table=table, query=[query])</code></li> <li><code>pipeline({&quot;table&quot;: table, &quot;query&quot;: query})</code></li> <li><code>pipeline({&quot;table&quot;: table, &quot;query&quot;: [query]})</code></li> <li><code>pipeline([{&quot;table&quot;: table, &quot;query&quot;: query}, {&quot;table&quot;: table, &quot;query&quot;: query}])</code></li>",wb,ip,U_="The <code>table</code> argument should be a dict or a DataFrame built from that dict, containing the whole table:",xb,Bn,vb,lp,j_="This dictionary can be passed in as such, or can be converted to a pandas DataFrame:",_b,Vn,Ch,Tt,En,Td,So,Mb,pp,P_="TextClassificationPipeline",$h,F,Bo,kb,cp,C_=`Text classification pipeline using any <code>ModelForSequenceClassification</code>. See the <a href="../task_summary#sequence-classification">sequence classification
examples</a> for more information.`,Ub,Ln,jb,dp,$_='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Pb,mp,J_=`This text classification pipeline can currently be loaded from <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;sentiment-analysis&quot;</code> (for classifying sequences according to positive or negative sentiments).`,Cb,hp,I_=`If multiple classification labels are available (<code>model.config.num_labels &gt;= 2</code>), the pipeline will run a softmax
over the results. If there is a single label, the pipeline will run a sigmoid over the result.`,$b,fp,q_=`The models that this pipeline can use are models that have been fine-tuned on a sequence classification task. See
the up-to-date list of available models on
<a href="https://huggingface.co/models?filter=text-classification" rel="nofollow">huggingface.co/models</a>.`,Jb,Wn,Vo,Ib,gp,G_="Classify the text(s) given as inputs.",Jh,bt,On,bd,Eo,qb,up,z_="TextGenerationPipeline",Ih,X,Lo,Gb,Tp,A_=`Language generation pipeline using any <code>ModelWithLMHead</code>. This pipeline predicts the words that will follow a
specified text prompt.`,zb,Hn,Ab,bp,N_='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Nb,yp,Z_=`This language generation pipeline can currently be loaded from <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;text-generation&quot;</code>.`,Zb,wp,F_=`The models that this pipeline can use are models that have been trained with an autoregressive language modeling
objective, which includes the uni-directional models in the library (e.g. gpt2). See the list of available models
on <a href="https://huggingface.co/models?filter=text-generation" rel="nofollow">huggingface.co/models</a>.`,Fb,Yn,Wo,Db,xp,D_="Complete the prompt(s) given as inputs.",qh,yt,Qn,yd,Oo,Rb,vp,R_="Text2TextGenerationPipeline",Gh,A,Ho,Sb,_p,S_="Pipeline for text to text generation using seq2seq models.",Bb,Xn,Vb,Mp,B_='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Eb,kp,V_=`This Text2TextGenerationPipeline pipeline can currently be loaded from <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task
identifier: <code>&quot;text2text-generation&quot;</code>.`,Lb,Up,E_=`The models that this pipeline can use are models that have been fine-tuned on a translation task. See the
up-to-date list of available models on
<a href="https://huggingface.co/models?filter=text2text-generation" rel="nofollow">huggingface.co/models</a>. For a list of available
parameters, see the <a href="https://huggingface.co/docs/transformers/en/main_classes/text_generation#transformers.generation.GenerationMixin.generate" rel="nofollow">following
documentation</a>`,Wb,Kn,Ob,es,Yo,Hb,jp,L_="Generate the output text(s) using text(s) given as inputs.",Yb,ts,Qo,Qb,Pp,W_="Checks whether there might be something wrong with given input with regard to the model.",zh,wt,ns,wd,Xo,Xb,Cp,O_="TokenClassificationPipeline",Ah,q,Ko,Kb,$p,H_=`Named Entity Recognition pipeline using any <code>ModelForTokenClassification</code>. See the <a href="../task_summary#named-entity-recognition">named entity recognition
examples</a> for more information.`,ey,ss,ty,Jp,Y_='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',ny,Ip,Q_=`This token recognition pipeline can currently be loaded from <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;ner&quot;</code> (for predicting the classes of tokens in a sequence: person, organisation, location or miscellaneous).`,sy,qp,X_=`The models that this pipeline can use are models that have been fine-tuned on a token classification task. See the
up-to-date list of available models on
<a href="https://huggingface.co/models?filter=token-classification" rel="nofollow">huggingface.co/models</a>.`,ay,as,er,oy,Gp,K_="Classify each token of the text(s) given as inputs.",ry,Re,tr,iy,zp,e2="Override tokens from a given word that disagree to force agreement on word boundaries.",ly,Ap,t2=`Example: micro|soft| com|pany| B-ENT I-NAME I-ENT I-ENT will be rewritten with first strategy as microsoft|
company| B-ENT I-ENT`,py,os,nr,cy,Np,n2="Fuse various numpy arrays into dicts with all the information needed for aggregation",dy,rs,sr,my,Zp,s2="Find and group together the adjacent tokens with the same entity predicted.",hy,is,ar,fy,Fp,a2="Group together the adjacent tokens with the same entity predicted.",Nh,xt,ls,xd,or,gy,Dp,o2="TranslationPipeline",Zh,pe,rr,uy,Rp,r2="Translates from one language to another.",Ty,Sp,i2=`This translation pipeline can currently be loaded from <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;translation_xx_to_yy&quot;</code>.`,by,Bp,l2=`The models that this pipeline can use are models that have been fine-tuned on a translation task. See the
up-to-date list of available models on <a href="https://huggingface.co/models?filter=translation" rel="nofollow">huggingface.co/models</a>.
For a list of available parameters, see the <a href="https://huggingface.co/docs/transformers/en/main_classes/text_generation#transformers.generation.GenerationMixin.generate" rel="nofollow">following
documentation</a>`,yy,ps,wy,cs,ir,xy,Vp,p2="Translate the text(s) given as inputs.",Fh,vt,ds,vd,lr,vy,Ep,c2="ZeroShotClassificationPipeline",Dh,D,pr,_y,Lp,d2=`NLI-based zero-shot classification pipeline using a <code>ModelForSequenceClassification</code> trained on NLI (natural
language inference) tasks. Equivalent of <code>text-classification</code> pipelines, but these models don’t require a
hardcoded number of potential classes, they can be chosen at runtime. It usually means it’s slower but it is
<strong>much</strong> more flexible.`,My,Wp,m2=`Any combination of sequences and labels can be passed and each combination will be posed as a premise/hypothesis
pair and passed to the pretrained model. Then, the logit for <em>entailment</em> is taken as the logit for the candidate
label being valid. Any NLI model can be used, but the id of the <em>entailment</em> label must be included in the model
config’s :attr:<em>~transformers.PretrainedConfig.label2id</em>.`,ky,ms,Uy,Op,h2='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',jy,Hp,f2=`This NLI pipeline can currently be loaded from <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;zero-shot-classification&quot;</code>.`,Py,Yp,g2=`The models that this pipeline can use are models that have been fine-tuned on an NLI task. See the up-to-date list
of available models on <a href="https://huggingface.co/models?search=nli" rel="nofollow">huggingface.co/models</a>.`,Cy,hs,cr,$y,Qp,u2=`Classify the sequence(s) given as inputs. See the <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.ZeroShotClassificationPipeline">ZeroShotClassificationPipeline</a> documentation for more
information.`,Rh,_t,fs,_d,dr,Jy,Xp,T2="Multimodal",Sh,mr,b2="Pipelines available for multimodal tasks include the following.",Bh,Mt,gs,Md,hr,Iy,Kp,y2="DocumentQuestionAnsweringPipeline",Vh,K,fr,qy,ec,w2=`Document Question Answering pipeline using any <code>AutoModelForDocumentQuestionAnswering</code>. The inputs/outputs are
similar to the (extractive) question answering pipeline; however, the pipeline takes an image (and optional OCR’d
words/boxes) as input instead of text context.`,Gy,us,zy,tc,x2='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Ay,nc,v2=`This document question answering pipeline can currently be loaded from <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task
identifier: <code>&quot;document-question-answering&quot;</code>.`,Ny,sc,_2=`The models that this pipeline can use are models that have been fine-tuned on a document question answering task.
See the up-to-date list of available models on
<a href="https://huggingface.co/models?filter=document-question-answering" rel="nofollow">huggingface.co/models</a>.`,Zy,Ge,gr,Fy,ac,M2=`Answer the question(s) given as inputs by using the document(s). A document is defined as an image and an
optional list of (word, box) tuples which represent the text in the document. If the <code>word_boxes</code> are not
provided, it will use the Tesseract OCR engine (if available) to extract the words and boxes automatically for
LayoutLM-like models which require them as input. For Donut, no OCR is run.`,Dy,oc,k2="You can invoke the pipeline several ways:",Ry,rc,U2="<li><code>pipeline(image=image, question=question)</code></li> <li><code>pipeline(image=image, question=question, word_boxes=word_boxes)</code></li> <li><code>pipeline([{&quot;image&quot;: image, &quot;question&quot;: question}])</code></li> <li><code>pipeline([{&quot;image&quot;: image, &quot;question&quot;: question, &quot;word_boxes&quot;: word_boxes}])</code></li>",Eh,kt,Ts,kd,ur,Sy,ic,j2="FeatureExtractionPipeline",Lh,ee,Tr,By,lc,P2=`Feature extraction pipeline using no model head. This pipeline extracts the hidden states from the base
transformer, which can be used as features in downstream tasks.`,Vy,bs,Ey,pc,C2='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Ly,cc,$2=`This feature extraction pipeline can currently be loaded from <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the task identifier:
<code>&quot;feature-extraction&quot;</code>.`,Wy,dc,J2=`All models may be used for this pipeline. See a list of all models, including community-contributed models on
<a href="https://huggingface.co/models" rel="nofollow">huggingface.co/models</a>.`,Oy,ys,br,Hy,mc,I2="Extract the features of the input(s).",Wh,Ut,ws,Ud,yr,Yy,hc,q2="ImageToTextPipeline",Oh,te,wr,Qy,fc,G2="Image To Text pipeline using a <code>AutoModelForVision2Seq</code>. This pipeline predicts a caption for a given image.",Xy,xs,Ky,gc,z2='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',ew,uc,A2=`This image to text pipeline can currently be loaded from pipeline() using the following task identifier:
“image-to-text”.`,tw,Tc,N2=`See the list of available models on
<a href="https://huggingface.co/models?pipeline_tag=image-to-text" rel="nofollow">huggingface.co/models</a>.`,nw,vs,xr,sw,bc,Z2="Assign labels to the image(s) passed as inputs.",Hh,jt,_s,jd,vr,aw,yc,F2="VisualQuestionAnsweringPipeline",Yh,ne,_r,ow,wc,D2=`Visual Question Answering pipeline using a <code>AutoModelForVisualQuestionAnswering</code>. This pipeline is currently only
available in PyTorch.`,rw,Ms,iw,xc,R2='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',lw,vc,S2=`This visual question answering pipeline can currently be loaded from <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task
identifiers: <code>&quot;visual-question-answering&quot;, &quot;vqa&quot;</code>.`,pw,_c,B2=`The models that this pipeline can use are models that have been fine-tuned on a visual question answering task. See
the up-to-date list of available models on
<a href="https://huggingface.co/models?filter=visual-question-answering" rel="nofollow">huggingface.co/models</a>.`,cw,Se,Mr,dw,Mc,V2=`Answers open-ended questions about images. The pipeline accepts several types of inputs which are detailed
below:`,mw,kc,E2="<li><code>pipeline(image=image, question=question)</code></li> <li><code>pipeline({&quot;image&quot;: image, &quot;question&quot;: question})</code></li> <li><code>pipeline([{&quot;image&quot;: image, &quot;question&quot;: question}])</code></li> <li><code>pipeline([{&quot;image&quot;: image, &quot;question&quot;: question}, {&quot;image&quot;: image, &quot;question&quot;: question}])</code></li>",Qh,Pt,ks,Pd,kr,hw,Uc,L2="Parent class: <code>Pipeline</code>",Xh,$,Ur,fw,jc,W2=`The Pipeline class is the class from which all pipelines inherit. Refer to this class for methods shared across
different pipelines.`,gw,Pc,O2=`Base class implementing pipelined operations. Pipeline workflow is defined as a sequence of the following
operations:`,uw,Cc,H2="Input -> Tokenization -> Model Inference -> Post-Processing (task dependent) -> Output",Tw,$c,Y2="Pipeline supports running on CPU or GPU through the device argument (see below).",bw,Jc,Q2=`Some pipeline, like for instance <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.FeatureExtractionPipeline">FeatureExtractionPipeline</a> (<code>&#39;feature-extraction&#39;</code>) output large tensor object
as nested-lists. In order to avoid dumping such large structure as textual data we provide the <code>binary_output</code>
constructor argument. If set to <code>True</code>, the output will be stored in the pickle format.`,yw,Us,jr,ww,Ic,X2="Check if the model class is in supported by the pipeline.",xw,Be,Pr,vw,qc,K2="Context Manager allowing tensor allocation on the user-specified device in framework agnostic way.",_w,js,Mw,Ps,Cr,kw,Gc,eM="Ensure PyTorch tensors are on the specified device.",Uw,Cs,$r,jw,zc,tM=`Postprocess will receive the raw outputs of the <code>_forward</code> method, generally tensors, and reformat them into
something more friendly. Generally it will output a list or a dict or results (containing just strings and
numbers).`,Pw,$s,Jr,Cw,Ac,nM="Scikit / Keras interface to transformers’ pipelines. This method will forward to <strong>call</strong>().",$w,Js,Ir,Jw,Nc,sM=`Preprocess will take the <code>input_</code> of a specific pipeline and return a dictionary of everything necessary for
<code>_forward</code> to run properly. It should contain at least one tensor, but might have arbitrary other items.`,Iw,Is,qr,qw,Zc,aM="Save the pipeline’s model and tokenizer.",Gw,qs,Gr,zw,Fc,oM="Scikit / Keras interface to transformers’ pipelines. This method will forward to <strong>call</strong>().",Kh,Cd,ef;return zs=new P({}),Fs=new P({}),Ss=new j({props:{code:"cGlwZSUyMCUzRCUyMHBpcGVsaW5lKCUyMnRleHQtY2xhc3NpZmljYXRpb24lMjIpJTBBcGlwZSglMjJUaGlzJTIwcmVzdGF1cmFudCUyMGlzJTIwYXdlc29tZSUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = pipeline(<span class="hljs-string">&quot;text-classification&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe(<span class="hljs-string">&quot;This restaurant is awesome&quot;</span>)
[{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;POSITIVE&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.9998743534088135</span>}]`}}),Vs=new j({props:{code:"cGlwZSUyMCUzRCUyMHBpcGVsaW5lKG1vZGVsJTNEJTIycm9iZXJ0YS1sYXJnZS1tbmxpJTIyKSUwQXBpcGUoJTIyVGhpcyUyMHJlc3RhdXJhbnQlMjBpcyUyMGF3ZXNvbWUlMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = pipeline(model=<span class="hljs-string">&quot;roberta-large-mnli&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe(<span class="hljs-string">&quot;This restaurant is awesome&quot;</span>)
[{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;NEUTRAL&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.7313136458396912</span>}]`}}),Ls=new j({props:{code:"cGlwZSUyMCUzRCUyMHBpcGVsaW5lKCUyMnRleHQtY2xhc3NpZmljYXRpb24lMjIpJTBBcGlwZSglNUIlMjJUaGlzJTIwcmVzdGF1cmFudCUyMGlzJTIwYXdlc29tZSUyMiUyQyUyMCUyMlRoaXMlMjByZXN0YXVyYW50JTIwaXMlMjBhd2Z1bCUyMiU1RCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = pipeline(<span class="hljs-string">&quot;text-classification&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe([<span class="hljs-string">&quot;This restaurant is awesome&quot;</span>, <span class="hljs-string">&quot;This restaurant is awful&quot;</span>])
[{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;POSITIVE&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.9998743534088135</span>},
 {<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;NEGATIVE&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.9996669292449951</span>}]`}}),Os=new j({props:{code:"aW1wb3J0JTIwZGF0YXNldHMlMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwcGlwZWxpbmUlMEFmcm9tJTIwdHJhbnNmb3JtZXJzLnBpcGVsaW5lcy5wdF91dGlscyUyMGltcG9ydCUyMEtleURhdGFzZXQlMEFmcm9tJTIwdHFkbS5hdXRvJTIwaW1wb3J0JTIwdHFkbSUwQSUwQXBpcGUlMjAlM0QlMjBwaXBlbGluZSglMjJhdXRvbWF0aWMtc3BlZWNoLXJlY29nbml0aW9uJTIyJTJDJTIwbW9kZWwlM0QlMjJmYWNlYm9vayUyRndhdjJ2ZWMyLWJhc2UtOTYwaCUyMiUyQyUyMGRldmljZSUzRDApJTBBZGF0YXNldCUyMCUzRCUyMGRhdGFzZXRzLmxvYWRfZGF0YXNldCglMjJzdXBlcmIlMjIlMkMlMjBuYW1lJTNEJTIyYXNyJTIyJTJDJTIwc3BsaXQlM0QlMjJ0ZXN0JTIyKSUwQSUwQSUyMyUyMEtleURhdGFzZXQlMjAob25seSUyMCpwdCopJTIwd2lsbCUyMHNpbXBseSUyMHJldHVybiUyMHRoZSUyMGl0ZW0lMjBpbiUyMHRoZSUyMGRpY3QlMjByZXR1cm5lZCUyMGJ5JTIwdGhlJTIwZGF0YXNldCUyMGl0ZW0lMEElMjMlMjBhcyUyMHdlJ3JlJTIwbm90JTIwaW50ZXJlc3RlZCUyMGluJTIwdGhlJTIwKnRhcmdldColMjBwYXJ0JTIwb2YlMjB0aGUlMjBkYXRhc2V0LiUyMEZvciUyMHNlbnRlbmNlJTIwcGFpciUyMHVzZSUyMEtleVBhaXJEYXRhc2V0JTBBZm9yJTIwb3V0JTIwaW4lMjB0cWRtKHBpcGUoS2V5RGF0YXNldChkYXRhc2V0JTJDJTIwJTIyZmlsZSUyMikpKSUzQSUwQSUyMCUyMCUyMCUyMHByaW50KG91dCklMEElMjAlMjAlMjAlMjAlMjMlMjAlN0IlMjJ0ZXh0JTIyJTNBJTIwJTIyTlVNQkVSJTIwVEVOJTIwRlJFU0glMjBORUxMWSUyMElTJTIwV0FJVElORyUyME9OJTIwWU9VJTIwR09PRCUyME5JR0hUJTIwSFVTQkFORCUyMiU3RCUwQSUyMCUyMCUyMCUyMCUyMyUyMCU3QiUyMnRleHQlMjIlM0ElMjAuLi4uJTdEJTBBJTIwJTIwJTIwJTIwJTIzJTIwLi4uLg==",highlighted:`<span class="hljs-keyword">import</span> datasets
<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline
<span class="hljs-keyword">from</span> transformers.pipelines.pt_utils <span class="hljs-keyword">import</span> KeyDataset
<span class="hljs-keyword">from</span> tqdm.auto <span class="hljs-keyword">import</span> tqdm

pipe = pipeline(<span class="hljs-string">&quot;automatic-speech-recognition&quot;</span>, model=<span class="hljs-string">&quot;facebook/wav2vec2-base-960h&quot;</span>, device=<span class="hljs-number">0</span>)
dataset = datasets.load_dataset(<span class="hljs-string">&quot;superb&quot;</span>, name=<span class="hljs-string">&quot;asr&quot;</span>, split=<span class="hljs-string">&quot;test&quot;</span>)

<span class="hljs-comment"># KeyDataset (only *pt*) will simply return the item in the dict returned by the dataset item</span>
<span class="hljs-comment"># as we&#x27;re not interested in the *target* part of the dataset. For sentence pair use KeyPairDataset</span>
<span class="hljs-keyword">for</span> out <span class="hljs-keyword">in</span> tqdm(pipe(KeyDataset(dataset, <span class="hljs-string">&quot;file&quot;</span>))):
    <span class="hljs-built_in">print</span>(out)
    <span class="hljs-comment"># {&quot;text&quot;: &quot;NUMBER TEN FRESH NELLY IS WAITING ON YOU GOOD NIGHT HUSBAND&quot;}</span>
    <span class="hljs-comment"># {&quot;text&quot;: ....}</span>
    <span class="hljs-comment"># ....</span>`}}),Ys=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBcGlwZSUyMCUzRCUyMHBpcGVsaW5lKCUyMnRleHQtY2xhc3NpZmljYXRpb24lMjIpJTBBJTBBJTBBZGVmJTIwZGF0YSgpJTNBJTBBJTIwJTIwJTIwJTIwd2hpbGUlMjBUcnVlJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIzJTIwVGhpcyUyMGNvdWxkJTIwY29tZSUyMGZyb20lMjBhJTIwZGF0YXNldCUyQyUyMGElMjBkYXRhYmFzZSUyQyUyMGElMjBxdWV1ZSUyMG9yJTIwSFRUUCUyMHJlcXVlc3QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjMlMjBpbiUyMGElMjBzZXJ2ZXIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjMlMjBDYXZlYXQlM0ElMjBiZWNhdXNlJTIwdGhpcyUyMGlzJTIwaXRlcmF0aXZlJTJDJTIweW91JTIwY2Fubm90JTIwdXNlJTIwJTYwbnVtX3dvcmtlcnMlMjAlM0UlMjAxJTYwJTIwdmFyaWFibGUlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjMlMjB0byUyMHVzZSUyMG11bHRpcGxlJTIwdGhyZWFkcyUyMHRvJTIwcHJlcHJvY2VzcyUyMGRhdGEuJTIwWW91JTIwY2FuJTIwc3RpbGwlMjBoYXZlJTIwMSUyMHRocmVhZCUyMHRoYXQlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjMlMjBkb2VzJTIwdGhlJTIwcHJlcHJvY2Vzc2luZyUyMHdoaWxlJTIwdGhlJTIwbWFpbiUyMHJ1bnMlMjB0aGUlMjBiaWclMjBpbmZlcmVuY2UlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjB5aWVsZCUyMCUyMlRoaXMlMjBpcyUyMGElMjB0ZXN0JTIyJTBBJTBBJTBBZm9yJTIwb3V0JTIwaW4lMjBwaXBlKGRhdGEoKSklM0ElMEElMjAlMjAlMjAlMjBwcmludChvdXQpJTBBJTIwJTIwJTIwJTIwJTIzJTIwJTdCJTIydGV4dCUyMiUzQSUyMCUyMk5VTUJFUiUyMFRFTiUyMEZSRVNIJTIwTkVMTFklMjBJUyUyMFdBSVRJTkclMjBPTiUyMFlPVSUyMEdPT0QlMjBOSUdIVCUyMEhVU0JBTkQlMjIlN0QlMEElMjAlMjAlMjAlMjAlMjMlMjAlN0IlMjJ0ZXh0JTIyJTNBJTIwLi4uLiU3RCUwQSUyMCUyMCUyMCUyMCUyMyUyMC4uLi4=",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

pipe = pipeline(<span class="hljs-string">&quot;text-classification&quot;</span>)


<span class="hljs-keyword">def</span> <span class="hljs-title function_">data</span>():
    <span class="hljs-keyword">while</span> <span class="hljs-literal">True</span>:
        <span class="hljs-comment"># This could come from a dataset, a database, a queue or HTTP request</span>
        <span class="hljs-comment"># in a server</span>
        <span class="hljs-comment"># Caveat: because this is iterative, you cannot use \`num_workers &gt; 1\` variable</span>
        <span class="hljs-comment"># to use multiple threads to preprocess data. You can still have 1 thread that</span>
        <span class="hljs-comment"># does the preprocessing while the main runs the big inference</span>
        <span class="hljs-keyword">yield</span> <span class="hljs-string">&quot;This is a test&quot;</span>


<span class="hljs-keyword">for</span> out <span class="hljs-keyword">in</span> pipe(data()):
    <span class="hljs-built_in">print</span>(out)
    <span class="hljs-comment"># {&quot;text&quot;: &quot;NUMBER TEN FRESH NELLY IS WAITING ON YOU GOOD NIGHT HUSBAND&quot;}</span>
    <span class="hljs-comment"># {&quot;text&quot;: ....}</span>
    <span class="hljs-comment"># ....</span>`}}),Qs=new k({props:{name:"transformers.pipeline",anchor:"transformers.pipeline",parameters:[{name:"task",val:": str = None"},{name:"model",val:": typing.Union[str, ForwardRef('PreTrainedModel'), ForwardRef('TFPreTrainedModel'), NoneType] = None"},{name:"config",val:": typing.Union[str, transformers.configuration_utils.PretrainedConfig, NoneType] = None"},{name:"tokenizer",val:": typing.Union[str, transformers.tokenization_utils.PreTrainedTokenizer, ForwardRef('PreTrainedTokenizerFast'), NoneType] = None"},{name:"feature_extractor",val:": typing.Union[str, ForwardRef('SequenceFeatureExtractor'), NoneType] = None"},{name:"image_processor",val:": typing.Union[str, transformers.image_processing_utils.BaseImageProcessor, NoneType] = None"},{name:"framework",val:": typing.Optional[str] = None"},{name:"revision",val:": typing.Optional[str] = None"},{name:"use_fast",val:": bool = True"},{name:"token",val:": typing.Union[str, bool, NoneType] = None"},{name:"device",val:": typing.Union[int, str, ForwardRef('torch.device'), NoneType] = None"},{name:"device_map",val:" = None"},{name:"torch_dtype",val:" = None"},{name:"trust_remote_code",val:": typing.Optional[bool] = None"},{name:"model_kwargs",val:": typing.Dict[str, typing.Any] = None"},{name:"pipeline_class",val:": typing.Optional[typing.Any] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.pipeline.task",description:`<strong>task</strong> (<code>str</code>) &#x2014;
The task defining which pipeline will be returned. Currently accepted tasks are:</p>
<ul>
<li><code>&quot;audio-classification&quot;</code>: will return a <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.AudioClassificationPipeline">AudioClassificationPipeline</a>.</li>
<li><code>&quot;automatic-speech-recognition&quot;</code>: will return a <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.AutomaticSpeechRecognitionPipeline">AutomaticSpeechRecognitionPipeline</a>.</li>
<li><code>&quot;conversational&quot;</code>: will return a <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.ConversationalPipeline">ConversationalPipeline</a>.</li>
<li><code>&quot;depth-estimation&quot;</code>: will return a <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.DepthEstimationPipeline">DepthEstimationPipeline</a>.</li>
<li><code>&quot;document-question-answering&quot;</code>: will return a <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.DocumentQuestionAnsweringPipeline">DocumentQuestionAnsweringPipeline</a>.</li>
<li><code>&quot;feature-extraction&quot;</code>: will return a <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.FeatureExtractionPipeline">FeatureExtractionPipeline</a>.</li>
<li><code>&quot;fill-mask&quot;</code>: will return a <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.FillMaskPipeline">FillMaskPipeline</a>:.</li>
<li><code>&quot;image-classification&quot;</code>: will return a <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.ImageClassificationPipeline">ImageClassificationPipeline</a>.</li>
<li><code>&quot;image-segmentation&quot;</code>: will return a <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.ImageSegmentationPipeline">ImageSegmentationPipeline</a>.</li>
<li><code>&quot;image-to-text&quot;</code>: will return a <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.ImageToTextPipeline">ImageToTextPipeline</a>.</li>
<li><code>&quot;mask-generation&quot;</code>: will return a <code>MaskGenerationPipeline</code>.</li>
<li><code>&quot;object-detection&quot;</code>: will return a <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.ObjectDetectionPipeline">ObjectDetectionPipeline</a>.</li>
<li><code>&quot;question-answering&quot;</code>: will return a <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.QuestionAnsweringPipeline">QuestionAnsweringPipeline</a>.</li>
<li><code>&quot;summarization&quot;</code>: will return a <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.SummarizationPipeline">SummarizationPipeline</a>.</li>
<li><code>&quot;table-question-answering&quot;</code>: will return a <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.TableQuestionAnsweringPipeline">TableQuestionAnsweringPipeline</a>.</li>
<li><code>&quot;text2text-generation&quot;</code>: will return a <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.Text2TextGenerationPipeline">Text2TextGenerationPipeline</a>.</li>
<li><code>&quot;text-classification&quot;</code> (alias <code>&quot;sentiment-analysis&quot;</code> available): will return a
<a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.TextClassificationPipeline">TextClassificationPipeline</a>.</li>
<li><code>&quot;text-generation&quot;</code>: will return a <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.TextGenerationPipeline">TextGenerationPipeline</a>:.</li>
<li><code>&quot;text-to-audio&quot;</code> (alias <code>&quot;text-to-speech&quot;</code> available): will return a <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.TextToAudioPipeline">TextToAudioPipeline</a>:.</li>
<li><code>&quot;token-classification&quot;</code> (alias <code>&quot;ner&quot;</code> available): will return a <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.TokenClassificationPipeline">TokenClassificationPipeline</a>.</li>
<li><code>&quot;translation&quot;</code>: will return a <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.TranslationPipeline">TranslationPipeline</a>.</li>
<li><code>&quot;translation_xx_to_yy&quot;</code>: will return a <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.TranslationPipeline">TranslationPipeline</a>.</li>
<li><code>&quot;video-classification&quot;</code>: will return a <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.VideoClassificationPipeline">VideoClassificationPipeline</a>.</li>
<li><code>&quot;visual-question-answering&quot;</code>: will return a <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.VisualQuestionAnsweringPipeline">VisualQuestionAnsweringPipeline</a>.</li>
<li><code>&quot;zero-shot-classification&quot;</code>: will return a <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.ZeroShotClassificationPipeline">ZeroShotClassificationPipeline</a>.</li>
<li><code>&quot;zero-shot-image-classification&quot;</code>: will return a <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.ZeroShotImageClassificationPipeline">ZeroShotImageClassificationPipeline</a>.</li>
<li><code>&quot;zero-shot-audio-classification&quot;</code>: will return a <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.ZeroShotAudioClassificationPipeline">ZeroShotAudioClassificationPipeline</a>.</li>
<li><code>&quot;zero-shot-object-detection&quot;</code>: will return a <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.ZeroShotObjectDetectionPipeline">ZeroShotObjectDetectionPipeline</a>.</li>
</ul>`,name:"task"},{anchor:"transformers.pipeline.model",description:`<strong>model</strong> (<code>str</code> or <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>, <em>optional</em>) &#x2014;
The model that will be used by the pipeline to make predictions. This can be a model identifier or an
actual instance of a pretrained model inheriting from <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> (for PyTorch) or
<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> (for TensorFlow).</p>
<p>If not provided, the default for the <code>task</code> will be loaded.`,name:"model"},{anchor:"transformers.pipeline.config",description:`<strong>config</strong> (<code>str</code> or <a href="/docs/transformers/v4.33.3/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a>, <em>optional</em>) &#x2014;
The configuration that will be used by the pipeline to instantiate the model. This can be a model
identifier or an actual pretrained model configuration inheriting from <a href="/docs/transformers/v4.33.3/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a>.</p>
<p>If not provided, the default configuration file for the requested model will be used. That means that if
<code>model</code> is given, its default configuration will be used. However, if <code>model</code> is not supplied, this
<code>task</code>&#x2019;s default model&#x2019;s config is used instead.`,name:"config"},{anchor:"transformers.pipeline.tokenizer",description:`<strong>tokenizer</strong> (<code>str</code> or <a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>, <em>optional</em>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This can be a model
identifier or an actual pretrained tokenizer inheriting from <a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.</p>
<p>If not provided, the default tokenizer for the given <code>model</code> will be loaded (if it is a string). If <code>model</code>
is not specified or not a string, then the default tokenizer for <code>config</code> is loaded (if it is a string).
However, if <code>config</code> is also not given or not a string, then the default tokenizer for the given <code>task</code>
will be loaded.`,name:"tokenizer"},{anchor:"transformers.pipeline.feature_extractor",description:`<strong>feature_extractor</strong> (<code>str</code> or <code>PreTrainedFeatureExtractor</code>, <em>optional</em>) &#x2014;
The feature extractor that will be used by the pipeline to encode data for the model. This can be a model
identifier or an actual pretrained feature extractor inheriting from <code>PreTrainedFeatureExtractor</code>.</p>
<p>Feature extractors are used for non-NLP models, such as Speech or Vision models as well as multi-modal
models. Multi-modal models will also require a tokenizer to be passed.</p>
<p>If not provided, the default feature extractor for the given <code>model</code> will be loaded (if it is a string). If
<code>model</code> is not specified or not a string, then the default feature extractor for <code>config</code> is loaded (if it
is a string). However, if <code>config</code> is also not given or not a string, then the default feature extractor
for the given <code>task</code> will be loaded.`,name:"feature_extractor"},{anchor:"transformers.pipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.pipeline.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
When passing a task name or a string model identifier: The specific model version to use. It can be a
branch name, a tag name, or a commit id, since we use a git-based system for storing models and other
artifacts on huggingface.co, so <code>revision</code> can be any identifier allowed by git.`,name:"revision"},{anchor:"transformers.pipeline.use_fast",description:`<strong>use_fast</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to use a Fast tokenizer if possible (a <a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast">PreTrainedTokenizerFast</a>).`,name:"use_fast"},{anchor:"transformers.pipeline.use_auth_token",description:`<strong>use_auth_token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, will use the token generated
when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"use_auth_token"},{anchor:"transformers.pipeline.device",description:`<strong>device</strong> (<code>int</code> or <code>str</code> or <code>torch.device</code>) &#x2014;
Defines the device (<em>e.g.</em>, <code>&quot;cpu&quot;</code>, <code>&quot;cuda:1&quot;</code>, <code>&quot;mps&quot;</code>, or a GPU ordinal rank like <code>1</code>) on which this
pipeline will be allocated.`,name:"device"},{anchor:"transformers.pipeline.device_map",description:`<strong>device_map</strong> (<code>str</code> or <code>Dict[str, Union[int, str, torch.device]</code>, <em>optional</em>) &#x2014;
Sent directly as <code>model_kwargs</code> (just a simpler shortcut). When <code>accelerate</code> library is present, set
<code>device_map=&quot;auto&quot;</code> to compute the most optimized <code>device_map</code> automatically (see
<a href="https://huggingface.co/docs/accelerate/main/en/package_reference/big_modeling#accelerate.cpu_offload" rel="nofollow">here</a>
for more information).</p>
<div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
						
<p>Do not use <code>device_map</code> AND <code>device</code> at the same time as they will conflict</p>

					</div>`,name:"device_map"},{anchor:"transformers.pipeline.torch_dtype",description:`<strong>torch_dtype</strong> (<code>str</code> or <code>torch.dtype</code>, <em>optional</em>) &#x2014;
Sent directly as <code>model_kwargs</code> (just a simpler shortcut) to use the available precision for this model
(<code>torch.float16</code>, <code>torch.bfloat16</code>, &#x2026; or <code>&quot;auto&quot;</code>).`,name:"torch_dtype"},{anchor:"transformers.pipeline.trust_remote_code",description:`<strong>trust_remote_code</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to allow for custom code defined on the Hub in their own modeling, configuration,
tokenization or even pipeline files. This option should only be set to <code>True</code> for repositories you trust
and in which you have read the code, as it will execute code present on the Hub on your local machine.`,name:"trust_remote_code"},{anchor:"transformers.pipeline.model_kwargs",description:`<strong>model_kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional dictionary of keyword arguments passed along to the model&#x2019;s <code>from_pretrained(..., **model_kwargs)</code> function.`,name:"model_kwargs"},{anchor:"transformers.pipeline.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional keyword arguments passed along to the specific pipeline init (see the documentation for the
corresponding pipeline class for possible values).`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/__init__.py#L518",returnDescription:`
<p>A suitable pipeline for the task.</p>
`,returnType:`
<p><a
  href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.Pipeline"
>Pipeline</a></p>
`}}),$t=new J({props:{anchor:"transformers.pipeline.example",$$slots:{default:[gk]},$$scope:{ctx:U}}}),Xs=new P({}),ea=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBZnJvbSUyMHRyYW5zZm9ybWVycy5waXBlbGluZXMucHRfdXRpbHMlMjBpbXBvcnQlMjBLZXlEYXRhc2V0JTBBaW1wb3J0JTIwZGF0YXNldHMlMEElMEFkYXRhc2V0JTIwJTNEJTIwZGF0YXNldHMubG9hZF9kYXRhc2V0KCUyMmltZGIlMjIlMkMlMjBuYW1lJTNEJTIycGxhaW5fdGV4dCUyMiUyQyUyMHNwbGl0JTNEJTIydW5zdXBlcnZpc2VkJTIyKSUwQXBpcGUlMjAlM0QlMjBwaXBlbGluZSglMjJ0ZXh0LWNsYXNzaWZpY2F0aW9uJTIyJTJDJTIwZGV2aWNlJTNEMCklMEFmb3IlMjBvdXQlMjBpbiUyMHBpcGUoS2V5RGF0YXNldChkYXRhc2V0JTJDJTIwJTIydGV4dCUyMiklMkMlMjBiYXRjaF9zaXplJTNEOCUyQyUyMHRydW5jYXRpb24lM0QlMjJvbmx5X2ZpcnN0JTIyKSUzQSUwQSUyMCUyMCUyMCUyMHByaW50KG91dCklMEElMjAlMjAlMjAlMjAlMjMlMjAlNUIlN0InbGFiZWwnJTNBJTIwJ1BPU0lUSVZFJyUyQyUyMCdzY29yZSclM0ElMjAwLjk5OTg3NDM1MzQwODgxMzUlN0QlNUQlMEElMjAlMjAlMjAlMjAlMjMlMjBFeGFjdGx5JTIwdGhlJTIwc2FtZSUyMG91dHB1dCUyMGFzJTIwYmVmb3JlJTJDJTIwYnV0JTIwdGhlJTIwY29udGVudCUyMGFyZSUyMHBhc3NlZCUwQSUyMCUyMCUyMCUyMCUyMyUyMGFzJTIwYmF0Y2hlcyUyMHRvJTIwdGhlJTIwbW9kZWw=",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline
<span class="hljs-keyword">from</span> transformers.pipelines.pt_utils <span class="hljs-keyword">import</span> KeyDataset
<span class="hljs-keyword">import</span> datasets

dataset = datasets.load_dataset(<span class="hljs-string">&quot;imdb&quot;</span>, name=<span class="hljs-string">&quot;plain_text&quot;</span>, split=<span class="hljs-string">&quot;unsupervised&quot;</span>)
pipe = pipeline(<span class="hljs-string">&quot;text-classification&quot;</span>, device=<span class="hljs-number">0</span>)
<span class="hljs-keyword">for</span> out <span class="hljs-keyword">in</span> pipe(KeyDataset(dataset, <span class="hljs-string">&quot;text&quot;</span>), batch_size=<span class="hljs-number">8</span>, truncation=<span class="hljs-string">&quot;only_first&quot;</span>):
    <span class="hljs-built_in">print</span>(out)
    <span class="hljs-comment"># [{&#x27;label&#x27;: &#x27;POSITIVE&#x27;, &#x27;score&#x27;: 0.9998743534088135}]</span>
    <span class="hljs-comment"># Exactly the same output as before, but the content are passed</span>
    <span class="hljs-comment"># as batches to the model</span>`}}),It=new pk({props:{warning:!0,$$slots:{default:[uk]},$$scope:{ctx:U}}}),ta=new j({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBZnJvbSUyMHRvcmNoLnV0aWxzLmRhdGElMjBpbXBvcnQlMjBEYXRhc2V0JTBBZnJvbSUyMHRxZG0uYXV0byUyMGltcG9ydCUyMHRxZG0lMEElMEFwaXBlJTIwJTNEJTIwcGlwZWxpbmUoJTIydGV4dC1jbGFzc2lmaWNhdGlvbiUyMiUyQyUyMGRldmljZSUzRDApJTBBJTBBJTBBY2xhc3MlMjBNeURhdGFzZXQoRGF0YXNldCklM0ElMEElMjAlMjAlMjAlMjBkZWYlMjBfX2xlbl9fKHNlbGYpJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwcmV0dXJuJTIwNTAwMCUwQSUwQSUyMCUyMCUyMCUyMGRlZiUyMF9fZ2V0aXRlbV9fKHNlbGYlMkMlMjBpKSUzQSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHJldHVybiUyMCUyMlRoaXMlMjBpcyUyMGElMjB0ZXN0JTIyJTBBJTBBJTBBZGF0YXNldCUyMCUzRCUyME15RGF0YXNldCgpJTBBJTBBZm9yJTIwYmF0Y2hfc2l6ZSUyMGluJTIwJTVCMSUyQyUyMDglMkMlMjA2NCUyQyUyMDI1NiU1RCUzQSUwQSUyMCUyMCUyMCUyMHByaW50KCUyMi0lMjIlMjAqJTIwMzApJTBBJTIwJTIwJTIwJTIwcHJpbnQoZiUyMlN0cmVhbWluZyUyMGJhdGNoX3NpemUlM0QlN0JiYXRjaF9zaXplJTdEJTIyKSUwQSUyMCUyMCUyMCUyMGZvciUyMG91dCUyMGluJTIwdHFkbShwaXBlKGRhdGFzZXQlMkMlMjBiYXRjaF9zaXplJTNEYmF0Y2hfc2l6ZSklMkMlMjB0b3RhbCUzRGxlbihkYXRhc2V0KSklM0ElMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBwYXNz",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline
<span class="hljs-keyword">from</span> torch.utils.data <span class="hljs-keyword">import</span> Dataset
<span class="hljs-keyword">from</span> tqdm.auto <span class="hljs-keyword">import</span> tqdm

pipe = pipeline(<span class="hljs-string">&quot;text-classification&quot;</span>, device=<span class="hljs-number">0</span>)


<span class="hljs-keyword">class</span> <span class="hljs-title class_">MyDataset</span>(<span class="hljs-title class_ inherited__">Dataset</span>):
    <span class="hljs-keyword">def</span> <span class="hljs-title function_">__len__</span>(<span class="hljs-params">self</span>):
        <span class="hljs-keyword">return</span> <span class="hljs-number">5000</span>

    <span class="hljs-keyword">def</span> <span class="hljs-title function_">__getitem__</span>(<span class="hljs-params">self, i</span>):
        <span class="hljs-keyword">return</span> <span class="hljs-string">&quot;This is a test&quot;</span>


dataset = MyDataset()

<span class="hljs-keyword">for</span> batch_size <span class="hljs-keyword">in</span> [<span class="hljs-number">1</span>, <span class="hljs-number">8</span>, <span class="hljs-number">64</span>, <span class="hljs-number">256</span>]:
    <span class="hljs-built_in">print</span>(<span class="hljs-string">&quot;-&quot;</span> * <span class="hljs-number">30</span>)
    <span class="hljs-built_in">print</span>(<span class="hljs-string">f&quot;Streaming batch_size=<span class="hljs-subst">{batch_size}</span>&quot;</span>)
    <span class="hljs-keyword">for</span> out <span class="hljs-keyword">in</span> tqdm(pipe(dataset, batch_size=batch_size), total=<span class="hljs-built_in">len</span>(dataset)):
        <span class="hljs-keyword">pass</span>`}}),na=new j({props:{code:" ",highlighted:`<span class="hljs-section"># On GTX 970
------------------------------</span>
Streaming no batching
100%|██████████████████████████████████████████████████████████████████████| 5000/5000 [00:26&lt;00:00, 187.52it/s]
<span class="hljs-code">------------------------------
Streaming batch_size=8
100%|█████████████████████████████████████████████████████████████████████| 5000/5000 [00:04&lt;00:00, 1205.95it/s]
------------------------------</span>
Streaming batch<span class="hljs-emphasis">_size=64
100%|█████████████████████████████████████████████████████████████████████| 5000/5000 [00:02&lt;00:00, 2478.24it/s]
------------------------------
Streaming batch_</span>size=256
100%|█████████████████████████████████████████████████████████████████████| 5000/5000 [00:01&lt;00:00, 2554.43it/s]
(diminishing returns, saturated the GPU)`}}),aa=new j({props:{code:"Y2xhc3MlMjBNeURhdGFzZXQoRGF0YXNldCklM0ElMEElMjAlMjAlMjAlMjBkZWYlMjBfX2xlbl9fKHNlbGYpJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwcmV0dXJuJTIwNTAwMCUwQSUwQSUyMCUyMCUyMCUyMGRlZiUyMF9fZ2V0aXRlbV9fKHNlbGYlMkMlMjBpKSUzQSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGlmJTIwaSUyMCUyNSUyMDY0JTIwJTNEJTNEJTIwMCUzQSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMG4lMjAlM0QlMjAxMDAlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBlbHNlJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwbiUyMCUzRCUyMDElMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjByZXR1cm4lMjAlMjJUaGlzJTIwaXMlMjBhJTIwdGVzdCUyMiUyMColMjBu",highlighted:`<span class="hljs-keyword">class</span> <span class="hljs-title class_">MyDataset</span>(<span class="hljs-title class_ inherited__">Dataset</span>):
    <span class="hljs-keyword">def</span> <span class="hljs-title function_">__len__</span>(<span class="hljs-params">self</span>):
        <span class="hljs-keyword">return</span> <span class="hljs-number">5000</span>

    <span class="hljs-keyword">def</span> <span class="hljs-title function_">__getitem__</span>(<span class="hljs-params">self, i</span>):
        <span class="hljs-keyword">if</span> i % <span class="hljs-number">64</span> == <span class="hljs-number">0</span>:
            n = <span class="hljs-number">100</span>
        <span class="hljs-keyword">else</span>:
            n = <span class="hljs-number">1</span>
        <span class="hljs-keyword">return</span> <span class="hljs-string">&quot;This is a test&quot;</span> * n`}}),ra=new j({props:{code:" ",highlighted:`<span class="hljs-comment">------------------------------</span>
Streaming no batching
<span class="hljs-number">100</span>%|█████████████████████████████████████████████████████████████████████| <span class="hljs-number">1000</span>/<span class="hljs-number">1000</span> [<span class="hljs-number">00</span>:<span class="hljs-number">05</span>&lt;<span class="hljs-number">00</span>:<span class="hljs-number">00</span>, <span class="hljs-number">183.69</span><span class="hljs-keyword">it</span>/s]
<span class="hljs-comment">------------------------------</span>
Streaming batch_size=<span class="hljs-number">8</span>
<span class="hljs-number">100</span>%|█████████████████████████████████████████████████████████████████████| <span class="hljs-number">1000</span>/<span class="hljs-number">1000</span> [<span class="hljs-number">00</span>:<span class="hljs-number">03</span>&lt;<span class="hljs-number">00</span>:<span class="hljs-number">00</span>, <span class="hljs-number">265.74</span><span class="hljs-keyword">it</span>/s]
<span class="hljs-comment">------------------------------</span>
Streaming batch_size=<span class="hljs-number">64</span>
<span class="hljs-number">100</span>%|██████████████████████████████████████████████████████████████████████| <span class="hljs-number">1000</span>/<span class="hljs-number">1000</span> [<span class="hljs-number">00</span>:<span class="hljs-number">26</span>&lt;<span class="hljs-number">00</span>:<span class="hljs-number">00</span>, <span class="hljs-number">37.80</span><span class="hljs-keyword">it</span>/s]
<span class="hljs-comment">------------------------------</span>
Streaming batch_size=<span class="hljs-number">256</span>
  <span class="hljs-number">0</span>%|                                                                                 | <span class="hljs-number">0</span>/<span class="hljs-number">1000</span> [<span class="hljs-number">00</span>:<span class="hljs-number">00</span><span class="hljs-meta">&lt;?</span>, ?<span class="hljs-keyword">it</span>/s]
Traceback (most recent call <span class="hljs-keyword">last</span>):
  File <span class="hljs-string">&quot;/home/nicolas/src/transformers/test.py&quot;</span>, <span class="hljs-built_in">line</span> <span class="hljs-number">42</span>, <span class="hljs-keyword">in</span> &lt;module&gt;
    <span class="hljs-keyword">for</span> out <span class="hljs-keyword">in</span> tqdm(pipe(dataset, batch_size=<span class="hljs-number">256</span>), total=<span class="hljs-built_in">len</span>(dataset)):
....
    q = q / math.<span class="hljs-built_in">sqrt</span>(dim_per_head)  <span class="hljs-comment"># (bs, n_heads, q_length, dim_per_head)</span>
RuntimeError: CUDA out <span class="hljs-keyword">of</span> memory. Tried <span class="hljs-built_in">to</span> allocate <span class="hljs-number">376.00</span> MiB (GPU <span class="hljs-number">0</span>; <span class="hljs-number">3.95</span> GiB total capacity; <span class="hljs-number">1.72</span> GiB already allocated; <span class="hljs-number">354.88</span> MiB free; <span class="hljs-number">2.46</span> GiB reserved <span class="hljs-keyword">in</span> total <span class="hljs-keyword">by</span> PyTorch)`}}),ca=new P({}),ha=new j({props:{code:"cHJlcHJvY2Vzc2VkJTIwJTNEJTIwcGlwZS5wcmVwcm9jZXNzKGlucHV0cyklMEFtb2RlbF9vdXRwdXRzJTIwJTNEJTIwcGlwZS5mb3J3YXJkKHByZXByb2Nlc3NlZCklMEFvdXRwdXRzJTIwJTNEJTIwcGlwZS5wb3N0cHJvY2Vzcyhtb2RlbF9vdXRwdXRzKQ==",highlighted:`preprocessed = pipe.preprocess(inputs)
model_outputs = pipe.forward(preprocessed)
outputs = pipe.postprocess(model_outputs)`}}),ga=new j({props:{code:"YWxsX21vZGVsX291dHB1dHMlMjAlM0QlMjAlNUIlNUQlMEFmb3IlMjBwcmVwcm9jZXNzZWQlMjBpbiUyMHBpcGUucHJlcHJvY2VzcyhpbnB1dHMpJTNBJTBBJTIwJTIwJTIwJTIwbW9kZWxfb3V0cHV0cyUyMCUzRCUyMHBpcGUuZm9yd2FyZChwcmVwcm9jZXNzZWQpJTBBJTIwJTIwJTIwJTIwYWxsX21vZGVsX291dHB1dHMuYXBwZW5kKG1vZGVsX291dHB1dHMpJTBBb3V0cHV0cyUyMCUzRCUyMHBpcGUucG9zdHByb2Nlc3MoYWxsX21vZGVsX291dHB1dHMp",highlighted:`all_model_outputs = []
<span class="hljs-keyword">for</span> preprocessed <span class="hljs-keyword">in</span> pipe.preprocess(inputs):
    model_outputs = pipe.forward(preprocessed)
    all_model_outputs.append(model_outputs)
outputs = pipe.postprocess(all_model_outputs)`}}),ba=new P({}),_a=new j({props:{code:"Y2xhc3MlMjBNeVBpcGVsaW5lKFRleHRDbGFzc2lmaWNhdGlvblBpcGVsaW5lKSUzQSUwQSUyMCUyMCUyMCUyMGRlZiUyMHBvc3Rwcm9jZXNzKCklM0ElMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjMlMjBZb3VyJTIwY29kZSUyMGdvZXMlMjBoZXJlJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwc2NvcmVzJTIwJTNEJTIwc2NvcmVzJTIwKiUyMDEwMCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMyUyMEFuZCUyMGhlcmUlMEElMEElMEFteV9waXBlbGluZSUyMCUzRCUyME15UGlwZWxpbmUobW9kZWwlM0Rtb2RlbCUyQyUyMHRva2VuaXplciUzRHRva2VuaXplciUyQyUyMC4uLiklMEElMjMlMjBvciUyMGlmJTIweW91JTIwdXNlJTIwKnBpcGVsaW5lKiUyMGZ1bmN0aW9uJTJDJTIwdGhlbiUzQSUwQW15X3BpcGVsaW5lJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJ4eHh4JTIyJTJDJTIwcGlwZWxpbmVfY2xhc3MlM0RNeVBpcGVsaW5lKQ==",highlighted:`<span class="hljs-keyword">class</span> <span class="hljs-title class_">MyPipeline</span>(<span class="hljs-title class_ inherited__">TextClassificationPipeline</span>):
    <span class="hljs-keyword">def</span> <span class="hljs-title function_">postprocess</span>():
        <span class="hljs-comment"># Your code goes here</span>
        scores = scores * <span class="hljs-number">100</span>
        <span class="hljs-comment"># And here</span>


my_pipeline = MyPipeline(model=model, tokenizer=tokenizer, ...)
<span class="hljs-comment"># or if you use *pipeline* function, then:</span>
my_pipeline = pipeline(model=<span class="hljs-string">&quot;xxxx&quot;</span>, pipeline_class=MyPipeline)`}}),ka=new P({}),ja=new P({}),Ca=new P({}),$a=new k({props:{name:"class transformers.AudioClassificationPipeline",anchor:"transformers.AudioClassificationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.AudioClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.AudioClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.AudioClassificationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.AudioClassificationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.AudioClassificationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.AudioClassificationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.AudioClassificationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.AudioClassificationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.33.3/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.AudioClassificationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.AudioClassificationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/audio_classification.py#L67"}}),Zt=new J({props:{anchor:"transformers.AudioClassificationPipeline.example",$$slots:{default:[Tk]},$$scope:{ctx:U}}}),Ja=new k({props:{name:"__call__",anchor:"transformers.AudioClassificationPipeline.__call__",parameters:[{name:"inputs",val:": typing.Union[numpy.ndarray, bytes, str]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.AudioClassificationPipeline.__call__.inputs",description:`<strong>inputs</strong> (<code>np.ndarray</code> or <code>bytes</code> or <code>str</code> or <code>dict</code>) &#x2014;
The inputs is either :<ul>
<li><code>str</code> that is the filename of the audio file, the file will be read at the correct sampling rate
to get the waveform using <em>ffmpeg</em>. This requires <em>ffmpeg</em> to be installed on the system.</li>
<li><code>bytes</code> it is supposed to be the content of an audio file and is interpreted by <em>ffmpeg</em> in the
same way.</li>
<li>(<code>np.ndarray</code> of shape (n, ) of type <code>np.float32</code> or <code>np.float64</code>)
Raw audio at the correct sampling rate (no further check will be done)</li>
<li><code>dict</code> form can be used to pass raw audio sampled at arbitrary <code>sampling_rate</code> and let this
pipeline do the resampling. The dict must be either be in the format <code>{&quot;sampling_rate&quot;: int, &quot;raw&quot;: np.array}</code>, or <code>{&quot;sampling_rate&quot;: int, &quot;array&quot;: np.array}</code>, where the key <code>&quot;raw&quot;</code> or
<code>&quot;array&quot;</code> is used to denote the raw audio waveform.</li>
</ul>`,name:"inputs"},{anchor:"transformers.AudioClassificationPipeline.__call__.top_k",description:`<strong>top_k</strong> (<code>int</code>, <em>optional</em>, defaults to None) &#x2014;
The number of top labels that will be returned by the pipeline. If the provided number is <code>None</code> or
higher than the number of labels available in the model configuration, it will default to the number of
labels.`,name:"top_k"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/audio_classification.py#L103",returnDescription:`
<ul>
<li><strong>label</strong> (<code>str</code>) — The label predicted.</li>
<li><strong>score</strong> (<code>float</code>) — The corresponding probability.</li>
</ul>
`,returnType:`
<p>A list of <code>dict</code> with the following keys</p>
`}}),Ia=new P({}),qa=new k({props:{name:"class transformers.AutomaticSpeechRecognitionPipeline",anchor:"transformers.AutomaticSpeechRecognitionPipeline",parameters:[{name:"model",val:": PreTrainedModel"},{name:"feature_extractor",val:": typing.Union[ForwardRef('SequenceFeatureExtractor'), str] = None"},{name:"tokenizer",val:": typing.Optional[transformers.tokenization_utils.PreTrainedTokenizer] = None"},{name:"decoder",val:": typing.Union[ForwardRef('BeamSearchDecoderCTC'), str, NoneType] = None"},{name:"modelcard",val:": typing.Optional[transformers.modelcard.ModelCard] = None"},{name:"framework",val:": typing.Optional[str] = None"},{name:"task",val:": str = ''"},{name:"args_parser",val:": ArgumentHandler = None"},{name:"device",val:": typing.Union[int, ForwardRef('torch.device')] = None"},{name:"torch_dtype",val:": typing.Union[str, ForwardRef('torch.dtype'), NoneType] = None"},{name:"binary_output",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.AutomaticSpeechRecognitionPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.feature_extractor",description:`<strong>feature_extractor</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/feature_extractor#transformers.SequenceFeatureExtractor">SequenceFeatureExtractor</a>) &#x2014;
The feature extractor that will be used by the pipeline to encode waveform for the model.`,name:"feature_extractor"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.chunk_length_s",description:`<strong>chunk_length_s</strong> (<code>float</code>, <em>optional</em>, defaults to 0) &#x2014;
The input length for in each chunk. If <code>chunk_length_s = 0</code> then chunking is disabled (default).</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						
<p>For more information on how to effectively use <code>chunk_length_s</code>, please have a look at the <a href="https://huggingface.co/blog/asr-chunking" rel="nofollow">ASR chunking
blog post</a>.</p>

					</div>`,name:"chunk_length_s"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.stride_length_s",description:`<strong>stride_length_s</strong> (<code>float</code>, <em>optional</em>, defaults to <code>chunk_length_s / 6</code>) &#x2014;
The length of stride on the left and right of each chunk. Used only with <code>chunk_length_s &gt; 0</code>. This enables
the model to <em>see</em> more context and infer letters better than without this context but the pipeline
discards the stride bits at the end to make the final reconstitution as perfect as possible.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						
<p>For more information on how to effectively use <code>stride_length_s</code>, please have a look at the <a href="https://huggingface.co/blog/asr-chunking" rel="nofollow">ASR chunking
blog post</a>.</p>

					</div>`,name:"stride_length_s"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed. If no framework is specified, will default to the one currently installed. If no framework is
specified and both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if
no model is provided.`,name:"framework"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.device",description:`<strong>device</strong> (Union[<code>int</code>, <code>torch.device</code>], <em>optional</em>) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to <code>None</code> will leverage CPU, a positive will run the
model on the associated CUDA device id.`,name:"device"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.decoder",description:`<strong>decoder</strong> (<code>pyctcdecode.BeamSearchDecoderCTC</code>, <em>optional</em>) &#x2014;
<a href="https://github.com/kensho-technologies/pyctcdecode/blob/2fd33dc37c4111417e08d89ccd23d28e9b308d19/pyctcdecode/decoder.py#L180" rel="nofollow">PyCTCDecode&#x2019;s
BeamSearchDecoderCTC</a>
can be passed for language model boosted decoding. See <a href="/docs/transformers/v4.33.3/en/model_doc/wav2vec2#transformers.Wav2Vec2ProcessorWithLM">Wav2Vec2ProcessorWithLM</a> for more information.`,name:"decoder"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/automatic_speech_recognition.py#L135"}}),Rt=new J({props:{anchor:"transformers.AutomaticSpeechRecognitionPipeline.example",$$slots:{default:[bk]},$$scope:{ctx:U}}}),Ga=new k({props:{name:"__call__",anchor:"transformers.AutomaticSpeechRecognitionPipeline.__call__",parameters:[{name:"inputs",val:": typing.Union[numpy.ndarray, bytes, str]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.AutomaticSpeechRecognitionPipeline.__call__.inputs",description:`<strong>inputs</strong> (<code>np.ndarray</code> or <code>bytes</code> or <code>str</code> or <code>dict</code>) &#x2014;
The inputs is either :</p>
<ul>
<li><code>str</code> that is the filename of the audio file, the file will be read at the correct sampling rate
to get the waveform using <em>ffmpeg</em>. This requires <em>ffmpeg</em> to be installed on the system.</li>
<li><code>bytes</code> it is supposed to be the content of an audio file and is interpreted by <em>ffmpeg</em> in the
same way.</li>
<li>(<code>np.ndarray</code> of shape (n, ) of type <code>np.float32</code> or <code>np.float64</code>)
Raw audio at the correct sampling rate (no further check will be done)</li>
<li><code>dict</code> form can be used to pass raw audio sampled at arbitrary <code>sampling_rate</code> and let this
pipeline do the resampling. The dict must be in the format <code>{&quot;sampling_rate&quot;: int, &quot;raw&quot;: np.array}</code> with optionally a <code>&quot;stride&quot;: (left: int, right: int)</code> than can ask the pipeline to
treat the first <code>left</code> samples and last <code>right</code> samples to be ignored in decoding (but used at
inference to provide more context to the model). Only use <code>stride</code> with CTC models.</li>
</ul>`,name:"inputs"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.__call__.return_timestamps",description:`<strong>return_timestamps</strong> (<em>optional</em>, <code>str</code> or <code>bool</code>) &#x2014;
Only available for pure CTC models (Wav2Vec2, HuBERT, etc) and the Whisper model. Not available for
other sequence-to-sequence models.</p>
<p>For CTC models, timestamps can take one of two formats:</p>
<ul>
<li><code>&quot;char&quot;</code>: the pipeline will return timestamps along the text for every character in the text. For
instance, if you get <code>[{&quot;text&quot;: &quot;h&quot;, &quot;timestamp&quot;: (0.5, 0.6)}, {&quot;text&quot;: &quot;i&quot;, &quot;timestamp&quot;: (0.7, 0.9)}]</code>, then it means the model predicts that the letter &#x201C;h&#x201D; was spoken after <code>0.5</code> and before
<code>0.6</code> seconds.</li>
<li><code>&quot;word&quot;</code>: the pipeline will return timestamps along the text for every word in the text. For
instance, if you get <code>[{&quot;text&quot;: &quot;hi &quot;, &quot;timestamp&quot;: (0.5, 0.9)}, {&quot;text&quot;: &quot;there&quot;, &quot;timestamp&quot;: (1.0, 1.5)}]</code>, then it means the model predicts that the word &#x201C;hi&#x201D; was spoken after <code>0.5</code> and
before <code>0.9</code> seconds.</li>
</ul>
<p>For the Whisper model, timestamps can take one of two formats:</p>
<ul>
<li><code>&quot;word&quot;</code>: same as above for word-level CTC timestamps. Word-level timestamps are predicted
through the <em>dynamic-time warping (DTW)</em> algorithm, an approximation to word-level timestamps
by inspecting the cross-attention weights.</li>
<li><code>True</code>: the pipeline will return timestamps along the text for <em>segments</em> of words in the text.
For instance, if you get <code>[{&quot;text&quot;: &quot; Hi there!&quot;, &quot;timestamp&quot;: (0.5, 1.5)}]</code>, then it means the
model predicts that the segment &#x201C;Hi there!&#x201D; was spoken after <code>0.5</code> and before <code>1.5</code> seconds.
Note that a segment of text refers to a sequence of one or more words, rather than individual
words as with word-level timestamps.</li>
</ul>`,name:"return_timestamps"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.__call__.generate_kwargs",description:`<strong>generate_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
The dictionary of ad-hoc parametrization of <code>generate_config</code> to be used for the generation call. For a
complete overview of generate, check the <a href="https://huggingface.co/docs/transformers/en/main_classes/text_generation" rel="nofollow">following
guide</a>.`,name:"generate_kwargs"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.__call__.max_new_tokens",description:`<strong>max_new_tokens</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The maximum numbers of tokens to generate, ignoring the number of tokens in the prompt.`,name:"max_new_tokens"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/automatic_speech_recognition.py#L294",returnDescription:`
<p>A dictionary with the following keys:</p>
<ul>
<li><strong>text</strong> (<code>str</code>): The recognized text.</li>
<li><strong>chunks</strong> (<em>optional(, <code>List[Dict]</code>)
When using <code>return_timestamps</code>, the <code>chunks</code> will become a list containing all the various text
chunks identified by the model, </em>e.g.* <code>[&#123;"text": "hi ", "timestamp": (0.5, 0.9)&#125;, &#123;"text": "there", "timestamp": (1.0, 1.5)&#125;]</code>. The original full text can roughly be recovered by doing
<code>"".join(chunk["text"] for chunk in output["chunks"])</code>.</li>
</ul>
`,returnType:`
<p><code>Dict</code></p>
`}}),za=new P({}),Aa=new k({props:{name:"class transformers.TextToAudioPipeline",anchor:"transformers.TextToAudioPipeline",parameters:[{name:"*args",val:""},{name:"vocoder",val:" = None"},{name:"sampling_rate",val:" = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/text_to_audio.py#L27"}}),Vt=new J({props:{anchor:"transformers.TextToAudioPipeline.example",$$slots:{default:[yk]},$$scope:{ctx:U}}}),Na=new k({props:{name:"__call__",anchor:"transformers.TextToAudioPipeline.__call__",parameters:[{name:"text_inputs",val:": typing.Union[str, typing.List[str]]"},{name:"**forward_params",val:""}],parametersDescription:[{anchor:"transformers.TextToAudioPipeline.__call__.text_inputs",description:`<strong>text_inputs</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
The text(s) to generate.`,name:"text_inputs"},{anchor:"transformers.TextToAudioPipeline.__call__.forward_params",description:`<strong>forward_params</strong> (<em>optional</em>) &#x2014;
Parameters passed to the model generation/forward method.`,name:"forward_params"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/text_to_audio.py#L122",returnDescription:`
<p>The dictionaries have two keys:</p>
<ul>
<li><strong>audio</strong> (<code>np.ndarray</code> of shape <code>(nb_channels, audio_length)</code>) — The generated audio waveform.</li>
<li><strong>sampling_rate</strong> (<code>int</code>) — The sampling rate of the generated audio waveform.</li>
</ul>
`,returnType:`
<p>A <code>dict</code> or a list of <code>dict</code></p>
`}}),Za=new P({}),Fa=new k({props:{name:"class transformers.ZeroShotAudioClassificationPipeline",anchor:"transformers.ZeroShotAudioClassificationPipeline",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotAudioClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.33.3/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/zero_shot_audio_classification.py#L33"}}),Wt=new J({props:{anchor:"transformers.ZeroShotAudioClassificationPipeline.example",$$slots:{default:[wk]},$$scope:{ctx:U}}}),Da=new k({props:{name:"__call__",anchor:"transformers.ZeroShotAudioClassificationPipeline.__call__",parameters:[{name:"audios",val:": typing.Union[numpy.ndarray, bytes, str]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotAudioClassificationPipeline.__call__.audios",description:`<strong>audios</strong> (<code>str</code>, <code>List[str]</code>, <code>np.array</code> or <code>List[np.array]</code>) &#x2014;
The pipeline handles three types of inputs:<ul>
<li>A string containing a http link pointing to an audio</li>
<li>A string containing a local path to an audio</li>
<li>An audio loaded in numpy</li>
</ul>`,name:"audios"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.__call__.candidate_labels",description:`<strong>candidate_labels</strong> (<code>List[str]</code>) &#x2014;
The candidate labels for this audio`,name:"candidate_labels"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.__call__.hypothesis_template",description:`<strong>hypothesis_template</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;This is a sound of {}&quot;</code>) &#x2014;
The sentence used in cunjunction with <em>candidate_labels</em> to attempt the audio classification by
replacing the placeholder with the candidate_labels. Then likelihood is estimated by using
logits_per_audio`,name:"hypothesis_template"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/zero_shot_audio_classification.py#L64",returnDescription:`
<p>A list of dictionaries containing result, one dictionary per proposed label. The dictionaries contain the
following keys:</p>
<ul>
<li><strong>label</strong> (<code>str</code>) — The label identified by the model. It is one of the suggested <code>candidate_label</code>.</li>
<li><strong>score</strong> (<code>float</code>) — The score attributed by the model for that label (between 0 and 1).</li>
</ul>
`}}),Ra=new P({}),Ba=new P({}),Va=new k({props:{name:"class transformers.DepthEstimationPipeline",anchor:"transformers.DepthEstimationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.DepthEstimationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.DepthEstimationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.DepthEstimationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.DepthEstimationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.DepthEstimationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.DepthEstimationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.DepthEstimationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.DepthEstimationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.33.3/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.DepthEstimationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.DepthEstimationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/depth_estimation.py#L23"}}),Qt=new J({props:{anchor:"transformers.DepthEstimationPipeline.example",$$slots:{default:[xk]},$$scope:{ctx:U}}}),Ea=new k({props:{name:"__call__",anchor:"transformers.DepthEstimationPipeline.__call__",parameters:[{name:"images",val:": typing.Union[str, typing.List[str], ForwardRef('Image.Image'), typing.List[ForwardRef('Image.Image')]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.DepthEstimationPipeline.__call__.images",description:`<strong>images</strong> (<code>str</code>, <code>List[str]</code>, <code>PIL.Image</code> or <code>List[PIL.Image]</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing a http link pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>
<p>The pipeline accepts either a single image or a batch of images, which must then be passed as a string.
Images in a batch must all be in the same format: all as http links, all as local paths, or all as PIL
images.`,name:"images"},{anchor:"transformers.DepthEstimationPipeline.__call__.top_k",description:`<strong>top_k</strong> (<code>int</code>, <em>optional</em>, defaults to 5) &#x2014;
The number of top labels that will be returned by the pipeline. If the provided number is higher than
the number of labels available in the model configuration, it will default to the number of labels.`,name:"top_k"},{anchor:"transformers.DepthEstimationPipeline.__call__.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to None) &#x2014;
The maximum time in seconds to wait for fetching images from the web. If None, no timeout is set and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/depth_estimation.py#L53",returnDescription:`
<p>A dictionary or a list of dictionaries containing result. If the input is a single image, will return a
dictionary, if the input is a list of several images, will return a list of dictionaries corresponding to
the images.</p>
<p>The dictionaries contain the following keys:</p>
<ul>
<li><strong>label</strong> (<code>str</code>) — The label identified by the model.</li>
<li><strong>score</strong> (<code>int</code>) — The score attributed by the model for that label.</li>
</ul>
`}}),La=new P({}),Wa=new k({props:{name:"class transformers.ImageClassificationPipeline",anchor:"transformers.ImageClassificationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ImageClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.ImageClassificationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.ImageClassificationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.ImageClassificationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.ImageClassificationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.ImageClassificationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.ImageClassificationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.33.3/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.ImageClassificationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.ImageClassificationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/image_classification.py#L32"}}),en=new J({props:{anchor:"transformers.ImageClassificationPipeline.example",$$slots:{default:[vk]},$$scope:{ctx:U}}}),Oa=new k({props:{name:"__call__",anchor:"transformers.ImageClassificationPipeline.__call__",parameters:[{name:"images",val:": typing.Union[str, typing.List[str], ForwardRef('Image.Image'), typing.List[ForwardRef('Image.Image')]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageClassificationPipeline.__call__.images",description:`<strong>images</strong> (<code>str</code>, <code>List[str]</code>, <code>PIL.Image</code> or <code>List[PIL.Image]</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing a http link pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>
<p>The pipeline accepts either a single image or a batch of images, which must then be passed as a string.
Images in a batch must all be in the same format: all as http links, all as local paths, or all as PIL
images.`,name:"images"},{anchor:"transformers.ImageClassificationPipeline.__call__.top_k",description:`<strong>top_k</strong> (<code>int</code>, <em>optional</em>, defaults to 5) &#x2014;
The number of top labels that will be returned by the pipeline. If the provided number is higher than
the number of labels available in the model configuration, it will default to the number of labels.`,name:"top_k"},{anchor:"transformers.ImageClassificationPipeline.__call__.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to None) &#x2014;
The maximum time in seconds to wait for fetching images from the web. If None, no timeout is set and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/image_classification.py#L74",returnDescription:`
<p>A dictionary or a list of dictionaries containing result. If the input is a single image, will return a
dictionary, if the input is a list of several images, will return a list of dictionaries corresponding to
the images.</p>
<p>The dictionaries contain the following keys:</p>
<ul>
<li><strong>label</strong> (<code>str</code>) — The label identified by the model.</li>
<li><strong>score</strong> (<code>int</code>) — The score attributed by the model for that label.</li>
</ul>
`}}),Ha=new P({}),Ya=new k({props:{name:"class transformers.ImageSegmentationPipeline",anchor:"transformers.ImageSegmentationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageSegmentationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ImageSegmentationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.ImageSegmentationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.ImageSegmentationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.ImageSegmentationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.ImageSegmentationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.ImageSegmentationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.ImageSegmentationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.33.3/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.ImageSegmentationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.ImageSegmentationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/image_segmentation.py#L31"}}),sn=new J({props:{anchor:"transformers.ImageSegmentationPipeline.example",$$slots:{default:[_k]},$$scope:{ctx:U}}}),Qa=new k({props:{name:"__call__",anchor:"transformers.ImageSegmentationPipeline.__call__",parameters:[{name:"images",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageSegmentationPipeline.__call__.images",description:`<strong>images</strong> (<code>str</code>, <code>List[str]</code>, <code>PIL.Image</code> or <code>List[PIL.Image]</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing an HTTP(S) link pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>
<p>The pipeline accepts either a single image or a batch of images. Images in a batch must all be in the
same format: all as HTTP(S) links, all as local paths, or all as PIL images.`,name:"images"},{anchor:"transformers.ImageSegmentationPipeline.__call__.subtask",description:`<strong>subtask</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Segmentation task to be performed, choose [<code>semantic</code>, <code>instance</code> and <code>panoptic</code>] depending on model
capabilities. If not set, the pipeline will attempt tp resolve in the following order:
<code>panoptic</code>, <code>instance</code>, <code>semantic</code>.`,name:"subtask"},{anchor:"transformers.ImageSegmentationPipeline.__call__.threshold",description:`<strong>threshold</strong> (<code>float</code>, <em>optional</em>, defaults to 0.9) &#x2014;
Probability threshold to filter out predicted masks.`,name:"threshold"},{anchor:"transformers.ImageSegmentationPipeline.__call__.mask_threshold",description:`<strong>mask_threshold</strong> (<code>float</code>, <em>optional</em>, defaults to 0.5) &#x2014;
Threshold to use when turning the predicted masks into binary values.`,name:"mask_threshold"},{anchor:"transformers.ImageSegmentationPipeline.__call__.overlap_mask_area_threshold",description:`<strong>overlap_mask_area_threshold</strong> (<code>float</code>, <em>optional</em>, defaults to 0.5) &#x2014;
Mask overlap threshold to eliminate small, disconnected segments.`,name:"overlap_mask_area_threshold"},{anchor:"transformers.ImageSegmentationPipeline.__call__.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to None) &#x2014;
The maximum time in seconds to wait for fetching images from the web. If None, no timeout is set and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/image_segmentation.py#L97",returnDescription:`
<p>A dictionary or a list of dictionaries containing the result. If the input is a single image, will return a
list of dictionaries, if the input is a list of several images, will return a list of list of dictionaries
corresponding to each image.</p>
<p>The dictionaries contain the mask, label and score (where applicable) of each detected object and contains
the following keys:</p>
<ul>
<li><strong>label</strong> (<code>str</code>) — The class label identified by the model.</li>
<li><strong>mask</strong> (<code>PIL.Image</code>) — A binary mask of the detected object as a Pil Image of shape (width, height) of
the original image. Returns a mask filled with zeros if no object is found.</li>
<li><strong>score</strong> (<em>optional</em> <code>float</code>) — Optionally, when the model is capable of estimating a confidence of the
“object” described by the label and the mask.</li>
</ul>
`}}),Xa=new P({}),Ka=new k({props:{name:"class transformers.ObjectDetectionPipeline",anchor:"transformers.ObjectDetectionPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ObjectDetectionPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ObjectDetectionPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.ObjectDetectionPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.ObjectDetectionPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.ObjectDetectionPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.ObjectDetectionPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.ObjectDetectionPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.ObjectDetectionPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.33.3/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.ObjectDetectionPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.ObjectDetectionPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/object_detection.py#L27"}}),rn=new J({props:{anchor:"transformers.ObjectDetectionPipeline.example",$$slots:{default:[Mk]},$$scope:{ctx:U}}}),eo=new k({props:{name:"__call__",anchor:"transformers.ObjectDetectionPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ObjectDetectionPipeline.__call__.images",description:`<strong>images</strong> (<code>str</code>, <code>List[str]</code>, <code>PIL.Image</code> or <code>List[PIL.Image]</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing an HTTP(S) link pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>
<p>The pipeline accepts either a single image or a batch of images. Images in a batch must all be in the
same format: all as HTTP(S) links, all as local paths, or all as PIL images.`,name:"images"},{anchor:"transformers.ObjectDetectionPipeline.__call__.threshold",description:`<strong>threshold</strong> (<code>float</code>, <em>optional</em>, defaults to 0.9) &#x2014;
The probability necessary to make a prediction.`,name:"threshold"},{anchor:"transformers.ObjectDetectionPipeline.__call__.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to None) &#x2014;
The maximum time in seconds to wait for fetching images from the web. If None, no timeout is set and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/object_detection.py#L72",returnDescription:`
<p>A list of dictionaries or a list of list of dictionaries containing the result. If the input is a single
image, will return a list of dictionaries, if the input is a list of several images, will return a list of
list of dictionaries corresponding to each image.</p>
<p>The dictionaries contain the following keys:</p>
<ul>
<li><strong>label</strong> (<code>str</code>) — The class label identified by the model.</li>
<li><strong>score</strong> (<code>float</code>) — The score attributed by the model for that label.</li>
<li><strong>box</strong> (<code>List[Dict[str, int]]</code>) — The bounding box of detected object in image’s original size.</li>
</ul>
`}}),to=new P({}),no=new k({props:{name:"class transformers.VideoClassificationPipeline",anchor:"transformers.VideoClassificationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.VideoClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.VideoClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.VideoClassificationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.VideoClassificationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.VideoClassificationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.VideoClassificationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.VideoClassificationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.VideoClassificationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.33.3/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.VideoClassificationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.VideoClassificationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/video_classification.py#L22"}}),so=new k({props:{name:"__call__",anchor:"transformers.VideoClassificationPipeline.__call__",parameters:[{name:"videos",val:": typing.Union[str, typing.List[str]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.VideoClassificationPipeline.__call__.videos",description:`<strong>videos</strong> (<code>str</code>, <code>List[str]</code>) &#x2014;
The pipeline handles three types of videos:</p>
<ul>
<li>A string containing a http link pointing to a video</li>
<li>A string containing a local path to a video</li>
</ul>
<p>The pipeline accepts either a single video or a batch of videos, which must then be passed as a string.
Videos in a batch must all be in the same format: all as http links or all as local paths.`,name:"videos"},{anchor:"transformers.VideoClassificationPipeline.__call__.top_k",description:`<strong>top_k</strong> (<code>int</code>, <em>optional</em>, defaults to 5) &#x2014;
The number of top labels that will be returned by the pipeline. If the provided number is higher than
the number of labels available in the model configuration, it will default to the number of labels.`,name:"top_k"},{anchor:"transformers.VideoClassificationPipeline.__call__.num_frames",description:`<strong>num_frames</strong> (<code>int</code>, <em>optional</em>, defaults to <code>self.model.config.num_frames</code>) &#x2014;
The number of frames sampled from the video to run the classification on. If not provided, will default
to the number of frames specified in the model configuration.`,name:"num_frames"},{anchor:"transformers.VideoClassificationPipeline.__call__.frame_sampling_rate",description:`<strong>frame_sampling_rate</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The sampling rate used to select frames from the video. If not provided, will default to 1, i.e. every
frame will be used.`,name:"frame_sampling_rate"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/video_classification.py#L51",returnDescription:`
<p>A dictionary or a list of dictionaries containing result. If the input is a single video, will return a
dictionary, if the input is a list of several videos, will return a list of dictionaries corresponding to
the videos.</p>
<p>The dictionaries contain the following keys:</p>
<ul>
<li><strong>label</strong> (<code>str</code>) — The label identified by the model.</li>
<li><strong>score</strong> (<code>int</code>) — The score attributed by the model for that label.</li>
</ul>
`}}),ao=new P({}),oo=new k({props:{name:"class transformers.ZeroShotImageClassificationPipeline",anchor:"transformers.ZeroShotImageClassificationPipeline",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotImageClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ZeroShotImageClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.ZeroShotImageClassificationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.ZeroShotImageClassificationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.ZeroShotImageClassificationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.ZeroShotImageClassificationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.ZeroShotImageClassificationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.ZeroShotImageClassificationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.33.3/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.ZeroShotImageClassificationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.ZeroShotImageClassificationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/zero_shot_image_classification.py#L31"}}),mn=new J({props:{anchor:"transformers.ZeroShotImageClassificationPipeline.example",$$slots:{default:[kk]},$$scope:{ctx:U}}}),ro=new k({props:{name:"__call__",anchor:"transformers.ZeroShotImageClassificationPipeline.__call__",parameters:[{name:"images",val:": typing.Union[str, typing.List[str], ForwardRef('Image'), typing.List[ForwardRef('Image')]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotImageClassificationPipeline.__call__.images",description:`<strong>images</strong> (<code>str</code>, <code>List[str]</code>, <code>PIL.Image</code> or <code>List[PIL.Image]</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing a http link pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>`,name:"images"},{anchor:"transformers.ZeroShotImageClassificationPipeline.__call__.candidate_labels",description:`<strong>candidate_labels</strong> (<code>List[str]</code>) &#x2014;
The candidate labels for this image`,name:"candidate_labels"},{anchor:"transformers.ZeroShotImageClassificationPipeline.__call__.hypothesis_template",description:`<strong>hypothesis_template</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;This is a photo of {}&quot;</code>) &#x2014;
The sentence used in cunjunction with <em>candidate_labels</em> to attempt the image classification by
replacing the placeholder with the candidate_labels. Then likelihood is estimated by using
logits_per_image`,name:"hypothesis_template"},{anchor:"transformers.ZeroShotImageClassificationPipeline.__call__.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to None) &#x2014;
The maximum time in seconds to wait for fetching images from the web. If None, no timeout is set and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/zero_shot_image_classification.py#L74",returnDescription:`
<p>A list of dictionaries containing result, one dictionary per proposed label. The dictionaries contain the
following keys:</p>
<ul>
<li><strong>label</strong> (<code>str</code>) — The label identified by the model. It is one of the suggested <code>candidate_label</code>.</li>
<li><strong>score</strong> (<code>float</code>) — The score attributed by the model for that label (between 0 and 1).</li>
</ul>
`}}),io=new P({}),lo=new k({props:{name:"class transformers.ZeroShotObjectDetectionPipeline",anchor:"transformers.ZeroShotObjectDetectionPipeline",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotObjectDetectionPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ZeroShotObjectDetectionPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.ZeroShotObjectDetectionPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.ZeroShotObjectDetectionPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.ZeroShotObjectDetectionPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.ZeroShotObjectDetectionPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.ZeroShotObjectDetectionPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.ZeroShotObjectDetectionPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.33.3/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.ZeroShotObjectDetectionPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.ZeroShotObjectDetectionPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/zero_shot_object_detection.py#L23"}}),gn=new J({props:{anchor:"transformers.ZeroShotObjectDetectionPipeline.example",$$slots:{default:[Uk]},$$scope:{ctx:U}}}),po=new k({props:{name:"__call__",anchor:"transformers.ZeroShotObjectDetectionPipeline.__call__",parameters:[{name:"image",val:": typing.Union[str, ForwardRef('Image.Image'), typing.List[typing.Dict[str, typing.Any]]]"},{name:"candidate_labels",val:": typing.Union[str, typing.List[str]] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotObjectDetectionPipeline.__call__.image",description:`<strong>image</strong> (<code>str</code>, <code>PIL.Image</code> or <code>List[Dict[str, Any]]</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing an http url pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>
<p>You can use this parameter to send directly a list of images, or a dataset or a generator like so:`,name:"image"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/zero_shot_object_detection.py#L65",returnDescription:`
<p>A list of lists containing prediction results, one list per input image. Each list contains dictionaries
with the following keys:</p>
<ul>
<li><strong>label</strong> (<code>str</code>) — Text query corresponding to the found object.</li>
<li><strong>score</strong> (<code>float</code>) — Score corresponding to the object (between 0 and 1).</li>
<li><strong>box</strong> (<code>Dict[str,int]</code>) — Bounding box of the detected object in image’s original size. It is a
dictionary with <code>x_min</code>, <code>x_max</code>, <code>y_min</code>, <code>y_max</code> keys.</li>
</ul>
`}}),co=new P({}),ho=new P({}),fo=new k({props:{name:"class transformers.Conversation",anchor:"transformers.Conversation",parameters:[{name:"text",val:": str = None"},{name:"conversation_id",val:": UUID = None"},{name:"past_user_inputs",val:" = None"},{name:"generated_responses",val:" = None"}],parametersDescription:[{anchor:"transformers.Conversation.text",description:`<strong>text</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The initial user input to start the conversation. If not provided, a user input needs to be provided
manually using the <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.Conversation.add_user_input">add_user_input()</a> method before the conversation can begin.`,name:"text"},{anchor:"transformers.Conversation.conversation_id",description:`<strong>conversation_id</strong> (<code>uuid.UUID</code>, <em>optional</em>) &#x2014;
Unique identifier for the conversation. If not provided, a random UUID4 id will be assigned to the
conversation.`,name:"conversation_id"},{anchor:"transformers.Conversation.past_user_inputs",description:`<strong>past_user_inputs</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
Eventual past history of the conversation of the user. You don&#x2019;t need to pass it manually if you use the
pipeline interactively but if you want to recreate history you need to set both <code>past_user_inputs</code> and
<code>generated_responses</code> with equal length lists of strings`,name:"past_user_inputs"},{anchor:"transformers.Conversation.generated_responses",description:`<strong>generated_responses</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
Eventual past history of the conversation of the model. You don&#x2019;t need to pass it manually if you use the
pipeline interactively but if you want to recreate history you need to set both <code>past_user_inputs</code> and
<code>generated_responses</code> with equal length lists of strings`,name:"generated_responses"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/conversational.py#L18"}}),yn=new J({props:{anchor:"transformers.Conversation.example",$$slots:{default:[jk]},$$scope:{ctx:U}}}),go=new k({props:{name:"add_user_input",anchor:"transformers.Conversation.add_user_input",parameters:[{name:"text",val:": str"},{name:"overwrite",val:": bool = False"}],parametersDescription:[{anchor:"transformers.Conversation.add_user_input.text",description:"<strong>text</strong> (<code>str</code>) &#x2014; The user input for the next conversation round.",name:"text"},{anchor:"transformers.Conversation.add_user_input.overwrite",description:`<strong>overwrite</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not existing and unprocessed user input should be overwritten when this function is called.`,name:"overwrite"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/conversational.py#L82"}}),uo=new k({props:{name:"append_response",anchor:"transformers.Conversation.append_response",parameters:[{name:"response",val:": str"}],parametersDescription:[{anchor:"transformers.Conversation.append_response.response",description:"<strong>response</strong> (<code>str</code>) &#x2014; The model generated response.",name:"response"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/conversational.py#L115"}}),To=new k({props:{name:"iter_texts",anchor:"transformers.Conversation.iter_texts",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/conversational.py#L124"}}),bo=new k({props:{name:"mark_processed",anchor:"transformers.Conversation.mark_processed",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/conversational.py#L106"}}),yo=new k({props:{name:"class transformers.ConversationalPipeline",anchor:"transformers.ConversationalPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ConversationalPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ConversationalPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.ConversationalPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.ConversationalPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.ConversationalPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.ConversationalPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.ConversationalPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.ConversationalPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.33.3/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.ConversationalPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.ConversationalPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"},{anchor:"transformers.ConversationalPipeline.min_length_for_response",description:`<strong>min_length_for_response</strong> (<code>int</code>, <em>optional</em>, defaults to 32) &#x2014;
The minimum length (in number of tokens) for a response.`,name:"min_length_for_response"},{anchor:"transformers.ConversationalPipeline.minimum_tokens",description:`<strong>minimum_tokens</strong> (<code>int</code>, <em>optional</em>, defaults to 10) &#x2014;
The minimum length of tokens to leave for a response.`,name:"minimum_tokens"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/conversational.py#L163"}}),_n=new J({props:{anchor:"transformers.ConversationalPipeline.example",$$slots:{default:[Pk]},$$scope:{ctx:U}}}),wo=new k({props:{name:"__call__",anchor:"transformers.ConversationalPipeline.__call__",parameters:[{name:"conversations",val:": typing.Union[transformers.pipelines.conversational.Conversation, typing.List[transformers.pipelines.conversational.Conversation]]"},{name:"num_workers",val:" = 0"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ConversationalPipeline.__call__.conversations",description:`<strong>conversations</strong> (a <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.Conversation">Conversation</a> or a list of <a href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.Conversation">Conversation</a>) &#x2014;
Conversations to generate responses for.`,name:"conversations"},{anchor:"transformers.ConversationalPipeline.__call__.clean_up_tokenization_spaces",description:`<strong>clean_up_tokenization_spaces</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to clean up the potential extra spaces in the text output.
generate_kwargs &#x2014;
Additional keyword arguments to pass along to the generate method of the model (see the generate method
corresponding to your framework <a href="./model#generative-models">here</a>).`,name:"clean_up_tokenization_spaces"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/conversational.py#L222",returnDescription:`
<p>Conversation(s) with updated generated responses for those
containing a new user input.</p>
`,returnType:`
<p><a
  href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.Conversation"
>Conversation</a> or a list of <a
  href="/docs/transformers/v4.33.3/en/main_classes/pipelines#transformers.Conversation"
>Conversation</a></p>
`}}),xo=new P({}),vo=new k({props:{name:"class transformers.FillMaskPipeline",anchor:"transformers.FillMaskPipeline",parameters:[{name:"model",val:": typing.Union[ForwardRef('PreTrainedModel'), ForwardRef('TFPreTrainedModel')]"},{name:"tokenizer",val:": typing.Optional[transformers.tokenization_utils.PreTrainedTokenizer] = None"},{name:"feature_extractor",val:": typing.Optional[ForwardRef('SequenceFeatureExtractor')] = None"},{name:"image_processor",val:": typing.Optional[transformers.image_processing_utils.BaseImageProcessor] = None"},{name:"modelcard",val:": typing.Optional[transformers.modelcard.ModelCard] = None"},{name:"framework",val:": typing.Optional[str] = None"},{name:"task",val:": str = ''"},{name:"args_parser",val:": ArgumentHandler = None"},{name:"device",val:": typing.Union[int, ForwardRef('torch.device')] = None"},{name:"torch_dtype",val:": typing.Union[str, ForwardRef('torch.dtype'), NoneType] = None"},{name:"binary_output",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FillMaskPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.FillMaskPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.FillMaskPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.FillMaskPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.FillMaskPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.FillMaskPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.FillMaskPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.FillMaskPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.33.3/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.FillMaskPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.FillMaskPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"},{anchor:"transformers.FillMaskPipeline.top_k",description:`<strong>top_k</strong> (<code>int</code>, defaults to 5) &#x2014;
The number of predictions to return.`,name:"top_k"},{anchor:"transformers.FillMaskPipeline.targets",description:`<strong>targets</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
When passed, the model will limit the scores to the passed targets instead of looking up in the whole
vocab. If the provided targets are not in the model vocab, they will be tokenized and the first resulting
token will be used (with a warning, and that might be slower).`,name:"targets"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/fill_mask.py#L34"}}),Un=new J({props:{anchor:"transformers.FillMaskPipeline.example",$$slots:{default:[Ck]},$$scope:{ctx:U}}}),jn=new pk({props:{$$slots:{default:[$k]},$$scope:{ctx:U}}}),_o=new k({props:{name:"__call__",anchor:"transformers.FillMaskPipeline.__call__",parameters:[{name:"inputs",val:""},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FillMaskPipeline.__call__.args",description:`<strong>args</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
One or several texts (or one list of prompts) with masked tokens.`,name:"args"},{anchor:"transformers.FillMaskPipeline.__call__.targets",description:`<strong>targets</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
When passed, the model will limit the scores to the passed targets instead of looking up in the whole
vocab. If the provided targets are not in the model vocab, they will be tokenized and the first
resulting token will be used (with a warning, and that might be slower).`,name:"targets"},{anchor:"transformers.FillMaskPipeline.__call__.top_k",description:`<strong>top_k</strong> (<code>int</code>, <em>optional</em>) &#x2014;
When passed, overrides the number of predictions to return.`,name:"top_k"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/fill_mask.py#L217",returnDescription:`
<p>Each result comes as list of dictionaries with the following keys:</p>
<ul>
<li><strong>sequence</strong> (<code>str</code>) — The corresponding input with the mask token prediction.</li>
<li><strong>score</strong> (<code>float</code>) — The corresponding probability.</li>
<li><strong>token</strong> (<code>int</code>) — The predicted token id (to replace the masked one).</li>
<li><strong>token_str</strong> (<code>str</code>) — The predicted token (to replace the masked one).</li>
</ul>
`,returnType:`
<p>A list or a list of list of <code>dict</code></p>
`}}),Mo=new P({}),ko=new k({props:{name:"class transformers.TokenClassificationPipeline",anchor:"transformers.TokenClassificationPipeline",parameters:[{name:"args_parser",val:" = <transformers.pipelines.token_classification.TokenClassificationArgumentHandler object at 0x7f464f71a070>"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TokenClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.TokenClassificationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.TokenClassificationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.TokenClassificationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.TokenClassificationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.TokenClassificationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.TokenClassificationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.33.3/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.TokenClassificationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.TokenClassificationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"},{anchor:"transformers.TokenClassificationPipeline.ignore_labels",description:`<strong>ignore_labels</strong> (<code>List[str]</code>, defaults to <code>[&quot;O&quot;]</code>) &#x2014;
A list of labels to ignore.`,name:"ignore_labels"},{anchor:"transformers.TokenClassificationPipeline.grouped_entities",description:`<strong>grouped_entities</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
DEPRECATED, use <code>aggregation_strategy</code> instead. Whether or not to group the tokens corresponding to the
same entity together in the predictions or not.`,name:"grouped_entities"},{anchor:"transformers.TokenClassificationPipeline.stride",description:`<strong>stride</strong> (<code>int</code>, <em>optional</em>) &#x2014;
If stride is provided, the pipeline is applied on all the text. The text is split into chunks of size
model_max_length. Works only with fast tokenizers and <code>aggregation_strategy</code> different from <code>NONE</code>. The
value of this argument defines the number of overlapping tokens between chunks. In other words, the model
will shift forward by <code>tokenizer.model_max_length - stride</code> tokens each step.`,name:"stride"},{anchor:"transformers.TokenClassificationPipeline.aggregation_strategy",description:`<strong>aggregation_strategy</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;none&quot;</code>) &#x2014;
The strategy to fuse (or not) tokens based on the model prediction.</p>
<ul>
<li>&#x201C;none&#x201D; : Will simply not do any aggregation and simply return raw results from the model</li>
<li>&#x201C;simple&#x201D; : Will attempt to group entities following the default schema. (A, B-TAG), (B, I-TAG), (C,
I-TAG), (D, B-TAG2) (E, B-TAG2) will end up being [{&#x201C;word&#x201D;: ABC, &#x201C;entity&#x201D;: &#x201C;TAG&#x201D;}, {&#x201C;word&#x201D;: &#x201C;D&#x201D;,
&#x201C;entity&#x201D;: &#x201C;TAG2&#x201D;}, {&#x201C;word&#x201D;: &#x201C;E&#x201D;, &#x201C;entity&#x201D;: &#x201C;TAG2&#x201D;}] Notice that two consecutive B tags will end up as
different entities. On word based languages, we might end up splitting words undesirably : Imagine
Microsoft being tagged as [{&#x201C;word&#x201D;: &#x201C;Micro&#x201D;, &#x201C;entity&#x201D;: &#x201C;ENTERPRISE&#x201D;}, {&#x201C;word&#x201D;: &#x201C;soft&#x201D;, &#x201C;entity&#x201D;:
&#x201C;NAME&#x201D;}]. Look for FIRST, MAX, AVERAGE for ways to mitigate that and disambiguate words (on languages
that support that meaning, which is basically tokens separated by a space). These mitigations will
only work on real words, &#x201C;New york&#x201D; might still be tagged with two different entities.</li>
<li>&#x201C;first&#x201D; : (works only on word based models) Will use the <code>SIMPLE</code> strategy except that words, cannot
end up with different tags. Words will simply use the tag of the first token of the word when there
is ambiguity.</li>
<li>&#x201C;average&#x201D; : (works only on word based models) Will use the <code>SIMPLE</code> strategy except that words,
cannot end up with different tags. scores will be averaged first across tokens, and then the maximum
label is applied.</li>
<li>&#x201C;max&#x201D; : (works only on word based models) Will use the <code>SIMPLE</code> strategy except that words, cannot
end up with different tags. Word entity will simply be the token with the maximum score.</li>
</ul>`,name:"aggregation_strategy"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/token_classification.py#L96"}}),$n=new J({props:{anchor:"transformers.TokenClassificationPipeline.example",$$slots:{default:[Jk]},$$scope:{ctx:U}}}),Uo=new k({props:{name:"aggregate_words",anchor:"transformers.TokenClassificationPipeline.aggregate_words",parameters:[{name:"entities",val:": typing.List[dict]"},{name:"aggregation_strategy",val:": AggregationStrategy"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/token_classification.py#L470"}}),jo=new k({props:{name:"gather_pre_entities",anchor:"transformers.TokenClassificationPipeline.gather_pre_entities",parameters:[{name:"sentence",val:": str"},{name:"input_ids",val:": ndarray"},{name:"scores",val:": ndarray"},{name:"offset_mapping",val:": typing.Union[typing.List[typing.Tuple[int, int]], NoneType]"},{name:"special_tokens_mask",val:": ndarray"},{name:"aggregation_strategy",val:": AggregationStrategy"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/token_classification.py#L356"}}),Po=new k({props:{name:"group_entities",anchor:"transformers.TokenClassificationPipeline.group_entities",parameters:[{name:"entities",val:": typing.List[dict]"}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.group_entities.entities",description:"<strong>entities</strong> (<code>dict</code>) &#x2014; The entities predicted by the pipeline.",name:"entities"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/token_classification.py#L533"}}),Co=new k({props:{name:"group_sub_entities",anchor:"transformers.TokenClassificationPipeline.group_sub_entities",parameters:[{name:"entities",val:": typing.List[dict]"}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.group_sub_entities.entities",description:"<strong>entities</strong> (<code>dict</code>) &#x2014; The entities predicted by the pipeline.",name:"entities"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/token_classification.py#L498"}}),Jo=new P({}),Io=new k({props:{name:"class transformers.QuestionAnsweringPipeline",anchor:"transformers.QuestionAnsweringPipeline",parameters:[{name:"model",val:": typing.Union[ForwardRef('PreTrainedModel'), ForwardRef('TFPreTrainedModel')]"},{name:"tokenizer",val:": PreTrainedTokenizer"},{name:"modelcard",val:": typing.Optional[transformers.modelcard.ModelCard] = None"},{name:"framework",val:": typing.Optional[str] = None"},{name:"task",val:": str = ''"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.QuestionAnsweringPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.QuestionAnsweringPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.QuestionAnsweringPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.QuestionAnsweringPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.QuestionAnsweringPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.QuestionAnsweringPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.QuestionAnsweringPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.QuestionAnsweringPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.33.3/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.QuestionAnsweringPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.QuestionAnsweringPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/question_answering.py#L225"}}),zn=new J({props:{anchor:"transformers.QuestionAnsweringPipeline.example",$$slots:{default:[Ik]},$$scope:{ctx:U}}}),qo=new k({props:{name:"__call__",anchor:"transformers.QuestionAnsweringPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.QuestionAnsweringPipeline.__call__.args",description:`<strong>args</strong> (<code>SquadExample</code> or a list of <code>SquadExample</code>) &#x2014;
One or several <code>SquadExample</code> containing the question and context.`,name:"args"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.X",description:`<strong>X</strong> (<code>SquadExample</code> or a list of <code>SquadExample</code>, <em>optional</em>) &#x2014;
One or several <code>SquadExample</code> containing the question and context (will be treated the same way as if
passed as the first positional argument).`,name:"X"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.data",description:`<strong>data</strong> (<code>SquadExample</code> or a list of <code>SquadExample</code>, <em>optional</em>) &#x2014;
One or several <code>SquadExample</code> containing the question and context (will be treated the same way as if
passed as the first positional argument).`,name:"data"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.question",description:`<strong>question</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
One or several question(s) (must be used in conjunction with the <code>context</code> argument).`,name:"question"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.context",description:`<strong>context</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
One or several context(s) associated with the question(s) (must be used in conjunction with the
<code>question</code> argument).`,name:"context"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.topk",description:`<strong>topk</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The number of answers to return (will be chosen by order of likelihood). Note that we return less than
topk answers if there are not enough options available within the context.`,name:"topk"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.doc_stride",description:`<strong>doc_stride</strong> (<code>int</code>, <em>optional</em>, defaults to 128) &#x2014;
If the context is too long to fit with the question for the model, it will be split in several chunks
with some overlap. This argument controls the size of that overlap.`,name:"doc_stride"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.max_answer_len",description:`<strong>max_answer_len</strong> (<code>int</code>, <em>optional</em>, defaults to 15) &#x2014;
The maximum length of predicted answers (e.g., only answers with a shorter length are considered).`,name:"max_answer_len"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.max_seq_len",description:`<strong>max_seq_len</strong> (<code>int</code>, <em>optional</em>, defaults to 384) &#x2014;
The maximum length of the total sentence (context + question) in tokens of each chunk passed to the
model. The context will be split in several chunks (using <code>doc_stride</code> as overlap) if needed.`,name:"max_seq_len"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.max_question_len",description:`<strong>max_question_len</strong> (<code>int</code>, <em>optional</em>, defaults to 64) &#x2014;
The maximum length of the question after tokenization. It will be truncated if needed.`,name:"max_question_len"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.handle_impossible_answer",description:`<strong>handle_impossible_answer</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not we accept impossible as an answer.`,name:"handle_impossible_answer"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.align_to_words",description:`<strong>align_to_words</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Attempts to align the answer to real words. Improves quality on space separated langages. Might hurt on
non-space-separated languages (like Japanese or Chinese)`,name:"align_to_words"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/question_answering.py#L343",returnDescription:`
<p>Each result comes as a dictionary with the following keys:</p>
<ul>
<li><strong>score</strong> (<code>float</code>) — The probability associated to the answer.</li>
<li><strong>start</strong> (<code>int</code>) — The character start index of the answer (in the tokenized version of the input).</li>
<li><strong>end</strong> (<code>int</code>) — The character end index of the answer (in the tokenized version of the input).</li>
<li><strong>answer</strong> (<code>str</code>) — The answer to the question.</li>
</ul>
`,returnType:`
<p>A <code>dict</code> or a list of <code>dict</code></p>
`}}),Go=new k({props:{name:"create_sample",anchor:"transformers.QuestionAnsweringPipeline.create_sample",parameters:[{name:"question",val:": typing.Union[str, typing.List[str]]"},{name:"context",val:": typing.Union[str, typing.List[str]]"}],parametersDescription:[{anchor:"transformers.QuestionAnsweringPipeline.create_sample.question",description:"<strong>question</strong> (<code>str</code> or <code>List[str]</code>) &#x2014; The question(s) asked.",name:"question"},{anchor:"transformers.QuestionAnsweringPipeline.create_sample.context",description:"<strong>context</strong> (<code>str</code> or <code>List[str]</code>) &#x2014; The context(s) in which we will look for the answer.",name:"context"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/question_answering.py#L278",returnDescription:`
<p>The corresponding <code>SquadExample</code> grouping question and context.</p>
`,returnType:`
<p>One or a list of <code>SquadExample</code></p>
`}}),zo=new k({props:{name:"span_to_answer",anchor:"transformers.QuestionAnsweringPipeline.span_to_answer",parameters:[{name:"text",val:": str"},{name:"start",val:": int"},{name:"end",val:": int"}],parametersDescription:[{anchor:"transformers.QuestionAnsweringPipeline.span_to_answer.text",description:"<strong>text</strong> (<code>str</code>) &#x2014; The actual context to extract the answer from.",name:"text"},{anchor:"transformers.QuestionAnsweringPipeline.span_to_answer.start",description:"<strong>start</strong> (<code>int</code>) &#x2014; The answer starting token index.",name:"start"},{anchor:"transformers.QuestionAnsweringPipeline.span_to_answer.end",description:"<strong>end</strong> (<code>int</code>) &#x2014; The answer end token index.",name:"end"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/question_answering.py#L630",returnDescription:`
<p>str, ‘start’: int, ‘end’: int}\`</p>
`,returnType:`
<p>Dictionary like \`{‘answer’</p>
`}}),Ao=new P({}),No=new k({props:{name:"class transformers.SummarizationPipeline",anchor:"transformers.SummarizationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.SummarizationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.SummarizationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.SummarizationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.SummarizationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.SummarizationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.SummarizationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.SummarizationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.SummarizationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.33.3/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.SummarizationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.SummarizationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/text2text_generation.py#L213"}}),Fn=new J({props:{anchor:"transformers.SummarizationPipeline.example",$$slots:{default:[qk]},$$scope:{ctx:U}}}),Zo=new k({props:{name:"__call__",anchor:"transformers.SummarizationPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.SummarizationPipeline.__call__.documents",description:`<strong>documents</strong> (<em>str</em> or <code>List[str]</code>) &#x2014;
One or several articles (or one list of articles) to summarize.`,name:"documents"},{anchor:"transformers.SummarizationPipeline.__call__.return_text",description:`<strong>return_text</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to include the decoded texts in the outputs`,name:"return_text"},{anchor:"transformers.SummarizationPipeline.__call__.return_tensors",description:`<strong>return_tensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to include the tensors of predictions (as token indices) in the outputs.`,name:"return_tensors"},{anchor:"transformers.SummarizationPipeline.__call__.clean_up_tokenization_spaces",description:`<strong>clean_up_tokenization_spaces</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to clean up the potential extra spaces in the text output.
generate_kwargs &#x2014;
Additional keyword arguments to pass along to the generate method of the model (see the generate method
corresponding to your framework <a href="./model#generative-models">here</a>).`,name:"clean_up_tokenization_spaces"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/text2text_generation.py#L241",returnDescription:`
<p>Each result comes as a dictionary with the following keys:</p>
<ul>
<li><strong>summary_text</strong> (<code>str</code>, present when <code>return_text=True</code>) — The summary of the corresponding input.</li>
<li><strong>summary_token_ids</strong> (<code>torch.Tensor</code> or <code>tf.Tensor</code>, present when <code>return_tensors=True</code>) — The token
ids of the summary.</li>
</ul>
`,returnType:`
<p>A list or a list of list of <code>dict</code></p>
`}}),Fo=new P({}),Do=new k({props:{name:"class transformers.TableQuestionAnsweringPipeline",anchor:"transformers.TableQuestionAnsweringPipeline",parameters:[{name:"args_parser",val:" = <transformers.pipelines.table_question_answering.TableQuestionAnsweringArgumentHandler object at 0x7f464f748100>"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TableQuestionAnsweringPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TableQuestionAnsweringPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.TableQuestionAnsweringPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.TableQuestionAnsweringPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.TableQuestionAnsweringPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.TableQuestionAnsweringPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.TableQuestionAnsweringPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.TableQuestionAnsweringPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.33.3/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.TableQuestionAnsweringPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.TableQuestionAnsweringPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/table_question_answering.py#L88"}}),Sn=new J({props:{anchor:"transformers.TableQuestionAnsweringPipeline.example",$$slots:{default:[Gk]},$$scope:{ctx:U}}}),Ro=new k({props:{name:"__call__",anchor:"transformers.TableQuestionAnsweringPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TableQuestionAnsweringPipeline.__call__.table",description:`<strong>table</strong> (<code>pd.DataFrame</code> or <code>Dict</code>) &#x2014;
Pandas DataFrame or dictionary that will be converted to a DataFrame containing all the table values.
See above for an example of dictionary.`,name:"table"},{anchor:"transformers.TableQuestionAnsweringPipeline.__call__.query",description:`<strong>query</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
Query or list of queries that will be sent to the model alongside the table.`,name:"query"},{anchor:"transformers.TableQuestionAnsweringPipeline.__call__.sequential",description:`<strong>sequential</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to do inference sequentially or as a batch. Batching is faster, but models like SQA require the
inference to be done sequentially to extract relations within sequences, given their conversational
nature.`,name:"sequential"},{anchor:"transformers.TableQuestionAnsweringPipeline.__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;
Activates and controls padding. Accepts the following values:</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.TableQuestionAnsweringPipeline.__call__.truncation",description:`<strong>truncation</strong> (<code>bool</code>, <code>str</code> or <code>TapasTruncationStrategy</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Activates and controls truncation. Accepts the following values:</p>
<ul>
<li><code>True</code> or <code>&apos;drop_rows_to_fit&apos;</code>: Truncate 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. This will
truncate row by row, removing rows from the table.</li>
<li><code>False</code> or <code>&apos;do_not_truncate&apos;</code> (default): No truncation (i.e., can output batch with sequence lengths
greater than the model maximum admissible input size).</li>
</ul>`,name:"truncation"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/table_question_answering.py#L270",returnDescription:`
<p>Each result is a dictionary with the following
keys:</p>
<ul>
<li><strong>answer</strong> (<code>str</code>) — The answer of the query given the table. If there is an aggregator, the answer will
be preceded by <code>AGGREGATOR &gt;</code>.</li>
<li><strong>coordinates</strong> (<code>List[Tuple[int, int]]</code>) — Coordinates of the cells of the answers.</li>
<li><strong>cells</strong> (<code>List[str]</code>) — List of strings made up of the answer cell values.</li>
<li><strong>aggregator</strong> (<code>str</code>) — If the model has an aggregator, this returns the aggregator.</li>
</ul>
`,returnType:`
<p>A dictionary or a list of dictionaries containing results</p>
`}}),Bn=new J({props:{anchor:"transformers.TableQuestionAnsweringPipeline.__call__.example",$$slots:{default:[zk]},$$scope:{ctx:U}}}),Vn=new J({props:{anchor:"transformers.TableQuestionAnsweringPipeline.__call__.example-2",$$slots:{default:[Ak]},$$scope:{ctx:U}}}),So=new P({}),Bo=new k({props:{name:"class transformers.TextClassificationPipeline",anchor:"transformers.TextClassificationPipeline",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TextClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TextClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.TextClassificationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.TextClassificationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.TextClassificationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.TextClassificationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.TextClassificationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.TextClassificationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.33.3/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.TextClassificationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.TextClassificationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"},{anchor:"transformers.TextClassificationPipeline.return_all_scores",description:`<strong>return_all_scores</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to return all prediction scores or just the one of the predicted class.`,name:"return_all_scores"},{anchor:"transformers.TextClassificationPipeline.function_to_apply",description:`<strong>function_to_apply</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;default&quot;</code>) &#x2014;
The function to apply to the model outputs in order to retrieve the scores. Accepts four different values:</p>
<ul>
<li><code>&quot;default&quot;</code>: if the model has a single label, will apply the sigmoid function on the output. If the model
has several labels, will apply the softmax function on the output.</li>
<li><code>&quot;sigmoid&quot;</code>: Applies the sigmoid function on the output.</li>
<li><code>&quot;softmax&quot;</code>: Applies the softmax function on the output.</li>
<li><code>&quot;none&quot;</code>: Does not apply any function on the output.</li>
</ul>`,name:"function_to_apply"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/text_classification.py#L49"}}),Ln=new J({props:{anchor:"transformers.TextClassificationPipeline.example",$$slots:{default:[Nk]},$$scope:{ctx:U}}}),Vo=new k({props:{name:"__call__",anchor:"transformers.TextClassificationPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TextClassificationPipeline.__call__.args",description:`<strong>args</strong> (<code>str</code> or <code>List[str]</code> or <code>Dict[str]</code>, or <code>List[Dict[str]]</code>) &#x2014;
One or several texts to classify. In order to use text pairs for your classification, you can send a
dictionary containing <code>{&quot;text&quot;, &quot;text_pair&quot;}</code> keys, or a list of those.`,name:"args"},{anchor:"transformers.TextClassificationPipeline.__call__.top_k",description:`<strong>top_k</strong> (<code>int</code>, <em>optional</em>, defaults to <code>1</code>) &#x2014;
How many results to return.`,name:"top_k"},{anchor:"transformers.TextClassificationPipeline.__call__.function_to_apply",description:`<strong>function_to_apply</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;default&quot;</code>) &#x2014;
The function to apply to the model outputs in order to retrieve the scores. Accepts four different
values:</p>
<p>If this argument is not specified, then it will apply the following functions according to the number
of labels:</p>
<ul>
<li>If the model has a single label, will apply the sigmoid function on the output.</li>
<li>If the model has several labels, will apply the softmax function on the output.</li>
</ul>
<p>Possible values are:</p>
<ul>
<li><code>&quot;sigmoid&quot;</code>: Applies the sigmoid function on the output.</li>
<li><code>&quot;softmax&quot;</code>: Applies the softmax function on the output.</li>
<li><code>&quot;none&quot;</code>: Does not apply any function on the output.</li>
</ul>`,name:"function_to_apply"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/text_classification.py#L122",returnDescription:`
<p>Each result comes as list of dictionaries with the following keys:</p>
<ul>
<li><strong>label</strong> (<code>str</code>) — The label predicted.</li>
<li><strong>score</strong> (<code>float</code>) — The corresponding probability.</li>
</ul>
<p>If <code>top_k</code> is used, one such dictionary is returned per label.</p>
`,returnType:`
<p>A list or a list of list of <code>dict</code></p>
`}}),Eo=new P({}),Lo=new k({props:{name:"class transformers.TextGenerationPipeline",anchor:"transformers.TextGenerationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TextGenerationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TextGenerationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.TextGenerationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.TextGenerationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.TextGenerationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.TextGenerationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.TextGenerationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.TextGenerationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.33.3/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.TextGenerationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.TextGenerationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/text_generation.py#L24"}}),Hn=new J({props:{anchor:"transformers.TextGenerationPipeline.example",$$slots:{default:[Zk]},$$scope:{ctx:U}}}),Wo=new k({props:{name:"__call__",anchor:"transformers.TextGenerationPipeline.__call__",parameters:[{name:"text_inputs",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TextGenerationPipeline.__call__.args",description:`<strong>args</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
One or several prompts (or one list of prompts) to complete.`,name:"args"},{anchor:"transformers.TextGenerationPipeline.__call__.return_tensors",description:`<strong>return_tensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to return the tensors of predictions (as token indices) in the outputs. If set to
<code>True</code>, the decoded text is not returned.`,name:"return_tensors"},{anchor:"transformers.TextGenerationPipeline.__call__.return_text",description:`<strong>return_text</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to return the decoded texts in the outputs.`,name:"return_text"},{anchor:"transformers.TextGenerationPipeline.__call__.return_full_text",description:`<strong>return_full_text</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
If set to <code>False</code> only added text is returned, otherwise the full text is returned. Only meaningful if
<em>return_text</em> is set to True.`,name:"return_full_text"},{anchor:"transformers.TextGenerationPipeline.__call__.clean_up_tokenization_spaces",description:`<strong>clean_up_tokenization_spaces</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to clean up the potential extra spaces in the text output.`,name:"clean_up_tokenization_spaces"},{anchor:"transformers.TextGenerationPipeline.__call__.prefix",description:`<strong>prefix</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Prefix added to prompt.`,name:"prefix"},{anchor:"transformers.TextGenerationPipeline.__call__.handle_long_generation",description:`<strong>handle_long_generation</strong> (<code>str</code>, <em>optional</em>) &#x2014;
By default, this pipelines does not handle long generation (ones that exceed in one form or the other
the model maximum length). There is no perfect way to adress this (more info
:<a href="https://github.com/huggingface/transformers/issues/14033#issuecomment-948385227" rel="nofollow">https://github.com/huggingface/transformers/issues/14033#issuecomment-948385227</a>). This provides common
strategies to work around that problem depending on your use case.</p>
<ul>
<li><code>None</code> : default strategy where nothing in particular happens</li>
<li><code>&quot;hole&quot;</code>: Truncates left of input, and leaves a gap wide enough to let generation happen (might
truncate a lot of the prompt and not suitable when generation exceed the model capacity)</li>
</ul>
<p>generate_kwargs &#x2014;
Additional keyword arguments to pass along to the generate method of the model (see the generate method
corresponding to your framework <a href="./model#generative-models">here</a>).`,name:"handle_long_generation"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/text_generation.py#L164",returnDescription:`
<p>Returns one of the following dictionaries (cannot return a combination
of both <code>generated_text</code> and <code>generated_token_ids</code>):</p>
<ul>
<li><strong>generated_text</strong> (<code>str</code>, present when <code>return_text=True</code>) — The generated text.</li>
<li><strong>generated_token_ids</strong> (<code>torch.Tensor</code> or <code>tf.Tensor</code>, present when <code>return_tensors=True</code>) — The token
ids of the generated text.</li>
</ul>
`,returnType:`
<p>A list or a list of list of <code>dict</code></p>
`}}),Oo=new P({}),Ho=new k({props:{name:"class transformers.Text2TextGenerationPipeline",anchor:"transformers.Text2TextGenerationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.Text2TextGenerationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.Text2TextGenerationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.Text2TextGenerationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.Text2TextGenerationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.Text2TextGenerationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.Text2TextGenerationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.Text2TextGenerationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.Text2TextGenerationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.33.3/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.Text2TextGenerationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.Text2TextGenerationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/text2text_generation.py#L26"}}),Xn=new J({props:{anchor:"transformers.Text2TextGenerationPipeline.example",$$slots:{default:[Fk]},$$scope:{ctx:U}}}),Kn=new J({props:{anchor:"transformers.Text2TextGenerationPipeline.example-2",$$slots:{default:[Dk]},$$scope:{ctx:U}}}),Yo=new k({props:{name:"__call__",anchor:"transformers.Text2TextGenerationPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.Text2TextGenerationPipeline.__call__.args",description:`<strong>args</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
Input text for the encoder.`,name:"args"},{anchor:"transformers.Text2TextGenerationPipeline.__call__.return_tensors",description:`<strong>return_tensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to include the tensors of predictions (as token indices) in the outputs.`,name:"return_tensors"},{anchor:"transformers.Text2TextGenerationPipeline.__call__.return_text",description:`<strong>return_text</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to include the decoded texts in the outputs.`,name:"return_text"},{anchor:"transformers.Text2TextGenerationPipeline.__call__.clean_up_tokenization_spaces",description:`<strong>clean_up_tokenization_spaces</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to clean up the potential extra spaces in the text output.`,name:"clean_up_tokenization_spaces"},{anchor:"transformers.Text2TextGenerationPipeline.__call__.truncation",description:`<strong>truncation</strong> (<code>TruncationStrategy</code>, <em>optional</em>, defaults to <code>TruncationStrategy.DO_NOT_TRUNCATE</code>) &#x2014;
The truncation strategy for the tokenization within the pipeline. <code>TruncationStrategy.DO_NOT_TRUNCATE</code>
(default) will never truncate, but it is sometimes desirable to truncate the input to fit the model&#x2019;s
max_length instead of throwing an error down the line.
generate_kwargs &#x2014;
Additional keyword arguments to pass along to the generate method of the model (see the generate method
corresponding to your framework <a href="./model#generative-models">here</a>).`,name:"truncation"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/text2text_generation.py#L136",returnDescription:`
<p>Each result comes as a dictionary with the following keys:</p>
<ul>
<li><strong>generated_text</strong> (<code>str</code>, present when <code>return_text=True</code>) — The generated text.</li>
<li><strong>generated_token_ids</strong> (<code>torch.Tensor</code> or <code>tf.Tensor</code>, present when <code>return_tensors=True</code>) — The token
ids of the generated text.</li>
</ul>
`,returnType:`
<p>A list or a list of list of <code>dict</code></p>
`}}),Qo=new k({props:{name:"check_inputs",anchor:"transformers.Text2TextGenerationPipeline.check_inputs",parameters:[{name:"input_length",val:": int"},{name:"min_length",val:": int"},{name:"max_length",val:": int"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/text2text_generation.py#L109"}}),Xo=new P({}),Ko=new k({props:{name:"class transformers.TokenClassificationPipeline",anchor:"transformers.TokenClassificationPipeline",parameters:[{name:"args_parser",val:" = <transformers.pipelines.token_classification.TokenClassificationArgumentHandler object at 0x7f464f71a070>"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TokenClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.TokenClassificationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.TokenClassificationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.TokenClassificationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.TokenClassificationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.TokenClassificationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.TokenClassificationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.33.3/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.TokenClassificationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.TokenClassificationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"},{anchor:"transformers.TokenClassificationPipeline.ignore_labels",description:`<strong>ignore_labels</strong> (<code>List[str]</code>, defaults to <code>[&quot;O&quot;]</code>) &#x2014;
A list of labels to ignore.`,name:"ignore_labels"},{anchor:"transformers.TokenClassificationPipeline.grouped_entities",description:`<strong>grouped_entities</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
DEPRECATED, use <code>aggregation_strategy</code> instead. Whether or not to group the tokens corresponding to the
same entity together in the predictions or not.`,name:"grouped_entities"},{anchor:"transformers.TokenClassificationPipeline.stride",description:`<strong>stride</strong> (<code>int</code>, <em>optional</em>) &#x2014;
If stride is provided, the pipeline is applied on all the text. The text is split into chunks of size
model_max_length. Works only with fast tokenizers and <code>aggregation_strategy</code> different from <code>NONE</code>. The
value of this argument defines the number of overlapping tokens between chunks. In other words, the model
will shift forward by <code>tokenizer.model_max_length - stride</code> tokens each step.`,name:"stride"},{anchor:"transformers.TokenClassificationPipeline.aggregation_strategy",description:`<strong>aggregation_strategy</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;none&quot;</code>) &#x2014;
The strategy to fuse (or not) tokens based on the model prediction.</p>
<ul>
<li>&#x201C;none&#x201D; : Will simply not do any aggregation and simply return raw results from the model</li>
<li>&#x201C;simple&#x201D; : Will attempt to group entities following the default schema. (A, B-TAG), (B, I-TAG), (C,
I-TAG), (D, B-TAG2) (E, B-TAG2) will end up being [{&#x201C;word&#x201D;: ABC, &#x201C;entity&#x201D;: &#x201C;TAG&#x201D;}, {&#x201C;word&#x201D;: &#x201C;D&#x201D;,
&#x201C;entity&#x201D;: &#x201C;TAG2&#x201D;}, {&#x201C;word&#x201D;: &#x201C;E&#x201D;, &#x201C;entity&#x201D;: &#x201C;TAG2&#x201D;}] Notice that two consecutive B tags will end up as
different entities. On word based languages, we might end up splitting words undesirably : Imagine
Microsoft being tagged as [{&#x201C;word&#x201D;: &#x201C;Micro&#x201D;, &#x201C;entity&#x201D;: &#x201C;ENTERPRISE&#x201D;}, {&#x201C;word&#x201D;: &#x201C;soft&#x201D;, &#x201C;entity&#x201D;:
&#x201C;NAME&#x201D;}]. Look for FIRST, MAX, AVERAGE for ways to mitigate that and disambiguate words (on languages
that support that meaning, which is basically tokens separated by a space). These mitigations will
only work on real words, &#x201C;New york&#x201D; might still be tagged with two different entities.</li>
<li>&#x201C;first&#x201D; : (works only on word based models) Will use the <code>SIMPLE</code> strategy except that words, cannot
end up with different tags. Words will simply use the tag of the first token of the word when there
is ambiguity.</li>
<li>&#x201C;average&#x201D; : (works only on word based models) Will use the <code>SIMPLE</code> strategy except that words,
cannot end up with different tags. scores will be averaged first across tokens, and then the maximum
label is applied.</li>
<li>&#x201C;max&#x201D; : (works only on word based models) Will use the <code>SIMPLE</code> strategy except that words, cannot
end up with different tags. Word entity will simply be the token with the maximum score.</li>
</ul>`,name:"aggregation_strategy"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/token_classification.py#L96"}}),ss=new J({props:{anchor:"transformers.TokenClassificationPipeline.example",$$slots:{default:[Rk]},$$scope:{ctx:U}}}),er=new k({props:{name:"__call__",anchor:"transformers.TokenClassificationPipeline.__call__",parameters:[{name:"inputs",val:": typing.Union[str, typing.List[str]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.__call__.inputs",description:`<strong>inputs</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
One or several texts (or one list of texts) for token classification.`,name:"inputs"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/token_classification.py#L219",returnDescription:`
<p>Each result comes as a list of dictionaries (one for each token in the
corresponding input, or each entity if this pipeline was instantiated with an aggregation_strategy) with
the following keys:</p>
<ul>
<li><strong>word</strong> (<code>str</code>) — The token/word classified. This is obtained by decoding the selected tokens. If you
want to have the exact string in the original sentence, use <code>start</code> and <code>end</code>.</li>
<li><strong>score</strong> (<code>float</code>) — The corresponding probability for <code>entity</code>.</li>
<li><strong>entity</strong> (<code>str</code>) — The entity predicted for that token/word (it is named <em>entity_group</em> when
<em>aggregation_strategy</em> is not <code>"none"</code>.</li>
<li><strong>index</strong> (<code>int</code>, only present when <code>aggregation_strategy="none"</code>) — The index of the corresponding
token in the sentence.</li>
<li><strong>start</strong> (<code>int</code>, <em>optional</em>) — The index of the start of the corresponding entity in the sentence. Only
exists if the offsets are available within the tokenizer</li>
<li><strong>end</strong> (<code>int</code>, <em>optional</em>) — The index of the end of the corresponding entity in the sentence. Only
exists if the offsets are available within the tokenizer</li>
</ul>
`,returnType:`
<p>A list or a list of list of <code>dict</code></p>
`}}),tr=new k({props:{name:"aggregate_words",anchor:"transformers.TokenClassificationPipeline.aggregate_words",parameters:[{name:"entities",val:": typing.List[dict]"},{name:"aggregation_strategy",val:": AggregationStrategy"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/token_classification.py#L470"}}),nr=new k({props:{name:"gather_pre_entities",anchor:"transformers.TokenClassificationPipeline.gather_pre_entities",parameters:[{name:"sentence",val:": str"},{name:"input_ids",val:": ndarray"},{name:"scores",val:": ndarray"},{name:"offset_mapping",val:": typing.Union[typing.List[typing.Tuple[int, int]], NoneType]"},{name:"special_tokens_mask",val:": ndarray"},{name:"aggregation_strategy",val:": AggregationStrategy"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/token_classification.py#L356"}}),sr=new k({props:{name:"group_entities",anchor:"transformers.TokenClassificationPipeline.group_entities",parameters:[{name:"entities",val:": typing.List[dict]"}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.group_entities.entities",description:"<strong>entities</strong> (<code>dict</code>) &#x2014; The entities predicted by the pipeline.",name:"entities"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/token_classification.py#L533"}}),ar=new k({props:{name:"group_sub_entities",anchor:"transformers.TokenClassificationPipeline.group_sub_entities",parameters:[{name:"entities",val:": typing.List[dict]"}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.group_sub_entities.entities",description:"<strong>entities</strong> (<code>dict</code>) &#x2014; The entities predicted by the pipeline.",name:"entities"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/token_classification.py#L498"}}),or=new P({}),rr=new k({props:{name:"class transformers.TranslationPipeline",anchor:"transformers.TranslationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TranslationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TranslationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.TranslationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.TranslationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.TranslationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.TranslationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.TranslationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.TranslationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.33.3/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.TranslationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.TranslationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/text2text_generation.py#L283"}}),ps=new J({props:{anchor:"transformers.TranslationPipeline.example",$$slots:{default:[Sk]},$$scope:{ctx:U}}}),ir=new k({props:{name:"__call__",anchor:"transformers.TranslationPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TranslationPipeline.__call__.args",description:`<strong>args</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
Texts to be translated.`,name:"args"},{anchor:"transformers.TranslationPipeline.__call__.return_tensors",description:`<strong>return_tensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to include the tensors of predictions (as token indices) in the outputs.`,name:"return_tensors"},{anchor:"transformers.TranslationPipeline.__call__.return_text",description:`<strong>return_text</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to include the decoded texts in the outputs.`,name:"return_text"},{anchor:"transformers.TranslationPipeline.__call__.clean_up_tokenization_spaces",description:`<strong>clean_up_tokenization_spaces</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to clean up the potential extra spaces in the text output.`,name:"clean_up_tokenization_spaces"},{anchor:"transformers.TranslationPipeline.__call__.src_lang",description:`<strong>src_lang</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The language of the input. Might be required for multilingual models. Will not have any effect for
single pair translation models`,name:"src_lang"},{anchor:"transformers.TranslationPipeline.__call__.tgt_lang",description:`<strong>tgt_lang</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The language of the desired output. Might be required for multilingual models. Will not have any effect
for single pair translation models
generate_kwargs &#x2014;
Additional keyword arguments to pass along to the generate method of the model (see the generate method
corresponding to your framework <a href="./model#generative-models">here</a>).`,name:"tgt_lang"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/text2text_generation.py#L337",returnDescription:`
<p>Each result comes as a dictionary with the following keys:</p>
<ul>
<li><strong>translation_text</strong> (<code>str</code>, present when <code>return_text=True</code>) — The translation.</li>
<li><strong>translation_token_ids</strong> (<code>torch.Tensor</code> or <code>tf.Tensor</code>, present when <code>return_tensors=True</code>) — The
token ids of the translation.</li>
</ul>
`,returnType:`
<p>A list or a list of list of <code>dict</code></p>
`}}),lr=new P({}),pr=new k({props:{name:"class transformers.ZeroShotClassificationPipeline",anchor:"transformers.ZeroShotClassificationPipeline",parameters:[{name:"args_parser",val:" = <transformers.pipelines.zero_shot_classification.ZeroShotClassificationArgumentHandler object at 0x7f464f6e7c70>"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ZeroShotClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.ZeroShotClassificationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.ZeroShotClassificationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.ZeroShotClassificationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.ZeroShotClassificationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.ZeroShotClassificationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.ZeroShotClassificationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.33.3/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.ZeroShotClassificationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.ZeroShotClassificationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/zero_shot_classification.py#L47"}}),ms=new J({props:{anchor:"transformers.ZeroShotClassificationPipeline.example",$$slots:{default:[Bk]},$$scope:{ctx:U}}}),cr=new k({props:{name:"__call__",anchor:"transformers.ZeroShotClassificationPipeline.__call__",parameters:[{name:"sequences",val:": typing.Union[str, typing.List[str]]"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotClassificationPipeline.__call__.sequences",description:`<strong>sequences</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
The sequence(s) to classify, will be truncated if the model input is too large.`,name:"sequences"},{anchor:"transformers.ZeroShotClassificationPipeline.__call__.candidate_labels",description:`<strong>candidate_labels</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
The set of possible class labels to classify each sequence into. Can be a single label, a string of
comma-separated labels, or a list of labels.`,name:"candidate_labels"},{anchor:"transformers.ZeroShotClassificationPipeline.__call__.hypothesis_template",description:`<strong>hypothesis_template</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;This example is {}.&quot;</code>) &#x2014;
The template used to turn each label into an NLI-style hypothesis. This template must include a {} or
similar syntax for the candidate label to be inserted into the template. For example, the default
template is <code>&quot;This example is {}.&quot;</code> With the candidate label <code>&quot;sports&quot;</code>, this would be fed into the
model like <code>&quot;&lt;cls&gt; sequence to classify &lt;sep&gt; This example is sports . &lt;sep&gt;&quot;</code>. The default template
works well in many cases, but it may be worthwhile to experiment with different templates depending on
the task setting.`,name:"hypothesis_template"},{anchor:"transformers.ZeroShotClassificationPipeline.__call__.multi_label",description:`<strong>multi_label</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not multiple candidate labels can be true. If <code>False</code>, the scores are normalized such that
the sum of the label likelihoods for each sequence is 1. If <code>True</code>, the labels are considered
independent and probabilities are normalized for each candidate by doing a softmax of the entailment
score vs. the contradiction score.`,name:"multi_label"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/zero_shot_classification.py#L163",returnDescription:`
<p>Each result comes as a dictionary with the following keys:</p>
<ul>
<li><strong>sequence</strong> (<code>str</code>) — The sequence for which this is the output.</li>
<li><strong>labels</strong> (<code>List[str]</code>) — The labels sorted by order of likelihood.</li>
<li><strong>scores</strong> (<code>List[float]</code>) — The probabilities for each of the labels.</li>
</ul>
`,returnType:`
<p>A <code>dict</code> or a list of <code>dict</code></p>
`}}),dr=new P({}),hr=new P({}),fr=new k({props:{name:"class transformers.DocumentQuestionAnsweringPipeline",anchor:"transformers.DocumentQuestionAnsweringPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.DocumentQuestionAnsweringPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.33.3/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/document_question_answering.py#L102"}}),us=new J({props:{anchor:"transformers.DocumentQuestionAnsweringPipeline.example",$$slots:{default:[Vk]},$$scope:{ctx:U}}}),gr=new k({props:{name:"__call__",anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__",parameters:[{name:"image",val:": typing.Union[ForwardRef('Image.Image'), str]"},{name:"question",val:": typing.Optional[str] = None"},{name:"word_boxes",val:": typing.Tuple[str, typing.List[float]] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.image",description:`<strong>image</strong> (<code>str</code> or <code>PIL.Image</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing a http link pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>
<p>The pipeline accepts either a single image or a batch of images. If given a single image, it can be
broadcasted to multiple questions.`,name:"image"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.question",description:`<strong>question</strong> (<code>str</code>) &#x2014;
A question to ask of the document.`,name:"question"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.word_boxes",description:`<strong>word_boxes</strong> (<code>List[str, Tuple[float, float, float, float]]</code>, <em>optional</em>) &#x2014;
A list of words and bounding boxes (normalized 0-&gt;1000). If you provide this optional input, then the
pipeline will use these words and boxes instead of running OCR on the image to derive them for models
that need them (e.g. LayoutLM). This allows you to reuse OCR&#x2019;d results across many invocations of the
pipeline without having to re-run it each time.`,name:"word_boxes"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.top_k",description:`<strong>top_k</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The number of answers to return (will be chosen by order of likelihood). Note that we return less than
top_k answers if there are not enough options available within the context.`,name:"top_k"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.doc_stride",description:`<strong>doc_stride</strong> (<code>int</code>, <em>optional</em>, defaults to 128) &#x2014;
If the words in the document are too long to fit with the question for the model, it will be split in
several chunks with some overlap. This argument controls the size of that overlap.`,name:"doc_stride"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.max_answer_len",description:`<strong>max_answer_len</strong> (<code>int</code>, <em>optional</em>, defaults to 15) &#x2014;
The maximum length of predicted answers (e.g., only answers with a shorter length are considered).`,name:"max_answer_len"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.max_seq_len",description:`<strong>max_seq_len</strong> (<code>int</code>, <em>optional</em>, defaults to 384) &#x2014;
The maximum length of the total sentence (context + question) in tokens of each chunk passed to the
model. The context will be split in several chunks (using <code>doc_stride</code> as overlap) if needed.`,name:"max_seq_len"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.max_question_len",description:`<strong>max_question_len</strong> (<code>int</code>, <em>optional</em>, defaults to 64) &#x2014;
The maximum length of the question after tokenization. It will be truncated if needed.`,name:"max_question_len"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.handle_impossible_answer",description:`<strong>handle_impossible_answer</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not we accept impossible as an answer.`,name:"handle_impossible_answer"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.lang",description:`<strong>lang</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Language to use while running OCR. Defaults to english.`,name:"lang"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.tesseract_config",description:`<strong>tesseract_config</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Additional flags to pass to tesseract while running OCR.`,name:"tesseract_config"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to None) &#x2014;
The maximum time in seconds to wait for fetching images from the web. If None, no timeout is set and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/document_question_answering.py#L194",returnDescription:`
<p>Each result comes as a dictionary with the following keys:</p>
<ul>
<li><strong>score</strong> (<code>float</code>) — The probability associated to the answer.</li>
<li><strong>start</strong> (<code>int</code>) — The start word index of the answer (in the OCR’d version of the input or provided
<code>word_boxes</code>).</li>
<li><strong>end</strong> (<code>int</code>) — The end word index of the answer (in the OCR’d version of the input or provided
<code>word_boxes</code>).</li>
<li><strong>answer</strong> (<code>str</code>) — The answer to the question.</li>
<li><strong>words</strong> (<code>list[int]</code>) — The index of each word/box pair that is in the answer</li>
</ul>
`,returnType:`
<p>A <code>dict</code> or a list of <code>dict</code></p>
`}}),ur=new P({}),Tr=new k({props:{name:"class transformers.FeatureExtractionPipeline",anchor:"transformers.FeatureExtractionPipeline",parameters:[{name:"model",val:": typing.Union[ForwardRef('PreTrainedModel'), ForwardRef('TFPreTrainedModel')]"},{name:"tokenizer",val:": typing.Optional[transformers.tokenization_utils.PreTrainedTokenizer] = None"},{name:"feature_extractor",val:": typing.Optional[ForwardRef('SequenceFeatureExtractor')] = None"},{name:"image_processor",val:": typing.Optional[transformers.image_processing_utils.BaseImageProcessor] = None"},{name:"modelcard",val:": typing.Optional[transformers.modelcard.ModelCard] = None"},{name:"framework",val:": typing.Optional[str] = None"},{name:"task",val:": str = ''"},{name:"args_parser",val:": ArgumentHandler = None"},{name:"device",val:": typing.Union[int, ForwardRef('torch.device')] = None"},{name:"torch_dtype",val:": typing.Union[str, ForwardRef('torch.dtype'), NoneType] = None"},{name:"binary_output",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FeatureExtractionPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.FeatureExtractionPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.FeatureExtractionPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.FeatureExtractionPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.FeatureExtractionPipeline.return_tensors",description:`<strong>return_tensors</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If <code>True</code>, returns a tensor according to the specified framework, otherwise returns a list.`,name:"return_tensors"},{anchor:"transformers.FeatureExtractionPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.FeatureExtractionPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.33.3/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.FeatureExtractionPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id.`,name:"device"},{anchor:"transformers.FeatureExtractionPipeline.tokenize_kwargs",description:`<strong>tokenize_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Additional dictionary of keyword arguments passed along to the tokenizer.`,name:"tokenize_kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/feature_extraction.py#L7"}}),bs=new J({props:{anchor:"transformers.FeatureExtractionPipeline.example",$$slots:{default:[Ek]},$$scope:{ctx:U}}}),br=new k({props:{name:"__call__",anchor:"transformers.FeatureExtractionPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FeatureExtractionPipeline.__call__.args",description:"<strong>args</strong> (<code>str</code> or <code>List[str]</code>) &#x2014; One or several texts (or one list of texts) to get the features of.",name:"args"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/feature_extraction.py#L97",returnDescription:`
<p>The features computed by the model.</p>
`,returnType:`
<p>A nested list of <code>float</code></p>
`}}),yr=new P({}),wr=new k({props:{name:"class transformers.ImageToTextPipeline",anchor:"transformers.ImageToTextPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageToTextPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ImageToTextPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.ImageToTextPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.ImageToTextPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.ImageToTextPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.ImageToTextPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.ImageToTextPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.ImageToTextPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.33.3/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.ImageToTextPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.ImageToTextPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/image_to_text.py#L31"}}),xs=new J({props:{anchor:"transformers.ImageToTextPipeline.example",$$slots:{default:[Lk]},$$scope:{ctx:U}}}),xr=new k({props:{name:"__call__",anchor:"transformers.ImageToTextPipeline.__call__",parameters:[{name:"images",val:": typing.Union[str, typing.List[str], ForwardRef('Image.Image'), typing.List[ForwardRef('Image.Image')]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageToTextPipeline.__call__.images",description:`<strong>images</strong> (<code>str</code>, <code>List[str]</code>, <code>PIL.Image</code> or <code>List[PIL.Image]</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing a HTTP(s) link pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>
<p>The pipeline accepts either a single image or a batch of images.`,name:"images"},{anchor:"transformers.ImageToTextPipeline.__call__.max_new_tokens",description:`<strong>max_new_tokens</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The amount of maximum tokens to generate. By default it will use <code>generate</code> default.`,name:"max_new_tokens"},{anchor:"transformers.ImageToTextPipeline.__call__.generate_kwargs",description:`<strong>generate_kwargs</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
Pass it to send all of these arguments directly to <code>generate</code> allowing full control of this function.`,name:"generate_kwargs"},{anchor:"transformers.ImageToTextPipeline.__call__.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to None) &#x2014;
The maximum time in seconds to wait for fetching images from the web. If None, no timeout is set and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/image_to_text.py#L83",returnDescription:`
<p>Each result comes as a dictionary with the following key:</p>
<ul>
<li><strong>generated_text</strong> (<code>str</code>) — The generated text.</li>
</ul>
`,returnType:`
<p>A list or a list of list of <code>dict</code></p>
`}}),vr=new P({}),_r=new k({props:{name:"class transformers.VisualQuestionAnsweringPipeline",anchor:"transformers.VisualQuestionAnsweringPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.VisualQuestionAnsweringPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.VisualQuestionAnsweringPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.VisualQuestionAnsweringPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.VisualQuestionAnsweringPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.VisualQuestionAnsweringPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.VisualQuestionAnsweringPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.VisualQuestionAnsweringPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.VisualQuestionAnsweringPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.33.3/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.VisualQuestionAnsweringPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.VisualQuestionAnsweringPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/visual_question_answering.py#L19"}}),Ms=new J({props:{anchor:"transformers.VisualQuestionAnsweringPipeline.example",$$slots:{default:[Wk]},$$scope:{ctx:U}}}),Mr=new k({props:{name:"__call__",anchor:"transformers.VisualQuestionAnsweringPipeline.__call__",parameters:[{name:"image",val:": typing.Union[ForwardRef('Image.Image'), str]"},{name:"question",val:": str = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.VisualQuestionAnsweringPipeline.__call__.image",description:`<strong>image</strong> (<code>str</code>, <code>List[str]</code>, <code>PIL.Image</code> or <code>List[PIL.Image]</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing a http link pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>
<p>The pipeline accepts either a single image or a batch of images. If given a single image, it can be
broadcasted to multiple questions.`,name:"image"},{anchor:"transformers.VisualQuestionAnsweringPipeline.__call__.question",description:`<strong>question</strong> (<code>str</code>, <code>List[str]</code>) &#x2014;
The question(s) asked. If given a single question, it can be broadcasted to multiple images.`,name:"question"},{anchor:"transformers.VisualQuestionAnsweringPipeline.__call__.top_k",description:`<strong>top_k</strong> (<code>int</code>, <em>optional</em>, defaults to 5) &#x2014;
The number of top labels that will be returned by the pipeline. If the provided number is higher than
the number of labels available in the model configuration, it will default to the number of labels.`,name:"top_k"},{anchor:"transformers.VisualQuestionAnsweringPipeline.__call__.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to None) &#x2014;
The maximum time in seconds to wait for fetching images from the web. If None, no timeout is set and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/visual_question_answering.py#L70",returnDescription:`
<ul>
<li><strong>label</strong> (<code>str</code>) — The label identified by the model.</li>
<li><strong>score</strong> (<code>int</code>) — The score attributed by the model for that label.</li>
</ul>
`,returnType:`
<p>A dictionary or a list of dictionaries containing the result. The dictionaries contain the following keys</p>
`}}),kr=new P({}),Ur=new k({props:{name:"class transformers.Pipeline",anchor:"transformers.Pipeline",parameters:[{name:"model",val:": typing.Union[ForwardRef('PreTrainedModel'), ForwardRef('TFPreTrainedModel')]"},{name:"tokenizer",val:": typing.Optional[transformers.tokenization_utils.PreTrainedTokenizer] = None"},{name:"feature_extractor",val:": typing.Optional[ForwardRef('SequenceFeatureExtractor')] = None"},{name:"image_processor",val:": typing.Optional[transformers.image_processing_utils.BaseImageProcessor] = None"},{name:"modelcard",val:": typing.Optional[transformers.modelcard.ModelCard] = None"},{name:"framework",val:": typing.Optional[str] = None"},{name:"task",val:": str = ''"},{name:"args_parser",val:": ArgumentHandler = None"},{name:"device",val:": typing.Union[int, ForwardRef('torch.device')] = None"},{name:"torch_dtype",val:": typing.Union[str, ForwardRef('torch.dtype'), NoneType] = None"},{name:"binary_output",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.Pipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.33.3/en/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.Pipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.Pipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.Pipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.Pipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.Pipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.Pipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.Pipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.33.3/en/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.Pipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.Pipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/base.py#L741"}}),jr=new k({props:{name:"check_model_type",anchor:"transformers.Pipeline.check_model_type",parameters:[{name:"supported_models",val:": typing.Union[typing.List[str], dict]"}],parametersDescription:[{anchor:"transformers.Pipeline.check_model_type.supported_models",description:`<strong>supported_models</strong> (<code>List[str]</code> or <code>dict</code>) &#x2014;
The list of models supported by the pipeline, or a dictionary with model class values.`,name:"supported_models"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/base.py#L962"}}),Pr=new k({props:{name:"device_placement",anchor:"transformers.Pipeline.device_placement",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/base.py#L901",returnDescription:`
<p>Context manager</p>
`}}),js=new J({props:{anchor:"transformers.Pipeline.device_placement.example",$$slots:{default:[Ok]},$$scope:{ctx:U}}}),Cr=new k({props:{name:"ensure_tensor_on_device",anchor:"transformers.Pipeline.ensure_tensor_on_device",parameters:[{name:"**inputs",val:""}],parametersDescription:[{anchor:"transformers.Pipeline.ensure_tensor_on_device.inputs",description:`<strong>inputs</strong> (keyword arguments that should be <code>torch.Tensor</code>, the rest is ignored) &#x2014;
The tensors to place on <code>self.device</code>.`,name:"inputs"},{anchor:"transformers.Pipeline.ensure_tensor_on_device.Recursive",description:"<strong>Recursive</strong> on lists <strong>only</strong>. &#x2014;",name:"Recursive"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/base.py#L928",returnDescription:`
<p>The same as <code>inputs</code> but on the proper device.</p>
`,returnType:`
<p><code>Dict[str, torch.Tensor]</code></p>
`}}),$r=new k({props:{name:"postprocess",anchor:"transformers.Pipeline.postprocess",parameters:[{name:"model_outputs",val:": ModelOutput"},{name:"**postprocess_parameters",val:": typing.Dict"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/base.py#L1025"}}),Jr=new k({props:{name:"predict",anchor:"transformers.Pipeline.predict",parameters:[{name:"X",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/base.py#L895"}}),Ir=new k({props:{name:"preprocess",anchor:"transformers.Pipeline.preprocess",parameters:[{name:"input_",val:": typing.Any"},{name:"**preprocess_parameters",val:": typing.Dict"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/base.py#L1004"}}),qr=new k({props:{name:"save_pretrained",anchor:"transformers.Pipeline.save_pretrained",parameters:[{name:"save_directory",val:": str"},{name:"safe_serialization",val:": bool = False"}],parametersDescription:[{anchor:"transformers.Pipeline.save_pretrained.save_directory",description:`<strong>save_directory</strong> (<code>str</code>) &#x2014;
A path to the directory where to saved. It will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"transformers.Pipeline.save_pretrained.safe_serialization",description:`<strong>safe_serialization</strong> (<code>str</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or the traditional way for PyTorch or Tensorflow`,name:"safe_serialization"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/base.py#L839"}}),Gr=new k({props:{name:"transform",anchor:"transformers.Pipeline.transform",parameters:[{name:"X",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/pipelines/base.py#L889"}}),{c(){c=a("meta"),M=r(),x=a("p"),m=r(),v=a("h1"),n=a("a"),_=a("span"),f(zs.$$.fragment),gg=r(),Wr=a("span"),Wr.textContent=Aw,Hd=r(),As=a("p"),As.innerHTML=Nw,Yd=r(),Ns=a("p"),Ns.textContent=Zw,Qd=r(),Zs=a("ul"),Zs.innerHTML=Fw,Xd=r(),Le=a("h2"),Ct=a("a"),Lc=a("span"),f(Fs.$$.fragment),ug=r(),Or=a("span"),Or.textContent=Dw,Kd=r(),Ds=a("p"),Ds.innerHTML=Rw,em=r(),Rs=a("p"),Rs.textContent=Sw,tm=r(),f(Ss.$$.fragment),nm=r(),Bs=a("p"),Bs.innerHTML=Bw,sm=r(),f(Vs.$$.fragment),am=r(),Es=a("p"),Es.innerHTML=Vw,om=r(),f(Ls.$$.fragment),rm=r(),Ws=a("p"),Ws.innerHTML=Ew,im=r(),f(Os.$$.fragment),lm=r(),Hs=a("p"),Hs.textContent=Lw,pm=r(),f(Ys.$$.fragment),cm=r(),fe=a("div"),f(Qs.$$.fragment),Tg=r(),Hr=a("p"),Hr.innerHTML=Ww,bg=r(),Yr=a("p"),Yr.textContent=Ow,yg=r(),Qr=a("ul"),Qr.innerHTML=Hw,wg=r(),f($t.$$.fragment),dm=r(),We=a("h2"),Jt=a("a"),Wc=a("span"),f(Xs.$$.fragment),xg=r(),Xr=a("span"),Xr.textContent=Yw,mm=r(),Ks=a("p"),Ks.innerHTML=Qw,hm=r(),f(ea.$$.fragment),fm=r(),f(It.$$.fragment),gm=r(),f(ta.$$.fragment),um=r(),f(na.$$.fragment),Tm=r(),sa=a("p"),sa.textContent=Xw,bm=r(),f(aa.$$.fragment),ym=r(),oa=a("p"),oa.innerHTML=Kw,wm=r(),f(ra.$$.fragment),xm=r(),ia=a("p"),ia.textContent=ex,vm=r(),la=a("p"),la.textContent=tx,_m=r(),pa=a("ul"),pa.innerHTML=nx,Mm=r(),Oe=a("h2"),qt=a("a"),Oc=a("span"),f(ca.$$.fragment),vg=r(),Kr=a("span"),Kr.textContent=sx,km=r(),da=a("p"),da.innerHTML=ax,Um=r(),ma=a("p"),ma.innerHTML=ox,jm=r(),f(ha.$$.fragment),Pm=r(),fa=a("p"),fa.textContent=rx,Cm=r(),f(ga.$$.fragment),$m=r(),ua=a("p"),ua.textContent=ix,Jm=r(),Ta=a("p"),Ta.innerHTML=lx,Im=r(),He=a("h2"),Gt=a("a"),Hc=a("span"),f(ba.$$.fragment),_g=r(),ei=a("span"),ei.textContent=px,qm=r(),ya=a("p"),ya.textContent=cx,Gm=r(),wa=a("p"),wa.innerHTML=dx,zm=r(),xa=a("p"),xa.textContent=mx,Am=r(),va=a("ul"),va.innerHTML=hx,Nm=r(),f(_a.$$.fragment),Zm=r(),Ma=a("p"),Ma.textContent=fx,Fm=r(),Ye=a("h2"),zt=a("a"),Yc=a("span"),f(ka.$$.fragment),Mg=r(),ti=a("span"),ti.textContent=gx,Dm=r(),Ua=a("p"),Ua.innerHTML=ux,Rm=r(),Qe=a("h2"),At=a("a"),Qc=a("span"),f(ja.$$.fragment),kg=r(),ni=a("span"),ni.textContent=Tx,Sm=r(),Pa=a("p"),Pa.textContent=bx,Bm=r(),Xe=a("h3"),Nt=a("a"),Xc=a("span"),f(Ca.$$.fragment),Ug=r(),si=a("span"),si.textContent=yx,Vm=r(),S=a("div"),f($a.$$.fragment),jg=r(),ai=a("p"),ai.innerHTML=wx,Pg=r(),f(Zt.$$.fragment),Cg=r(),oi=a("p"),oi.innerHTML=xx,$g=r(),ri=a("p"),ri.innerHTML=vx,Jg=r(),ii=a("p"),ii.innerHTML=_x,Ig=r(),Ft=a("div"),f(Ja.$$.fragment),qg=r(),li=a("p"),li.innerHTML=Mx,Em=r(),Ke=a("h3"),Dt=a("a"),Kc=a("span"),f(Ia.$$.fragment),Gg=r(),pi=a("span"),pi.textContent=kx,Lm=r(),re=a("div"),f(qa.$$.fragment),zg=r(),ci=a("p"),ci.textContent=Ux,Ag=r(),di=a("p"),di.textContent=jx,Ng=r(),f(Rt.$$.fragment),Zg=r(),mi=a("p"),mi.innerHTML=Px,Fg=r(),St=a("div"),f(Ga.$$.fragment),Dg=r(),hi=a("p"),hi.innerHTML=Cx,Wm=r(),et=a("h3"),Bt=a("a"),ed=a("span"),f(za.$$.fragment),Rg=r(),fi=a("span"),fi.textContent=$x,Om=r(),B=a("div"),f(Aa.$$.fragment),Sg=r(),gi=a("p"),gi.innerHTML=Jx,Bg=r(),f(Vt.$$.fragment),Vg=r(),ui=a("p"),ui.innerHTML=Ix,Eg=r(),Ti=a("p"),Ti.innerHTML=qx,Lg=r(),bi=a("p"),bi.innerHTML=Gx,Wg=r(),Et=a("div"),f(Na.$$.fragment),Og=r(),yi=a("p"),yi.innerHTML=zx,Hm=r(),tt=a("h3"),Lt=a("a"),td=a("span"),f(Za.$$.fragment),Hg=r(),wi=a("span"),wi.textContent=Ax,Ym=r(),ge=a("div"),f(Fa.$$.fragment),Yg=r(),xi=a("p"),xi.innerHTML=Nx,Qg=r(),f(Wt.$$.fragment),Xg=r(),vi=a("p"),vi.innerHTML=Zx,Kg=r(),Ot=a("div"),f(Da.$$.fragment),eu=r(),_i=a("p"),_i.textContent=Fx,Qm=r(),nt=a("h2"),Ht=a("a"),nd=a("span"),f(Ra.$$.fragment),tu=r(),Mi=a("span"),Mi.textContent=Dx,Xm=r(),Sa=a("p"),Sa.textContent=Rx,Km=r(),st=a("h3"),Yt=a("a"),sd=a("span"),f(Ba.$$.fragment),nu=r(),ki=a("span"),ki.textContent=Sx,eh=r(),V=a("div"),f(Va.$$.fragment),su=r(),Ui=a("p"),Ui.innerHTML=Bx,au=r(),f(Qt.$$.fragment),ou=r(),ji=a("p"),ji.innerHTML=Vx,ru=r(),Pi=a("p"),Pi.innerHTML=Ex,iu=r(),Ci=a("p"),Ci.innerHTML=Lx,lu=r(),Xt=a("div"),f(Ea.$$.fragment),pu=r(),$i=a("p"),$i.textContent=Wx,th=r(),at=a("h3"),Kt=a("a"),ad=a("span"),f(La.$$.fragment),cu=r(),Ji=a("span"),Ji.textContent=Ox,nh=r(),E=a("div"),f(Wa.$$.fragment),du=r(),Ii=a("p"),Ii.innerHTML=Hx,mu=r(),f(en.$$.fragment),hu=r(),qi=a("p"),qi.innerHTML=Yx,fu=r(),Gi=a("p"),Gi.innerHTML=Qx,gu=r(),zi=a("p"),zi.innerHTML=Xx,uu=r(),tn=a("div"),f(Oa.$$.fragment),Tu=r(),Ai=a("p"),Ai.textContent=Kx,sh=r(),ot=a("h3"),nn=a("a"),od=a("span"),f(Ha.$$.fragment),bu=r(),Ni=a("span"),Ni.textContent=ev,ah=r(),ie=a("div"),f(Ya.$$.fragment),yu=r(),Zi=a("p"),Zi.innerHTML=tv,wu=r(),f(sn.$$.fragment),xu=r(),Fi=a("p"),Fi.innerHTML=nv,vu=r(),Di=a("p"),Di.innerHTML=sv,_u=r(),an=a("div"),f(Qa.$$.fragment),Mu=r(),Ri=a("p"),Ri.textContent=av,oh=r(),rt=a("h3"),on=a("a"),rd=a("span"),f(Xa.$$.fragment),ku=r(),Si=a("span"),Si.textContent=ov,rh=r(),L=a("div"),f(Ka.$$.fragment),Uu=r(),Bi=a("p"),Bi.innerHTML=rv,ju=r(),f(rn.$$.fragment),Pu=r(),Vi=a("p"),Vi.innerHTML=iv,Cu=r(),Ei=a("p"),Ei.innerHTML=lv,$u=r(),Li=a("p"),Li.innerHTML=pv,Ju=r(),ln=a("div"),f(eo.$$.fragment),Iu=r(),Wi=a("p"),Wi.textContent=cv,ih=r(),it=a("h3"),pn=a("a"),id=a("span"),f(to.$$.fragment),qu=r(),Oi=a("span"),Oi.textContent=dv,lh=r(),ue=a("div"),f(no.$$.fragment),Gu=r(),Hi=a("p"),Hi.innerHTML=mv,zu=r(),Yi=a("p"),Yi.innerHTML=hv,Au=r(),Qi=a("p"),Qi.innerHTML=fv,Nu=r(),cn=a("div"),f(so.$$.fragment),Zu=r(),Xi=a("p"),Xi.textContent=gv,ph=r(),lt=a("h3"),dn=a("a"),ld=a("span"),f(ao.$$.fragment),Fu=r(),Ki=a("span"),Ki.textContent=uv,ch=r(),W=a("div"),f(oo.$$.fragment),Du=r(),el=a("p"),el.innerHTML=Tv,Ru=r(),f(mn.$$.fragment),Su=r(),tl=a("p"),tl.innerHTML=bv,Bu=r(),nl=a("p"),nl.innerHTML=yv,Vu=r(),sl=a("p"),sl.innerHTML=wv,Eu=r(),hn=a("div"),f(ro.$$.fragment),Lu=r(),al=a("p"),al.textContent=xv,dh=r(),pt=a("h3"),fn=a("a"),pd=a("span"),f(io.$$.fragment),Wu=r(),ol=a("span"),ol.textContent=vv,mh=r(),O=a("div"),f(lo.$$.fragment),Ou=r(),rl=a("p"),rl.innerHTML=_v,Hu=r(),f(gn.$$.fragment),Yu=r(),il=a("p"),il.innerHTML=Mv,Qu=r(),ll=a("p"),ll.innerHTML=kv,Xu=r(),pl=a("p"),pl.innerHTML=Uv,Ku=r(),un=a("div"),f(po.$$.fragment),eT=r(),cl=a("p"),cl.textContent=jv,hh=r(),ct=a("h2"),Tn=a("a"),cd=a("span"),f(co.$$.fragment),tT=r(),dl=a("span"),dl.textContent=Pv,fh=r(),mo=a("p"),mo.textContent=Cv,gh=r(),dt=a("h3"),bn=a("a"),dd=a("span"),f(ho.$$.fragment),nT=r(),ml=a("span"),ml.textContent=$v,uh=r(),H=a("div"),f(fo.$$.fragment),sT=r(),hl=a("p"),hl.innerHTML=Jv,aT=r(),f(yn.$$.fragment),oT=r(),wn=a("div"),f(go.$$.fragment),rT=r(),fl=a("p"),fl.innerHTML=Iv,iT=r(),xn=a("div"),f(uo.$$.fragment),lT=r(),gl=a("p"),gl.textContent=qv,pT=r(),Ze=a("div"),f(To.$$.fragment),cT=r(),ul=a("p"),ul.textContent=Gv,dT=r(),Tl=a("p"),Tl.innerHTML=zv,mT=r(),vn=a("div"),f(bo.$$.fragment),hT=r(),bl=a("p"),bl.innerHTML=Av,Th=r(),Y=a("div"),f(yo.$$.fragment),fT=r(),yl=a("p"),yl.textContent=Nv,gT=r(),f(_n.$$.fragment),uT=r(),wl=a("p"),wl.innerHTML=Zv,TT=r(),xl=a("p"),xl.innerHTML=Fv,bT=r(),vl=a("p"),vl.innerHTML=Dv,yT=r(),Mn=a("div"),f(wo.$$.fragment),wT=r(),_l=a("p"),_l.textContent=Rv,bh=r(),mt=a("h3"),kn=a("a"),md=a("span"),f(xo.$$.fragment),xT=r(),Ml=a("span"),Ml.textContent=Sv,yh=r(),Z=a("div"),f(vo.$$.fragment),vT=r(),kl=a("p"),kl.innerHTML=Bv,_T=r(),f(Un.$$.fragment),MT=r(),Ul=a("p"),Ul.innerHTML=Vv,kT=r(),jl=a("p"),jl.innerHTML=Ev,UT=r(),Pl=a("p"),Pl.innerHTML=Lv,jT=r(),f(jn.$$.fragment),PT=r(),Pn=a("div"),f(_o.$$.fragment),CT=r(),Cl=a("p"),Cl.textContent=Wv,wh=r(),ht=a("h3"),Cn=a("a"),hd=a("span"),f(Mo.$$.fragment),$T=r(),$l=a("span"),$l.textContent=Ov,xh=r(),G=a("div"),f(ko.$$.fragment),JT=r(),Jl=a("p"),Jl.innerHTML=Hv,IT=r(),f($n.$$.fragment),qT=r(),Il=a("p"),Il.innerHTML=Yv,GT=r(),ql=a("p"),ql.innerHTML=Qv,zT=r(),Gl=a("p"),Gl.innerHTML=Xv,AT=r(),Fe=a("div"),f(Uo.$$.fragment),NT=r(),zl=a("p"),zl.textContent=Kv,ZT=r(),Al=a("p"),Al.textContent=e_,FT=r(),Jn=a("div"),f(jo.$$.fragment),DT=r(),Nl=a("p"),Nl.textContent=t_,RT=r(),In=a("div"),f(Po.$$.fragment),ST=r(),Zl=a("p"),Zl.textContent=n_,BT=r(),qn=a("div"),f(Co.$$.fragment),VT=r(),Fl=a("p"),Fl.textContent=s_,vh=r(),$o=a("p"),$o.innerHTML=a_,_h=r(),ft=a("h3"),Gn=a("a"),fd=a("span"),f(Jo.$$.fragment),ET=r(),Dl=a("span"),Dl.textContent=o_,Mh=r(),z=a("div"),f(Io.$$.fragment),LT=r(),Rl=a("p"),Rl.innerHTML=r_,WT=r(),f(zn.$$.fragment),OT=r(),Sl=a("p"),Sl.innerHTML=i_,HT=r(),Bl=a("p"),Bl.innerHTML=l_,YT=r(),Vl=a("p"),Vl.innerHTML=p_,QT=r(),An=a("div"),f(qo.$$.fragment),XT=r(),El=a("p"),El.textContent=c_,KT=r(),De=a("div"),f(Go.$$.fragment),eb=r(),Ll=a("p"),Ll.innerHTML=d_,tb=r(),Wl=a("p"),Wl.textContent=m_,nb=r(),Nn=a("div"),f(zo.$$.fragment),sb=r(),Ol=a("p"),Ol.textContent=h_,kh=r(),gt=a("h3"),Zn=a("a"),gd=a("span"),f(Ao.$$.fragment),ab=r(),Hl=a("span"),Hl.textContent=f_,Uh=r(),le=a("div"),f(No.$$.fragment),ob=r(),Yl=a("p"),Yl.textContent=g_,rb=r(),Ql=a("p"),Ql.innerHTML=u_,ib=r(),Xl=a("p"),Xl.innerHTML=T_,lb=r(),f(Fn.$$.fragment),pb=r(),Dn=a("div"),f(Zo.$$.fragment),cb=r(),Kl=a("p"),Kl.textContent=b_,jh=r(),ut=a("h3"),Rn=a("a"),ud=a("span"),f(Fo.$$.fragment),db=r(),ep=a("span"),ep.textContent=y_,Ph=r(),Q=a("div"),f(Do.$$.fragment),mb=r(),tp=a("p"),tp.innerHTML=w_,hb=r(),f(Sn.$$.fragment),fb=r(),np=a("p"),np.innerHTML=x_,gb=r(),sp=a("p"),sp.innerHTML=v_,ub=r(),ap=a("p"),ap.innerHTML=__,Tb=r(),se=a("div"),f(Ro.$$.fragment),bb=r(),op=a("p"),op.textContent=M_,yb=r(),rp=a("ul"),rp.innerHTML=k_,wb=r(),ip=a("p"),ip.innerHTML=U_,xb=r(),f(Bn.$$.fragment),vb=r(),lp=a("p"),lp.textContent=j_,_b=r(),f(Vn.$$.fragment),Ch=r(),Tt=a("h3"),En=a("a"),Td=a("span"),f(So.$$.fragment),Mb=r(),pp=a("span"),pp.textContent=P_,$h=r(),F=a("div"),f(Bo.$$.fragment),kb=r(),cp=a("p"),cp.innerHTML=C_,Ub=r(),f(Ln.$$.fragment),jb=r(),dp=a("p"),dp.innerHTML=$_,Pb=r(),mp=a("p"),mp.innerHTML=J_,Cb=r(),hp=a("p"),hp.innerHTML=I_,$b=r(),fp=a("p"),fp.innerHTML=q_,Jb=r(),Wn=a("div"),f(Vo.$$.fragment),Ib=r(),gp=a("p"),gp.textContent=G_,Jh=r(),bt=a("h3"),On=a("a"),bd=a("span"),f(Eo.$$.fragment),qb=r(),up=a("span"),up.textContent=z_,Ih=r(),X=a("div"),f(Lo.$$.fragment),Gb=r(),Tp=a("p"),Tp.innerHTML=A_,zb=r(),f(Hn.$$.fragment),Ab=r(),bp=a("p"),bp.innerHTML=N_,Nb=r(),yp=a("p"),yp.innerHTML=Z_,Zb=r(),wp=a("p"),wp.innerHTML=F_,Fb=r(),Yn=a("div"),f(Wo.$$.fragment),Db=r(),xp=a("p"),xp.textContent=D_,qh=r(),yt=a("h3"),Qn=a("a"),yd=a("span"),f(Oo.$$.fragment),Rb=r(),vp=a("span"),vp.textContent=R_,Gh=r(),A=a("div"),f(Ho.$$.fragment),Sb=r(),_p=a("p"),_p.textContent=S_,Bb=r(),f(Xn.$$.fragment),Vb=r(),Mp=a("p"),Mp.innerHTML=B_,Eb=r(),kp=a("p"),kp.innerHTML=V_,Lb=r(),Up=a("p"),Up.innerHTML=E_,Wb=r(),f(Kn.$$.fragment),Ob=r(),es=a("div"),f(Yo.$$.fragment),Hb=r(),jp=a("p"),jp.textContent=L_,Yb=r(),ts=a("div"),f(Qo.$$.fragment),Qb=r(),Pp=a("p"),Pp.textContent=W_,zh=r(),wt=a("h3"),ns=a("a"),wd=a("span"),f(Xo.$$.fragment),Xb=r(),Cp=a("span"),Cp.textContent=O_,Ah=r(),q=a("div"),f(Ko.$$.fragment),Kb=r(),$p=a("p"),$p.innerHTML=H_,ey=r(),f(ss.$$.fragment),ty=r(),Jp=a("p"),Jp.innerHTML=Y_,ny=r(),Ip=a("p"),Ip.innerHTML=Q_,sy=r(),qp=a("p"),qp.innerHTML=X_,ay=r(),as=a("div"),f(er.$$.fragment),oy=r(),Gp=a("p"),Gp.textContent=K_,ry=r(),Re=a("div"),f(tr.$$.fragment),iy=r(),zp=a("p"),zp.textContent=e2,ly=r(),Ap=a("p"),Ap.textContent=t2,py=r(),os=a("div"),f(nr.$$.fragment),cy=r(),Np=a("p"),Np.textContent=n2,dy=r(),rs=a("div"),f(sr.$$.fragment),my=r(),Zp=a("p"),Zp.textContent=s2,hy=r(),is=a("div"),f(ar.$$.fragment),fy=r(),Fp=a("p"),Fp.textContent=a2,Nh=r(),xt=a("h3"),ls=a("a"),xd=a("span"),f(or.$$.fragment),gy=r(),Dp=a("span"),Dp.textContent=o2,Zh=r(),pe=a("div"),f(rr.$$.fragment),uy=r(),Rp=a("p"),Rp.textContent=r2,Ty=r(),Sp=a("p"),Sp.innerHTML=i2,by=r(),Bp=a("p"),Bp.innerHTML=l2,yy=r(),f(ps.$$.fragment),wy=r(),cs=a("div"),f(ir.$$.fragment),xy=r(),Vp=a("p"),Vp.textContent=p2,Fh=r(),vt=a("h3"),ds=a("a"),vd=a("span"),f(lr.$$.fragment),vy=r(),Ep=a("span"),Ep.textContent=c2,Dh=r(),D=a("div"),f(pr.$$.fragment),_y=r(),Lp=a("p"),Lp.innerHTML=d2,My=r(),Wp=a("p"),Wp.innerHTML=m2,ky=r(),f(ms.$$.fragment),Uy=r(),Op=a("p"),Op.innerHTML=h2,jy=r(),Hp=a("p"),Hp.innerHTML=f2,Py=r(),Yp=a("p"),Yp.innerHTML=g2,Cy=r(),hs=a("div"),f(cr.$$.fragment),$y=r(),Qp=a("p"),Qp.innerHTML=u2,Rh=r(),_t=a("h2"),fs=a("a"),_d=a("span"),f(dr.$$.fragment),Jy=r(),Xp=a("span"),Xp.textContent=T2,Sh=r(),mr=a("p"),mr.textContent=b2,Bh=r(),Mt=a("h3"),gs=a("a"),Md=a("span"),f(hr.$$.fragment),Iy=r(),Kp=a("span"),Kp.textContent=y2,Vh=r(),K=a("div"),f(fr.$$.fragment),qy=r(),ec=a("p"),ec.innerHTML=w2,Gy=r(),f(us.$$.fragment),zy=r(),tc=a("p"),tc.innerHTML=x2,Ay=r(),nc=a("p"),nc.innerHTML=v2,Ny=r(),sc=a("p"),sc.innerHTML=_2,Zy=r(),Ge=a("div"),f(gr.$$.fragment),Fy=r(),ac=a("p"),ac.innerHTML=M2,Dy=r(),oc=a("p"),oc.textContent=k2,Ry=r(),rc=a("ul"),rc.innerHTML=U2,Eh=r(),kt=a("h3"),Ts=a("a"),kd=a("span"),f(ur.$$.fragment),Sy=r(),ic=a("span"),ic.textContent=j2,Lh=r(),ee=a("div"),f(Tr.$$.fragment),By=r(),lc=a("p"),lc.textContent=P2,Vy=r(),f(bs.$$.fragment),Ey=r(),pc=a("p"),pc.innerHTML=C2,Ly=r(),cc=a("p"),cc.innerHTML=$2,Wy=r(),dc=a("p"),dc.innerHTML=J2,Oy=r(),ys=a("div"),f(br.$$.fragment),Hy=r(),mc=a("p"),mc.textContent=I2,Wh=r(),Ut=a("h3"),ws=a("a"),Ud=a("span"),f(yr.$$.fragment),Yy=r(),hc=a("span"),hc.textContent=q2,Oh=r(),te=a("div"),f(wr.$$.fragment),Qy=r(),fc=a("p"),fc.innerHTML=G2,Xy=r(),f(xs.$$.fragment),Ky=r(),gc=a("p"),gc.innerHTML=z2,ew=r(),uc=a("p"),uc.textContent=A2,tw=r(),Tc=a("p"),Tc.innerHTML=N2,nw=r(),vs=a("div"),f(xr.$$.fragment),sw=r(),bc=a("p"),bc.textContent=Z2,Hh=r(),jt=a("h3"),_s=a("a"),jd=a("span"),f(vr.$$.fragment),aw=r(),yc=a("span"),yc.textContent=F2,Yh=r(),ne=a("div"),f(_r.$$.fragment),ow=r(),wc=a("p"),wc.innerHTML=D2,rw=r(),f(Ms.$$.fragment),iw=r(),xc=a("p"),xc.innerHTML=R2,lw=r(),vc=a("p"),vc.innerHTML=S2,pw=r(),_c=a("p"),_c.innerHTML=B2,cw=r(),Se=a("div"),f(Mr.$$.fragment),dw=r(),Mc=a("p"),Mc.textContent=V2,mw=r(),kc=a("ul"),kc.innerHTML=E2,Qh=r(),Pt=a("h2"),ks=a("a"),Pd=a("span"),f(kr.$$.fragment),hw=r(),Uc=a("span"),Uc.innerHTML=L2,Xh=r(),$=a("div"),f(Ur.$$.fragment),fw=r(),jc=a("p"),jc.textContent=W2,gw=r(),Pc=a("p"),Pc.textContent=O2,uw=r(),Cc=a("p"),Cc.textContent=H2,Tw=r(),$c=a("p"),$c.textContent=Y2,bw=r(),Jc=a("p"),Jc.innerHTML=Q2,yw=r(),Us=a("div"),f(jr.$$.fragment),ww=r(),Ic=a("p"),Ic.textContent=X2,xw=r(),Be=a("div"),f(Pr.$$.fragment),vw=r(),qc=a("p"),qc.textContent=K2,_w=r(),f(js.$$.fragment),Mw=r(),Ps=a("div"),f(Cr.$$.fragment),kw=r(),Gc=a("p"),Gc.textContent=eM,Uw=r(),Cs=a("div"),f($r.$$.fragment),jw=r(),zc=a("p"),zc.innerHTML=tM,Pw=r(),$s=a("div"),f(Jr.$$.fragment),Cw=r(),Ac=a("p"),Ac.innerHTML=nM,$w=r(),Js=a("div"),f(Ir.$$.fragment),Jw=r(),Nc=a("p"),Nc.innerHTML=sM,Iw=r(),Is=a("div"),f(qr.$$.fragment),qw=r(),Zc=a("p"),Zc.textContent=aM,Gw=r(),qs=a("div"),f(Gr.$$.fragment),zw=r(),Fc=a("p"),Fc.innerHTML=oM,Kh=r(),Cd=a("p"),this.h()},l(e){const l=fk("svelte-1phssyn",document.head);c=o(l,"META",{name:!0,content:!0}),l.forEach(s),M=i(e),x=o(e,"P",{}),w(x).forEach(s),m=i(e),v=o(e,"H1",{class:!0});var zr=w(v);n=o(zr,"A",{id:!0,class:!0,href:!0});var $d=w(n);_=o($d,"SPAN",{});var Jd=w(_);g(zs.$$.fragment,Jd),Jd.forEach(s),$d.forEach(s),gg=i(zr),Wr=o(zr,"SPAN",{"data-svelte-h":!0}),d(Wr)!=="svelte-l4debw"&&(Wr.textContent=Aw),zr.forEach(s),Hd=i(e),As=o(e,"P",{"data-svelte-h":!0}),d(As)!=="svelte-bnmuag"&&(As.innerHTML=Nw),Yd=i(e),Ns=o(e,"P",{"data-svelte-h":!0}),d(Ns)!=="svelte-yt9cfz"&&(Ns.textContent=Zw),Qd=i(e),Zs=o(e,"UL",{"data-svelte-h":!0}),d(Zs)!=="svelte-1tqo5t7"&&(Zs.innerHTML=Fw),Xd=i(e),Le=o(e,"H2",{class:!0});var Ar=w(Le);Ct=o(Ar,"A",{id:!0,class:!0,href:!0});var Id=w(Ct);Lc=o(Id,"SPAN",{});var qd=w(Lc);g(Fs.$$.fragment,qd),qd.forEach(s),Id.forEach(s),ug=i(Ar),Or=o(Ar,"SPAN",{"data-svelte-h":!0}),d(Or)!=="svelte-1cxsez4"&&(Or.textContent=Dw),Ar.forEach(s),Kd=i(e),Ds=o(e,"P",{"data-svelte-h":!0}),d(Ds)!=="svelte-l2tdp3"&&(Ds.innerHTML=Rw),em=i(e),Rs=o(e,"P",{"data-svelte-h":!0}),d(Rs)!=="svelte-1x7q2yo"&&(Rs.textContent=Sw),tm=i(e),g(Ss.$$.fragment,e),nm=i(e),Bs=o(e,"P",{"data-svelte-h":!0}),d(Bs)!=="svelte-19h1yua"&&(Bs.innerHTML=Bw),sm=i(e),g(Vs.$$.fragment,e),am=i(e),Es=o(e,"P",{"data-svelte-h":!0}),d(Es)!=="svelte-10lm9b0"&&(Es.innerHTML=Vw),om=i(e),g(Ls.$$.fragment,e),rm=i(e),Ws=o(e,"P",{"data-svelte-h":!0}),d(Ws)!=="svelte-ww9dn5"&&(Ws.innerHTML=Ew),im=i(e),g(Os.$$.fragment,e),lm=i(e),Hs=o(e,"P",{"data-svelte-h":!0}),d(Hs)!=="svelte-1k2h3v5"&&(Hs.textContent=Lw),pm=i(e),g(Ys.$$.fragment,e),cm=i(e),fe=o(e,"DIV",{class:!0});var qe=w(fe);g(Qs.$$.fragment,qe),Tg=i(qe),Hr=o(qe,"P",{"data-svelte-h":!0}),d(Hr)!=="svelte-mw80xd"&&(Hr.innerHTML=Ww),bg=i(qe),Yr=o(qe,"P",{"data-svelte-h":!0}),d(Yr)!=="svelte-1lntif9"&&(Yr.textContent=Ow),yg=i(qe),Qr=o(qe,"UL",{"data-svelte-h":!0}),d(Qr)!=="svelte-18neydl"&&(Qr.innerHTML=Hw),wg=i(qe),g($t.$$.fragment,qe),qe.forEach(s),dm=i(e),We=o(e,"H2",{class:!0});var Nr=w(We);Jt=o(Nr,"A",{id:!0,class:!0,href:!0});var Gd=w(Jt);Wc=o(Gd,"SPAN",{});var zd=w(Wc);g(Xs.$$.fragment,zd),zd.forEach(s),Gd.forEach(s),xg=i(Nr),Xr=o(Nr,"SPAN",{"data-svelte-h":!0}),d(Xr)!=="svelte-xv2eix"&&(Xr.textContent=Yw),Nr.forEach(s),mm=i(e),Ks=o(e,"P",{"data-svelte-h":!0}),d(Ks)!=="svelte-1apicn"&&(Ks.innerHTML=Qw),hm=i(e),g(ea.$$.fragment,e),fm=i(e),g(It.$$.fragment,e),gm=i(e),g(ta.$$.fragment,e),um=i(e),g(na.$$.fragment,e),Tm=i(e),sa=o(e,"P",{"data-svelte-h":!0}),d(sa)!=="svelte-be3eiz"&&(sa.textContent=Xw),bm=i(e),g(aa.$$.fragment,e),ym=i(e),oa=o(e,"P",{"data-svelte-h":!0}),d(oa)!=="svelte-vxw3p4"&&(oa.innerHTML=Kw),wm=i(e),g(ra.$$.fragment,e),xm=i(e),ia=o(e,"P",{"data-svelte-h":!0}),d(ia)!=="svelte-15t12x9"&&(ia.textContent=ex),vm=i(e),la=o(e,"P",{"data-svelte-h":!0}),d(la)!=="svelte-qy4tut"&&(la.textContent=tx),_m=i(e),pa=o(e,"UL",{"data-svelte-h":!0}),d(pa)!=="svelte-afjyux"&&(pa.innerHTML=nx),Mm=i(e),Oe=o(e,"H2",{class:!0});var Zr=w(Oe);qt=o(Zr,"A",{id:!0,class:!0,href:!0});var Ad=w(qt);Oc=o(Ad,"SPAN",{});var Nd=w(Oc);g(ca.$$.fragment,Nd),Nd.forEach(s),Ad.forEach(s),vg=i(Zr),Kr=o(Zr,"SPAN",{"data-svelte-h":!0}),d(Kr)!=="svelte-14c9f0q"&&(Kr.textContent=sx),Zr.forEach(s),km=i(e),da=o(e,"P",{"data-svelte-h":!0}),d(da)!=="svelte-8boz4s"&&(da.innerHTML=ax),Um=i(e),ma=o(e,"P",{"data-svelte-h":!0}),d(ma)!=="svelte-1e8h99m"&&(ma.innerHTML=ox),jm=i(e),g(ha.$$.fragment,e),Pm=i(e),fa=o(e,"P",{"data-svelte-h":!0}),d(fa)!=="svelte-jrh3w"&&(fa.textContent=rx),Cm=i(e),g(ga.$$.fragment,e),$m=i(e),ua=o(e,"P",{"data-svelte-h":!0}),d(ua)!=="svelte-1bbc8q3"&&(ua.textContent=ix),Jm=i(e),Ta=o(e,"P",{"data-svelte-h":!0}),d(Ta)!=="svelte-tu5fem"&&(Ta.innerHTML=lx),Im=i(e),He=o(e,"H2",{class:!0});var Fr=w(He);Gt=o(Fr,"A",{id:!0,class:!0,href:!0});var Zd=w(Gt);Hc=o(Zd,"SPAN",{});var Fd=w(Hc);g(ba.$$.fragment,Fd),Fd.forEach(s),Zd.forEach(s),_g=i(Fr),ei=o(Fr,"SPAN",{"data-svelte-h":!0}),d(ei)!=="svelte-1jydraj"&&(ei.textContent=px),Fr.forEach(s),qm=i(e),ya=o(e,"P",{"data-svelte-h":!0}),d(ya)!=="svelte-v57rju"&&(ya.textContent=cx),Gm=i(e),wa=o(e,"P",{"data-svelte-h":!0}),d(wa)!=="svelte-15o5e7w"&&(wa.innerHTML=dx),zm=i(e),xa=o(e,"P",{"data-svelte-h":!0}),d(xa)!=="svelte-g2hs1z"&&(xa.textContent=mx),Am=i(e),va=o(e,"UL",{"data-svelte-h":!0}),d(va)!=="svelte-bkoq64"&&(va.innerHTML=hx),Nm=i(e),g(_a.$$.fragment,e),Zm=i(e),Ma=o(e,"P",{"data-svelte-h":!0}),d(Ma)!=="svelte-19c7ukz"&&(Ma.textContent=fx),Fm=i(e),Ye=o(e,"H2",{class:!0});var Dr=w(Ye);zt=o(Dr,"A",{id:!0,class:!0,href:!0});var Dd=w(zt);Yc=o(Dd,"SPAN",{});var Rd=w(Yc);g(ka.$$.fragment,Rd),Rd.forEach(s),Dd.forEach(s),Mg=i(Dr),ti=o(Dr,"SPAN",{"data-svelte-h":!0}),d(ti)!=="svelte-r7cvat"&&(ti.textContent=gx),Dr.forEach(s),Dm=i(e),Ua=o(e,"P",{"data-svelte-h":!0}),d(Ua)!=="svelte-1dtjdk1"&&(Ua.innerHTML=ux),Rm=i(e),Qe=o(e,"H2",{class:!0});var Rr=w(Qe);At=o(Rr,"A",{id:!0,class:!0,href:!0});var Sd=w(At);Qc=o(Sd,"SPAN",{});var Bd=w(Qc);g(ja.$$.fragment,Bd),Bd.forEach(s),Sd.forEach(s),kg=i(Rr),ni=o(Rr,"SPAN",{"data-svelte-h":!0}),d(ni)!=="svelte-ivwwlt"&&(ni.textContent=Tx),Rr.forEach(s),Sm=i(e),Pa=o(e,"P",{"data-svelte-h":!0}),d(Pa)!=="svelte-1uac455"&&(Pa.textContent=bx),Bm=i(e),Xe=o(e,"H3",{class:!0});var Sr=w(Xe);Nt=o(Sr,"A",{id:!0,class:!0,href:!0});var Vd=w(Nt);Xc=o(Vd,"SPAN",{});var Ed=w(Xc);g(Ca.$$.fragment,Ed),Ed.forEach(s),Vd.forEach(s),Ug=i(Sr),si=o(Sr,"SPAN",{"data-svelte-h":!0}),d(si)!=="svelte-w9tjlb"&&(si.textContent=yx),Sr.forEach(s),Vm=i(e),S=o(e,"DIV",{class:!0});var ce=w(S);g($a.$$.fragment,ce),jg=i(ce),ai=o(ce,"P",{"data-svelte-h":!0}),d(ai)!=="svelte-1wmh7ni"&&(ai.innerHTML=wx),Pg=i(ce),g(Zt.$$.fragment,ce),Cg=i(ce),oi=o(ce,"P",{"data-svelte-h":!0}),d(oi)!=="svelte-13rexfx"&&(oi.innerHTML=xx),$g=i(ce),ri=o(ce,"P",{"data-svelte-h":!0}),d(ri)!=="svelte-73z8rx"&&(ri.innerHTML=vx),Jg=i(ce),ii=o(ce,"P",{"data-svelte-h":!0}),d(ii)!=="svelte-1pv1mxa"&&(ii.innerHTML=_x),Ig=i(ce),Ft=o(ce,"DIV",{class:!0});var Br=w(Ft);g(Ja.$$.fragment,Br),qg=i(Br),li=o(Br,"P",{"data-svelte-h":!0}),d(li)!=="svelte-1lhqls"&&(li.innerHTML=Mx),Br.forEach(s),ce.forEach(s),Em=i(e),Ke=o(e,"H3",{class:!0});var Vr=w(Ke);Dt=o(Vr,"A",{id:!0,class:!0,href:!0});var Ld=w(Dt);Kc=o(Ld,"SPAN",{});var Wd=w(Kc);g(Ia.$$.fragment,Wd),Wd.forEach(s),Ld.forEach(s),Gg=i(Vr),pi=o(Vr,"SPAN",{"data-svelte-h":!0}),d(pi)!=="svelte-yneo6v"&&(pi.textContent=kx),Vr.forEach(s),Lm=i(e),re=o(e,"DIV",{class:!0});var Te=w(re);g(qa.$$.fragment,Te),zg=i(Te),ci=o(Te,"P",{"data-svelte-h":!0}),d(ci)!=="svelte-vm8asa"&&(ci.textContent=Ux),Ag=i(Te),di=o(Te,"P",{"data-svelte-h":!0}),d(di)!=="svelte-1l0gjoy"&&(di.textContent=jx),Ng=i(Te),g(Rt.$$.fragment,Te),Zg=i(Te),mi=o(Te,"P",{"data-svelte-h":!0}),d(mi)!=="svelte-13rexfx"&&(mi.innerHTML=Px),Fg=i(Te),St=o(Te,"DIV",{class:!0});var Er=w(St);g(Ga.$$.fragment,Er),Dg=i(Er),hi=o(Er,"P",{"data-svelte-h":!0}),d(hi)!=="svelte-xzus59"&&(hi.innerHTML=Cx),Er.forEach(s),Te.forEach(s),Wm=i(e),et=o(e,"H3",{class:!0});var Lr=w(et);Bt=o(Lr,"A",{id:!0,class:!0,href:!0});var Od=w(Bt);ed=o(Od,"SPAN",{});var rM=w(ed);g(za.$$.fragment,rM),rM.forEach(s),Od.forEach(s),Rg=i(Lr),fi=o(Lr,"SPAN",{"data-svelte-h":!0}),d(fi)!=="svelte-vdbend"&&(fi.textContent=$x),Lr.forEach(s),Om=i(e),B=o(e,"DIV",{class:!0});var be=w(B);g(Aa.$$.fragment,be),Sg=i(be),gi=o(be,"P",{"data-svelte-h":!0}),d(gi)!=="svelte-y1s454"&&(gi.innerHTML=Jx),Bg=i(be),g(Vt.$$.fragment,be),Vg=i(be),ui=o(be,"P",{"data-svelte-h":!0}),d(ui)!=="svelte-13rexfx"&&(ui.innerHTML=Ix),Eg=i(be),Ti=o(be,"P",{"data-svelte-h":!0}),d(Ti)!=="svelte-aolr43"&&(Ti.innerHTML=qx),Lg=i(be),bi=o(be,"P",{"data-svelte-h":!0}),d(bi)!=="svelte-1g4o6wf"&&(bi.innerHTML=Gx),Wg=i(be),Et=o(be,"DIV",{class:!0});var tf=w(Et);g(Na.$$.fragment,tf),Og=i(tf),yi=o(tf,"P",{"data-svelte-h":!0}),d(yi)!=="svelte-1q5yjfd"&&(yi.innerHTML=zx),tf.forEach(s),be.forEach(s),Hm=i(e),tt=o(e,"H3",{class:!0});var nf=w(tt);Lt=o(nf,"A",{id:!0,class:!0,href:!0});var iM=w(Lt);td=o(iM,"SPAN",{});var lM=w(td);g(Za.$$.fragment,lM),lM.forEach(s),iM.forEach(s),Hg=i(nf),wi=o(nf,"SPAN",{"data-svelte-h":!0}),d(wi)!=="svelte-1siwarh"&&(wi.textContent=Ax),nf.forEach(s),Ym=i(e),ge=o(e,"DIV",{class:!0});var Ve=w(ge);g(Fa.$$.fragment,Ve),Yg=i(Ve),xi=o(Ve,"P",{"data-svelte-h":!0}),d(xi)!=="svelte-tmg4zt"&&(xi.innerHTML=Nx),Qg=i(Ve),g(Wt.$$.fragment,Ve),Xg=i(Ve),vi=o(Ve,"P",{"data-svelte-h":!0}),d(vi)!=="svelte-mkhwl2"&&(vi.innerHTML=Zx),Kg=i(Ve),Ot=o(Ve,"DIV",{class:!0});var sf=w(Ot);g(Da.$$.fragment,sf),eu=i(sf),_i=o(sf,"P",{"data-svelte-h":!0}),d(_i)!=="svelte-kd58rd"&&(_i.textContent=Fx),sf.forEach(s),Ve.forEach(s),Qm=i(e),nt=o(e,"H2",{class:!0});var af=w(nt);Ht=o(af,"A",{id:!0,class:!0,href:!0});var pM=w(Ht);nd=o(pM,"SPAN",{});var cM=w(nd);g(Ra.$$.fragment,cM),cM.forEach(s),pM.forEach(s),tu=i(af),Mi=o(af,"SPAN",{"data-svelte-h":!0}),d(Mi)!=="svelte-1pyp6as"&&(Mi.textContent=Dx),af.forEach(s),Xm=i(e),Sa=o(e,"P",{"data-svelte-h":!0}),d(Sa)!=="svelte-10a8pps"&&(Sa.textContent=Rx),Km=i(e),st=o(e,"H3",{class:!0});var of=w(st);Yt=o(of,"A",{id:!0,class:!0,href:!0});var dM=w(Yt);sd=o(dM,"SPAN",{});var mM=w(sd);g(Ba.$$.fragment,mM),mM.forEach(s),dM.forEach(s),nu=i(of),ki=o(of,"SPAN",{"data-svelte-h":!0}),d(ki)!=="svelte-f3emsr"&&(ki.textContent=Sx),of.forEach(s),eh=i(e),V=o(e,"DIV",{class:!0});var ye=w(V);g(Va.$$.fragment,ye),su=i(ye),Ui=o(ye,"P",{"data-svelte-h":!0}),d(Ui)!=="svelte-cmozej"&&(Ui.innerHTML=Bx),au=i(ye),g(Qt.$$.fragment,ye),ou=i(ye),ji=o(ye,"P",{"data-svelte-h":!0}),d(ji)!=="svelte-13rexfx"&&(ji.innerHTML=Vx),ru=i(ye),Pi=o(ye,"P",{"data-svelte-h":!0}),d(Pi)!=="svelte-1ixxsmd"&&(Pi.innerHTML=Ex),iu=i(ye),Ci=o(ye,"P",{"data-svelte-h":!0}),d(Ci)!=="svelte-6trb8y"&&(Ci.innerHTML=Lx),lu=i(ye),Xt=o(ye,"DIV",{class:!0});var rf=w(Xt);g(Ea.$$.fragment,rf),pu=i(rf),$i=o(rf,"P",{"data-svelte-h":!0}),d($i)!=="svelte-ypfmt8"&&($i.textContent=Wx),rf.forEach(s),ye.forEach(s),th=i(e),at=o(e,"H3",{class:!0});var lf=w(at);Kt=o(lf,"A",{id:!0,class:!0,href:!0});var hM=w(Kt);ad=o(hM,"SPAN",{});var fM=w(ad);g(La.$$.fragment,fM),fM.forEach(s),hM.forEach(s),cu=i(lf),Ji=o(lf,"SPAN",{"data-svelte-h":!0}),d(Ji)!=="svelte-1cqbr90"&&(Ji.textContent=Ox),lf.forEach(s),nh=i(e),E=o(e,"DIV",{class:!0});var we=w(E);g(Wa.$$.fragment,we),du=i(we),Ii=o(we,"P",{"data-svelte-h":!0}),d(Ii)!=="svelte-rlbi70"&&(Ii.innerHTML=Hx),mu=i(we),g(en.$$.fragment,we),hu=i(we),qi=o(we,"P",{"data-svelte-h":!0}),d(qi)!=="svelte-13rexfx"&&(qi.innerHTML=Yx),fu=i(we),Gi=o(we,"P",{"data-svelte-h":!0}),d(Gi)!=="svelte-1tfydwp"&&(Gi.innerHTML=Qx),gu=i(we),zi=o(we,"P",{"data-svelte-h":!0}),d(zi)!=="svelte-cqpf5t"&&(zi.innerHTML=Xx),uu=i(we),tn=o(we,"DIV",{class:!0});var pf=w(tn);g(Oa.$$.fragment,pf),Tu=i(pf),Ai=o(pf,"P",{"data-svelte-h":!0}),d(Ai)!=="svelte-ypfmt8"&&(Ai.textContent=Kx),pf.forEach(s),we.forEach(s),sh=i(e),ot=o(e,"H3",{class:!0});var cf=w(ot);nn=o(cf,"A",{id:!0,class:!0,href:!0});var gM=w(nn);od=o(gM,"SPAN",{});var uM=w(od);g(Ha.$$.fragment,uM),uM.forEach(s),gM.forEach(s),bu=i(cf),Ni=o(cf,"SPAN",{"data-svelte-h":!0}),d(Ni)!=="svelte-s0p1t6"&&(Ni.textContent=ev),cf.forEach(s),ah=i(e),ie=o(e,"DIV",{class:!0});var ze=w(ie);g(Ya.$$.fragment,ze),yu=i(ze),Zi=o(ze,"P",{"data-svelte-h":!0}),d(Zi)!=="svelte-1y2a978"&&(Zi.innerHTML=tv),wu=i(ze),g(sn.$$.fragment,ze),xu=i(ze),Fi=o(ze,"P",{"data-svelte-h":!0}),d(Fi)!=="svelte-erpwhd"&&(Fi.innerHTML=nv),vu=i(ze),Di=o(ze,"P",{"data-svelte-h":!0}),d(Di)!=="svelte-151zbn3"&&(Di.innerHTML=sv),_u=i(ze),an=o(ze,"DIV",{class:!0});var df=w(an);g(Qa.$$.fragment,df),Mu=i(df),Ri=o(df,"P",{"data-svelte-h":!0}),d(Ri)!=="svelte-1qn9qfa"&&(Ri.textContent=av),df.forEach(s),ze.forEach(s),oh=i(e),rt=o(e,"H3",{class:!0});var mf=w(rt);on=o(mf,"A",{id:!0,class:!0,href:!0});var TM=w(on);rd=o(TM,"SPAN",{});var bM=w(rd);g(Xa.$$.fragment,bM),bM.forEach(s),TM.forEach(s),ku=i(mf),Si=o(mf,"SPAN",{"data-svelte-h":!0}),d(Si)!=="svelte-ly45fz"&&(Si.textContent=ov),mf.forEach(s),rh=i(e),L=o(e,"DIV",{class:!0});var xe=w(L);g(Ka.$$.fragment,xe),Uu=i(xe),Bi=o(xe,"P",{"data-svelte-h":!0}),d(Bi)!=="svelte-1c7y9od"&&(Bi.innerHTML=rv),ju=i(xe),g(rn.$$.fragment,xe),Pu=i(xe),Vi=o(xe,"P",{"data-svelte-h":!0}),d(Vi)!=="svelte-13rexfx"&&(Vi.innerHTML=iv),Cu=i(xe),Ei=o(xe,"P",{"data-svelte-h":!0}),d(Ei)!=="svelte-f8wwjf"&&(Ei.innerHTML=lv),$u=i(xe),Li=o(xe,"P",{"data-svelte-h":!0}),d(Li)!=="svelte-1ea8edc"&&(Li.innerHTML=pv),Ju=i(xe),ln=o(xe,"DIV",{class:!0});var hf=w(ln);g(eo.$$.fragment,hf),Iu=i(hf),Wi=o(hf,"P",{"data-svelte-h":!0}),d(Wi)!=="svelte-1ws18e1"&&(Wi.textContent=cv),hf.forEach(s),xe.forEach(s),ih=i(e),it=o(e,"H3",{class:!0});var ff=w(it);pn=o(ff,"A",{id:!0,class:!0,href:!0});var yM=w(pn);id=o(yM,"SPAN",{});var wM=w(id);g(to.$$.fragment,wM),wM.forEach(s),yM.forEach(s),qu=i(ff),Oi=o(ff,"SPAN",{"data-svelte-h":!0}),d(Oi)!=="svelte-fl7w2a"&&(Oi.textContent=dv),ff.forEach(s),lh=i(e),ue=o(e,"DIV",{class:!0});var Ee=w(ue);g(no.$$.fragment,Ee),Gu=i(Ee),Hi=o(Ee,"P",{"data-svelte-h":!0}),d(Hi)!=="svelte-115eloe"&&(Hi.innerHTML=mv),zu=i(Ee),Yi=o(Ee,"P",{"data-svelte-h":!0}),d(Yi)!=="svelte-v8oyrh"&&(Yi.innerHTML=hv),Au=i(Ee),Qi=o(Ee,"P",{"data-svelte-h":!0}),d(Qi)!=="svelte-38n9pn"&&(Qi.innerHTML=fv),Nu=i(Ee),cn=o(Ee,"DIV",{class:!0});var gf=w(cn);g(so.$$.fragment,gf),Zu=i(gf),Xi=o(gf,"P",{"data-svelte-h":!0}),d(Xi)!=="svelte-1wpkis2"&&(Xi.textContent=gv),gf.forEach(s),Ee.forEach(s),ph=i(e),lt=o(e,"H3",{class:!0});var uf=w(lt);dn=o(uf,"A",{id:!0,class:!0,href:!0});var xM=w(dn);ld=o(xM,"SPAN",{});var vM=w(ld);g(ao.$$.fragment,vM),vM.forEach(s),xM.forEach(s),Fu=i(uf),Ki=o(uf,"SPAN",{"data-svelte-h":!0}),d(Ki)!=="svelte-1h50lha"&&(Ki.textContent=uv),uf.forEach(s),ch=i(e),W=o(e,"DIV",{class:!0});var ve=w(W);g(oo.$$.fragment,ve),Du=i(ve),el=o(ve,"P",{"data-svelte-h":!0}),d(el)!=="svelte-1lqk35m"&&(el.innerHTML=Tv),Ru=i(ve),g(mn.$$.fragment,ve),Su=i(ve),tl=o(ve,"P",{"data-svelte-h":!0}),d(tl)!=="svelte-13rexfx"&&(tl.innerHTML=bv),Bu=i(ve),nl=o(ve,"P",{"data-svelte-h":!0}),d(nl)!=="svelte-8jjpx9"&&(nl.innerHTML=yv),Vu=i(ve),sl=o(ve,"P",{"data-svelte-h":!0}),d(sl)!=="svelte-ab0ict"&&(sl.innerHTML=wv),Eu=i(ve),hn=o(ve,"DIV",{class:!0});var Tf=w(hn);g(ro.$$.fragment,Tf),Lu=i(Tf),al=o(Tf,"P",{"data-svelte-h":!0}),d(al)!=="svelte-ypfmt8"&&(al.textContent=xv),Tf.forEach(s),ve.forEach(s),dh=i(e),pt=o(e,"H3",{class:!0});var bf=w(pt);fn=o(bf,"A",{id:!0,class:!0,href:!0});var _M=w(fn);pd=o(_M,"SPAN",{});var MM=w(pd);g(io.$$.fragment,MM),MM.forEach(s),_M.forEach(s),Wu=i(bf),ol=o(bf,"SPAN",{"data-svelte-h":!0}),d(ol)!=="svelte-1wt2sgt"&&(ol.textContent=vv),bf.forEach(s),mh=i(e),O=o(e,"DIV",{class:!0});var _e=w(O);g(lo.$$.fragment,_e),Ou=i(_e),rl=o(_e,"P",{"data-svelte-h":!0}),d(rl)!=="svelte-zegbdg"&&(rl.innerHTML=_v),Hu=i(_e),g(gn.$$.fragment,_e),Yu=i(_e),il=o(_e,"P",{"data-svelte-h":!0}),d(il)!=="svelte-13rexfx"&&(il.innerHTML=Mv),Qu=i(_e),ll=o(_e,"P",{"data-svelte-h":!0}),d(ll)!=="svelte-uoxtzr"&&(ll.innerHTML=kv),Xu=i(_e),pl=o(_e,"P",{"data-svelte-h":!0}),d(pl)!=="svelte-1lmpzxi"&&(pl.innerHTML=Uv),Ku=i(_e),un=o(_e,"DIV",{class:!0});var yf=w(un);g(po.$$.fragment,yf),eT=i(yf),cl=o(yf,"P",{"data-svelte-h":!0}),d(cl)!=="svelte-1ws18e1"&&(cl.textContent=jv),yf.forEach(s),_e.forEach(s),hh=i(e),ct=o(e,"H2",{class:!0});var wf=w(ct);Tn=o(wf,"A",{id:!0,class:!0,href:!0});var kM=w(Tn);cd=o(kM,"SPAN",{});var UM=w(cd);g(co.$$.fragment,UM),UM.forEach(s),kM.forEach(s),tT=i(wf),dl=o(wf,"SPAN",{"data-svelte-h":!0}),d(dl)!=="svelte-1psny5b"&&(dl.textContent=Pv),wf.forEach(s),fh=i(e),mo=o(e,"P",{"data-svelte-h":!0}),d(mo)!=="svelte-ammvm7"&&(mo.textContent=Cv),gh=i(e),dt=o(e,"H3",{class:!0});var xf=w(dt);bn=o(xf,"A",{id:!0,class:!0,href:!0});var jM=w(bn);dd=o(jM,"SPAN",{});var PM=w(dd);g(ho.$$.fragment,PM),PM.forEach(s),jM.forEach(s),nT=i(xf),ml=o(xf,"SPAN",{"data-svelte-h":!0}),d(ml)!=="svelte-1b046e5"&&(ml.textContent=$v),xf.forEach(s),uh=i(e),H=o(e,"DIV",{class:!0});var Me=w(H);g(fo.$$.fragment,Me),sT=i(Me),hl=o(Me,"P",{"data-svelte-h":!0}),d(hl)!=="svelte-z6e1p3"&&(hl.innerHTML=Jv),aT=i(Me),g(yn.$$.fragment,Me),oT=i(Me),wn=o(Me,"DIV",{class:!0});var vf=w(wn);g(go.$$.fragment,vf),rT=i(vf),fl=o(vf,"P",{"data-svelte-h":!0}),d(fl)!=="svelte-1d13c3s"&&(fl.innerHTML=Iv),vf.forEach(s),iT=i(Me),xn=o(Me,"DIV",{class:!0});var _f=w(xn);g(uo.$$.fragment,_f),lT=i(_f),gl=o(_f,"P",{"data-svelte-h":!0}),d(gl)!=="svelte-z8yvjm"&&(gl.textContent=qv),_f.forEach(s),pT=i(Me),Ze=o(Me,"DIV",{class:!0});var Dc=w(Ze);g(To.$$.fragment,Dc),cT=i(Dc),ul=o(Dc,"P",{"data-svelte-h":!0}),d(ul)!=="svelte-kgwg9v"&&(ul.textContent=Gv),dT=i(Dc),Tl=o(Dc,"P",{"data-svelte-h":!0}),d(Tl)!=="svelte-1g8xqox"&&(Tl.innerHTML=zv),Dc.forEach(s),mT=i(Me),vn=o(Me,"DIV",{class:!0});var Mf=w(vn);g(bo.$$.fragment,Mf),hT=i(Mf),bl=o(Mf,"P",{"data-svelte-h":!0}),d(bl)!=="svelte-diipkc"&&(bl.innerHTML=Av),Mf.forEach(s),Me.forEach(s),Th=i(e),Y=o(e,"DIV",{class:!0});var ke=w(Y);g(yo.$$.fragment,ke),fT=i(ke),yl=o(ke,"P",{"data-svelte-h":!0}),d(yl)!=="svelte-1aof0an"&&(yl.textContent=Nv),gT=i(ke),g(_n.$$.fragment,ke),uT=i(ke),wl=o(ke,"P",{"data-svelte-h":!0}),d(wl)!=="svelte-13rexfx"&&(wl.innerHTML=Zv),TT=i(ke),xl=o(ke,"P",{"data-svelte-h":!0}),d(xl)!=="svelte-55xkz2"&&(xl.innerHTML=Fv),bT=i(ke),vl=o(ke,"P",{"data-svelte-h":!0}),d(vl)!=="svelte-dtzd0p"&&(vl.innerHTML=Dv),yT=i(ke),Mn=o(ke,"DIV",{class:!0});var kf=w(Mn);g(wo.$$.fragment,kf),wT=i(kf),_l=o(kf,"P",{"data-svelte-h":!0}),d(_l)!=="svelte-71qq28"&&(_l.textContent=Rv),kf.forEach(s),ke.forEach(s),bh=i(e),mt=o(e,"H3",{class:!0});var Uf=w(mt);kn=o(Uf,"A",{id:!0,class:!0,href:!0});var CM=w(kn);md=o(CM,"SPAN",{});var $M=w(md);g(xo.$$.fragment,$M),$M.forEach(s),CM.forEach(s),xT=i(Uf),Ml=o(Uf,"SPAN",{"data-svelte-h":!0}),d(Ml)!=="svelte-1m87n44"&&(Ml.textContent=Sv),Uf.forEach(s),yh=i(e),Z=o(e,"DIV",{class:!0});var de=w(Z);g(vo.$$.fragment,de),vT=i(de),kl=o(de,"P",{"data-svelte-h":!0}),d(kl)!=="svelte-1y2vlya"&&(kl.innerHTML=Bv),_T=i(de),g(Un.$$.fragment,de),MT=i(de),Ul=o(de,"P",{"data-svelte-h":!0}),d(Ul)!=="svelte-13rexfx"&&(Ul.innerHTML=Vv),kT=i(de),jl=o(de,"P",{"data-svelte-h":!0}),d(jl)!=="svelte-fkueit"&&(jl.innerHTML=Ev),UT=i(de),Pl=o(de,"P",{"data-svelte-h":!0}),d(Pl)!=="svelte-6ieg"&&(Pl.innerHTML=Lv),jT=i(de),g(jn.$$.fragment,de),PT=i(de),Pn=o(de,"DIV",{class:!0});var jf=w(Pn);g(_o.$$.fragment,jf),CT=i(jf),Cl=o(jf,"P",{"data-svelte-h":!0}),d(Cl)!=="svelte-1dgb1r"&&(Cl.textContent=Wv),jf.forEach(s),de.forEach(s),wh=i(e),ht=o(e,"H3",{class:!0});var Pf=w(ht);Cn=o(Pf,"A",{id:!0,class:!0,href:!0});var JM=w(Cn);hd=o(JM,"SPAN",{});var IM=w(hd);g(Mo.$$.fragment,IM),IM.forEach(s),JM.forEach(s),$T=i(Pf),$l=o(Pf,"SPAN",{"data-svelte-h":!0}),d($l)!=="svelte-11sqppk"&&($l.textContent=Ov),Pf.forEach(s),xh=i(e),G=o(e,"DIV",{class:!0});var R=w(G);g(ko.$$.fragment,R),JT=i(R),Jl=o(R,"P",{"data-svelte-h":!0}),d(Jl)!=="svelte-15adoar"&&(Jl.innerHTML=Hv),IT=i(R),g($n.$$.fragment,R),qT=i(R),Il=o(R,"P",{"data-svelte-h":!0}),d(Il)!=="svelte-13rexfx"&&(Il.innerHTML=Yv),GT=i(R),ql=o(R,"P",{"data-svelte-h":!0}),d(ql)!=="svelte-1htl26i"&&(ql.innerHTML=Qv),zT=i(R),Gl=o(R,"P",{"data-svelte-h":!0}),d(Gl)!=="svelte-jwg5m8"&&(Gl.innerHTML=Xv),AT=i(R),Fe=o(R,"DIV",{class:!0});var Rc=w(Fe);g(Uo.$$.fragment,Rc),NT=i(Rc),zl=o(Rc,"P",{"data-svelte-h":!0}),d(zl)!=="svelte-1qebl0w"&&(zl.textContent=Kv),ZT=i(Rc),Al=o(Rc,"P",{"data-svelte-h":!0}),d(Al)!=="svelte-m7pmui"&&(Al.textContent=e_),Rc.forEach(s),FT=i(R),Jn=o(R,"DIV",{class:!0});var Cf=w(Jn);g(jo.$$.fragment,Cf),DT=i(Cf),Nl=o(Cf,"P",{"data-svelte-h":!0}),d(Nl)!=="svelte-lj4b08"&&(Nl.textContent=t_),Cf.forEach(s),RT=i(R),In=o(R,"DIV",{class:!0});var $f=w(In);g(Po.$$.fragment,$f),ST=i($f),Zl=o($f,"P",{"data-svelte-h":!0}),d(Zl)!=="svelte-226no6"&&(Zl.textContent=n_),$f.forEach(s),BT=i(R),qn=o(R,"DIV",{class:!0});var Jf=w(qn);g(Co.$$.fragment,Jf),VT=i(Jf),Fl=o(Jf,"P",{"data-svelte-h":!0}),d(Fl)!=="svelte-vx34uc"&&(Fl.textContent=s_),Jf.forEach(s),R.forEach(s),vh=i(e),$o=o(e,"P",{"data-svelte-h":!0}),d($o)!=="svelte-rnuc6f"&&($o.innerHTML=a_),_h=i(e),ft=o(e,"H3",{class:!0});var If=w(ft);Gn=o(If,"A",{id:!0,class:!0,href:!0});var qM=w(Gn);fd=o(qM,"SPAN",{});var GM=w(fd);g(Jo.$$.fragment,GM),GM.forEach(s),qM.forEach(s),ET=i(If),Dl=o(If,"SPAN",{"data-svelte-h":!0}),d(Dl)!=="svelte-1u3qv8z"&&(Dl.textContent=o_),If.forEach(s),Mh=i(e),z=o(e,"DIV",{class:!0});var ae=w(z);g(Io.$$.fragment,ae),LT=i(ae),Rl=o(ae,"P",{"data-svelte-h":!0}),d(Rl)!=="svelte-81lrkw"&&(Rl.innerHTML=r_),WT=i(ae),g(zn.$$.fragment,ae),OT=i(ae),Sl=o(ae,"P",{"data-svelte-h":!0}),d(Sl)!=="svelte-13rexfx"&&(Sl.innerHTML=i_),HT=i(ae),Bl=o(ae,"P",{"data-svelte-h":!0}),d(Bl)!=="svelte-1wp1xtv"&&(Bl.innerHTML=l_),YT=i(ae),Vl=o(ae,"P",{"data-svelte-h":!0}),d(Vl)!=="svelte-13vdwbu"&&(Vl.innerHTML=p_),QT=i(ae),An=o(ae,"DIV",{class:!0});var qf=w(An);g(qo.$$.fragment,qf),XT=i(qf),El=o(qf,"P",{"data-svelte-h":!0}),d(El)!=="svelte-2lj46g"&&(El.textContent=c_),qf.forEach(s),KT=i(ae),De=o(ae,"DIV",{class:!0});var Sc=w(De);g(Go.$$.fragment,Sc),eb=i(Sc),Ll=o(Sc,"P",{"data-svelte-h":!0}),d(Ll)!=="svelte-1iglp3e"&&(Ll.innerHTML=d_),tb=i(Sc),Wl=o(Sc,"P",{"data-svelte-h":!0}),d(Wl)!=="svelte-tiqx9u"&&(Wl.textContent=m_),Sc.forEach(s),nb=i(ae),Nn=o(ae,"DIV",{class:!0});var Gf=w(Nn);g(zo.$$.fragment,Gf),sb=i(Gf),Ol=o(Gf,"P",{"data-svelte-h":!0}),d(Ol)!=="svelte-d6foro"&&(Ol.textContent=h_),Gf.forEach(s),ae.forEach(s),kh=i(e),gt=o(e,"H3",{class:!0});var zf=w(gt);Zn=o(zf,"A",{id:!0,class:!0,href:!0});var zM=w(Zn);gd=o(zM,"SPAN",{});var AM=w(gd);g(Ao.$$.fragment,AM),AM.forEach(s),zM.forEach(s),ab=i(zf),Hl=o(zf,"SPAN",{"data-svelte-h":!0}),d(Hl)!=="svelte-j7790m"&&(Hl.textContent=f_),zf.forEach(s),Uh=i(e),le=o(e,"DIV",{class:!0});var Ae=w(le);g(No.$$.fragment,Ae),ob=i(Ae),Yl=o(Ae,"P",{"data-svelte-h":!0}),d(Yl)!=="svelte-4fy8a0"&&(Yl.textContent=g_),rb=i(Ae),Ql=o(Ae,"P",{"data-svelte-h":!0}),d(Ql)!=="svelte-1x99ab7"&&(Ql.innerHTML=u_),ib=i(Ae),Xl=o(Ae,"P",{"data-svelte-h":!0}),d(Xl)!=="svelte-3gfnx6"&&(Xl.innerHTML=T_),lb=i(Ae),g(Fn.$$.fragment,Ae),pb=i(Ae),Dn=o(Ae,"DIV",{class:!0});var Af=w(Dn);g(Zo.$$.fragment,Af),cb=i(Af),Kl=o(Af,"P",{"data-svelte-h":!0}),d(Kl)!=="svelte-myfdp"&&(Kl.textContent=b_),Af.forEach(s),Ae.forEach(s),jh=i(e),ut=o(e,"H3",{class:!0});var Nf=w(ut);Rn=o(Nf,"A",{id:!0,class:!0,href:!0});var NM=w(Rn);ud=o(NM,"SPAN",{});var ZM=w(ud);g(Fo.$$.fragment,ZM),ZM.forEach(s),NM.forEach(s),db=i(Nf),ep=o(Nf,"SPAN",{"data-svelte-h":!0}),d(ep)!=="svelte-enpwo5"&&(ep.textContent=y_),Nf.forEach(s),Ph=i(e),Q=o(e,"DIV",{class:!0});var Ue=w(Q);g(Do.$$.fragment,Ue),mb=i(Ue),tp=o(Ue,"P",{"data-svelte-h":!0}),d(tp)!=="svelte-1j45sfj"&&(tp.innerHTML=w_),hb=i(Ue),g(Sn.$$.fragment,Ue),fb=i(Ue),np=o(Ue,"P",{"data-svelte-h":!0}),d(np)!=="svelte-13rexfx"&&(np.innerHTML=x_),gb=i(Ue),sp=o(Ue,"P",{"data-svelte-h":!0}),d(sp)!=="svelte-yndnpf"&&(sp.innerHTML=v_),ub=i(Ue),ap=o(Ue,"P",{"data-svelte-h":!0}),d(ap)!=="svelte-1jig9aq"&&(ap.innerHTML=__),Tb=i(Ue),se=o(Ue,"DIV",{class:!0});var je=w(se);g(Ro.$$.fragment,je),bb=i(je),op=o(je,"P",{"data-svelte-h":!0}),d(op)!=="svelte-1pyysfu"&&(op.textContent=M_),yb=i(je),rp=o(je,"UL",{"data-svelte-h":!0}),d(rp)!=="svelte-1ny9a5f"&&(rp.innerHTML=k_),wb=i(je),ip=o(je,"P",{"data-svelte-h":!0}),d(ip)!=="svelte-11u3uey"&&(ip.innerHTML=U_),xb=i(je),g(Bn.$$.fragment,je),vb=i(je),lp=o(je,"P",{"data-svelte-h":!0}),d(lp)!=="svelte-madj2v"&&(lp.textContent=j_),_b=i(je),g(Vn.$$.fragment,je),je.forEach(s),Ue.forEach(s),Ch=i(e),Tt=o(e,"H3",{class:!0});var Zf=w(Tt);En=o(Zf,"A",{id:!0,class:!0,href:!0});var FM=w(En);Td=o(FM,"SPAN",{});var DM=w(Td);g(So.$$.fragment,DM),DM.forEach(s),FM.forEach(s),Mb=i(Zf),pp=o(Zf,"SPAN",{"data-svelte-h":!0}),d(pp)!=="svelte-futr1q"&&(pp.textContent=P_),Zf.forEach(s),$h=i(e),F=o(e,"DIV",{class:!0});var me=w(F);g(Bo.$$.fragment,me),kb=i(me),cp=o(me,"P",{"data-svelte-h":!0}),d(cp)!=="svelte-n7evf0"&&(cp.innerHTML=C_),Ub=i(me),g(Ln.$$.fragment,me),jb=i(me),dp=o(me,"P",{"data-svelte-h":!0}),d(dp)!=="svelte-13rexfx"&&(dp.innerHTML=$_),Pb=i(me),mp=o(me,"P",{"data-svelte-h":!0}),d(mp)!=="svelte-83k269"&&(mp.innerHTML=J_),Cb=i(me),hp=o(me,"P",{"data-svelte-h":!0}),d(hp)!=="svelte-me3s3q"&&(hp.innerHTML=I_),$b=i(me),fp=o(me,"P",{"data-svelte-h":!0}),d(fp)!=="svelte-1qrdw9i"&&(fp.innerHTML=q_),Jb=i(me),Wn=o(me,"DIV",{class:!0});var Ff=w(Wn);g(Vo.$$.fragment,Ff),Ib=i(Ff),gp=o(Ff,"P",{"data-svelte-h":!0}),d(gp)!=="svelte-14zfmze"&&(gp.textContent=G_),Ff.forEach(s),me.forEach(s),Jh=i(e),bt=o(e,"H3",{class:!0});var Df=w(bt);On=o(Df,"A",{id:!0,class:!0,href:!0});var RM=w(On);bd=o(RM,"SPAN",{});var SM=w(bd);g(Eo.$$.fragment,SM),SM.forEach(s),RM.forEach(s),qb=i(Df),up=o(Df,"SPAN",{"data-svelte-h":!0}),d(up)!=="svelte-1r0vf7w"&&(up.textContent=z_),Df.forEach(s),Ih=i(e),X=o(e,"DIV",{class:!0});var Pe=w(X);g(Lo.$$.fragment,Pe),Gb=i(Pe),Tp=o(Pe,"P",{"data-svelte-h":!0}),d(Tp)!=="svelte-16fty2d"&&(Tp.innerHTML=A_),zb=i(Pe),g(Hn.$$.fragment,Pe),Ab=i(Pe),bp=o(Pe,"P",{"data-svelte-h":!0}),d(bp)!=="svelte-13rexfx"&&(bp.innerHTML=N_),Nb=i(Pe),yp=o(Pe,"P",{"data-svelte-h":!0}),d(yp)!=="svelte-1q0f2ia"&&(yp.innerHTML=Z_),Zb=i(Pe),wp=o(Pe,"P",{"data-svelte-h":!0}),d(wp)!=="svelte-u1i8ee"&&(wp.innerHTML=F_),Fb=i(Pe),Yn=o(Pe,"DIV",{class:!0});var Rf=w(Yn);g(Wo.$$.fragment,Rf),Db=i(Rf),xp=o(Rf,"P",{"data-svelte-h":!0}),d(xp)!=="svelte-1ql86ls"&&(xp.textContent=D_),Rf.forEach(s),Pe.forEach(s),qh=i(e),yt=o(e,"H3",{class:!0});var Sf=w(yt);Qn=o(Sf,"A",{id:!0,class:!0,href:!0});var BM=w(Qn);yd=o(BM,"SPAN",{});var VM=w(yd);g(Oo.$$.fragment,VM),VM.forEach(s),BM.forEach(s),Rb=i(Sf),vp=o(Sf,"SPAN",{"data-svelte-h":!0}),d(vp)!=="svelte-dx3jm3"&&(vp.textContent=R_),Sf.forEach(s),Gh=i(e),A=o(e,"DIV",{class:!0});var oe=w(A);g(Ho.$$.fragment,oe),Sb=i(oe),_p=o(oe,"P",{"data-svelte-h":!0}),d(_p)!=="svelte-xbi6mw"&&(_p.textContent=S_),Bb=i(oe),g(Xn.$$.fragment,oe),Vb=i(oe),Mp=o(oe,"P",{"data-svelte-h":!0}),d(Mp)!=="svelte-13rexfx"&&(Mp.innerHTML=B_),Eb=i(oe),kp=o(oe,"P",{"data-svelte-h":!0}),d(kp)!=="svelte-4x5ugh"&&(kp.innerHTML=V_),Lb=i(oe),Up=o(oe,"P",{"data-svelte-h":!0}),d(Up)!=="svelte-1iyxmj8"&&(Up.innerHTML=E_),Wb=i(oe),g(Kn.$$.fragment,oe),Ob=i(oe),es=o(oe,"DIV",{class:!0});var Bf=w(es);g(Yo.$$.fragment,Bf),Hb=i(Bf),jp=o(Bf,"P",{"data-svelte-h":!0}),d(jp)!=="svelte-48qsnz"&&(jp.textContent=L_),Bf.forEach(s),Yb=i(oe),ts=o(oe,"DIV",{class:!0});var Vf=w(ts);g(Qo.$$.fragment,Vf),Qb=i(Vf),Pp=o(Vf,"P",{"data-svelte-h":!0}),d(Pp)!=="svelte-uzfqtg"&&(Pp.textContent=W_),Vf.forEach(s),oe.forEach(s),zh=i(e),wt=o(e,"H3",{class:!0});var Ef=w(wt);ns=o(Ef,"A",{id:!0,class:!0,href:!0});var EM=w(ns);wd=o(EM,"SPAN",{});var LM=w(wd);g(Xo.$$.fragment,LM),LM.forEach(s),EM.forEach(s),Xb=i(Ef),Cp=o(Ef,"SPAN",{"data-svelte-h":!0}),d(Cp)!=="svelte-bvsvhg"&&(Cp.textContent=O_),Ef.forEach(s),Ah=i(e),q=o(e,"DIV",{class:!0});var N=w(q);g(Ko.$$.fragment,N),Kb=i(N),$p=o(N,"P",{"data-svelte-h":!0}),d($p)!=="svelte-15adoar"&&($p.innerHTML=H_),ey=i(N),g(ss.$$.fragment,N),ty=i(N),Jp=o(N,"P",{"data-svelte-h":!0}),d(Jp)!=="svelte-13rexfx"&&(Jp.innerHTML=Y_),ny=i(N),Ip=o(N,"P",{"data-svelte-h":!0}),d(Ip)!=="svelte-1htl26i"&&(Ip.innerHTML=Q_),sy=i(N),qp=o(N,"P",{"data-svelte-h":!0}),d(qp)!=="svelte-jwg5m8"&&(qp.innerHTML=X_),ay=i(N),as=o(N,"DIV",{class:!0});var Lf=w(as);g(er.$$.fragment,Lf),oy=i(Lf),Gp=o(Lf,"P",{"data-svelte-h":!0}),d(Gp)!=="svelte-1fmsbp5"&&(Gp.textContent=K_),Lf.forEach(s),ry=i(N),Re=o(N,"DIV",{class:!0});var Bc=w(Re);g(tr.$$.fragment,Bc),iy=i(Bc),zp=o(Bc,"P",{"data-svelte-h":!0}),d(zp)!=="svelte-1qebl0w"&&(zp.textContent=e2),ly=i(Bc),Ap=o(Bc,"P",{"data-svelte-h":!0}),d(Ap)!=="svelte-m7pmui"&&(Ap.textContent=t2),Bc.forEach(s),py=i(N),os=o(N,"DIV",{class:!0});var Wf=w(os);g(nr.$$.fragment,Wf),cy=i(Wf),Np=o(Wf,"P",{"data-svelte-h":!0}),d(Np)!=="svelte-lj4b08"&&(Np.textContent=n2),Wf.forEach(s),dy=i(N),rs=o(N,"DIV",{class:!0});var Of=w(rs);g(sr.$$.fragment,Of),my=i(Of),Zp=o(Of,"P",{"data-svelte-h":!0}),d(Zp)!=="svelte-226no6"&&(Zp.textContent=s2),Of.forEach(s),hy=i(N),is=o(N,"DIV",{class:!0});var Hf=w(is);g(ar.$$.fragment,Hf),fy=i(Hf),Fp=o(Hf,"P",{"data-svelte-h":!0}),d(Fp)!=="svelte-vx34uc"&&(Fp.textContent=a2),Hf.forEach(s),N.forEach(s),Nh=i(e),xt=o(e,"H3",{class:!0});var Yf=w(xt);ls=o(Yf,"A",{id:!0,class:!0,href:!0});var WM=w(ls);xd=o(WM,"SPAN",{});var OM=w(xd);g(or.$$.fragment,OM),OM.forEach(s),WM.forEach(s),gy=i(Yf),Dp=o(Yf,"SPAN",{"data-svelte-h":!0}),d(Dp)!=="svelte-puva4y"&&(Dp.textContent=o2),Yf.forEach(s),Zh=i(e),pe=o(e,"DIV",{class:!0});var Ne=w(pe);g(rr.$$.fragment,Ne),uy=i(Ne),Rp=o(Ne,"P",{"data-svelte-h":!0}),d(Rp)!=="svelte-1ufl6u7"&&(Rp.textContent=r2),Ty=i(Ne),Sp=o(Ne,"P",{"data-svelte-h":!0}),d(Sp)!=="svelte-1f8t0na"&&(Sp.innerHTML=i2),by=i(Ne),Bp=o(Ne,"P",{"data-svelte-h":!0}),d(Bp)!=="svelte-175zgvy"&&(Bp.innerHTML=l2),yy=i(Ne),g(ps.$$.fragment,Ne),wy=i(Ne),cs=o(Ne,"DIV",{class:!0});var Qf=w(cs);g(ir.$$.fragment,Qf),xy=i(Qf),Vp=o(Qf,"P",{"data-svelte-h":!0}),d(Vp)!=="svelte-1q7dj96"&&(Vp.textContent=p2),Qf.forEach(s),Ne.forEach(s),Fh=i(e),vt=o(e,"H3",{class:!0});var Xf=w(vt);ds=o(Xf,"A",{id:!0,class:!0,href:!0});var HM=w(ds);vd=o(HM,"SPAN",{});var YM=w(vd);g(lr.$$.fragment,YM),YM.forEach(s),HM.forEach(s),vy=i(Xf),Ep=o(Xf,"SPAN",{"data-svelte-h":!0}),d(Ep)!=="svelte-e5tr4l"&&(Ep.textContent=c2),Xf.forEach(s),Dh=i(e),D=o(e,"DIV",{class:!0});var he=w(D);g(pr.$$.fragment,he),_y=i(he),Lp=o(he,"P",{"data-svelte-h":!0}),d(Lp)!=="svelte-gusdnf"&&(Lp.innerHTML=d2),My=i(he),Wp=o(he,"P",{"data-svelte-h":!0}),d(Wp)!=="svelte-1hjzyz9"&&(Wp.innerHTML=m2),ky=i(he),g(ms.$$.fragment,he),Uy=i(he),Op=o(he,"P",{"data-svelte-h":!0}),d(Op)!=="svelte-13rexfx"&&(Op.innerHTML=h2),jy=i(he),Hp=o(he,"P",{"data-svelte-h":!0}),d(Hp)!=="svelte-11igjl9"&&(Hp.innerHTML=f2),Py=i(he),Yp=o(he,"P",{"data-svelte-h":!0}),d(Yp)!=="svelte-17eq97f"&&(Yp.innerHTML=g2),Cy=i(he),hs=o(he,"DIV",{class:!0});var Kf=w(hs);g(cr.$$.fragment,Kf),$y=i(Kf),Qp=o(Kf,"P",{"data-svelte-h":!0}),d(Qp)!=="svelte-773z0o"&&(Qp.innerHTML=u2),Kf.forEach(s),he.forEach(s),Rh=i(e),_t=o(e,"H2",{class:!0});var eg=w(_t);fs=o(eg,"A",{id:!0,class:!0,href:!0});var QM=w(fs);_d=o(QM,"SPAN",{});var XM=w(_d);g(dr.$$.fragment,XM),XM.forEach(s),QM.forEach(s),Jy=i(eg),Xp=o(eg,"SPAN",{"data-svelte-h":!0}),d(Xp)!=="svelte-atom6z"&&(Xp.textContent=T2),eg.forEach(s),Sh=i(e),mr=o(e,"P",{"data-svelte-h":!0}),d(mr)!=="svelte-azvh9"&&(mr.textContent=b2),Bh=i(e),Mt=o(e,"H3",{class:!0});var tg=w(Mt);gs=o(tg,"A",{id:!0,class:!0,href:!0});var KM=w(gs);Md=o(KM,"SPAN",{});var ek=w(Md);g(hr.$$.fragment,ek),ek.forEach(s),KM.forEach(s),Iy=i(tg),Kp=o(tg,"SPAN",{"data-svelte-h":!0}),d(Kp)!=="svelte-v21ja8"&&(Kp.textContent=y2),tg.forEach(s),Vh=i(e),K=o(e,"DIV",{class:!0});var Ce=w(K);g(fr.$$.fragment,Ce),qy=i(Ce),ec=o(Ce,"P",{"data-svelte-h":!0}),d(ec)!=="svelte-40flx9"&&(ec.innerHTML=w2),Gy=i(Ce),g(us.$$.fragment,Ce),zy=i(Ce),tc=o(Ce,"P",{"data-svelte-h":!0}),d(tc)!=="svelte-13rexfx"&&(tc.innerHTML=x2),Ay=i(Ce),nc=o(Ce,"P",{"data-svelte-h":!0}),d(nc)!=="svelte-1cb1iq2"&&(nc.innerHTML=v2),Ny=i(Ce),sc=o(Ce,"P",{"data-svelte-h":!0}),d(sc)!=="svelte-1akhzjj"&&(sc.innerHTML=_2),Zy=i(Ce),Ge=o(Ce,"DIV",{class:!0});var Gs=w(Ge);g(gr.$$.fragment,Gs),Fy=i(Gs),ac=o(Gs,"P",{"data-svelte-h":!0}),d(ac)!=="svelte-1211nrg"&&(ac.innerHTML=M2),Dy=i(Gs),oc=o(Gs,"P",{"data-svelte-h":!0}),d(oc)!=="svelte-1njhmhw"&&(oc.textContent=k2),Ry=i(Gs),rc=o(Gs,"UL",{"data-svelte-h":!0}),d(rc)!=="svelte-gfpbs1"&&(rc.innerHTML=U2),Gs.forEach(s),Ce.forEach(s),Eh=i(e),kt=o(e,"H3",{class:!0});var ng=w(kt);Ts=o(ng,"A",{id:!0,class:!0,href:!0});var tk=w(Ts);kd=o(tk,"SPAN",{});var nk=w(kd);g(ur.$$.fragment,nk),nk.forEach(s),tk.forEach(s),Sy=i(ng),ic=o(ng,"SPAN",{"data-svelte-h":!0}),d(ic)!=="svelte-1bmq9i2"&&(ic.textContent=j2),ng.forEach(s),Lh=i(e),ee=o(e,"DIV",{class:!0});var $e=w(ee);g(Tr.$$.fragment,$e),By=i($e),lc=o($e,"P",{"data-svelte-h":!0}),d(lc)!=="svelte-aunxv4"&&(lc.textContent=P2),Vy=i($e),g(bs.$$.fragment,$e),Ey=i($e),pc=o($e,"P",{"data-svelte-h":!0}),d(pc)!=="svelte-13rexfx"&&(pc.innerHTML=C2),Ly=i($e),cc=o($e,"P",{"data-svelte-h":!0}),d(cc)!=="svelte-1m84x10"&&(cc.innerHTML=$2),Wy=i($e),dc=o($e,"P",{"data-svelte-h":!0}),d(dc)!=="svelte-85c9z6"&&(dc.innerHTML=J2),Oy=i($e),ys=o($e,"DIV",{class:!0});var sg=w(ys);g(br.$$.fragment,sg),Hy=i(sg),mc=o(sg,"P",{"data-svelte-h":!0}),d(mc)!=="svelte-11eoigb"&&(mc.textContent=I2),sg.forEach(s),$e.forEach(s),Wh=i(e),Ut=o(e,"H3",{class:!0});var ag=w(Ut);ws=o(ag,"A",{id:!0,class:!0,href:!0});var sk=w(ws);Ud=o(sk,"SPAN",{});var ak=w(Ud);g(yr.$$.fragment,ak),ak.forEach(s),sk.forEach(s),Yy=i(ag),hc=o(ag,"SPAN",{"data-svelte-h":!0}),d(hc)!=="svelte-16p5kw6"&&(hc.textContent=q2),ag.forEach(s),Oh=i(e),te=o(e,"DIV",{class:!0});var Je=w(te);g(wr.$$.fragment,Je),Qy=i(Je),fc=o(Je,"P",{"data-svelte-h":!0}),d(fc)!=="svelte-yuzbfo"&&(fc.innerHTML=G2),Xy=i(Je),g(xs.$$.fragment,Je),Ky=i(Je),gc=o(Je,"P",{"data-svelte-h":!0}),d(gc)!=="svelte-13rexfx"&&(gc.innerHTML=z2),ew=i(Je),uc=o(Je,"P",{"data-svelte-h":!0}),d(uc)!=="svelte-172bsdq"&&(uc.textContent=A2),tw=i(Je),Tc=o(Je,"P",{"data-svelte-h":!0}),d(Tc)!=="svelte-6aba0z"&&(Tc.innerHTML=N2),nw=i(Je),vs=o(Je,"DIV",{class:!0});var og=w(vs);g(xr.$$.fragment,og),sw=i(og),bc=o(og,"P",{"data-svelte-h":!0}),d(bc)!=="svelte-ypfmt8"&&(bc.textContent=Z2),og.forEach(s),Je.forEach(s),Hh=i(e),jt=o(e,"H3",{class:!0});var rg=w(jt);_s=o(rg,"A",{id:!0,class:!0,href:!0});var ok=w(_s);jd=o(ok,"SPAN",{});var rk=w(jd);g(vr.$$.fragment,rk),rk.forEach(s),ok.forEach(s),aw=i(rg),yc=o(rg,"SPAN",{"data-svelte-h":!0}),d(yc)!=="svelte-mkpozj"&&(yc.textContent=F2),rg.forEach(s),Yh=i(e),ne=o(e,"DIV",{class:!0});var Ie=w(ne);g(_r.$$.fragment,Ie),ow=i(Ie),wc=o(Ie,"P",{"data-svelte-h":!0}),d(wc)!=="svelte-1lg1j1m"&&(wc.innerHTML=D2),rw=i(Ie),g(Ms.$$.fragment,Ie),iw=i(Ie),xc=o(Ie,"P",{"data-svelte-h":!0}),d(xc)!=="svelte-13rexfx"&&(xc.innerHTML=R2),lw=i(Ie),vc=o(Ie,"P",{"data-svelte-h":!0}),d(vc)!=="svelte-1mzmvc5"&&(vc.innerHTML=S2),pw=i(Ie),_c=o(Ie,"P",{"data-svelte-h":!0}),d(_c)!=="svelte-lcegcp"&&(_c.innerHTML=B2),cw=i(Ie),Se=o(Ie,"DIV",{class:!0});var Vc=w(Se);g(Mr.$$.fragment,Vc),dw=i(Vc),Mc=o(Vc,"P",{"data-svelte-h":!0}),d(Mc)!=="svelte-10yp62t"&&(Mc.textContent=V2),mw=i(Vc),kc=o(Vc,"UL",{"data-svelte-h":!0}),d(kc)!=="svelte-15cnno4"&&(kc.innerHTML=E2),Vc.forEach(s),Ie.forEach(s),Qh=i(e),Pt=o(e,"H2",{class:!0});var ig=w(Pt);ks=o(ig,"A",{id:!0,class:!0,href:!0});var ik=w(ks);Pd=o(ik,"SPAN",{});var lk=w(Pd);g(kr.$$.fragment,lk),lk.forEach(s),ik.forEach(s),hw=i(ig),Uc=o(ig,"SPAN",{"data-svelte-h":!0}),d(Uc)!=="svelte-xnhp2i"&&(Uc.innerHTML=L2),ig.forEach(s),Xh=i(e),$=o(e,"DIV",{class:!0});var I=w($);g(Ur.$$.fragment,I),fw=i(I),jc=o(I,"P",{"data-svelte-h":!0}),d(jc)!=="svelte-k7p6k2"&&(jc.textContent=W2),gw=i(I),Pc=o(I,"P",{"data-svelte-h":!0}),d(Pc)!=="svelte-3qu5a5"&&(Pc.textContent=O2),uw=i(I),Cc=o(I,"P",{"data-svelte-h":!0}),d(Cc)!=="svelte-1mj6jcv"&&(Cc.textContent=H2),Tw=i(I),$c=o(I,"P",{"data-svelte-h":!0}),d($c)!=="svelte-pcl79b"&&($c.textContent=Y2),bw=i(I),Jc=o(I,"P",{"data-svelte-h":!0}),d(Jc)!=="svelte-sx59j8"&&(Jc.innerHTML=Q2),yw=i(I),Us=o(I,"DIV",{class:!0});var lg=w(Us);g(jr.$$.fragment,lg),ww=i(lg),Ic=o(lg,"P",{"data-svelte-h":!0}),d(Ic)!=="svelte-exnhmi"&&(Ic.textContent=X2),lg.forEach(s),xw=i(I),Be=o(I,"DIV",{class:!0});var Ec=w(Be);g(Pr.$$.fragment,Ec),vw=i(Ec),qc=o(Ec,"P",{"data-svelte-h":!0}),d(qc)!=="svelte-1piccye"&&(qc.textContent=K2),_w=i(Ec),g(js.$$.fragment,Ec),Ec.forEach(s),Mw=i(I),Ps=o(I,"DIV",{class:!0});var pg=w(Ps);g(Cr.$$.fragment,pg),kw=i(pg),Gc=o(pg,"P",{"data-svelte-h":!0}),d(Gc)!=="svelte-p1t4ev"&&(Gc.textContent=eM),pg.forEach(s),Uw=i(I),Cs=o(I,"DIV",{class:!0});var cg=w(Cs);g($r.$$.fragment,cg),jw=i(cg),zc=o(cg,"P",{"data-svelte-h":!0}),d(zc)!=="svelte-2wm42a"&&(zc.innerHTML=tM),cg.forEach(s),Pw=i(I),$s=o(I,"DIV",{class:!0});var dg=w($s);g(Jr.$$.fragment,dg),Cw=i(dg),Ac=o(dg,"P",{"data-svelte-h":!0}),d(Ac)!=="svelte-10cd17f"&&(Ac.innerHTML=nM),dg.forEach(s),$w=i(I),Js=o(I,"DIV",{class:!0});var mg=w(Js);g(Ir.$$.fragment,mg),Jw=i(mg),Nc=o(mg,"P",{"data-svelte-h":!0}),d(Nc)!=="svelte-12sv4vl"&&(Nc.innerHTML=sM),mg.forEach(s),Iw=i(I),Is=o(I,"DIV",{class:!0});var hg=w(Is);g(qr.$$.fragment,hg),qw=i(hg),Zc=o(hg,"P",{"data-svelte-h":!0}),d(Zc)!=="svelte-kp2v8j"&&(Zc.textContent=aM),hg.forEach(s),Gw=i(I),qs=o(I,"DIV",{class:!0});var fg=w(qs);g(Gr.$$.fragment,fg),zw=i(fg),Fc=o(fg,"P",{"data-svelte-h":!0}),d(Fc)!=="svelte-10cd17f"&&(Fc.innerHTML=oM),fg.forEach(s),I.forEach(s),Kh=i(e),Cd=o(e,"P",{}),w(Cd).forEach(s),this.h()},h(){h(c,"name","hf:doc:metadata"),h(c,"content",JSON.stringify(Yk)),h(n,"id","pipelines"),h(n,"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"),h(n,"href","#pipelines"),h(v,"class","relative group"),h(Ct,"id","transformers.pipeline"),h(Ct,"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"),h(Ct,"href","#transformers.pipeline"),h(Le,"class","relative group"),h(fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Jt,"id","pipeline-batching"),h(Jt,"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"),h(Jt,"href","#pipeline-batching"),h(We,"class","relative group"),h(qt,"id","pipeline-chunk-batching"),h(qt,"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"),h(qt,"href","#pipeline-chunk-batching"),h(Oe,"class","relative group"),h(Gt,"id","pipeline-custom-code"),h(Gt,"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"),h(Gt,"href","#pipeline-custom-code"),h(He,"class","relative group"),h(zt,"id","implementing-a-pipeline"),h(zt,"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"),h(zt,"href","#implementing-a-pipeline"),h(Ye,"class","relative group"),h(At,"id","audio"),h(At,"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"),h(At,"href","#audio"),h(Qe,"class","relative group"),h(Nt,"id","transformers.AudioClassificationPipeline"),h(Nt,"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"),h(Nt,"href","#transformers.AudioClassificationPipeline"),h(Xe,"class","relative group"),h(Ft,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Dt,"id","transformers.AutomaticSpeechRecognitionPipeline"),h(Dt,"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"),h(Dt,"href","#transformers.AutomaticSpeechRecognitionPipeline"),h(Ke,"class","relative group"),h(St,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Bt,"id","transformers.TextToAudioPipeline"),h(Bt,"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"),h(Bt,"href","#transformers.TextToAudioPipeline"),h(et,"class","relative group"),h(Et,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Lt,"id","transformers.ZeroShotAudioClassificationPipeline"),h(Lt,"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"),h(Lt,"href","#transformers.ZeroShotAudioClassificationPipeline"),h(tt,"class","relative group"),h(Ot,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Ht,"id","computer-vision"),h(Ht,"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"),h(Ht,"href","#computer-vision"),h(nt,"class","relative group"),h(Yt,"id","transformers.DepthEstimationPipeline"),h(Yt,"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"),h(Yt,"href","#transformers.DepthEstimationPipeline"),h(st,"class","relative group"),h(Xt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Kt,"id","transformers.ImageClassificationPipeline"),h(Kt,"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"),h(Kt,"href","#transformers.ImageClassificationPipeline"),h(at,"class","relative group"),h(tn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(nn,"id","transformers.ImageSegmentationPipeline"),h(nn,"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"),h(nn,"href","#transformers.ImageSegmentationPipeline"),h(ot,"class","relative group"),h(an,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(on,"id","transformers.ObjectDetectionPipeline"),h(on,"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"),h(on,"href","#transformers.ObjectDetectionPipeline"),h(rt,"class","relative group"),h(ln,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(pn,"id","transformers.VideoClassificationPipeline"),h(pn,"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"),h(pn,"href","#transformers.VideoClassificationPipeline"),h(it,"class","relative group"),h(cn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(dn,"id","transformers.ZeroShotImageClassificationPipeline"),h(dn,"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"),h(dn,"href","#transformers.ZeroShotImageClassificationPipeline"),h(lt,"class","relative group"),h(hn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(fn,"id","transformers.ZeroShotObjectDetectionPipeline"),h(fn,"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"),h(fn,"href","#transformers.ZeroShotObjectDetectionPipeline"),h(pt,"class","relative group"),h(un,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Tn,"id","natural-language-processing"),h(Tn,"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"),h(Tn,"href","#natural-language-processing"),h(ct,"class","relative group"),h(bn,"id","transformers.Conversation"),h(bn,"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"),h(bn,"href","#transformers.Conversation"),h(dt,"class","relative group"),h(wn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(xn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Ze,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(vn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Mn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(kn,"id","transformers.FillMaskPipeline"),h(kn,"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"),h(kn,"href","#transformers.FillMaskPipeline"),h(mt,"class","relative group"),h(Pn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Cn,"id","transformers.TokenClassificationPipeline"),h(Cn,"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"),h(Cn,"href","#transformers.TokenClassificationPipeline"),h(ht,"class","relative group"),h(Fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Jn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(In,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(qn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Gn,"id","transformers.QuestionAnsweringPipeline"),h(Gn,"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"),h(Gn,"href","#transformers.QuestionAnsweringPipeline"),h(ft,"class","relative group"),h(An,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(De,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Nn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Zn,"id","transformers.SummarizationPipeline"),h(Zn,"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"),h(Zn,"href","#transformers.SummarizationPipeline"),h(gt,"class","relative group"),h(Dn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Rn,"id","transformers.TableQuestionAnsweringPipeline"),h(Rn,"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"),h(Rn,"href","#transformers.TableQuestionAnsweringPipeline"),h(ut,"class","relative group"),h(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(En,"id","transformers.TextClassificationPipeline"),h(En,"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"),h(En,"href","#transformers.TextClassificationPipeline"),h(Tt,"class","relative group"),h(Wn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(On,"id","transformers.TextGenerationPipeline"),h(On,"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"),h(On,"href","#transformers.TextGenerationPipeline"),h(bt,"class","relative group"),h(Yn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Qn,"id","transformers.Text2TextGenerationPipeline"),h(Qn,"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"),h(Qn,"href","#transformers.Text2TextGenerationPipeline"),h(yt,"class","relative group"),h(es,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(ts,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(ns,"id","transformers.TokenClassificationPipeline"),h(ns,"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"),h(ns,"href","#transformers.TokenClassificationPipeline"),h(wt,"class","relative group"),h(as,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(os,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(rs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(is,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(ls,"id","transformers.TranslationPipeline"),h(ls,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(ls,"href","#transformers.TranslationPipeline"),h(xt,"class","relative group"),h(cs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(ds,"id","transformers.ZeroShotClassificationPipeline"),h(ds,"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"),h(ds,"href","#transformers.ZeroShotClassificationPipeline"),h(vt,"class","relative group"),h(hs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(fs,"id","multimodal"),h(fs,"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"),h(fs,"href","#multimodal"),h(_t,"class","relative group"),h(gs,"id","transformers.DocumentQuestionAnsweringPipeline"),h(gs,"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"),h(gs,"href","#transformers.DocumentQuestionAnsweringPipeline"),h(Mt,"class","relative group"),h(Ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Ts,"id","transformers.FeatureExtractionPipeline"),h(Ts,"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"),h(Ts,"href","#transformers.FeatureExtractionPipeline"),h(kt,"class","relative group"),h(ys,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(ws,"id","transformers.ImageToTextPipeline"),h(ws,"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"),h(ws,"href","#transformers.ImageToTextPipeline"),h(Ut,"class","relative group"),h(vs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(_s,"id","transformers.VisualQuestionAnsweringPipeline"),h(_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"),h(_s,"href","#transformers.VisualQuestionAnsweringPipeline"),h(jt,"class","relative group"),h(Se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(ks,"id","transformers.Pipeline"),h(ks,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(ks,"href","#transformers.Pipeline"),h(Pt,"class","relative group"),h(Us,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Ps,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Cs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h($s,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Js,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Is,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(qs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h($,"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,l){t(document.head,c),p(e,M,l),p(e,x,l),p(e,m,l),p(e,v,l),t(v,n),t(n,_),u(zs,_,null),t(v,gg),t(v,Wr),p(e,Hd,l),p(e,As,l),p(e,Yd,l),p(e,Ns,l),p(e,Qd,l),p(e,Zs,l),p(e,Xd,l),p(e,Le,l),t(Le,Ct),t(Ct,Lc),u(Fs,Lc,null),t(Le,ug),t(Le,Or),p(e,Kd,l),p(e,Ds,l),p(e,em,l),p(e,Rs,l),p(e,tm,l),u(Ss,e,l),p(e,nm,l),p(e,Bs,l),p(e,sm,l),u(Vs,e,l),p(e,am,l),p(e,Es,l),p(e,om,l),u(Ls,e,l),p(e,rm,l),p(e,Ws,l),p(e,im,l),u(Os,e,l),p(e,lm,l),p(e,Hs,l),p(e,pm,l),u(Ys,e,l),p(e,cm,l),p(e,fe,l),u(Qs,fe,null),t(fe,Tg),t(fe,Hr),t(fe,bg),t(fe,Yr),t(fe,yg),t(fe,Qr),t(fe,wg),u($t,fe,null),p(e,dm,l),p(e,We,l),t(We,Jt),t(Jt,Wc),u(Xs,Wc,null),t(We,xg),t(We,Xr),p(e,mm,l),p(e,Ks,l),p(e,hm,l),u(ea,e,l),p(e,fm,l),u(It,e,l),p(e,gm,l),u(ta,e,l),p(e,um,l),u(na,e,l),p(e,Tm,l),p(e,sa,l),p(e,bm,l),u(aa,e,l),p(e,ym,l),p(e,oa,l),p(e,wm,l),u(ra,e,l),p(e,xm,l),p(e,ia,l),p(e,vm,l),p(e,la,l),p(e,_m,l),p(e,pa,l),p(e,Mm,l),p(e,Oe,l),t(Oe,qt),t(qt,Oc),u(ca,Oc,null),t(Oe,vg),t(Oe,Kr),p(e,km,l),p(e,da,l),p(e,Um,l),p(e,ma,l),p(e,jm,l),u(ha,e,l),p(e,Pm,l),p(e,fa,l),p(e,Cm,l),u(ga,e,l),p(e,$m,l),p(e,ua,l),p(e,Jm,l),p(e,Ta,l),p(e,Im,l),p(e,He,l),t(He,Gt),t(Gt,Hc),u(ba,Hc,null),t(He,_g),t(He,ei),p(e,qm,l),p(e,ya,l),p(e,Gm,l),p(e,wa,l),p(e,zm,l),p(e,xa,l),p(e,Am,l),p(e,va,l),p(e,Nm,l),u(_a,e,l),p(e,Zm,l),p(e,Ma,l),p(e,Fm,l),p(e,Ye,l),t(Ye,zt),t(zt,Yc),u(ka,Yc,null),t(Ye,Mg),t(Ye,ti),p(e,Dm,l),p(e,Ua,l),p(e,Rm,l),p(e,Qe,l),t(Qe,At),t(At,Qc),u(ja,Qc,null),t(Qe,kg),t(Qe,ni),p(e,Sm,l),p(e,Pa,l),p(e,Bm,l),p(e,Xe,l),t(Xe,Nt),t(Nt,Xc),u(Ca,Xc,null),t(Xe,Ug),t(Xe,si),p(e,Vm,l),p(e,S,l),u($a,S,null),t(S,jg),t(S,ai),t(S,Pg),u(Zt,S,null),t(S,Cg),t(S,oi),t(S,$g),t(S,ri),t(S,Jg),t(S,ii),t(S,Ig),t(S,Ft),u(Ja,Ft,null),t(Ft,qg),t(Ft,li),p(e,Em,l),p(e,Ke,l),t(Ke,Dt),t(Dt,Kc),u(Ia,Kc,null),t(Ke,Gg),t(Ke,pi),p(e,Lm,l),p(e,re,l),u(qa,re,null),t(re,zg),t(re,ci),t(re,Ag),t(re,di),t(re,Ng),u(Rt,re,null),t(re,Zg),t(re,mi),t(re,Fg),t(re,St),u(Ga,St,null),t(St,Dg),t(St,hi),p(e,Wm,l),p(e,et,l),t(et,Bt),t(Bt,ed),u(za,ed,null),t(et,Rg),t(et,fi),p(e,Om,l),p(e,B,l),u(Aa,B,null),t(B,Sg),t(B,gi),t(B,Bg),u(Vt,B,null),t(B,Vg),t(B,ui),t(B,Eg),t(B,Ti),t(B,Lg),t(B,bi),t(B,Wg),t(B,Et),u(Na,Et,null),t(Et,Og),t(Et,yi),p(e,Hm,l),p(e,tt,l),t(tt,Lt),t(Lt,td),u(Za,td,null),t(tt,Hg),t(tt,wi),p(e,Ym,l),p(e,ge,l),u(Fa,ge,null),t(ge,Yg),t(ge,xi),t(ge,Qg),u(Wt,ge,null),t(ge,Xg),t(ge,vi),t(ge,Kg),t(ge,Ot),u(Da,Ot,null),t(Ot,eu),t(Ot,_i),p(e,Qm,l),p(e,nt,l),t(nt,Ht),t(Ht,nd),u(Ra,nd,null),t(nt,tu),t(nt,Mi),p(e,Xm,l),p(e,Sa,l),p(e,Km,l),p(e,st,l),t(st,Yt),t(Yt,sd),u(Ba,sd,null),t(st,nu),t(st,ki),p(e,eh,l),p(e,V,l),u(Va,V,null),t(V,su),t(V,Ui),t(V,au),u(Qt,V,null),t(V,ou),t(V,ji),t(V,ru),t(V,Pi),t(V,iu),t(V,Ci),t(V,lu),t(V,Xt),u(Ea,Xt,null),t(Xt,pu),t(Xt,$i),p(e,th,l),p(e,at,l),t(at,Kt),t(Kt,ad),u(La,ad,null),t(at,cu),t(at,Ji),p(e,nh,l),p(e,E,l),u(Wa,E,null),t(E,du),t(E,Ii),t(E,mu),u(en,E,null),t(E,hu),t(E,qi),t(E,fu),t(E,Gi),t(E,gu),t(E,zi),t(E,uu),t(E,tn),u(Oa,tn,null),t(tn,Tu),t(tn,Ai),p(e,sh,l),p(e,ot,l),t(ot,nn),t(nn,od),u(Ha,od,null),t(ot,bu),t(ot,Ni),p(e,ah,l),p(e,ie,l),u(Ya,ie,null),t(ie,yu),t(ie,Zi),t(ie,wu),u(sn,ie,null),t(ie,xu),t(ie,Fi),t(ie,vu),t(ie,Di),t(ie,_u),t(ie,an),u(Qa,an,null),t(an,Mu),t(an,Ri),p(e,oh,l),p(e,rt,l),t(rt,on),t(on,rd),u(Xa,rd,null),t(rt,ku),t(rt,Si),p(e,rh,l),p(e,L,l),u(Ka,L,null),t(L,Uu),t(L,Bi),t(L,ju),u(rn,L,null),t(L,Pu),t(L,Vi),t(L,Cu),t(L,Ei),t(L,$u),t(L,Li),t(L,Ju),t(L,ln),u(eo,ln,null),t(ln,Iu),t(ln,Wi),p(e,ih,l),p(e,it,l),t(it,pn),t(pn,id),u(to,id,null),t(it,qu),t(it,Oi),p(e,lh,l),p(e,ue,l),u(no,ue,null),t(ue,Gu),t(ue,Hi),t(ue,zu),t(ue,Yi),t(ue,Au),t(ue,Qi),t(ue,Nu),t(ue,cn),u(so,cn,null),t(cn,Zu),t(cn,Xi),p(e,ph,l),p(e,lt,l),t(lt,dn),t(dn,ld),u(ao,ld,null),t(lt,Fu),t(lt,Ki),p(e,ch,l),p(e,W,l),u(oo,W,null),t(W,Du),t(W,el),t(W,Ru),u(mn,W,null),t(W,Su),t(W,tl),t(W,Bu),t(W,nl),t(W,Vu),t(W,sl),t(W,Eu),t(W,hn),u(ro,hn,null),t(hn,Lu),t(hn,al),p(e,dh,l),p(e,pt,l),t(pt,fn),t(fn,pd),u(io,pd,null),t(pt,Wu),t(pt,ol),p(e,mh,l),p(e,O,l),u(lo,O,null),t(O,Ou),t(O,rl),t(O,Hu),u(gn,O,null),t(O,Yu),t(O,il),t(O,Qu),t(O,ll),t(O,Xu),t(O,pl),t(O,Ku),t(O,un),u(po,un,null),t(un,eT),t(un,cl),p(e,hh,l),p(e,ct,l),t(ct,Tn),t(Tn,cd),u(co,cd,null),t(ct,tT),t(ct,dl),p(e,fh,l),p(e,mo,l),p(e,gh,l),p(e,dt,l),t(dt,bn),t(bn,dd),u(ho,dd,null),t(dt,nT),t(dt,ml),p(e,uh,l),p(e,H,l),u(fo,H,null),t(H,sT),t(H,hl),t(H,aT),u(yn,H,null),t(H,oT),t(H,wn),u(go,wn,null),t(wn,rT),t(wn,fl),t(H,iT),t(H,xn),u(uo,xn,null),t(xn,lT),t(xn,gl),t(H,pT),t(H,Ze),u(To,Ze,null),t(Ze,cT),t(Ze,ul),t(Ze,dT),t(Ze,Tl),t(H,mT),t(H,vn),u(bo,vn,null),t(vn,hT),t(vn,bl),p(e,Th,l),p(e,Y,l),u(yo,Y,null),t(Y,fT),t(Y,yl),t(Y,gT),u(_n,Y,null),t(Y,uT),t(Y,wl),t(Y,TT),t(Y,xl),t(Y,bT),t(Y,vl),t(Y,yT),t(Y,Mn),u(wo,Mn,null),t(Mn,wT),t(Mn,_l),p(e,bh,l),p(e,mt,l),t(mt,kn),t(kn,md),u(xo,md,null),t(mt,xT),t(mt,Ml),p(e,yh,l),p(e,Z,l),u(vo,Z,null),t(Z,vT),t(Z,kl),t(Z,_T),u(Un,Z,null),t(Z,MT),t(Z,Ul),t(Z,kT),t(Z,jl),t(Z,UT),t(Z,Pl),t(Z,jT),u(jn,Z,null),t(Z,PT),t(Z,Pn),u(_o,Pn,null),t(Pn,CT),t(Pn,Cl),p(e,wh,l),p(e,ht,l),t(ht,Cn),t(Cn,hd),u(Mo,hd,null),t(ht,$T),t(ht,$l),p(e,xh,l),p(e,G,l),u(ko,G,null),t(G,JT),t(G,Jl),t(G,IT),u($n,G,null),t(G,qT),t(G,Il),t(G,GT),t(G,ql),t(G,zT),t(G,Gl),t(G,AT),t(G,Fe),u(Uo,Fe,null),t(Fe,NT),t(Fe,zl),t(Fe,ZT),t(Fe,Al),t(G,FT),t(G,Jn),u(jo,Jn,null),t(Jn,DT),t(Jn,Nl),t(G,RT),t(G,In),u(Po,In,null),t(In,ST),t(In,Zl),t(G,BT),t(G,qn),u(Co,qn,null),t(qn,VT),t(qn,Fl),p(e,vh,l),p(e,$o,l),p(e,_h,l),p(e,ft,l),t(ft,Gn),t(Gn,fd),u(Jo,fd,null),t(ft,ET),t(ft,Dl),p(e,Mh,l),p(e,z,l),u(Io,z,null),t(z,LT),t(z,Rl),t(z,WT),u(zn,z,null),t(z,OT),t(z,Sl),t(z,HT),t(z,Bl),t(z,YT),t(z,Vl),t(z,QT),t(z,An),u(qo,An,null),t(An,XT),t(An,El),t(z,KT),t(z,De),u(Go,De,null),t(De,eb),t(De,Ll),t(De,tb),t(De,Wl),t(z,nb),t(z,Nn),u(zo,Nn,null),t(Nn,sb),t(Nn,Ol),p(e,kh,l),p(e,gt,l),t(gt,Zn),t(Zn,gd),u(Ao,gd,null),t(gt,ab),t(gt,Hl),p(e,Uh,l),p(e,le,l),u(No,le,null),t(le,ob),t(le,Yl),t(le,rb),t(le,Ql),t(le,ib),t(le,Xl),t(le,lb),u(Fn,le,null),t(le,pb),t(le,Dn),u(Zo,Dn,null),t(Dn,cb),t(Dn,Kl),p(e,jh,l),p(e,ut,l),t(ut,Rn),t(Rn,ud),u(Fo,ud,null),t(ut,db),t(ut,ep),p(e,Ph,l),p(e,Q,l),u(Do,Q,null),t(Q,mb),t(Q,tp),t(Q,hb),u(Sn,Q,null),t(Q,fb),t(Q,np),t(Q,gb),t(Q,sp),t(Q,ub),t(Q,ap),t(Q,Tb),t(Q,se),u(Ro,se,null),t(se,bb),t(se,op),t(se,yb),t(se,rp),t(se,wb),t(se,ip),t(se,xb),u(Bn,se,null),t(se,vb),t(se,lp),t(se,_b),u(Vn,se,null),p(e,Ch,l),p(e,Tt,l),t(Tt,En),t(En,Td),u(So,Td,null),t(Tt,Mb),t(Tt,pp),p(e,$h,l),p(e,F,l),u(Bo,F,null),t(F,kb),t(F,cp),t(F,Ub),u(Ln,F,null),t(F,jb),t(F,dp),t(F,Pb),t(F,mp),t(F,Cb),t(F,hp),t(F,$b),t(F,fp),t(F,Jb),t(F,Wn),u(Vo,Wn,null),t(Wn,Ib),t(Wn,gp),p(e,Jh,l),p(e,bt,l),t(bt,On),t(On,bd),u(Eo,bd,null),t(bt,qb),t(bt,up),p(e,Ih,l),p(e,X,l),u(Lo,X,null),t(X,Gb),t(X,Tp),t(X,zb),u(Hn,X,null),t(X,Ab),t(X,bp),t(X,Nb),t(X,yp),t(X,Zb),t(X,wp),t(X,Fb),t(X,Yn),u(Wo,Yn,null),t(Yn,Db),t(Yn,xp),p(e,qh,l),p(e,yt,l),t(yt,Qn),t(Qn,yd),u(Oo,yd,null),t(yt,Rb),t(yt,vp),p(e,Gh,l),p(e,A,l),u(Ho,A,null),t(A,Sb),t(A,_p),t(A,Bb),u(Xn,A,null),t(A,Vb),t(A,Mp),t(A,Eb),t(A,kp),t(A,Lb),t(A,Up),t(A,Wb),u(Kn,A,null),t(A,Ob),t(A,es),u(Yo,es,null),t(es,Hb),t(es,jp),t(A,Yb),t(A,ts),u(Qo,ts,null),t(ts,Qb),t(ts,Pp),p(e,zh,l),p(e,wt,l),t(wt,ns),t(ns,wd),u(Xo,wd,null),t(wt,Xb),t(wt,Cp),p(e,Ah,l),p(e,q,l),u(Ko,q,null),t(q,Kb),t(q,$p),t(q,ey),u(ss,q,null),t(q,ty),t(q,Jp),t(q,ny),t(q,Ip),t(q,sy),t(q,qp),t(q,ay),t(q,as),u(er,as,null),t(as,oy),t(as,Gp),t(q,ry),t(q,Re),u(tr,Re,null),t(Re,iy),t(Re,zp),t(Re,ly),t(Re,Ap),t(q,py),t(q,os),u(nr,os,null),t(os,cy),t(os,Np),t(q,dy),t(q,rs),u(sr,rs,null),t(rs,my),t(rs,Zp),t(q,hy),t(q,is),u(ar,is,null),t(is,fy),t(is,Fp),p(e,Nh,l),p(e,xt,l),t(xt,ls),t(ls,xd),u(or,xd,null),t(xt,gy),t(xt,Dp),p(e,Zh,l),p(e,pe,l),u(rr,pe,null),t(pe,uy),t(pe,Rp),t(pe,Ty),t(pe,Sp),t(pe,by),t(pe,Bp),t(pe,yy),u(ps,pe,null),t(pe,wy),t(pe,cs),u(ir,cs,null),t(cs,xy),t(cs,Vp),p(e,Fh,l),p(e,vt,l),t(vt,ds),t(ds,vd),u(lr,vd,null),t(vt,vy),t(vt,Ep),p(e,Dh,l),p(e,D,l),u(pr,D,null),t(D,_y),t(D,Lp),t(D,My),t(D,Wp),t(D,ky),u(ms,D,null),t(D,Uy),t(D,Op),t(D,jy),t(D,Hp),t(D,Py),t(D,Yp),t(D,Cy),t(D,hs),u(cr,hs,null),t(hs,$y),t(hs,Qp),p(e,Rh,l),p(e,_t,l),t(_t,fs),t(fs,_d),u(dr,_d,null),t(_t,Jy),t(_t,Xp),p(e,Sh,l),p(e,mr,l),p(e,Bh,l),p(e,Mt,l),t(Mt,gs),t(gs,Md),u(hr,Md,null),t(Mt,Iy),t(Mt,Kp),p(e,Vh,l),p(e,K,l),u(fr,K,null),t(K,qy),t(K,ec),t(K,Gy),u(us,K,null),t(K,zy),t(K,tc),t(K,Ay),t(K,nc),t(K,Ny),t(K,sc),t(K,Zy),t(K,Ge),u(gr,Ge,null),t(Ge,Fy),t(Ge,ac),t(Ge,Dy),t(Ge,oc),t(Ge,Ry),t(Ge,rc),p(e,Eh,l),p(e,kt,l),t(kt,Ts),t(Ts,kd),u(ur,kd,null),t(kt,Sy),t(kt,ic),p(e,Lh,l),p(e,ee,l),u(Tr,ee,null),t(ee,By),t(ee,lc),t(ee,Vy),u(bs,ee,null),t(ee,Ey),t(ee,pc),t(ee,Ly),t(ee,cc),t(ee,Wy),t(ee,dc),t(ee,Oy),t(ee,ys),u(br,ys,null),t(ys,Hy),t(ys,mc),p(e,Wh,l),p(e,Ut,l),t(Ut,ws),t(ws,Ud),u(yr,Ud,null),t(Ut,Yy),t(Ut,hc),p(e,Oh,l),p(e,te,l),u(wr,te,null),t(te,Qy),t(te,fc),t(te,Xy),u(xs,te,null),t(te,Ky),t(te,gc),t(te,ew),t(te,uc),t(te,tw),t(te,Tc),t(te,nw),t(te,vs),u(xr,vs,null),t(vs,sw),t(vs,bc),p(e,Hh,l),p(e,jt,l),t(jt,_s),t(_s,jd),u(vr,jd,null),t(jt,aw),t(jt,yc),p(e,Yh,l),p(e,ne,l),u(_r,ne,null),t(ne,ow),t(ne,wc),t(ne,rw),u(Ms,ne,null),t(ne,iw),t(ne,xc),t(ne,lw),t(ne,vc),t(ne,pw),t(ne,_c),t(ne,cw),t(ne,Se),u(Mr,Se,null),t(Se,dw),t(Se,Mc),t(Se,mw),t(Se,kc),p(e,Qh,l),p(e,Pt,l),t(Pt,ks),t(ks,Pd),u(kr,Pd,null),t(Pt,hw),t(Pt,Uc),p(e,Xh,l),p(e,$,l),u(Ur,$,null),t($,fw),t($,jc),t($,gw),t($,Pc),t($,uw),t($,Cc),t($,Tw),t($,$c),t($,bw),t($,Jc),t($,yw),t($,Us),u(jr,Us,null),t(Us,ww),t(Us,Ic),t($,xw),t($,Be),u(Pr,Be,null),t(Be,vw),t(Be,qc),t(Be,_w),u(js,Be,null),t($,Mw),t($,Ps),u(Cr,Ps,null),t(Ps,kw),t(Ps,Gc),t($,Uw),t($,Cs),u($r,Cs,null),t(Cs,jw),t(Cs,zc),t($,Pw),t($,$s),u(Jr,$s,null),t($s,Cw),t($s,Ac),t($,$w),t($,Js),u(Ir,Js,null),t(Js,Jw),t(Js,Nc),t($,Iw),t($,Is),u(qr,Is,null),t(Is,qw),t(Is,Zc),t($,Gw),t($,qs),u(Gr,qs,null),t(qs,zw),t(qs,Fc),p(e,Kh,l),p(e,Cd,l),ef=!0},p(e,[l]){const zr={};l&2&&(zr.$$scope={dirty:l,ctx:e}),$t.$set(zr);const $d={};l&2&&($d.$$scope={dirty:l,ctx:e}),It.$set($d);const Jd={};l&2&&(Jd.$$scope={dirty:l,ctx:e}),Zt.$set(Jd);const Ar={};l&2&&(Ar.$$scope={dirty:l,ctx:e}),Rt.$set(Ar);const Id={};l&2&&(Id.$$scope={dirty:l,ctx:e}),Vt.$set(Id);const qd={};l&2&&(qd.$$scope={dirty:l,ctx:e}),Wt.$set(qd);const qe={};l&2&&(qe.$$scope={dirty:l,ctx:e}),Qt.$set(qe);const Nr={};l&2&&(Nr.$$scope={dirty:l,ctx:e}),en.$set(Nr);const Gd={};l&2&&(Gd.$$scope={dirty:l,ctx:e}),sn.$set(Gd);const zd={};l&2&&(zd.$$scope={dirty:l,ctx:e}),rn.$set(zd);const Zr={};l&2&&(Zr.$$scope={dirty:l,ctx:e}),mn.$set(Zr);const Ad={};l&2&&(Ad.$$scope={dirty:l,ctx:e}),gn.$set(Ad);const Nd={};l&2&&(Nd.$$scope={dirty:l,ctx:e}),yn.$set(Nd);const Fr={};l&2&&(Fr.$$scope={dirty:l,ctx:e}),_n.$set(Fr);const Zd={};l&2&&(Zd.$$scope={dirty:l,ctx:e}),Un.$set(Zd);const Fd={};l&2&&(Fd.$$scope={dirty:l,ctx:e}),jn.$set(Fd);const Dr={};l&2&&(Dr.$$scope={dirty:l,ctx:e}),$n.$set(Dr);const Dd={};l&2&&(Dd.$$scope={dirty:l,ctx:e}),zn.$set(Dd);const Rd={};l&2&&(Rd.$$scope={dirty:l,ctx:e}),Fn.$set(Rd);const Rr={};l&2&&(Rr.$$scope={dirty:l,ctx:e}),Sn.$set(Rr);const Sd={};l&2&&(Sd.$$scope={dirty:l,ctx:e}),Bn.$set(Sd);const Bd={};l&2&&(Bd.$$scope={dirty:l,ctx:e}),Vn.$set(Bd);const Sr={};l&2&&(Sr.$$scope={dirty:l,ctx:e}),Ln.$set(Sr);const Vd={};l&2&&(Vd.$$scope={dirty:l,ctx:e}),Hn.$set(Vd);const Ed={};l&2&&(Ed.$$scope={dirty:l,ctx:e}),Xn.$set(Ed);const ce={};l&2&&(ce.$$scope={dirty:l,ctx:e}),Kn.$set(ce);const Br={};l&2&&(Br.$$scope={dirty:l,ctx:e}),ss.$set(Br);const Vr={};l&2&&(Vr.$$scope={dirty:l,ctx:e}),ps.$set(Vr);const Ld={};l&2&&(Ld.$$scope={dirty:l,ctx:e}),ms.$set(Ld);const Wd={};l&2&&(Wd.$$scope={dirty:l,ctx:e}),us.$set(Wd);const Te={};l&2&&(Te.$$scope={dirty:l,ctx:e}),bs.$set(Te);const Er={};l&2&&(Er.$$scope={dirty:l,ctx:e}),xs.$set(Er);const Lr={};l&2&&(Lr.$$scope={dirty:l,ctx:e}),Ms.$set(Lr);const Od={};l&2&&(Od.$$scope={dirty:l,ctx:e}),js.$set(Od)},i(e){ef||(T(zs.$$.fragment,e),T(Fs.$$.fragment,e),T(Ss.$$.fragment,e),T(Vs.$$.fragment,e),T(Ls.$$.fragment,e),T(Os.$$.fragment,e),T(Ys.$$.fragment,e),T(Qs.$$.fragment,e),T($t.$$.fragment,e),T(Xs.$$.fragment,e),T(ea.$$.fragment,e),T(It.$$.fragment,e),T(ta.$$.fragment,e),T(na.$$.fragment,e),T(aa.$$.fragment,e),T(ra.$$.fragment,e),T(ca.$$.fragment,e),T(ha.$$.fragment,e),T(ga.$$.fragment,e),T(ba.$$.fragment,e),T(_a.$$.fragment,e),T(ka.$$.fragment,e),T(ja.$$.fragment,e),T(Ca.$$.fragment,e),T($a.$$.fragment,e),T(Zt.$$.fragment,e),T(Ja.$$.fragment,e),T(Ia.$$.fragment,e),T(qa.$$.fragment,e),T(Rt.$$.fragment,e),T(Ga.$$.fragment,e),T(za.$$.fragment,e),T(Aa.$$.fragment,e),T(Vt.$$.fragment,e),T(Na.$$.fragment,e),T(Za.$$.fragment,e),T(Fa.$$.fragment,e),T(Wt.$$.fragment,e),T(Da.$$.fragment,e),T(Ra.$$.fragment,e),T(Ba.$$.fragment,e),T(Va.$$.fragment,e),T(Qt.$$.fragment,e),T(Ea.$$.fragment,e),T(La.$$.fragment,e),T(Wa.$$.fragment,e),T(en.$$.fragment,e),T(Oa.$$.fragment,e),T(Ha.$$.fragment,e),T(Ya.$$.fragment,e),T(sn.$$.fragment,e),T(Qa.$$.fragment,e),T(Xa.$$.fragment,e),T(Ka.$$.fragment,e),T(rn.$$.fragment,e),T(eo.$$.fragment,e),T(to.$$.fragment,e),T(no.$$.fragment,e),T(so.$$.fragment,e),T(ao.$$.fragment,e),T(oo.$$.fragment,e),T(mn.$$.fragment,e),T(ro.$$.fragment,e),T(io.$$.fragment,e),T(lo.$$.fragment,e),T(gn.$$.fragment,e),T(po.$$.fragment,e),T(co.$$.fragment,e),T(ho.$$.fragment,e),T(fo.$$.fragment,e),T(yn.$$.fragment,e),T(go.$$.fragment,e),T(uo.$$.fragment,e),T(To.$$.fragment,e),T(bo.$$.fragment,e),T(yo.$$.fragment,e),T(_n.$$.fragment,e),T(wo.$$.fragment,e),T(xo.$$.fragment,e),T(vo.$$.fragment,e),T(Un.$$.fragment,e),T(jn.$$.fragment,e),T(_o.$$.fragment,e),T(Mo.$$.fragment,e),T(ko.$$.fragment,e),T($n.$$.fragment,e),T(Uo.$$.fragment,e),T(jo.$$.fragment,e),T(Po.$$.fragment,e),T(Co.$$.fragment,e),T(Jo.$$.fragment,e),T(Io.$$.fragment,e),T(zn.$$.fragment,e),T(qo.$$.fragment,e),T(Go.$$.fragment,e),T(zo.$$.fragment,e),T(Ao.$$.fragment,e),T(No.$$.fragment,e),T(Fn.$$.fragment,e),T(Zo.$$.fragment,e),T(Fo.$$.fragment,e),T(Do.$$.fragment,e),T(Sn.$$.fragment,e),T(Ro.$$.fragment,e),T(Bn.$$.fragment,e),T(Vn.$$.fragment,e),T(So.$$.fragment,e),T(Bo.$$.fragment,e),T(Ln.$$.fragment,e),T(Vo.$$.fragment,e),T(Eo.$$.fragment,e),T(Lo.$$.fragment,e),T(Hn.$$.fragment,e),T(Wo.$$.fragment,e),T(Oo.$$.fragment,e),T(Ho.$$.fragment,e),T(Xn.$$.fragment,e),T(Kn.$$.fragment,e),T(Yo.$$.fragment,e),T(Qo.$$.fragment,e),T(Xo.$$.fragment,e),T(Ko.$$.fragment,e),T(ss.$$.fragment,e),T(er.$$.fragment,e),T(tr.$$.fragment,e),T(nr.$$.fragment,e),T(sr.$$.fragment,e),T(ar.$$.fragment,e),T(or.$$.fragment,e),T(rr.$$.fragment,e),T(ps.$$.fragment,e),T(ir.$$.fragment,e),T(lr.$$.fragment,e),T(pr.$$.fragment,e),T(ms.$$.fragment,e),T(cr.$$.fragment,e),T(dr.$$.fragment,e),T(hr.$$.fragment,e),T(fr.$$.fragment,e),T(us.$$.fragment,e),T(gr.$$.fragment,e),T(ur.$$.fragment,e),T(Tr.$$.fragment,e),T(bs.$$.fragment,e),T(br.$$.fragment,e),T(yr.$$.fragment,e),T(wr.$$.fragment,e),T(xs.$$.fragment,e),T(xr.$$.fragment,e),T(vr.$$.fragment,e),T(_r.$$.fragment,e),T(Ms.$$.fragment,e),T(Mr.$$.fragment,e),T(kr.$$.fragment,e),T(Ur.$$.fragment,e),T(jr.$$.fragment,e),T(Pr.$$.fragment,e),T(js.$$.fragment,e),T(Cr.$$.fragment,e),T($r.$$.fragment,e),T(Jr.$$.fragment,e),T(Ir.$$.fragment,e),T(qr.$$.fragment,e),T(Gr.$$.fragment,e),ef=!0)},o(e){b(zs.$$.fragment,e),b(Fs.$$.fragment,e),b(Ss.$$.fragment,e),b(Vs.$$.fragment,e),b(Ls.$$.fragment,e),b(Os.$$.fragment,e),b(Ys.$$.fragment,e),b(Qs.$$.fragment,e),b($t.$$.fragment,e),b(Xs.$$.fragment,e),b(ea.$$.fragment,e),b(It.$$.fragment,e),b(ta.$$.fragment,e),b(na.$$.fragment,e),b(aa.$$.fragment,e),b(ra.$$.fragment,e),b(ca.$$.fragment,e),b(ha.$$.fragment,e),b(ga.$$.fragment,e),b(ba.$$.fragment,e),b(_a.$$.fragment,e),b(ka.$$.fragment,e),b(ja.$$.fragment,e),b(Ca.$$.fragment,e),b($a.$$.fragment,e),b(Zt.$$.fragment,e),b(Ja.$$.fragment,e),b(Ia.$$.fragment,e),b(qa.$$.fragment,e),b(Rt.$$.fragment,e),b(Ga.$$.fragment,e),b(za.$$.fragment,e),b(Aa.$$.fragment,e),b(Vt.$$.fragment,e),b(Na.$$.fragment,e),b(Za.$$.fragment,e),b(Fa.$$.fragment,e),b(Wt.$$.fragment,e),b(Da.$$.fragment,e),b(Ra.$$.fragment,e),b(Ba.$$.fragment,e),b(Va.$$.fragment,e),b(Qt.$$.fragment,e),b(Ea.$$.fragment,e),b(La.$$.fragment,e),b(Wa.$$.fragment,e),b(en.$$.fragment,e),b(Oa.$$.fragment,e),b(Ha.$$.fragment,e),b(Ya.$$.fragment,e),b(sn.$$.fragment,e),b(Qa.$$.fragment,e),b(Xa.$$.fragment,e),b(Ka.$$.fragment,e),b(rn.$$.fragment,e),b(eo.$$.fragment,e),b(to.$$.fragment,e),b(no.$$.fragment,e),b(so.$$.fragment,e),b(ao.$$.fragment,e),b(oo.$$.fragment,e),b(mn.$$.fragment,e),b(ro.$$.fragment,e),b(io.$$.fragment,e),b(lo.$$.fragment,e),b(gn.$$.fragment,e),b(po.$$.fragment,e),b(co.$$.fragment,e),b(ho.$$.fragment,e),b(fo.$$.fragment,e),b(yn.$$.fragment,e),b(go.$$.fragment,e),b(uo.$$.fragment,e),b(To.$$.fragment,e),b(bo.$$.fragment,e),b(yo.$$.fragment,e),b(_n.$$.fragment,e),b(wo.$$.fragment,e),b(xo.$$.fragment,e),b(vo.$$.fragment,e),b(Un.$$.fragment,e),b(jn.$$.fragment,e),b(_o.$$.fragment,e),b(Mo.$$.fragment,e),b(ko.$$.fragment,e),b($n.$$.fragment,e),b(Uo.$$.fragment,e),b(jo.$$.fragment,e),b(Po.$$.fragment,e),b(Co.$$.fragment,e),b(Jo.$$.fragment,e),b(Io.$$.fragment,e),b(zn.$$.fragment,e),b(qo.$$.fragment,e),b(Go.$$.fragment,e),b(zo.$$.fragment,e),b(Ao.$$.fragment,e),b(No.$$.fragment,e),b(Fn.$$.fragment,e),b(Zo.$$.fragment,e),b(Fo.$$.fragment,e),b(Do.$$.fragment,e),b(Sn.$$.fragment,e),b(Ro.$$.fragment,e),b(Bn.$$.fragment,e),b(Vn.$$.fragment,e),b(So.$$.fragment,e),b(Bo.$$.fragment,e),b(Ln.$$.fragment,e),b(Vo.$$.fragment,e),b(Eo.$$.fragment,e),b(Lo.$$.fragment,e),b(Hn.$$.fragment,e),b(Wo.$$.fragment,e),b(Oo.$$.fragment,e),b(Ho.$$.fragment,e),b(Xn.$$.fragment,e),b(Kn.$$.fragment,e),b(Yo.$$.fragment,e),b(Qo.$$.fragment,e),b(Xo.$$.fragment,e),b(Ko.$$.fragment,e),b(ss.$$.fragment,e),b(er.$$.fragment,e),b(tr.$$.fragment,e),b(nr.$$.fragment,e),b(sr.$$.fragment,e),b(ar.$$.fragment,e),b(or.$$.fragment,e),b(rr.$$.fragment,e),b(ps.$$.fragment,e),b(ir.$$.fragment,e),b(lr.$$.fragment,e),b(pr.$$.fragment,e),b(ms.$$.fragment,e),b(cr.$$.fragment,e),b(dr.$$.fragment,e),b(hr.$$.fragment,e),b(fr.$$.fragment,e),b(us.$$.fragment,e),b(gr.$$.fragment,e),b(ur.$$.fragment,e),b(Tr.$$.fragment,e),b(bs.$$.fragment,e),b(br.$$.fragment,e),b(yr.$$.fragment,e),b(wr.$$.fragment,e),b(xs.$$.fragment,e),b(xr.$$.fragment,e),b(vr.$$.fragment,e),b(_r.$$.fragment,e),b(Ms.$$.fragment,e),b(Mr.$$.fragment,e),b(kr.$$.fragment,e),b(Ur.$$.fragment,e),b(jr.$$.fragment,e),b(Pr.$$.fragment,e),b(js.$$.fragment,e),b(Cr.$$.fragment,e),b($r.$$.fragment,e),b(Jr.$$.fragment,e),b(Ir.$$.fragment,e),b(qr.$$.fragment,e),b(Gr.$$.fragment,e),ef=!1},d(e){e&&(s(M),s(x),s(m),s(v),s(Hd),s(As),s(Yd),s(Ns),s(Qd),s(Zs),s(Xd),s(Le),s(Kd),s(Ds),s(em),s(Rs),s(tm),s(nm),s(Bs),s(sm),s(am),s(Es),s(om),s(rm),s(Ws),s(im),s(lm),s(Hs),s(pm),s(cm),s(fe),s(dm),s(We),s(mm),s(Ks),s(hm),s(fm),s(gm),s(um),s(Tm),s(sa),s(bm),s(ym),s(oa),s(wm),s(xm),s(ia),s(vm),s(la),s(_m),s(pa),s(Mm),s(Oe),s(km),s(da),s(Um),s(ma),s(jm),s(Pm),s(fa),s(Cm),s($m),s(ua),s(Jm),s(Ta),s(Im),s(He),s(qm),s(ya),s(Gm),s(wa),s(zm),s(xa),s(Am),s(va),s(Nm),s(Zm),s(Ma),s(Fm),s(Ye),s(Dm),s(Ua),s(Rm),s(Qe),s(Sm),s(Pa),s(Bm),s(Xe),s(Vm),s(S),s(Em),s(Ke),s(Lm),s(re),s(Wm),s(et),s(Om),s(B),s(Hm),s(tt),s(Ym),s(ge),s(Qm),s(nt),s(Xm),s(Sa),s(Km),s(st),s(eh),s(V),s(th),s(at),s(nh),s(E),s(sh),s(ot),s(ah),s(ie),s(oh),s(rt),s(rh),s(L),s(ih),s(it),s(lh),s(ue),s(ph),s(lt),s(ch),s(W),s(dh),s(pt),s(mh),s(O),s(hh),s(ct),s(fh),s(mo),s(gh),s(dt),s(uh),s(H),s(Th),s(Y),s(bh),s(mt),s(yh),s(Z),s(wh),s(ht),s(xh),s(G),s(vh),s($o),s(_h),s(ft),s(Mh),s(z),s(kh),s(gt),s(Uh),s(le),s(jh),s(ut),s(Ph),s(Q),s(Ch),s(Tt),s($h),s(F),s(Jh),s(bt),s(Ih),s(X),s(qh),s(yt),s(Gh),s(A),s(zh),s(wt),s(Ah),s(q),s(Nh),s(xt),s(Zh),s(pe),s(Fh),s(vt),s(Dh),s(D),s(Rh),s(_t),s(Sh),s(mr),s(Bh),s(Mt),s(Vh),s(K),s(Eh),s(kt),s(Lh),s(ee),s(Wh),s(Ut),s(Oh),s(te),s(Hh),s(jt),s(Yh),s(ne),s(Qh),s(Pt),s(Xh),s($),s(Kh),s(Cd)),s(c),y(zs),y(Fs),y(Ss,e),y(Vs,e),y(Ls,e),y(Os,e),y(Ys,e),y(Qs),y($t),y(Xs),y(ea,e),y(It,e),y(ta,e),y(na,e),y(aa,e),y(ra,e),y(ca),y(ha,e),y(ga,e),y(ba),y(_a,e),y(ka),y(ja),y(Ca),y($a),y(Zt),y(Ja),y(Ia),y(qa),y(Rt),y(Ga),y(za),y(Aa),y(Vt),y(Na),y(Za),y(Fa),y(Wt),y(Da),y(Ra),y(Ba),y(Va),y(Qt),y(Ea),y(La),y(Wa),y(en),y(Oa),y(Ha),y(Ya),y(sn),y(Qa),y(Xa),y(Ka),y(rn),y(eo),y(to),y(no),y(so),y(ao),y(oo),y(mn),y(ro),y(io),y(lo),y(gn),y(po),y(co),y(ho),y(fo),y(yn),y(go),y(uo),y(To),y(bo),y(yo),y(_n),y(wo),y(xo),y(vo),y(Un),y(jn),y(_o),y(Mo),y(ko),y($n),y(Uo),y(jo),y(Po),y(Co),y(Jo),y(Io),y(zn),y(qo),y(Go),y(zo),y(Ao),y(No),y(Fn),y(Zo),y(Fo),y(Do),y(Sn),y(Ro),y(Bn),y(Vn),y(So),y(Bo),y(Ln),y(Vo),y(Eo),y(Lo),y(Hn),y(Wo),y(Oo),y(Ho),y(Xn),y(Kn),y(Yo),y(Qo),y(Xo),y(Ko),y(ss),y(er),y(tr),y(nr),y(sr),y(ar),y(or),y(rr),y(ps),y(ir),y(lr),y(pr),y(ms),y(cr),y(dr),y(hr),y(fr),y(us),y(gr),y(ur),y(Tr),y(bs),y(br),y(yr),y(wr),y(xs),y(xr),y(vr),y(_r),y(Ms),y(Mr),y(kr),y(Ur),y(jr),y(Pr),y(js),y(Cr),y($r),y(Jr),y(Ir),y(qr),y(Gr)}}}const Yk={local:"pipelines",sections:[{local:"transformers.pipeline",title:"The pipeline abstraction"},{local:"pipeline-batching",title:"Pipeline batching"},{local:"pipeline-chunk-batching",title:"Pipeline chunk batching"},{local:"pipeline-custom-code",title:"Pipeline custom code"},{local:"implementing-a-pipeline",title:"Implementing a pipeline"},{local:"audio",sections:[{local:"transformers.AudioClassificationPipeline",title:"AudioClassificationPipeline"},{local:"transformers.AutomaticSpeechRecognitionPipeline",title:"AutomaticSpeechRecognitionPipeline"},{local:"transformers.TextToAudioPipeline",title:"TextToAudioPipeline"},{local:"transformers.ZeroShotAudioClassificationPipeline",title:"ZeroShotAudioClassificationPipeline"}],title:"Audio"},{local:"computer-vision",sections:[{local:"transformers.DepthEstimationPipeline",title:"DepthEstimationPipeline"},{local:"transformers.ImageClassificationPipeline",title:"ImageClassificationPipeline"},{local:"transformers.ImageSegmentationPipeline",title:"ImageSegmentationPipeline"},{local:"transformers.ObjectDetectionPipeline",title:"ObjectDetectionPipeline"},{local:"transformers.VideoClassificationPipeline",title:"VideoClassificationPipeline"},{local:"transformers.ZeroShotImageClassificationPipeline",title:"ZeroShotImageClassificationPipeline"},{local:"transformers.ZeroShotObjectDetectionPipeline",title:"ZeroShotObjectDetectionPipeline"}],title:"Computer vision"},{local:"natural-language-processing",sections:[{local:"transformers.Conversation",title:"ConversationalPipeline"},{local:"transformers.FillMaskPipeline",title:"FillMaskPipeline"},{local:"transformers.TokenClassificationPipeline",title:"NerPipeline"},{local:"transformers.QuestionAnsweringPipeline",title:"QuestionAnsweringPipeline"},{local:"transformers.SummarizationPipeline",title:"SummarizationPipeline"},{local:"transformers.TableQuestionAnsweringPipeline",title:"TableQuestionAnsweringPipeline"},{local:"transformers.TextClassificationPipeline",title:"TextClassificationPipeline"},{local:"transformers.TextGenerationPipeline",title:"TextGenerationPipeline"},{local:"transformers.Text2TextGenerationPipeline",title:"Text2TextGenerationPipeline"},{local:"transformers.TokenClassificationPipeline",title:"TokenClassificationPipeline"},{local:"transformers.TranslationPipeline",title:"TranslationPipeline"},{local:"transformers.ZeroShotClassificationPipeline",title:"ZeroShotClassificationPipeline"}],title:"Natural Language Processing"},{local:"multimodal",sections:[{local:"transformers.DocumentQuestionAnsweringPipeline",title:"DocumentQuestionAnsweringPipeline"},{local:"transformers.FeatureExtractionPipeline",title:"FeatureExtractionPipeline"},{local:"transformers.ImageToTextPipeline",title:"ImageToTextPipeline"},{local:"transformers.VisualQuestionAnsweringPipeline",title:"VisualQuestionAnsweringPipeline"}],title:"Multimodal"},{local:"transformers.Pipeline",title:"Parent class: `Pipeline`"}],title:"Pipelines"};function Qk(U){return dk(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class o1 extends mk{constructor(c){super(),hk(this,c,Qk,Hk,ck,{})}}export{o1 as component};
