import{s as Ew,o as Xw,n as J}from"../chunks/scheduler.9bc65507.js";import{S as Qw,i as Kw,g as i,s,r as g,A as e2,h as l,f as a,c as o,j as v,u as f,x as m,k as j,y as n,a as d,v as u,d as T,t as b,w as y}from"../chunks/index.707bf1b6.js";import{T as vc}from"../chunks/Tip.c2ecdbf4.js";import{D as k}from"../chunks/Docstring.570ddb64.js";import{C as U}from"../chunks/CodeBlock.54a9f38d.js";import{E as P}from"../chunks/ExampleCodeBlock.bc2be6bc.js";import{H as $,E as t2}from"../chunks/EditOnGithub.922df6ba.js";function n2(M){let r,_="Examples:",h,c,w;return c=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTJDJTIwQXV0b01vZGVsRm9yVG9rZW5DbGFzc2lmaWNhdGlvbiUyQyUyMEF1dG9Ub2tlbml6ZXIlMEElMEElMjMlMjBTZW50aW1lbnQlMjBhbmFseXNpcyUyMHBpcGVsaW5lJTBBYW5hbHl6ZXIlMjAlM0QlMjBwaXBlbGluZSglMjJzZW50aW1lbnQtYW5hbHlzaXMlMjIpJTBBJTBBJTIzJTIwUXVlc3Rpb24lMjBhbnN3ZXJpbmclMjBwaXBlbGluZSUyQyUyMHNwZWNpZnlpbmclMjB0aGUlMjBjaGVja3BvaW50JTIwaWRlbnRpZmllciUwQW9yYWNsZSUyMCUzRCUyMHBpcGVsaW5lKCUwQSUyMCUyMCUyMCUyMCUyMnF1ZXN0aW9uLWFuc3dlcmluZyUyMiUyQyUyMG1vZGVsJTNEJTIyZGlzdGlsYmVydCUyRmRpc3RpbGJlcnQtYmFzZS1jYXNlZC1kaXN0aWxsZWQtc3F1YWQlMjIlMkMlMjB0b2tlbml6ZXIlM0QlMjJnb29nbGUtYmVydCUyRmJlcnQtYmFzZS1jYXNlZCUyMiUwQSklMEElMEElMjMlMjBOYW1lZCUyMGVudGl0eSUyMHJlY29nbml0aW9uJTIwcGlwZWxpbmUlMkMlMjBwYXNzaW5nJTIwaW4lMjBhJTIwc3BlY2lmaWMlMjBtb2RlbCUyMGFuZCUyMHRva2VuaXplciUwQW1vZGVsJTIwJTNEJTIwQXV0b01vZGVsRm9yVG9rZW5DbGFzc2lmaWNhdGlvbi5mcm9tX3ByZXRyYWluZWQoJTIyZGJtZHolMkZiZXJ0LWxhcmdlLWNhc2VkLWZpbmV0dW5lZC1jb25sbDAzLWVuZ2xpc2glMjIpJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIyZ29vZ2xlLWJlcnQlMkZiZXJ0LWJhc2UtY2FzZWQlMjIpJTBBcmVjb2duaXplciUyMCUzRCUyMHBpcGVsaW5lKCUyMm5lciUyMiUyQyUyMG1vZGVsJTNEbW9kZWwlMkMlMjB0b2tlbml6ZXIlM0R0b2tlbml6ZXIp",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/distilbert-base-cased-distilled-squad&quot;</span>, tokenizer=<span class="hljs-string">&quot;google-bert/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;google-bert/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)`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-kvfsh7"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function s2(M){let r,_=`ただし、これによってパフォーマンスが自動的に向上するわけではありません。状況に応じて、10 倍の高速化または 5 倍の低速化のいずれかになります。
ハードウェア、データ、使用されている実際のモデルについて。`,h,c,w="主に高速化である例:";return{c(){r=i("p"),r.textContent=_,h=s(),c=i("p"),c.textContent=w},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-1g5spbt"&&(r.textContent=_),h=o(t),c=l(t,"P",{"data-svelte-h":!0}),m(c)!=="svelte-2d0f8u"&&(c.textContent=w)},m(t,x){d(t,r,x),d(t,h,x),d(t,c,x)},p:J,d(t){t&&(a(r),a(h),a(c))}}}function o2(M){let r,_="Example:",h,c,w;return c=new U({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>}]`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function a2(M){let r,_="Example:",h,c,w;return c=new U({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>}`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function r2(M){let r,_="Example:",h,c,w;return c=new U({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>]`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function i2(M){let r,_="Example:",h,c,w;return c=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBbXVzaWNfZ2VuZXJhdG9yJTIwJTNEJTIwcGlwZWxpbmUodGFzayUzRCUyMnRleHQtdG8tYXVkaW8lMjIlMkMlMjBtb2RlbCUzRCUyMmZhY2Vib29rJTJGbXVzaWNnZW4tc21hbGwlMjIlMkMlMjBmcmFtZXdvcmslM0QlMjJwdCUyMiklMEElMEElMjMlMjBkaXZlcnNpZnklMjB0aGUlMjBtdXNpYyUyMGdlbmVyYXRpb24lMjBieSUyMGFkZGluZyUyMHJhbmRvbW5lc3MlMjB3aXRoJTIwYSUyMGhpZ2glMjB0ZW1wZXJhdHVyZSUyMGFuZCUyMHNldCUyMGElMjBtYXhpbXVtJTIwbXVzaWMlMjBsZW5ndGglMEFnZW5lcmF0ZV9rd2FyZ3MlMjAlM0QlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjJkb19zYW1wbGUlMjIlM0ElMjBUcnVlJTJDJTBBJTIwJTIwJTIwJTIwJTIydGVtcGVyYXR1cmUlMjIlM0ElMjAwLjclMkMlMEElMjAlMjAlMjAlMjAlMjJtYXhfbmV3X3Rva2VucyUyMiUzQSUyMDM1JTJDJTBBJTdEJTBBJTBBb3V0cHV0cyUyMCUzRCUyMG11c2ljX2dlbmVyYXRvciglMjJUZWNobm8lMjBtdXNpYyUyMHdpdGglMjBoaWdoJTIwbWVsb2RpYyUyMHJpZmZzJTIyJTJDJTIwZ2VuZXJhdGVfa3dhcmdzJTNEZ2VuZXJhdGVfa3dhcmdzKQ==",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>music_generator = pipeline(task=<span class="hljs-string">&quot;text-to-audio&quot;</span>, model=<span class="hljs-string">&quot;facebook/musicgen-small&quot;</span>, framework=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># diversify the music generation by adding randomness with a high temperature and set a maximum music length</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>generate_kwargs = {
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;do_sample&quot;</span>: <span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;temperature&quot;</span>: <span class="hljs-number">0.7</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;max_new_tokens&quot;</span>: <span class="hljs-number">35</span>,
<span class="hljs-meta">... </span>}

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = music_generator(<span class="hljs-string">&quot;Techno music with high melodic riffs&quot;</span>, generate_kwargs=generate_kwargs)`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function l2(M){let r,_=`You can specify parameters passed to the model by using <code>TextToAudioPipeline.__call__.forward_params</code> or
<code>TextToAudioPipeline.__call__.generate_kwargs</code>.`,h,c,w;return c=new P({props:{anchor:"transformers.TextToAudioPipeline.example-2",$$slots:{default:[i2]},$$scope:{ctx:M}}}),{c(){r=i("p"),r.innerHTML=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-1g6q8re"&&(r.innerHTML=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p(t,x){const _c={};x&2&&(_c.$$scope={dirty:x,ctx:t}),c.$set(_c)},i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function c2(M){let r,_="The default <code>hypothesis_template</code> is : <code>&quot;This is a sound of {}.&quot;</code>. Make sure you update it for your usage.";return{c(){r=i("p"),r.innerHTML=_},l(h){r=l(h,"P",{"data-svelte-h":!0}),m(r)!=="svelte-2d3hnv"&&(r.innerHTML=_)},m(h,c){d(h,r,c)},p:J,d(h){h&&a(r)}}}function p2(M){let r,_="Example:",h,c,w;return c=new U({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>}]`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function d2(M){let r,_="Example:",h,c,w;return c=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZGVwdGhfZXN0aW1hdG9yJTIwJTNEJTIwcGlwZWxpbmUodGFzayUzRCUyMmRlcHRoLWVzdGltYXRpb24lMjIlMkMlMjBtb2RlbCUzRCUyMkxpaGVZb3VuZyUyRmRlcHRoLWFueXRoaW5nLWJhc2UtaGYlMjIpJTBBb3V0cHV0JTIwJTNEJTIwZGVwdGhfZXN0aW1hdG9yKCUyMmh0dHAlM0ElMkYlMkZpbWFnZXMuY29jb2RhdGFzZXQub3JnJTJGdmFsMjAxNyUyRjAwMDAwMDAzOTc2OS5qcGclMjIpJTBBJTIzJTIwVGhpcyUyMGlzJTIwYSUyMHRlbnNvciUyMHdpdGglMjB0aGUlMjB2YWx1ZXMlMjBiZWluZyUyMHRoZSUyMGRlcHRoJTIwZXhwcmVzc2VkJTIwaW4lMjBtZXRlcnMlMjBmb3IlMjBlYWNoJTIwcGl4ZWwlMEFvdXRwdXQlNUIlMjJwcmVkaWN0ZWRfZGVwdGglMjIlNUQuc2hhcGU=",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;LiheYoung/depth-anything-base-hf&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>])`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function m2(M){let r,_="Example:",h,c,w;return c=new U({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>}]`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function h2(M){let r,_="Example:",h,c,w;return c=new U({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>)`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function g2(M){let r,_="Example:",h,c,w;return c=new U({props:{code:"ZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBaW1wb3J0JTIwcmVxdWVzdHMlMEElMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwcGlwZWxpbmUlMEElMEF1cHNjYWxlciUyMCUzRCUyMHBpcGVsaW5lKCUyMmltYWdlLXRvLWltYWdlJTIyJTJDJTIwbW9kZWwlM0QlMjJjYWlkYXMlMkZzd2luMlNSLWNsYXNzaWNhbC1zci14Mi02NCUyMiklMEFpbWclMjAlM0QlMjBJbWFnZS5vcGVuKHJlcXVlc3RzLmdldCglMjJodHRwJTNBJTJGJTJGaW1hZ2VzLmNvY29kYXRhc2V0Lm9yZyUyRnZhbDIwMTclMkYwMDAwMDAwMzk3NjkuanBnJTIyJTJDJTIwc3RyZWFtJTNEVHJ1ZSkucmF3KSUwQWltZyUyMCUzRCUyMGltZy5yZXNpemUoKDY0JTJDJTIwNjQpKSUwQXVwc2NhbGVkX2ltZyUyMCUzRCUyMHVwc2NhbGVyKGltZyklMEFpbWcuc2l6ZSUwQSUwQXVwc2NhbGVkX2ltZy5zaXpl",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> PIL <span class="hljs-keyword">import</span> Image
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> requests

<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>upscaler = pipeline(<span class="hljs-string">&quot;image-to-image&quot;</span>, model=<span class="hljs-string">&quot;caidas/swin2SR-classical-sr-x2-64&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>img = Image.<span class="hljs-built_in">open</span>(requests.get(<span class="hljs-string">&quot;http://images.cocodataset.org/val2017/000000039769.jpg&quot;</span>, stream=<span class="hljs-literal">True</span>).raw)
<span class="hljs-meta">&gt;&gt;&gt; </span>img = img.resize((<span class="hljs-number">64</span>, <span class="hljs-number">64</span>))
<span class="hljs-meta">&gt;&gt;&gt; </span>upscaled_img = upscaler(img)
<span class="hljs-meta">&gt;&gt;&gt; </span>img.size
(<span class="hljs-number">64</span>, <span class="hljs-number">64</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>upscaled_img.size
(<span class="hljs-number">144</span>, <span class="hljs-number">144</span>)`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function f2(M){let r,_="Example:",h,c,w;return c=new U({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>`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function u2(M){let r,_="Example:",h,c,w;return c=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBY2xhc3NpZmllciUyMCUzRCUyMHBpcGVsaW5lKG1vZGVsJTNEJTIyZ29vZ2xlJTJGc2lnbGlwLXNvNDAwbS1wYXRjaDE0LTM4NCUyMiklMEFjbGFzc2lmaWVyKCUwQSUyMCUyMCUyMCUyMCUyMmh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZkYXRhc2V0cyUyRk5hcnNpbCUyRmltYWdlX2R1bW15JTJGcmF3JTJGbWFpbiUyRnBhcnJvdHMucG5nJTIyJTJDJTBBJTIwJTIwJTIwJTIwY2FuZGlkYXRlX2xhYmVscyUzRCU1QiUyMmFuaW1hbHMlMjIlMkMlMjAlMjJodW1hbnMlMjIlMkMlMjAlMjJsYW5kc2NhcGUlMjIlNUQlMkMlMEEpJTBBJTBBY2xhc3NpZmllciglMEElMjAlMjAlMjAlMjAlMjJodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGZGF0YXNldHMlMkZOYXJzaWwlMkZpbWFnZV9kdW1teSUyRnJhdyUyRm1haW4lMkZwYXJyb3RzLnBuZyUyMiUyQyUwQSUyMCUyMCUyMCUyMGNhbmRpZGF0ZV9sYWJlbHMlM0QlNUIlMjJibGFjayUyMGFuZCUyMHdoaXRlJTIyJTJDJTIwJTIycGhvdG9yZWFsaXN0JTIyJTJDJTIwJTIycGFpbnRpbmclMjIlNUQlMkMlMEEp",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;google/siglip-so400m-patch14-384&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>}]`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function T2(M){let r,_="Example:",h,c,w;return c=new U({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>}}]`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function b2(M){let r,_="Usage:",h,c,w;return c=new U({props:{code:"Y29udmVyc2F0aW9uJTIwJTNEJTIwQ29udmVyc2F0aW9uKCUyMkdvaW5nJTIwdG8lMjB0aGUlMjBtb3ZpZXMlMjB0b25pZ2h0JTIwLSUyMGFueSUyMHN1Z2dlc3Rpb25zJTNGJTIyKSUwQWNvbnZlcnNhdGlvbi5hZGRfbWVzc2FnZSglN0IlMjJyb2xlJTIyJTNBJTIwJTIyYXNzaXN0YW50JTIyJTJDJTIwJTIyY29udGVudCUyMiUzQSUyMCUyMlRoZSUyMEJpZyUyMGxlYm93c2tpLiUyMiU3RCklMEFjb252ZXJzYXRpb24uYWRkX21lc3NhZ2UoJTdCJTIycm9sZSUyMiUzQSUyMCUyMnVzZXIlMjIlMkMlMjAlMjJjb250ZW50JTIyJTNBJTIwJTIySXMlMjBpdCUyMGdvb2QlM0YlMjIlN0Qp",highlighted:`conversation = Conversation(<span class="hljs-string">&quot;Going to the movies tonight - any suggestions?&quot;</span>)
conversation.add_message({<span class="hljs-string">&quot;role&quot;</span>: <span class="hljs-string">&quot;assistant&quot;</span>, <span class="hljs-string">&quot;content&quot;</span>: <span class="hljs-string">&quot;The Big lebowski.&quot;</span>})
conversation.add_message({<span class="hljs-string">&quot;role&quot;</span>: <span class="hljs-string">&quot;user&quot;</span>, <span class="hljs-string">&quot;content&quot;</span>: <span class="hljs-string">&quot;Is it good?&quot;</span>})`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-5wyjqd"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function y2(M){let r,_="Example:",h,c,w;return c=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTJDJTIwQ29udmVyc2F0aW9uJTBBJTBBY2hhdGJvdCUyMCUzRCUyMHBpcGVsaW5lKG1vZGVsJTNEJTIyZmFjZWJvb2slMkZibGVuZGVyYm90LTQwME0tZGlzdGlsbCUyMiklMEElMjMlMjBDb252ZXJzYXRpb24lMjBvYmplY3RzJTIwaW5pdGlhbGl6ZWQlMjB3aXRoJTIwYSUyMHN0cmluZyUyMHdpbGwlMjB0cmVhdCUyMGl0JTIwYXMlMjBhJTIwdXNlciUyMG1lc3NhZ2UlMEFjb252ZXJzYXRpb24lMjAlM0QlMjBDb252ZXJzYXRpb24oJTIySSdtJTIwbG9va2luZyUyMGZvciUyMGElMjBtb3ZpZSUyMC0lMjB3aGF0J3MlMjB5b3VyJTIwZmF2b3VyaXRlJTIwb25lJTNGJTIyKSUwQWNvbnZlcnNhdGlvbiUyMCUzRCUyMGNoYXRib3QoY29udmVyc2F0aW9uKSUwQWNvbnZlcnNhdGlvbi5tZXNzYWdlcyU1Qi0xJTVEJTVCJTIyY29udGVudCUyMiU1RCUwQSUwQWNvbnZlcnNhdGlvbi5hZGRfbWVzc2FnZSglN0IlMjJyb2xlJTIyJTNBJTIwJTIydXNlciUyMiUyQyUyMCUyMmNvbnRlbnQlMjIlM0ElMjAlMjJUaGF0J3MlMjBpbnRlcmVzdGluZyUyQyUyMHdoeSUyMGRvJTIweW91JTIwbGlrZSUyMGFjdGlvbiUyMG1vdmllcyUzRiUyMiU3RCklMEFjb252ZXJzYXRpb24lMjAlM0QlMjBjaGF0Ym90KGNvbnZlcnNhdGlvbiklMEFjb252ZXJzYXRpb24ubWVzc2FnZXMlNUItMSU1RCU1QiUyMmNvbnRlbnQlMjIlNUQ=",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-comment"># Any model with a chat template can be used in a ConversationalPipeline.</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>chatbot = pipeline(model=<span class="hljs-string">&quot;facebook/blenderbot-400M-distill&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Conversation objects initialized with a string will treat it as a user message</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>conversation = Conversation(<span class="hljs-string">&quot;I&#x27;m looking for a movie - what&#x27;s your favourite one?&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>conversation = chatbot(conversation)
<span class="hljs-meta">&gt;&gt;&gt; </span>conversation.messages[-<span class="hljs-number">1</span>][<span class="hljs-string">&quot;content&quot;</span>]
<span class="hljs-string">&quot;I don&#x27;t really have a favorite movie, but I do like action movies. What about you?&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>conversation.add_message({<span class="hljs-string">&quot;role&quot;</span>: <span class="hljs-string">&quot;user&quot;</span>, <span class="hljs-string">&quot;content&quot;</span>: <span class="hljs-string">&quot;That&#x27;s interesting, why do you like action movies?&quot;</span>})
<span class="hljs-meta">&gt;&gt;&gt; </span>conversation = chatbot(conversation)
<span class="hljs-meta">&gt;&gt;&gt; </span>conversation.messages[-<span class="hljs-number">1</span>][<span class="hljs-string">&quot;content&quot;</span>]
<span class="hljs-string">&quot; I think it&#x27;s just because they&#x27;re so fast-paced and action-fantastic.&quot;</span>`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function w2(M){let r,_="Example:",h,c,w;return c=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZmlsbF9tYXNrZXIlMjAlM0QlMjBwaXBlbGluZShtb2RlbCUzRCUyMmdvb2dsZS1iZXJ0JTJGYmVydC1iYXNlLXVuY2FzZWQlMjIpJTBBZmlsbF9tYXNrZXIoJTIyVGhpcyUyMGlzJTIwYSUyMHNpbXBsZSUyMCU1Qk1BU0slNUQuJTIyKQ==",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;google-bert/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>}]`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function x2(M){let r,_=`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(){r=i("p"),r.innerHTML=_},l(h){r=l(h,"P",{"data-svelte-h":!0}),m(r)!=="svelte-126iymh"&&(r.innerHTML=_)},m(h,c){d(h,r,c)},p:J,d(h){h&&a(r)}}}function _2(M){let r,_="This pipeline now supports tokenizer_kwargs. For example try:",h,c,w;return c=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZmlsbF9tYXNrZXIlMjAlM0QlMjBwaXBlbGluZShtb2RlbCUzRCUyMmdvb2dsZS1iZXJ0JTJGYmVydC1iYXNlLXVuY2FzZWQlMjIpJTBBdG9rZW5pemVyX2t3YXJncyUyMCUzRCUyMCU3QiUyMnRydW5jYXRpb24lMjIlM0ElMjBUcnVlJTdEJTBBZmlsbF9tYXNrZXIoJTBBJTIwJTIwJTIwJTIwJTIyVGhpcyUyMGlzJTIwYSUyMHNpbXBsZSUyMCU1Qk1BU0slNUQuJTIwJTIyJTIwJTJCJTIwJTIyLi4ud2l0aCUyMGElMjBsYXJnZSUyMGFtb3VudCUyMG9mJTIwcmVwZWF0ZWQlMjB0ZXh0JTIwYXBwZW5kZWQuJTIwJTIyJTIwKiUyMDEwMCUyQyUwQSUyMCUyMCUyMCUyMHRva2VuaXplcl9rd2FyZ3MlM0R0b2tlbml6ZXJfa3dhcmdzJTJDJTBBKQ==",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;google-bert/bert-base-uncased&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer_kwargs = {<span class="hljs-string">&quot;truncation&quot;</span>: <span class="hljs-literal">True</span>}
<span class="hljs-meta">&gt;&gt;&gt; </span>fill_masker(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;This is a simple [MASK]. &quot;</span> + <span class="hljs-string">&quot;...with a large amount of repeated text appended. &quot;</span> * <span class="hljs-number">100</span>,
<span class="hljs-meta">... </span>    tokenizer_kwargs=tokenizer_kwargs,
<span class="hljs-meta">... </span>)`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-1pudxyz"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function M2(M){let r,_;return r=new P({props:{anchor:"transformers.FillMaskPipeline.example-2",$$slots:{default:[_2]},$$scope:{ctx:M}}}),{c(){g(r.$$.fragment)},l(h){f(r.$$.fragment,h)},m(h,c){u(r,h,c),_=!0},p(h,c){const w={};c&2&&(w.$$scope={dirty:c,ctx:h}),r.$set(w)},i(h){_||(T(r.$$.fragment,h),_=!0)},o(h){b(r.$$.fragment,h),_=!1},d(h){y(r,h)}}}function v2(M){let r,_="Example:",h,c,w;return c=new U({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>}]`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function j2(M){let r,_="Example:",h,c,w;return c=new U({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>}`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function k2(M){let r,_="Usage:",h,c,w;return c=new U({props:{code:"JTIzJTIwdXNlJTIwYmFydCUyMGluJTIwcHl0b3JjaCUwQXN1bW1hcml6ZXIlMjAlM0QlMjBwaXBlbGluZSglMjJzdW1tYXJpemF0aW9uJTIyKSUwQXN1bW1hcml6ZXIoJTIyQW4lMjBhcHBsZSUyMGElMjBkYXklMkMlMjBrZWVwcyUyMHRoZSUyMGRvY3RvciUyMGF3YXklMjIlMkMlMjBtaW5fbGVuZ3RoJTNENSUyQyUyMG1heF9sZW5ndGglM0QyMCklMEElMEElMjMlMjB1c2UlMjB0NSUyMGluJTIwdGYlMEFzdW1tYXJpemVyJTIwJTNEJTIwcGlwZWxpbmUoJTIyc3VtbWFyaXphdGlvbiUyMiUyQyUyMG1vZGVsJTNEJTIyZ29vZ2xlLXQ1JTJGdDUtYmFzZSUyMiUyQyUyMHRva2VuaXplciUzRCUyMmdvb2dsZS10NSUyRnQ1LWJhc2UlMjIlMkMlMjBmcmFtZXdvcmslM0QlMjJ0ZiUyMiklMEFzdW1tYXJpemVyKCUyMkFuJTIwYXBwbGUlMjBhJTIwZGF5JTJDJTIwa2VlcHMlMjB0aGUlMjBkb2N0b3IlMjBhd2F5JTIyJTJDJTIwbWluX2xlbmd0aCUzRDUlMkMlMjBtYXhfbGVuZ3RoJTNEMjAp",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;google-t5/t5-base&quot;</span>, tokenizer=<span class="hljs-string">&quot;google-t5/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>)`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-5wyjqd"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function U2(M){let r,_="Example:",h,c,w;return c=new U({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>}`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function $2(M){let r,_="Example:",h,c,w;return c=new U({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>],
}`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function J2(M){let r,_="Example:",h,c,w;return c=new U({props:{code:"aW1wb3J0JTIwcGFuZGFzJTIwYXMlMjBwZCUwQSUwQXRhYmxlJTIwJTNEJTIwcGQuRGF0YUZyYW1lLmZyb21fZGljdChkYXRhKQ==",highlighted:`<span class="hljs-keyword">import</span> pandas <span class="hljs-keyword">as</span> pd

table = pd.DataFrame.from_dict(data)`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function P2(M){let r,_="Example:",h,c,w;return c=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBY2xhc3NpZmllciUyMCUzRCUyMHBpcGVsaW5lKG1vZGVsJTNEJTIyZGlzdGlsYmVydCUyRmRpc3RpbGJlcnQtYmFzZS11bmNhc2VkLWZpbmV0dW5lZC1zc3QtMi1lbmdsaXNoJTIyKSUwQWNsYXNzaWZpZXIoJTIyVGhpcyUyMG1vdmllJTIwaXMlMjBkaXNndXN0aW5nbHklMjBnb29kJTIwISUyMiklMEElMEFjbGFzc2lmaWVyKCUyMkRpcmVjdG9yJTIwdHJpZWQlMjB0b28lMjBtdWNoLiUyMik=",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/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>}]`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function C2(M){let r,_="Example:",h,c,w;return c=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZ2VuZXJhdG9yJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJvcGVuYWktY29tbXVuaXR5JTJGZ3B0MiUyMiklMEFnZW5lcmF0b3IoJTIySSUyMGNhbid0JTIwYmVsaWV2ZSUyMHlvdSUyMGRpZCUyMHN1Y2glMjBhJTIwJTIyJTJDJTIwZG9fc2FtcGxlJTNERmFsc2UpJTBBJTBBJTIzJTIwVGhlc2UlMjBwYXJhbWV0ZXJzJTIwd2lsbCUyMHJldHVybiUyMHN1Z2dlc3Rpb25zJTJDJTIwYW5kJTIwb25seSUyMHRoZSUyMG5ld2x5JTIwY3JlYXRlZCUyMHRleHQlMjBtYWtpbmclMjBpdCUyMGVhc2llciUyMGZvciUyMHByb21wdGluZyUyMHN1Z2dlc3Rpb25zLiUwQW91dHB1dHMlMjAlM0QlMjBnZW5lcmF0b3IoJTIyTXklMjB0YXJ0JTIwbmVlZHMlMjBzb21lJTIyJTJDJTIwbnVtX3JldHVybl9zZXF1ZW5jZXMlM0Q0JTJDJTIwcmV0dXJuX2Z1bGxfdGV4dCUzREZhbHNlKQ==",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;openai-community/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>)`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function I2(M){let r,_="Example:",h,c,w;return c=new U({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>}]`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function q2(M){let r,_="Usage:",h,c,w;return c=new U({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>)`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-5wyjqd"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function G2(M){let r,_="Example:",h,c,w;return c=new U({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>}]`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function Z2(M){let r,_="Usage:",h,c,w;return c=new U({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>)`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-5wyjqd"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function z2(M){let r,_="Example:",h,c,w;return c=new U({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>]}`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function F2(M){let r,_="Example:",h,c,w;return c=new U({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>}]`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function B2(M){let r,_="Example:",h,c,w;return c=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZXh0cmFjdG9yJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJnb29nbGUtYmVydCUyRmJlcnQtYmFzZS11bmNhc2VkJTIyJTJDJTIwdGFzayUzRCUyMmZlYXR1cmUtZXh0cmFjdGlvbiUyMiklMEFyZXN1bHQlMjAlM0QlMjBleHRyYWN0b3IoJTIyVGhpcyUyMGlzJTIwYSUyMHNpbXBsZSUyMHRlc3QuJTIyJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0RUcnVlKSUwQXJlc3VsdC5zaGFwZSUyMCUyMCUyMyUyMFRoaXMlMjBpcyUyMGElMjB0ZW5zb3IlMjBvZiUyMHNoYXBlJTIwJTVCMSUyQyUyMHNlcXVlbmNlX2xlbmd0aCUyQyUyMGhpZGRlbl9kaW1lbnNpb24lNUQlMjByZXByZXNlbnRpbmclMjB0aGUlMjBpbnB1dCUyMHN0cmluZy4=",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;google-bert/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_length, 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>])`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function D2(M){let r,_="Example:",h,c,w;return c=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZXh0cmFjdG9yJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJnb29nbGUlMkZ2aXQtYmFzZS1wYXRjaDE2LTIyNCUyMiUyQyUyMHRhc2slM0QlMjJpbWFnZS1mZWF0dXJlLWV4dHJhY3Rpb24lMjIpJTBBcmVzdWx0JTIwJTNEJTIwZXh0cmFjdG9yKCUyMmh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZkYXRhc2V0cyUyRk5hcnNpbCUyRmltYWdlX2R1bW15JTJGcmF3JTJGbWFpbiUyRnBhcnJvdHMucG5nJTIyJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0RUcnVlKSUwQXJlc3VsdC5zaGFwZSUyMCUyMCUyMyUyMFRoaXMlMjBpcyUyMGElMjB0ZW5zb3IlMjBvZiUyMHNoYXBlJTIwJTVCMSUyQyUyMHNlcXVlbmNlX2xlbnRoJTJDJTIwaGlkZGVuX2RpbWVuc2lvbiU1RCUyMHJlcHJlc2VudGluZyUyMHRoZSUyMGlucHV0JTIwaW1hZ2Uu",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;google/vit-base-patch16-224&quot;</span>, task=<span class="hljs-string">&quot;image-feature-extraction&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>result = extractor(<span class="hljs-string">&quot;https://huggingface.co/datasets/Narsil/image_dummy/raw/main/parrots.png&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 image.</span>
torch.Size([<span class="hljs-number">1</span>, <span class="hljs-number">197</span>, <span class="hljs-number">768</span>])`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function R2(M){let r,_="Example:",h,c,w;return c=new U({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>}]`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function N2(M){let r,_="Example:",h,c,w;return c=new U({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>}]`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-11lpom8"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function V2(M){let r,_="Examples:",h,c,w;return c=new U({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(...)`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-kvfsh7"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function S2(M){let r,_="Examples:",h,c,w;return c=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBcGlwZSUyMCUzRCUyMHBpcGVsaW5lKCUyMmdvb2dsZS1iZXJ0JTJGYmVydC1iYXNlLWNhc2VkJTIyKSUwQSUwQSUyMyUyMFB1c2glMjB0aGUlMjBwaXBlJTIwdG8lMjB5b3VyJTIwbmFtZXNwYWNlJTIwd2l0aCUyMHRoZSUyMG5hbWUlMjAlMjJteS1maW5ldHVuZWQtYmVydCUyMi4lMEFwaXBlLnB1c2hfdG9faHViKCUyMm15LWZpbmV0dW5lZC1iZXJ0JTIyKSUwQSUwQSUyMyUyMFB1c2glMjB0aGUlMjBwaXBlJTIwdG8lMjBhbiUyMG9yZ2FuaXphdGlvbiUyMHdpdGglMjB0aGUlMjBuYW1lJTIwJTIybXktZmluZXR1bmVkLWJlcnQlMjIuJTBBcGlwZS5wdXNoX3RvX2h1YiglMjJodWdnaW5nZmFjZSUyRm15LWZpbmV0dW5lZC1iZXJ0JTIyKQ==",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

pipe = pipeline(<span class="hljs-string">&quot;google-bert/bert-base-cased&quot;</span>)

<span class="hljs-comment"># Push the pipe to your namespace with the name &quot;my-finetuned-bert&quot;.</span>
pipe.push_to_hub(<span class="hljs-string">&quot;my-finetuned-bert&quot;</span>)

<span class="hljs-comment"># Push the pipe to an organization with the name &quot;my-finetuned-bert&quot;.</span>
pipe.push_to_hub(<span class="hljs-string">&quot;huggingface/my-finetuned-bert&quot;</span>)`,wrap:!1}}),{c(){r=i("p"),r.textContent=_,h=s(),g(c.$$.fragment)},l(t){r=l(t,"P",{"data-svelte-h":!0}),m(r)!=="svelte-kvfsh7"&&(r.textContent=_),h=o(t),f(c.$$.fragment,t)},m(t,x){d(t,r,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(a(r),a(h)),y(c,t)}}}function A2(M){let r,_,h,c,w,t,x,_c=`パイプラインは、推論にモデルを使うための簡単で優れた方法である。パイプラインは、複雑なコードのほとんどを抽象化したオブジェクトです。
パイプラインは、ライブラリから複雑なコードのほとんどを抽象化したオブジェクトで、名前付き固有表現認識、マスク言語モデリング、感情分析、特徴抽出、質問応答などのタスクに特化したシンプルなAPIを提供します。
Recognition、Masked Language Modeling、Sentiment Analysis、Feature Extraction、Question Answeringなどのタスクに特化したシンプルなAPIを提供します。以下を参照のこと。
<a href="../task_summary">タスク概要</a>を参照してください。`,jc,$n,sT="パイプラインの抽象化には2つのカテゴリーがある：",kc,Jn,oT='<li><a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> は、他のすべてのパイプラインをカプセル化する最も強力なオブジェクトです。</li> <li>タスク固有のパイプラインは、<a href="#audio">オーディオ</a>、<a href="#computer-vision">コンピューター ビジョン</a>、<a href="#natural-language-processing">自然言語処理</a>、および <a href="#multimodal">マルチモーダル</a> タスクで使用できます。</li>',Uc,Pn,$c,Cn,aT=`<em>パイプライン</em> 抽象化は、他のすべての利用可能なパイプラインのラッパーです。他のものと同様にインスタンス化されます
パイプラインですが、さらなる生活の質を提供できます。`,Jc,In,rT="1 つの項目に対する単純な呼び出し:",Pc,qn,Cc,Gn,iT=`<a href="https://huggingface.co" rel="nofollow">ハブ</a> の特定のモデルを使用したい場合は、モデルがオンになっている場合はタスクを無視できます。
ハブはすでにそれを定義しています。`,Ic,Zn,qc,zn,lT="多くの項目に対してパイプラインを呼び出すには、<em>list</em> を使用してパイプラインを呼び出すことができます。",Gc,Fn,Zc,Bn,cT=`完全なデータセットを反復するには、<code>Dataset</code>を直接使用することをお勧めします。これは、割り当てる必要がないことを意味します
データセット全体を一度に処理することも、自分でバッチ処理を行う必要もありません。これはカスタムループと同じくらい速く動作するはずです。
GPU。それが問題でない場合は、ためらわずに問題を作成してください。`,zc,Dn,Fc,Rn,pT="使いやすくするために、ジェネレーターを使用することもできます。",Bc,Nn,Dc,ve,Vn,sm,er,dT='Utility factory method to build a <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.Pipeline">Pipeline</a>.',om,tr,mT="Pipelines are made of:",am,nr,hT='<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>',rm,Xe,Rc,Sn,Nc,An,gT=`すべてのパイプラインでバッチ処理を使用できます。これはうまくいきます
パイプラインがストリーミング機能を使用するときは常に (つまり、リスト、<code>dataset</code>、または <code>generator</code>を渡すとき)。`,Vc,Wn,Sc,Qe,Ac,Ln,Wc,Hn,Lc,On,fT="最も速度が低下する例:",Hc,Yn,Oc,En,uT=`これは、他の文に比べて非常に長い文が時折あります。その場合、<strong>全体</strong>のバッチは 400 である必要があります。
トークンが長いため、バッチ全体が [64, 4] ではなく [64, 400] になり、速度が大幅に低下します。さらに悪いことに、
バッチが大きくなると、プログラムは単純にクラッシュします。`,Yc,Xn,Ec,Qn,TT=`この問題に対する適切な (一般的な) 解決策はなく、使用できる距離はユースケースによって異なる場合があります。のルール
親指：`,Xc,Kn,bT="ユーザーにとっての経験則は次のとおりです。",Qc,es,yT=`<li><p><strong>ハードウェアを使用して、負荷に対するパフォーマンスを測定します。測って、測って、測り続ける。実数というのは、
進むべき唯一の方法。</strong></p></li> <li><p>レイテンシに制約がある場合 (実際の製品が推論を実行している場合)、バッチ処理を行わないでください。</p></li> <li><p>CPU を使用している場合は、バッチ処理を行わないでください。</p></li> <li><p>GPU でスループットを使用している場合 (大量の静的データでモデルを実行したい場合)、次のようにします。</p> <ul><li>sequence_length (「自然な」データ) のサイズについてまったくわからない場合は、デフォルトではバッチ処理や測定を行わず、
暫定的に追加してみます。失敗した場合に回復するために OOM チェックを追加します (失敗した場合は、ある時点で回復します)。
sequence_length を制御します。)</li> <li>sequence_length が非常に規則的である場合、バッチ処理は非常に興味深いものとなる可能性が高く、測定してプッシュしてください。
OOM が発生するまで続けます。</li> <li>GPU が大きいほど、バッチ処理がより興味深いものになる可能性が高くなります。</li></ul></li> <li><p>バッチ処理を有効にしたらすぐに、OOM を適切に処理できることを確認してください。</p></li>`,Kc,ts,ep,ns,wT=`<code>zero-shot-classification</code> と <code>question-answering</code> は、単一の入力で結果が得られる可能性があるという意味で、少し特殊です。
モデルの複数の前方パス。通常の状況では、これにより <code>batch_size</code> 引数に関する問題が発生します。`,tp,ss,xT=`この問題を回避するために、これらのパイプラインはどちらも少し特殊になっており、代わりに <code>ChunkPipeline</code> になっています。
通常の <code>Pipeline</code>。要するに：`,np,os,sp,as,_T="今は次のようになります:",op,rs,ap,is,MT=`パイプラインは以下で使用されるため、これはコードに対して非常に透過的である必要があります。
同じ方法。`,rp,ls,vT=`パイプラインはバッチを自動的に処理できるため、これは簡略化されたビューです。気にする必要はないという意味です
入力が実際にトリガーする前方パスの数については、<code>batch_size</code> を最適化できます。
入力とは独立して。前のセクションの注意事項が引き続き適用されます。`,ip,cs,lp,ps,jT="特定のパイプラインをオーバーライドする場合。",cp,ds,kT=`目の前のタスクに関する問題を作成することを躊躇しないでください。パイプラインの目標は、使いやすく、ほとんどのユーザーをサポートすることです。
したがって、<code>transformers</code>があなたのユースケースをサポートする可能性があります。`,pp,ms,UT="単純に試してみたい場合は、次のことができます。",dp,hs,$T="<li>選択したパイプラインをサブクラス化します</li>",mp,gs,hp,fs,JT="これにより、必要なカスタム コードをすべて実行できるようになります。",gp,us,fp,Ts,PT='<a href="../add_new_pipeline">Implementing a new pipeline</a>',up,bs,Tp,ys,CT="オーディオ タスクに使用できるパイプラインには次のものがあります。",bp,ws,yp,W,xs,im,sr,IT=`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.`,lm,Ke,cm,or,qT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',pm,ar,GT=`This pipeline can currently be loaded from <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;audio-classification&quot;</code>.`,dm,rr,ZT=`See the list of available models on
<a href="https://huggingface.co/models?filter=audio-classification" rel="nofollow">huggingface.co/models</a>.`,mm,et,_s,hm,ir,zT=`Classify the sequence(s) given as inputs. See the <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.AutomaticSpeechRecognitionPipeline">AutomaticSpeechRecognitionPipeline</a> documentation for more
information.`,wp,Ms,xp,le,vs,gm,lr,FT="Pipeline that aims at extracting spoken text contained within some audio.",fm,cr,BT=`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`,um,tt,Tm,pr,DT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',bm,nt,js,ym,dr,RT=`Transcribe the audio sequence(s) given as inputs to text. See the <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.AutomaticSpeechRecognitionPipeline">AutomaticSpeechRecognitionPipeline</a>
documentation for more information.`,_p,ks,Mp,R,Us,wm,mr,NT=`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.`,xm,st,_m,hr,VT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Mm,ot,vm,gr,ST=`This pipeline can currently be loaded from <a href="/docs/transformers/v4.40.2/ja/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>.`,jm,fr,AT='See the list of available models on <a href="https://huggingface.co/models?filter=text-to-speech" rel="nofollow">huggingface.co/models</a>.',km,at,$s,Um,ur,WT='Generates speech/audio from the inputs. See the <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.TextToAudioPipeline">TextToAudioPipeline</a> documentation for more information.',vp,Js,jp,ce,Ps,$m,Tr,LT=`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>.`,Jm,rt,Pm,it,Cm,br,HT=`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.40.2/ja/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>.`,Im,lt,Cs,qm,yr,OT="Assign labels to the audio(s) passed as inputs.",kp,Is,Up,qs,YT="コンピューター ビジョン タスクに使用できるパイプラインには次のものがあります。",$p,Gs,Jp,L,Zs,Gm,wr,ET="Depth estimation pipeline using any <code>AutoModelForDepthEstimation</code>. This pipeline predicts the depth of an image.",Zm,ct,zm,xr,XT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Fm,_r,QT=`This depth estimation pipeline can currently be loaded from <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;depth-estimation&quot;</code>.`,Bm,Mr,KT='See the list of available models on <a href="https://huggingface.co/models?filter=depth-estimation" rel="nofollow">huggingface.co/models</a>.',Dm,pt,zs,Rm,vr,eb="Predict the depth(s) of the image(s) passed as inputs.",Pp,Fs,Cp,H,Bs,Nm,jr,tb=`Image classification pipeline using any <code>AutoModelForImageClassification</code>. This pipeline predicts the class of an
image.`,Vm,dt,Sm,kr,nb='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Am,Ur,sb=`This image classification pipeline can currently be loaded from <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;image-classification&quot;</code>.`,Wm,$r,ob=`See the list of available models on
<a href="https://huggingface.co/models?filter=image-classification" rel="nofollow">huggingface.co/models</a>.`,Lm,mt,Ds,Hm,Jr,ab="Assign labels to the image(s) passed as inputs.",Ip,Rs,qp,pe,Ns,Om,Pr,rb=`Image segmentation pipeline using any <code>AutoModelForXXXSegmentation</code>. This pipeline predicts masks of objects and
their classes.`,Ym,ht,Em,Cr,ib=`This image segmentation pipeline can currently be loaded from <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;image-segmentation&quot;</code>.`,Xm,Ir,lb=`See the list of available models on
<a href="https://huggingface.co/models?filter=image-segmentation" rel="nofollow">huggingface.co/models</a>.`,Qm,gt,Vs,Km,qr,cb="Perform segmentation (detect masks & classes) in the image(s) passed as inputs.",Gp,Ss,Zp,de,As,eh,Gr,pb=`Image to Image pipeline using any <code>AutoModelForImageToImage</code>. This pipeline generates an image based on a previous
image input.`,th,ft,nh,Zr,db=`This image to image pipeline can currently be loaded from <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;image-to-image&quot;</code>.`,sh,zr,mb='See the list of available models on <a href="https://huggingface.co/models?filter=image-to-image" rel="nofollow">huggingface.co/models</a>.',oh,ut,Ws,ah,Fr,hb="Transform the image(s) passed as inputs.",zp,Ls,Fp,O,Hs,rh,Br,gb=`Object detection pipeline using any <code>AutoModelForObjectDetection</code>. This pipeline predicts bounding boxes of objects
and their classes.`,ih,Tt,lh,Dr,fb='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',ch,Rr,ub=`This object detection pipeline can currently be loaded from <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;object-detection&quot;</code>.`,ph,Nr,Tb='See the list of available models on <a href="https://huggingface.co/models?filter=object-detection" rel="nofollow">huggingface.co/models</a>.',dh,bt,Os,mh,Vr,bb="Detect objects (bounding boxes & classes) in the image(s) passed as inputs.",Bp,Ys,Dp,je,Es,hh,Sr,yb=`Video classification pipeline using any <code>AutoModelForVideoClassification</code>. This pipeline predicts the class of a
video.`,gh,Ar,wb=`This video classification pipeline can currently be loaded from <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;video-classification&quot;</code>.`,fh,Wr,xb=`See the list of available models on
<a href="https://huggingface.co/models?filter=video-classification" rel="nofollow">huggingface.co/models</a>.`,uh,yt,Xs,Th,Lr,_b="Assign labels to the video(s) passed as inputs.",Rp,Qs,Np,Y,Ks,bh,Hr,Mb=`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>.`,yh,wt,wh,Or,vb='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',xh,Yr,jb=`This image classification pipeline can currently be loaded from <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;zero-shot-image-classification&quot;</code>.`,_h,Er,kb=`See the list of available models on
<a href="https://huggingface.co/models?filter=zero-shot-image-classification" rel="nofollow">huggingface.co/models</a>.`,Mh,xt,eo,vh,Xr,Ub="Assign labels to the image(s) passed as inputs.",Vp,to,Sp,E,no,jh,Qr,$b=`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>.`,kh,_t,Uh,Kr,Jb='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',$h,ei,Pb=`This object detection pipeline can currently be loaded from <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;zero-shot-object-detection&quot;</code>.`,Jh,ti,Cb=`See the list of available models on
<a href="https://huggingface.co/models?filter=zero-shot-object-detection" rel="nofollow">huggingface.co/models</a>.`,Ph,Mt,so,Ch,ni,Ib="Detect objects (bounding boxes & classes) in the image(s) passed as inputs.",Ap,oo,Wp,ao,qb="自然言語処理タスクに使用できるパイプラインには次のものがあります。",Lp,ro,Hp,me,io,Ih,si,Gb=`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.40.2/ja/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.`,qh,vt,Gh,jt,lo,Zh,oi,Zb=`Add a user input to the conversation for the next round. This is a legacy method that assumes that inputs must
alternate user/assistant/user/assistant, and so will not add multiple user messages in succession. We recommend
just using <code>add_message</code> with role “user” instead.`,zh,kt,co,Fh,ai,zb="This is a legacy method. We recommend just using <code>add_message</code> with an appropriate role instead.",Bh,Ut,po,Dh,ri,Fb=`This is a legacy method, as the Conversation no longer distinguishes between processed and unprocessed user
input. We set a counter here to keep behaviour mostly backward-compatible, but in general you should just read
the messages directly when writing new code.`,Op,X,mo,Rh,ii,Bb="Multi-turn conversational pipeline.",Nh,$t,Vh,li,Db='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Sh,ci,Rb=`This conversational pipeline can currently be loaded from <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;conversational&quot;</code>.`,Ah,pi,Nb=`This pipeline can be used with any model that has a <a href="https://huggingface.co/docs/transformers/chat_templating" rel="nofollow">chat
template</a> set.`,Wh,Jt,ho,Lh,di,Vb="Generate responses for the conversation(s) given as inputs.",Yp,go,Ep,Z,fo,Hh,mi,Sb=`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.`,Oh,Pt,Yh,hi,Ab='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Eh,gi,Wb=`This mask filling pipeline can currently be loaded from <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;fill-mask&quot;</code>.`,Xh,fi,Lb=`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>.`,Qh,Ct,Kh,It,eg,qt,uo,tg,ui,Hb="Fill the masked token in the text(s) given as inputs.",Xp,To,Qp,G,bo,ng,Ti,Ob=`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.`,sg,Gt,og,bi,Yb='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',ag,yi,Eb=`This token recognition pipeline can currently be loaded from <a href="/docs/transformers/v4.40.2/ja/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).`,rg,wi,Xb=`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>.`,ig,Ae,yo,lg,xi,Qb="Override tokens from a given word that disagree to force agreement on word boundaries.",cg,_i,Kb=`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`,pg,Zt,wo,dg,Mi,ey="Fuse various numpy arrays into dicts with all the information needed for aggregation",mg,zt,xo,hg,vi,ty="Find and group together the adjacent tokens with the same entity predicted.",gg,Ft,_o,fg,ji,ny="Group together the adjacent tokens with the same entity predicted.",Kp,Mo,sy='詳細については、<a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.TokenClassificationPipeline">TokenClassificationPipeline</a> を参照してください。',ed,vo,td,z,jo,ug,ki,oy=`Question Answering pipeline using any <code>ModelForQuestionAnswering</code>. See the <a href="../task_summary#question-answering">question answering
examples</a> for more information.`,Tg,Bt,bg,Ui,ay='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',yg,$i,ry=`This question answering pipeline can currently be loaded from <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;question-answering&quot;</code>.`,wg,Ji,iy=`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>.`,xg,Dt,ko,_g,Pi,ly="Answer the question(s) given as inputs by using the context(s).",Mg,We,Uo,vg,Ci,cy=`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>.`,jg,Ii,py="We currently support extractive question answering.",kg,Rt,$o,Ug,qi,dy="When decoding from token probabilities, this method maps token indexes to actual word in the initial context.",nd,Jo,sd,he,Po,$g,Gi,my="Summarize news articles and other documents.",Jg,Zi,hy=`This summarizing pipeline can currently be loaded from <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;summarization&quot;</code>.`,Pg,zi,gy=`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>google-t5/t5-small</em>’, ’<em>google-t5/t5-base</em>’, ’<em>google-t5/t5-large</em>’, ’<em>google-t5/t5-3b</em>’, ’<em>google-t5/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>`,Cg,Nt,Ig,Vt,Co,qg,Fi,fy="Summarize the text(s) given as inputs.",od,Io,ad,Q,qo,Gg,Bi,uy=`Table Question Answering pipeline using a <code>ModelForTableQuestionAnswering</code>. This pipeline is only available in
PyTorch.`,Zg,St,zg,Di,Ty='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Fg,Ri,by=`This tabular question answering pipeline can currently be loaded from <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task
identifier: <code>&quot;table-question-answering&quot;</code>.`,Bg,Ni,yy=`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>.`,Dg,re,Go,Rg,Vi,wy="Answers queries according to a table. The pipeline accepts several types of inputs which are detailed below:",Ng,Si,xy="<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>",Vg,Ai,_y="The <code>table</code> argument should be a dict or a DataFrame built from that dict, containing the whole table:",Sg,At,Ag,Wi,My="This dictionary can be passed in as such, or can be converted to a pandas DataFrame:",Wg,Wt,rd,Zo,id,N,zo,Lg,Li,vy=`Text classification pipeline using any <code>ModelForSequenceClassification</code>. See the <a href="../task_summary#sequence-classification">sequence classification
examples</a> for more information.`,Hg,Lt,Og,Hi,jy='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Yg,Oi,ky=`This text classification pipeline can currently be loaded from <a href="/docs/transformers/v4.40.2/ja/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).`,Eg,Yi,Uy=`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.`,Xg,Ei,$y=`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>.`,Qg,Ht,Fo,Kg,Xi,Jy="Classify the text(s) given as inputs.",ld,Bo,cd,K,Do,ef,Qi,Py=`Language generation pipeline using any <code>ModelWithLMHead</code>. This pipeline predicts the words that will follow a
specified text prompt. It can also accept one or more chats. Each chat takes the form of a list of dicts,
where each dict contains “role” and “content” keys.`,tf,Ot,nf,Ki,Cy=`Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>. You can pass text
generation parameters to this pipeline to control stopping criteria, decoding strategy, and more. Learn more about
text generation parameters in <a href="../generation_strategies">Text generation strategies</a> and <a href="text_generation">Text
generation</a>.`,sf,el,Iy=`This language generation pipeline can currently be loaded from <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;text-generation&quot;</code>.`,of,tl,qy=`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. openai-community/gpt2). See the list of available models
on <a href="https://huggingface.co/models?filter=text-generation" rel="nofollow">huggingface.co/models</a>.`,af,Yt,Ro,rf,nl,Gy="Complete the prompt(s) given as inputs.",pd,No,dd,F,Vo,lf,sl,Zy="Pipeline for text to text generation using seq2seq models.",cf,Et,pf,ol,zy=`Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>. You can pass text
generation parameters to this pipeline to control stopping criteria, decoding strategy, and more. Learn more about
text generation parameters in <a href="../generation_strategies">Text generation strategies</a> and <a href="text_generation">Text
generation</a>.`,df,al,Fy=`This Text2TextGenerationPipeline pipeline can currently be loaded from <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task
identifier: <code>&quot;text2text-generation&quot;</code>.`,mf,rl,By=`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>`,hf,Xt,gf,Qt,So,ff,il,Dy="Generate the output text(s) using text(s) given as inputs.",uf,Kt,Ao,Tf,ll,Ry="Checks whether there might be something wrong with given input with regard to the model.",md,Wo,hd,q,Lo,bf,cl,Ny=`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.`,yf,en,wf,pl,Vy='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',xf,dl,Sy=`This token recognition pipeline can currently be loaded from <a href="/docs/transformers/v4.40.2/ja/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).`,_f,ml,Ay=`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>.`,Mf,tn,Ho,vf,hl,Wy="Classify each token of the text(s) given as inputs.",jf,Le,Oo,kf,gl,Ly="Override tokens from a given word that disagree to force agreement on word boundaries.",Uf,fl,Hy=`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`,$f,nn,Yo,Jf,ul,Oy="Fuse various numpy arrays into dicts with all the information needed for aggregation",Pf,sn,Eo,Cf,Tl,Yy="Find and group together the adjacent tokens with the same entity predicted.",If,on,Xo,qf,bl,Ey="Group together the adjacent tokens with the same entity predicted.",gd,Qo,fd,ge,Ko,Gf,yl,Xy="Translates from one language to another.",Zf,wl,Qy=`This translation pipeline can currently be loaded from <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;translation_xx_to_yy&quot;</code>.`,zf,xl,Ky=`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>`,Ff,an,Bf,rn,ea,Df,_l,ew="Translate the text(s) given as inputs.",ud,ta,Td,V,na,Rf,Ml,tw=`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.`,Nf,vl,nw=`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>.`,Vf,ln,Sf,jl,sw='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Af,kl,ow=`This NLI pipeline can currently be loaded from <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;zero-shot-classification&quot;</code>.`,Wf,Ul,aw=`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>.`,Lf,cn,sa,Hf,$l,rw=`Classify the sequence(s) given as inputs. See the <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.ZeroShotClassificationPipeline">ZeroShotClassificationPipeline</a> documentation for more
information.`,bd,oa,yd,aa,iw="マルチモーダル タスクに使用できるパイプラインには次のものがあります。",wd,ra,xd,ee,ia,Of,Jl,lw=`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.`,Yf,pn,Ef,Pl,cw='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Xf,Cl,pw=`This document question answering pipeline can currently be loaded from <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task
identifier: <code>&quot;document-question-answering&quot;</code>.`,Qf,Il,dw=`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>.`,Kf,Ne,la,eu,ql,mw=`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.`,tu,Gl,hw="You can invoke the pipeline several ways:",nu,Zl,gw="<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>",_d,ca,Md,te,pa,su,zl,fw=`Feature extraction pipeline uses no model head. This pipeline extracts the hidden states from the base
transformer, which can be used as features in downstream tasks.`,ou,dn,au,Fl,uw='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',ru,Bl,Tw=`This feature extraction pipeline can currently be loaded from <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the task identifier:
<code>&quot;feature-extraction&quot;</code>.`,iu,Dl,bw=`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>.`,lu,mn,da,cu,Rl,yw="Extract the features of the input(s).",vd,ma,jd,ne,ha,pu,Nl,ww=`Image feature extraction pipeline uses no model head. This pipeline extracts the hidden states from the base
transformer, which can be used as features in downstream tasks.`,du,hn,mu,Vl,xw='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',hu,Sl,_w=`This image feature extraction pipeline can currently be loaded from <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the task identifier:
<code>&quot;image-feature-extraction&quot;</code>.`,gu,Al,Mw=`All vision 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>.`,fu,gn,ga,uu,Wl,vw="Extract the features of the input(s).",kd,fa,Ud,se,ua,Tu,Ll,jw="Image To Text pipeline using a <code>AutoModelForVision2Seq</code>. This pipeline predicts a caption for a given image.",bu,fn,yu,Hl,kw='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',wu,Ol,Uw=`This image to text pipeline can currently be loaded from pipeline() using the following task identifier:
“image-to-text”.`,xu,Yl,$w=`See the list of available models on
<a href="https://huggingface.co/models?pipeline_tag=image-to-text" rel="nofollow">huggingface.co/models</a>.`,_u,un,Ta,Mu,El,Jw="Assign labels to the image(s) passed as inputs.",$d,ba,Jd,oe,ya,vu,Xl,Pw=`Visual Question Answering pipeline using a <code>AutoModelForVisualQuestionAnswering</code>. This pipeline is currently only
available in PyTorch.`,ju,Tn,ku,Ql,Cw='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Uu,Kl,Iw=`This visual question answering pipeline can currently be loaded from <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task
identifiers: <code>&quot;visual-question-answering&quot;, &quot;vqa&quot;</code>.`,$u,ec,qw=`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>.`,Ju,He,wa,Pu,tc,Gw=`Answers open-ended questions about images. The pipeline accepts several types of inputs which are detailed
below:`,Cu,nc,Zw="<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>",Pd,xa,Cd,C,_a,Iu,sc,zw=`The Pipeline class is the class from which all pipelines inherit. Refer to this class for methods shared across
different pipelines.`,qu,oc,Fw=`Base class implementing pipelined operations. Pipeline workflow is defined as a sequence of the following
operations:`,Gu,ac,Bw="Input -> Tokenization -> Model Inference -> Post-Processing (task dependent) -> Output",Zu,rc,Dw="Pipeline supports running on CPU or GPU through the device argument (see below).",zu,ic,Rw=`Some pipeline, like for instance <a href="/docs/transformers/v4.40.2/ja/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.`,Fu,bn,Ma,Bu,lc,Nw="Check if the model class is in supported by the pipeline.",Du,Oe,va,Ru,cc,Vw="Context Manager allowing tensor allocation on the user-specified device in framework agnostic way.",Nu,yn,Vu,wn,ja,Su,pc,Sw="Ensure PyTorch tensors are on the specified device.",Au,xn,ka,Wu,dc,Aw=`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).`,Lu,_n,Ua,Hu,mc,Ww="Scikit / Keras interface to transformers’ pipelines. This method will forward to <strong>call</strong>().",Ou,Mn,$a,Yu,hc,Lw=`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.`,Eu,Ye,Ja,Xu,gc,Hw="Upload the pipeline file to the 🤗 Model Hub.",Qu,vn,Ku,jn,Pa,eT,fc,Ow="Save the pipeline’s model and tokenizer.",tT,kn,Ca,nT,uc,Yw="Scikit / Keras interface to transformers’ pipelines. This method will forward to <strong>call</strong>().",Id,Ia,qd,Mc,Gd;return w=new $({props:{title:"Pipelines",local:"pipelines",headingTag:"h1"}}),Pn=new $({props:{title:"The pipeline abstraction",local:"transformers.pipeline",headingTag:"h2"}}),qn=new U({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>}]`,wrap:!1}}),Zn=new U({props:{code:"cGlwZSUyMCUzRCUyMHBpcGVsaW5lKG1vZGVsJTNEJTIyRmFjZWJvb2tBSSUyRnJvYmVydGEtbGFyZ2UtbW5saSUyMiklMEFwaXBlKCUyMlRoaXMlMjByZXN0YXVyYW50JTIwaXMlMjBhd2Vzb21lJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = pipeline(model=<span class="hljs-string">&quot;FacebookAI/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>}]`,wrap:!1}}),Fn=new U({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>}]`,wrap:!1}}),Dn=new U({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>`,wrap:!1}}),Nn=new U({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>`,wrap:!1}}),Vn=new k({props:{name:"transformers.pipeline",anchor:"transformers.pipeline",parameters:[{name:"task",val:": str = None"},{name:"model",val:": Union = None"},{name:"config",val:": Union = None"},{name:"tokenizer",val:": Union = None"},{name:"feature_extractor",val:": Union = None"},{name:"image_processor",val:": Union = None"},{name:"framework",val:": Optional = None"},{name:"revision",val:": Optional = None"},{name:"use_fast",val:": bool = True"},{name:"token",val:": Union = None"},{name:"device",val:": Union = None"},{name:"device_map",val:" = None"},{name:"torch_dtype",val:" = None"},{name:"trust_remote_code",val:": Optional = None"},{name:"model_kwargs",val:": Dict = None"},{name:"pipeline_class",val:": Optional = 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.40.2/ja/main_classes/pipelines#transformers.AudioClassificationPipeline">AudioClassificationPipeline</a>.</li>
<li><code>&quot;automatic-speech-recognition&quot;</code>: will return a <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.AutomaticSpeechRecognitionPipeline">AutomaticSpeechRecognitionPipeline</a>.</li>
<li><code>&quot;conversational&quot;</code>: will return a <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.ConversationalPipeline">ConversationalPipeline</a>.</li>
<li><code>&quot;depth-estimation&quot;</code>: will return a <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.DepthEstimationPipeline">DepthEstimationPipeline</a>.</li>
<li><code>&quot;document-question-answering&quot;</code>: will return a <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.DocumentQuestionAnsweringPipeline">DocumentQuestionAnsweringPipeline</a>.</li>
<li><code>&quot;feature-extraction&quot;</code>: will return a <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.FeatureExtractionPipeline">FeatureExtractionPipeline</a>.</li>
<li><code>&quot;fill-mask&quot;</code>: will return a <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.FillMaskPipeline">FillMaskPipeline</a>:.</li>
<li><code>&quot;image-classification&quot;</code>: will return a <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.ImageClassificationPipeline">ImageClassificationPipeline</a>.</li>
<li><code>&quot;image-feature-extraction&quot;</code>: will return an <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.ImageFeatureExtractionPipeline">ImageFeatureExtractionPipeline</a>.</li>
<li><code>&quot;image-segmentation&quot;</code>: will return a <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.ImageSegmentationPipeline">ImageSegmentationPipeline</a>.</li>
<li><code>&quot;image-to-image&quot;</code>: will return a <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.ImageToImagePipeline">ImageToImagePipeline</a>.</li>
<li><code>&quot;image-to-text&quot;</code>: will return a <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/pipelines#transformers.ObjectDetectionPipeline">ObjectDetectionPipeline</a>.</li>
<li><code>&quot;question-answering&quot;</code>: will return a <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.QuestionAnsweringPipeline">QuestionAnsweringPipeline</a>.</li>
<li><code>&quot;summarization&quot;</code>: will return a <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.SummarizationPipeline">SummarizationPipeline</a>.</li>
<li><code>&quot;table-question-answering&quot;</code>: will return a <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.TableQuestionAnsweringPipeline">TableQuestionAnsweringPipeline</a>.</li>
<li><code>&quot;text2text-generation&quot;</code>: will return a <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/pipelines#transformers.TextClassificationPipeline">TextClassificationPipeline</a>.</li>
<li><code>&quot;text-generation&quot;</code>: will return a <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/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.40.2/ja/main_classes/pipelines#transformers.TokenClassificationPipeline">TokenClassificationPipeline</a>.</li>
<li><code>&quot;translation&quot;</code>: will return a <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/pipelines#transformers.TranslationPipeline">TranslationPipeline</a>.</li>
<li><code>&quot;video-classification&quot;</code>: will return a <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.VideoClassificationPipeline">VideoClassificationPipeline</a>.</li>
<li><code>&quot;visual-question-answering&quot;</code>: will return a <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.VisualQuestionAnsweringPipeline">VisualQuestionAnsweringPipeline</a>.</li>
<li><code>&quot;zero-shot-classification&quot;</code>: will return a <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/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.40.2/ja/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.40.2/ja/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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> (for PyTorch) or
<a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/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.40.2/ja/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.40.2/ja/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.40.2/ja/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.40.2/ja/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.40.2/src/transformers/pipelines/__init__.py#L562",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A suitable pipeline for the task.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.Pipeline"
>Pipeline</a></p>
`}}),Xe=new P({props:{anchor:"transformers.pipeline.example",$$slots:{default:[n2]},$$scope:{ctx:M}}}),Sn=new $({props:{title:"Pipeline batching",local:"pipeline-batching",headingTag:"h2"}}),Wn=new U({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>`,wrap:!1}}),Qe=new vc({props:{warning:!0,$$slots:{default:[s2]},$$scope:{ctx:M}}}),Ln=new U({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>`,wrap:!1}}),Hn=new U({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)`,wrap:!1}}),Yn=new U({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`,wrap:!1}}),Xn=new U({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)`,wrap:!1}}),ts=new $({props:{title:"Pipeline chunk batching",local:"pipeline-chunk-batching",headingTag:"h2"}}),os=new U({props:{code:"cHJlcHJvY2Vzc2VkJTIwJTNEJTIwcGlwZS5wcmVwcm9jZXNzKGlucHV0cyklMEFtb2RlbF9vdXRwdXRzJTIwJTNEJTIwcGlwZS5mb3J3YXJkKHByZXByb2Nlc3NlZCklMEFvdXRwdXRzJTIwJTNEJTIwcGlwZS5wb3N0cHJvY2Vzcyhtb2RlbF9vdXRwdXRzKQ==",highlighted:`preprocessed = pipe.preprocess(inputs)
model_outputs = pipe.forward(preprocessed)
outputs = pipe.postprocess(model_outputs)`,wrap:!1}}),rs=new U({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)`,wrap:!1}}),cs=new $({props:{title:"Pipeline custom code",local:"pipeline-custom-code",headingTag:"h2"}}),gs=new U({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)`,wrap:!1}}),us=new $({props:{title:"Implementing a pipeline",local:"implementing-a-pipeline",headingTag:"h2"}}),bs=new $({props:{title:"Audio",local:"audio",headingTag:"h2"}}),ws=new $({props:{title:"AudioClassificationPipeline",local:"transformers.AudioClassificationPipeline",headingTag:"h3"}}),xs=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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.AudioClassificationPipeline.feature_extractor",description:`<strong>feature_extractor</strong> (<a href="/docs/transformers/v4.40.2/ja/main_classes/feature_extractor#transformers.SequenceFeatureExtractor">SequenceFeatureExtractor</a>) &#x2014;
The feature extractor that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.40.2/ja/main_classes/feature_extractor#transformers.SequenceFeatureExtractor">SequenceFeatureExtractor</a>.`,name:"feature_extractor"},{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.40.2/ja/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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/audio_classification.py#L66"}}),Ke=new P({props:{anchor:"transformers.AudioClassificationPipeline.example",$$slots:{default:[o2]},$$scope:{ctx:M}}}),_s=new k({props:{name:"__call__",anchor:"transformers.AudioClassificationPipeline.__call__",parameters:[{name:"inputs",val:": Union"},{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.40.2/src/transformers/pipelines/audio_classification.py#L103",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<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:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of <code>dict</code> with the following keys</p>
`}}),Ms=new $({props:{title:"AutomaticSpeechRecognitionPipeline",local:"transformers.AutomaticSpeechRecognitionPipeline",headingTag:"h3"}}),vs=new k({props:{name:"class transformers.AutomaticSpeechRecognitionPipeline",anchor:"transformers.AutomaticSpeechRecognitionPipeline",parameters:[{name:"model",val:": PreTrainedModel"},{name:"feature_extractor",val:": Union = None"},{name:"tokenizer",val:": Optional = None"},{name:"decoder",val:": Union = None"},{name:"device",val:": Union = None"},{name:"torch_dtype",val:": Union = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.AutomaticSpeechRecognitionPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.feature_extractor",description:`<strong>feature_extractor</strong> (<a href="/docs/transformers/v4.40.2/ja/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.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{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 <code>Wav2Vec2ProcessorWithLM</code> for more information.`,name:"decoder"},{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.torch_dtype",description:`<strong>torch_dtype</strong> (Union[<code>int</code>, <code>torch.dtype</code>], <em>optional</em>) &#x2014;
The data-type (dtype) of the computation. Setting this to <code>None</code> will use float32 precision. Set to
<code>torch.float16</code> or <code>torch.bfloat16</code> to use half-precision in the respective dtypes.`,name:"torch_dtype"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/automatic_speech_recognition.py#L127"}}),tt=new P({props:{anchor:"transformers.AutomaticSpeechRecognitionPipeline.example",$$slots:{default:[a2]},$$scope:{ctx:M}}}),js=new k({props:{name:"__call__",anchor:"transformers.AutomaticSpeechRecognitionPipeline.__call__",parameters:[{name:"inputs",val:": Union"},{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 either the filename of a local audio file, or a public URL address to download 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.40.2/src/transformers/pipelines/automatic_speech_recognition.py#L222",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<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:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>Dict</code></p>
`}}),ks=new $({props:{title:"TextToAudioPipeline",local:"transformers.TextToAudioPipeline",headingTag:"h3"}}),Us=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.40.2/src/transformers/pipelines/text_to_audio.py#L27"}}),st=new P({props:{anchor:"transformers.TextToAudioPipeline.example",$$slots:{default:[r2]},$$scope:{ctx:M}}}),ot=new vc({props:{$$slots:{default:[l2]},$$scope:{ctx:M}}}),$s=new k({props:{name:"__call__",anchor:"transformers.TextToAudioPipeline.__call__",parameters:[{name:"text_inputs",val:": Union"},{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> (<code>dict</code>, <em>optional</em>) &#x2014;
Parameters passed to the model generation/forward method. <code>forward_params</code> are always passed to the
underlying model.`,name:"forward_params"},{anchor:"transformers.TextToAudioPipeline.__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>. <code>generate_kwargs</code> are
only passed to the underlying model if the latter is a generative model.`,name:"generate_kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/text_to_audio.py#L160",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<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:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>dict</code> or a list of <code>dict</code></p>
`}}),Js=new $({props:{title:"ZeroShotAudioClassificationPipeline",local:"transformers.ZeroShotAudioClassificationPipeline",headingTag:"h3"}}),Ps=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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.feature_extractor",description:`<strong>feature_extractor</strong> (<a href="/docs/transformers/v4.40.2/ja/main_classes/feature_extractor#transformers.SequenceFeatureExtractor">SequenceFeatureExtractor</a>) &#x2014;
The feature extractor that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.40.2/ja/main_classes/feature_extractor#transformers.SequenceFeatureExtractor">SequenceFeatureExtractor</a>.`,name:"feature_extractor"},{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.40.2/ja/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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/zero_shot_audio_classification.py#L32"}}),rt=new vc({props:{warning:!0,$$slots:{default:[c2]},$$scope:{ctx:M}}}),it=new P({props:{anchor:"transformers.ZeroShotAudioClassificationPipeline.example",$$slots:{default:[p2]},$$scope:{ctx:M}}}),Cs=new k({props:{name:"__call__",anchor:"transformers.ZeroShotAudioClassificationPipeline.__call__",parameters:[{name:"audios",val:": Union"},{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.40.2/src/transformers/pipelines/zero_shot_audio_classification.py#L70",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<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>
`}}),Is=new $({props:{title:"Computer vision",local:"computer-vision",headingTag:"h2"}}),Gs=new $({props:{title:"DepthEstimationPipeline",local:"transformers.DepthEstimationPipeline",headingTag:"h3"}}),Zs=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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.DepthEstimationPipeline.image_processor",description:`<strong>image_processor</strong> (<code>BaseImageProcessor</code>) &#x2014;
The image processor that will be used by the pipeline to encode data for the model. This object inherits from
<code>BaseImageProcessor</code>.`,name:"image_processor"},{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.40.2/ja/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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/depth_estimation.py#L22"}}),ct=new P({props:{anchor:"transformers.DepthEstimationPipeline.example",$$slots:{default:[d2]},$$scope:{ctx:M}}}),zs=new k({props:{name:"__call__",anchor:"transformers.DepthEstimationPipeline.__call__",parameters:[{name:"images",val:": Union"},{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__.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.40.2/src/transformers/pipelines/depth_estimation.py#L53",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<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>predicted_depth</strong> (<code>torch.Tensor</code>) — The predicted depth by the model as a <code>torch.Tensor</code>.</li>
<li><strong>depth</strong> (<code>PIL.Image</code>) — The predicted depth by the model as a <code>PIL.Image</code>.</li>
</ul>
`}}),Fs=new $({props:{title:"ImageClassificationPipeline",local:"transformers.ImageClassificationPipeline",headingTag:"h3"}}),Bs=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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ImageClassificationPipeline.image_processor",description:`<strong>image_processor</strong> (<code>BaseImageProcessor</code>) &#x2014;
The image processor that will be used by the pipeline to encode data for the model. This object inherits from
<code>BaseImageProcessor</code>.`,name:"image_processor"},{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.40.2/ja/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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"},{anchor:"transformers.ImageClassificationPipeline.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.40.2/src/transformers/pipelines/image_classification.py#L50"}}),dt=new P({props:{anchor:"transformers.ImageClassificationPipeline.example",$$slots:{default:[m2]},$$scope:{ctx:M}}}),Ds=new k({props:{name:"__call__",anchor:"transformers.ImageClassificationPipeline.__call__",parameters:[{name:"images",val:": Union"},{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__.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"},{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.40.2/src/transformers/pipelines/image_classification.py#L110",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<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>
`}}),Rs=new $({props:{title:"ImageSegmentationPipeline",local:"transformers.ImageSegmentationPipeline",headingTag:"h3"}}),Ns=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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ImageSegmentationPipeline.image_processor",description:`<strong>image_processor</strong> (<code>BaseImageProcessor</code>) &#x2014;
The image processor that will be used by the pipeline to encode data for the model. This object inherits from
<code>BaseImageProcessor</code>.`,name:"image_processor"},{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.40.2/ja/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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/image_segmentation.py#L30"}}),ht=new P({props:{anchor:"transformers.ImageSegmentationPipeline.example",$$slots:{default:[h2]},$$scope:{ctx:M}}}),Vs=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.40.2/src/transformers/pipelines/image_segmentation.py#L97",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<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>
`}}),Ss=new $({props:{title:"ImageToImagePipeline",local:"transformers.ImageToImagePipeline",headingTag:"h3"}}),As=new k({props:{name:"class transformers.ImageToImagePipeline",anchor:"transformers.ImageToImagePipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageToImagePipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ImageToImagePipeline.image_processor",description:`<strong>image_processor</strong> (<code>BaseImageProcessor</code>) &#x2014;
The image processor that will be used by the pipeline to encode data for the model. This object inherits from
<code>BaseImageProcessor</code>.`,name:"image_processor"},{anchor:"transformers.ImageToImagePipeline.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.ImageToImagePipeline.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.ImageToImagePipeline.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.ImageToImagePipeline.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.ImageToImagePipeline.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.ImageToImagePipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.40.2/ja/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.ImageToImagePipeline.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.ImageToImagePipeline.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.ImageToImagePipeline.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/image_to_image.py#L39"}}),ft=new P({props:{anchor:"transformers.ImageToImagePipeline.example",$$slots:{default:[g2]},$$scope:{ctx:M}}}),Ws=new k({props:{name:"__call__",anchor:"transformers.ImageToImagePipeline.__call__",parameters:[{name:"images",val:": Union"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageToImagePipeline.__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.ImageToImagePipeline.__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 used and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/image_to_image.py#L87",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>An image (Image.Image) or a list of images (List[“Image.Image”]) containing result(s). If the input is a
single image, the return will be also a single image, if the input is a list of several images, it will
return a list of transformed images.</p>
`}}),Ls=new $({props:{title:"ObjectDetectionPipeline",local:"transformers.ObjectDetectionPipeline",headingTag:"h3"}}),Hs=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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ObjectDetectionPipeline.image_processor",description:`<strong>image_processor</strong> (<code>BaseImageProcessor</code>) &#x2014;
The image processor that will be used by the pipeline to encode data for the model. This object inherits from
<code>BaseImageProcessor</code>.`,name:"image_processor"},{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.40.2/ja/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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/object_detection.py#L26"}}),Tt=new P({props:{anchor:"transformers.ObjectDetectionPipeline.example",$$slots:{default:[f2]},$$scope:{ctx:M}}}),Os=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.40.2/src/transformers/pipelines/object_detection.py#L72",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<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>
`}}),Ys=new $({props:{title:"VideoClassificationPipeline",local:"transformers.VideoClassificationPipeline",headingTag:"h3"}}),Es=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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.VideoClassificationPipeline.image_processor",description:`<strong>image_processor</strong> (<code>BaseImageProcessor</code>) &#x2014;
The image processor that will be used by the pipeline to encode data for the model. This object inherits from
<code>BaseImageProcessor</code>.`,name:"image_processor"},{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.40.2/ja/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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/video_classification.py#L27"}}),Xs=new k({props:{name:"__call__",anchor:"transformers.VideoClassificationPipeline.__call__",parameters:[{name:"videos",val:": Union"},{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.40.2/src/transformers/pipelines/video_classification.py#L57",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<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>
`}}),Qs=new $({props:{title:"ZeroShotImageClassificationPipeline",local:"transformers.ZeroShotImageClassificationPipeline",headingTag:"h3"}}),Ks=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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ZeroShotImageClassificationPipeline.image_processor",description:`<strong>image_processor</strong> (<code>BaseImageProcessor</code>) &#x2014;
The image processor that will be used by the pipeline to encode data for the model. This object inherits from
<code>BaseImageProcessor</code>.`,name:"image_processor"},{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.40.2/ja/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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/zero_shot_image_classification.py#L32"}}),wt=new P({props:{anchor:"transformers.ZeroShotImageClassificationPipeline.example",$$slots:{default:[u2]},$$scope:{ctx:M}}}),eo=new k({props:{name:"__call__",anchor:"transformers.ZeroShotImageClassificationPipeline.__call__",parameters:[{name:"images",val:": Union"},{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.40.2/src/transformers/pipelines/zero_shot_image_classification.py#L76",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<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>
`}}),to=new $({props:{title:"ZeroShotObjectDetectionPipeline",local:"transformers.ZeroShotObjectDetectionPipeline",headingTag:"h3"}}),no=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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ZeroShotObjectDetectionPipeline.image_processor",description:`<strong>image_processor</strong> (<code>BaseImageProcessor</code>) &#x2014;
The image processor that will be used by the pipeline to encode data for the model. This object inherits from
<code>BaseImageProcessor</code>.`,name:"image_processor"},{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.40.2/ja/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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/zero_shot_object_detection.py#L22"}}),_t=new P({props:{anchor:"transformers.ZeroShotObjectDetectionPipeline.example",$$slots:{default:[T2]},$$scope:{ctx:M}}}),so=new k({props:{name:"__call__",anchor:"transformers.ZeroShotObjectDetectionPipeline.__call__",parameters:[{name:"image",val:": Union"},{name:"candidate_labels",val:": Union = 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.40.2/src/transformers/pipelines/zero_shot_object_detection.py#L65",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<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>
`}}),oo=new $({props:{title:"Natural Language Processing",local:"natural-language-processing",headingTag:"h2"}}),ro=new $({props:{title:"ConversationalPipeline",local:"transformers.Conversation",headingTag:"h3"}}),io=new k({props:{name:"class transformers.Conversation",anchor:"transformers.Conversation",parameters:[{name:"messages",val:": Union = None"},{name:"conversation_id",val:": UUID = None"},{name:"**deprecated_kwargs",val:""}],parametersDescription:[{anchor:"transformers.Conversation.messages",description:`<strong>messages</strong> (Union[str, List[Dict[str, str]]], <em>optional</em>) &#x2014;
The initial messages to start the conversation, either a string, or a list of dicts containing &#x201C;role&#x201D; and
&#x201C;content&#x201D; keys. If a string is passed, it is interpreted as a single message with the &#x201C;user&#x201D; role.`,name:"messages"},{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"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/conversational.py#L19"}}),vt=new P({props:{anchor:"transformers.Conversation.example",$$slots:{default:[b2]},$$scope:{ctx:M}}}),lo=new k({props:{name:"add_user_input",anchor:"transformers.Conversation.add_user_input",parameters:[{name:"text",val:": str"},{name:"overwrite",val:": bool = False"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/conversational.py#L90"}}),co=new k({props:{name:"append_response",anchor:"transformers.Conversation.append_response",parameters:[{name:"response",val:": str"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/conversational.py#L111"}}),po=new k({props:{name:"mark_processed",anchor:"transformers.Conversation.mark_processed",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/conversational.py#L117"}}),mo=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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ConversationalPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/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.40.2/ja/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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. 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"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/conversational.py#L195"}}),$t=new P({props:{anchor:"transformers.ConversationalPipeline.example",$$slots:{default:[y2]},$$scope:{ctx:M}}}),ho=new k({props:{name:"__call__",anchor:"transformers.ConversationalPipeline.__call__",parameters:[{name:"conversations",val:": Union"},{name:"num_workers",val:" = 0"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ConversationalPipeline.__call__.conversations",description:`<strong>conversations</strong> (a <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.Conversation">Conversation</a> or a list of <a href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.Conversation">Conversation</a>) &#x2014;
Conversation to generate responses for. Inputs can also be passed as a list of dictionaries with <code>role</code>
and <code>content</code> keys - in this case, they will be converted to <code>Conversation</code> objects automatically.
Multiple conversations in either format may be passed as a list.`,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>True</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.40.2/src/transformers/pipelines/conversational.py#L260",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Conversation(s) with updated generated responses for those
containing a new user input.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.Conversation"
>Conversation</a> or a list of <a
  href="/docs/transformers/v4.40.2/ja/main_classes/pipelines#transformers.Conversation"
>Conversation</a></p>
`}}),go=new $({props:{title:"FillMaskPipeline",local:"transformers.FillMaskPipeline",headingTag:"h3"}}),fo=new k({props:{name:"class transformers.FillMaskPipeline",anchor:"transformers.FillMaskPipeline",parameters:[{name:"model",val:": Union"},{name:"tokenizer",val:": Optional = None"},{name:"feature_extractor",val:": Optional = None"},{name:"image_processor",val:": Optional = None"},{name:"modelcard",val:": Optional = None"},{name:"framework",val:": Optional = None"},{name:"task",val:": str = ''"},{name:"args_parser",val:": ArgumentHandler = None"},{name:"device",val:": Union = None"},{name:"torch_dtype",val:": Union = None"},{name:"binary_output",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FillMaskPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.FillMaskPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/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.40.2/ja/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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. 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"},{anchor:"transformers.FillMaskPipeline.tokenizer_kwargs",description:`<strong>tokenizer_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Additional dictionary of keyword arguments passed along to the tokenizer.`,name:"tokenizer_kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/fill_mask.py#L22"}}),Pt=new P({props:{anchor:"transformers.FillMaskPipeline.example",$$slots:{default:[w2]},$$scope:{ctx:M}}}),Ct=new vc({props:{$$slots:{default:[x2]},$$scope:{ctx:M}}}),It=new vc({props:{$$slots:{default:[M2]},$$scope:{ctx:M}}}),uo=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.40.2/src/transformers/pipelines/fill_mask.py#L248",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<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:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list or a list of list of <code>dict</code></p>
`}}),To=new $({props:{title:"NerPipeline",local:"transformers.TokenClassificationPipeline",headingTag:"h3"}}),bo=new k({props:{name:"class transformers.TokenClassificationPipeline",anchor:"transformers.TokenClassificationPipeline",parameters:[{name:"args_parser",val:" = <transformers.pipelines.token_classification.TokenClassificationArgumentHandler object at 0x7eff8bafc940>"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TokenClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/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.40.2/ja/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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. 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.40.2/src/transformers/pipelines/token_classification.py#L61"}}),Gt=new P({props:{anchor:"transformers.TokenClassificationPipeline.example",$$slots:{default:[v2]},$$scope:{ctx:M}}}),yo=new k({props:{name:"aggregate_words",anchor:"transformers.TokenClassificationPipeline.aggregate_words",parameters:[{name:"entities",val:": List"},{name:"aggregation_strategy",val:": AggregationStrategy"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/token_classification.py#L469"}}),wo=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:": Optional"},{name:"special_tokens_mask",val:": ndarray"},{name:"aggregation_strategy",val:": AggregationStrategy"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/token_classification.py#L355"}}),xo=new k({props:{name:"group_entities",anchor:"transformers.TokenClassificationPipeline.group_entities",parameters:[{name:"entities",val:": List"}],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.40.2/src/transformers/pipelines/token_classification.py#L532"}}),_o=new k({props:{name:"group_sub_entities",anchor:"transformers.TokenClassificationPipeline.group_sub_entities",parameters:[{name:"entities",val:": List"}],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.40.2/src/transformers/pipelines/token_classification.py#L497"}}),vo=new $({props:{title:"QuestionAnsweringPipeline",local:"transformers.QuestionAnsweringPipeline",headingTag:"h3"}}),jo=new k({props:{name:"class transformers.QuestionAnsweringPipeline",anchor:"transformers.QuestionAnsweringPipeline",parameters:[{name:"model",val:": Union"},{name:"tokenizer",val:": PreTrainedTokenizer"},{name:"modelcard",val:": Optional = None"},{name:"framework",val:": Optional = None"},{name:"task",val:": str = ''"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.QuestionAnsweringPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.QuestionAnsweringPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/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.40.2/ja/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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/question_answering.py#L224"}}),Bt=new P({props:{anchor:"transformers.QuestionAnsweringPipeline.example",$$slots:{default:[j2]},$$scope:{ctx:M}}}),ko=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.40.2/src/transformers/pipelines/question_answering.py#L343",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<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:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>dict</code> or a list of <code>dict</code></p>
`}}),Uo=new k({props:{name:"create_sample",anchor:"transformers.QuestionAnsweringPipeline.create_sample",parameters:[{name:"question",val:": Union"},{name:"context",val:": Union"}],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.40.2/src/transformers/pipelines/question_answering.py#L278",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The corresponding <code>SquadExample</code> grouping question and context.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>One or a list of <code>SquadExample</code></p>
`}}),$o=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.40.2/src/transformers/pipelines/question_answering.py#L630",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>str, ‘start’: int, ‘end’: int}\`</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Dictionary like \`{‘answer’</p>
`}}),Jo=new $({props:{title:"SummarizationPipeline",local:"transformers.SummarizationPipeline",headingTag:"h3"}}),Po=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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.SummarizationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/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.40.2/ja/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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/text2text_generation.py#L216"}}),Nt=new P({props:{anchor:"transformers.SummarizationPipeline.example",$$slots:{default:[k2]},$$scope:{ctx:M}}}),Co=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.40.2/src/transformers/pipelines/text2text_generation.py#L245",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<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:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list or a list of list of <code>dict</code></p>
`}}),Io=new $({props:{title:"TableQuestionAnsweringPipeline",local:"transformers.TableQuestionAnsweringPipeline",headingTag:"h3"}}),qo=new k({props:{name:"class transformers.TableQuestionAnsweringPipeline",anchor:"transformers.TableQuestionAnsweringPipeline",parameters:[{name:"args_parser",val:" = <transformers.pipelines.table_question_answering.TableQuestionAnsweringArgumentHandler object at 0x7eff8babb4c0>"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TableQuestionAnsweringPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TableQuestionAnsweringPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/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.40.2/ja/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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/table_question_answering.py#L85"}}),St=new P({props:{anchor:"transformers.TableQuestionAnsweringPipeline.example",$$slots:{default:[U2]},$$scope:{ctx:M}}}),Go=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.40.2/ja/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.40.2/src/transformers/pipelines/table_question_answering.py#L269",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<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:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A dictionary or a list of dictionaries containing results</p>
`}}),At=new P({props:{anchor:"transformers.TableQuestionAnsweringPipeline.__call__.example",$$slots:{default:[$2]},$$scope:{ctx:M}}}),Wt=new P({props:{anchor:"transformers.TableQuestionAnsweringPipeline.__call__.example-2",$$slots:{default:[J2]},$$scope:{ctx:M}}}),Zo=new $({props:{title:"TextClassificationPipeline",local:"transformers.TextClassificationPipeline",headingTag:"h3"}}),zo=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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TextClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/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.40.2/ja/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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. 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.40.2/src/transformers/pipelines/text_classification.py#L34"}}),Lt=new P({props:{anchor:"transformers.TextClassificationPipeline.example",$$slots:{default:[P2]},$$scope:{ctx:M}}}),Fo=new k({props:{name:"__call__",anchor:"transformers.TextClassificationPipeline.__call__",parameters:[{name:"inputs",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TextClassificationPipeline.__call__.inputs",description:`<strong>inputs</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:"inputs"},{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.40.2/src/transformers/pipelines/text_classification.py#L121",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<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:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list or a list of list of <code>dict</code></p>
`}}),Bo=new $({props:{title:"TextGenerationPipeline",local:"transformers.TextGenerationPipeline",headingTag:"h3"}}),Do=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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TextGenerationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/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.40.2/ja/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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/text_generation.py#L36"}}),Ot=new P({props:{anchor:"transformers.TextGenerationPipeline.example",$$slots:{default:[C2]},$$scope:{ctx:M}}}),Ro=new k({props:{name:"__call__",anchor:"transformers.TextGenerationPipeline.__call__",parameters:[{name:"text_inputs",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TextGenerationPipeline.__call__.text_inputs",description:`<strong>text_inputs</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
One or several prompts (or one list of prompts) to complete.`,name:"text_inputs"},{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>True</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>`,name:"handle_long_generation"},{anchor:"transformers.TextGenerationPipeline.__call__.generate_kwargs",description:`<strong>generate_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#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:"generate_kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/text_generation.py#L192",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<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:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list or a list of list of <code>dict</code></p>
`}}),No=new $({props:{title:"Text2TextGenerationPipeline",local:"transformers.Text2TextGenerationPipeline",headingTag:"h3"}}),Vo=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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.Text2TextGenerationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/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.40.2/ja/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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/text2text_generation.py#L25"}}),Et=new P({props:{anchor:"transformers.Text2TextGenerationPipeline.example",$$slots:{default:[I2]},$$scope:{ctx:M}}}),Xt=new P({props:{anchor:"transformers.Text2TextGenerationPipeline.example-2",$$slots:{default:[q2]},$$scope:{ctx:M}}}),So=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.40.2/src/transformers/pipelines/text2text_generation.py#L138",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<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:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list or a list of list of <code>dict</code></p>
`}}),Ao=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.40.2/src/transformers/pipelines/text2text_generation.py#L111"}}),Wo=new $({props:{title:"TokenClassificationPipeline",local:"transformers.TokenClassificationPipeline",headingTag:"h3"}}),Lo=new k({props:{name:"class transformers.TokenClassificationPipeline",anchor:"transformers.TokenClassificationPipeline",parameters:[{name:"args_parser",val:" = <transformers.pipelines.token_classification.TokenClassificationArgumentHandler object at 0x7eff8bafc940>"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TokenClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/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.40.2/ja/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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. 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.40.2/src/transformers/pipelines/token_classification.py#L61"}}),en=new P({props:{anchor:"transformers.TokenClassificationPipeline.example",$$slots:{default:[G2]},$$scope:{ctx:M}}}),Ho=new k({props:{name:"__call__",anchor:"transformers.TokenClassificationPipeline.__call__",parameters:[{name:"inputs",val:": Union"},{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.40.2/src/transformers/pipelines/token_classification.py#L218",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<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:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list or a list of list of <code>dict</code></p>
`}}),Oo=new k({props:{name:"aggregate_words",anchor:"transformers.TokenClassificationPipeline.aggregate_words",parameters:[{name:"entities",val:": List"},{name:"aggregation_strategy",val:": AggregationStrategy"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/token_classification.py#L469"}}),Yo=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:": Optional"},{name:"special_tokens_mask",val:": ndarray"},{name:"aggregation_strategy",val:": AggregationStrategy"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/token_classification.py#L355"}}),Eo=new k({props:{name:"group_entities",anchor:"transformers.TokenClassificationPipeline.group_entities",parameters:[{name:"entities",val:": List"}],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.40.2/src/transformers/pipelines/token_classification.py#L532"}}),Xo=new k({props:{name:"group_sub_entities",anchor:"transformers.TokenClassificationPipeline.group_sub_entities",parameters:[{name:"entities",val:": List"}],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.40.2/src/transformers/pipelines/token_classification.py#L497"}}),Qo=new $({props:{title:"TranslationPipeline",local:"transformers.TranslationPipeline",headingTag:"h3"}}),Ko=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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TranslationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/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.40.2/ja/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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/text2text_generation.py#L286"}}),an=new P({props:{anchor:"transformers.TranslationPipeline.example",$$slots:{default:[Z2]},$$scope:{ctx:M}}}),ea=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.40.2/src/transformers/pipelines/text2text_generation.py#L341",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<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:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list or a list of list of <code>dict</code></p>
`}}),ta=new $({props:{title:"ZeroShotClassificationPipeline",local:"transformers.ZeroShotClassificationPipeline",headingTag:"h3"}}),na=new k({props:{name:"class transformers.ZeroShotClassificationPipeline",anchor:"transformers.ZeroShotClassificationPipeline",parameters:[{name:"args_parser",val:" = <transformers.pipelines.zero_shot_classification.ZeroShotClassificationArgumentHandler object at 0x7eff8bbae470>"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ZeroShotClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/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.40.2/ja/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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/zero_shot_classification.py#L46"}}),ln=new P({props:{anchor:"transformers.ZeroShotClassificationPipeline.example",$$slots:{default:[z2]},$$scope:{ctx:M}}}),sa=new k({props:{name:"__call__",anchor:"transformers.ZeroShotClassificationPipeline.__call__",parameters:[{name:"sequences",val:": Union"},{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.40.2/src/transformers/pipelines/zero_shot_classification.py#L163",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<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:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>dict</code> or a list of <code>dict</code></p>
`}}),oa=new $({props:{title:"Multimodal",local:"multimodal",headingTag:"h2"}}),ra=new $({props:{title:"DocumentQuestionAnsweringPipeline",local:"transformers.DocumentQuestionAnsweringPipeline",headingTag:"h3"}}),ia=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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.image_processor",description:`<strong>image_processor</strong> (<code>BaseImageProcessor</code>) &#x2014;
The image processor that will be used by the pipeline to encode data for the model. This object inherits from
<code>BaseImageProcessor</code>.`,name:"image_processor"},{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.40.2/ja/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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/document_question_answering.py#L101"}}),pn=new P({props:{anchor:"transformers.DocumentQuestionAnsweringPipeline.example",$$slots:{default:[F2]},$$scope:{ctx:M}}}),la=new k({props:{name:"__call__",anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__",parameters:[{name:"image",val:": Union"},{name:"question",val:": Optional = None"},{name:"word_boxes",val:": Tuple = 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.40.2/src/transformers/pipelines/document_question_answering.py#L194",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<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:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>dict</code> or a list of <code>dict</code></p>
`}}),ca=new $({props:{title:"FeatureExtractionPipeline",local:"transformers.FeatureExtractionPipeline",headingTag:"h3"}}),pa=new k({props:{name:"class transformers.FeatureExtractionPipeline",anchor:"transformers.FeatureExtractionPipeline",parameters:[{name:"model",val:": Union"},{name:"tokenizer",val:": Optional = None"},{name:"feature_extractor",val:": Optional = None"},{name:"image_processor",val:": Optional = None"},{name:"modelcard",val:": Optional = None"},{name:"framework",val:": Optional = None"},{name:"task",val:": str = ''"},{name:"args_parser",val:": ArgumentHandler = None"},{name:"device",val:": Union = None"},{name:"torch_dtype",val:": Union = None"},{name:"binary_output",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FeatureExtractionPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.FeatureExtractionPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/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.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.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.FeatureExtractionPipeline.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.FeatureExtractionPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.40.2/ja/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. You can pass native <code>torch.device</code> or a <code>str</code> too`,name:"device"},{anchor:"transformers.FeatureExtractionPipeline.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.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"},{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"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/feature_extraction.py#L7"}}),dn=new P({props:{anchor:"transformers.FeatureExtractionPipeline.example",$$slots:{default:[B2]},$$scope:{ctx:M}}}),da=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.40.2/src/transformers/pipelines/feature_extraction.py#L76",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The features computed by the model.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A nested list of <code>float</code></p>
`}}),ma=new $({props:{title:"ImageFeatureExtractionPipeline",local:"transformers.ImageFeatureExtractionPipeline",headingTag:"h3"}}),ha=new k({props:{name:"class transformers.ImageFeatureExtractionPipeline",anchor:"transformers.ImageFeatureExtractionPipeline",parameters:[{name:"model",val:": Union"},{name:"tokenizer",val:": Optional = None"},{name:"feature_extractor",val:": Optional = None"},{name:"image_processor",val:": Optional = None"},{name:"modelcard",val:": Optional = None"},{name:"framework",val:": Optional = None"},{name:"task",val:": str = ''"},{name:"args_parser",val:": ArgumentHandler = None"},{name:"device",val:": Union = None"},{name:"torch_dtype",val:": Union = None"},{name:"binary_output",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageFeatureExtractionPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ImageFeatureExtractionPipeline.image_processor",description:`<strong>image_processor</strong> (<code>BaseImageProcessor</code>) &#x2014;
The image processor that will be used by the pipeline to encode data for the model. This object inherits from
<code>BaseImageProcessor</code>.`,name:"image_processor"},{anchor:"transformers.ImageFeatureExtractionPipeline.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.ImageFeatureExtractionPipeline.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.ImageFeatureExtractionPipeline.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.ImageFeatureExtractionPipeline.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.ImageFeatureExtractionPipeline.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.ImageFeatureExtractionPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.40.2/ja/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.ImageFeatureExtractionPipeline.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.ImageFeatureExtractionPipeline.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.ImageFeatureExtractionPipeline.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"},{anchor:"transformers.ImageFeatureExtractionPipeline.image_processor_kwargs",description:`<strong>image_processor_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Additional dictionary of keyword arguments passed along to the image processor e.g.
{&#x201C;size&#x201D;: {&#x201C;height&#x201D;: 100, &#x201C;width&#x201D;: 100}&#x200C;}`,name:"image_processor_kwargs"},{anchor:"transformers.ImageFeatureExtractionPipeline.pool",description:`<strong>pool</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to return the pooled output. If <code>False</code>, the model will return the raw hidden states.`,name:"pool"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/image_feature_extraction.py#L11"}}),hn=new P({props:{anchor:"transformers.ImageFeatureExtractionPipeline.example",$$slots:{default:[D2]},$$scope:{ctx:M}}}),ga=new k({props:{name:"__call__",anchor:"transformers.ImageFeatureExtractionPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageFeatureExtractionPipeline.__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.ImageFeatureExtractionPipeline.__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 used and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/image_feature_extraction.py#L89",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The features computed by the model.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A nested list of <code>float</code></p>
`}}),fa=new $({props:{title:"ImageToTextPipeline",local:"transformers.ImageToTextPipeline",headingTag:"h3"}}),ua=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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ImageToTextPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.ImageToTextPipeline.image_processor",description:`<strong>image_processor</strong> (<code>BaseImageProcessor</code>) &#x2014;
The image processor that will be used by the pipeline to encode data for the model. This object inherits from
<code>BaseImageProcessor</code>.`,name:"image_processor"},{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.40.2/ja/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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/image_to_text.py#L45"}}),fn=new P({props:{anchor:"transformers.ImageToTextPipeline.example",$$slots:{default:[R2]},$$scope:{ctx:M}}}),Ta=new k({props:{name:"__call__",anchor:"transformers.ImageToTextPipeline.__call__",parameters:[{name:"images",val:": Union"},{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.40.2/src/transformers/pipelines/image_to_text.py#L97",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<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:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list or a list of list of <code>dict</code></p>
`}}),ba=new $({props:{title:"VisualQuestionAnsweringPipeline",local:"transformers.VisualQuestionAnsweringPipeline",headingTag:"h3"}}),ya=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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.VisualQuestionAnsweringPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.VisualQuestionAnsweringPipeline.image_processor",description:`<strong>image_processor</strong> (<code>BaseImageProcessor</code>) &#x2014;
The image processor that will be used by the pipeline to encode data for the model. This object inherits from
<code>BaseImageProcessor</code>.`,name:"image_processor"},{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.40.2/ja/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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/visual_question_answering.py#L18"}}),Tn=new P({props:{anchor:"transformers.VisualQuestionAnsweringPipeline.example",$$slots:{default:[N2]},$$scope:{ctx:M}}}),wa=new k({props:{name:"__call__",anchor:"transformers.VisualQuestionAnsweringPipeline.__call__",parameters:[{name:"image",val:": Union"},{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.40.2/src/transformers/pipelines/visual_question_answering.py#L70",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<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:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A dictionary or a list of dictionaries containing the result. The dictionaries contain the following keys</p>
`}}),xa=new $({props:{title:"Parent class: Pipeline",local:"transformers.Pipeline",headingTag:"h2"}}),_a=new k({props:{name:"class transformers.Pipeline",anchor:"transformers.Pipeline",parameters:[{name:"model",val:": Union"},{name:"tokenizer",val:": Optional = None"},{name:"feature_extractor",val:": Optional = None"},{name:"image_processor",val:": Optional = None"},{name:"modelcard",val:": Optional = None"},{name:"framework",val:": Optional = None"},{name:"task",val:": str = ''"},{name:"args_parser",val:": ArgumentHandler = None"},{name:"device",val:": Union = None"},{name:"torch_dtype",val:": Union = None"},{name:"binary_output",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.Pipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.Pipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.40.2/ja/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.40.2/ja/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.Pipeline.feature_extractor",description:`<strong>feature_extractor</strong> (<a href="/docs/transformers/v4.40.2/ja/main_classes/feature_extractor#transformers.SequenceFeatureExtractor">SequenceFeatureExtractor</a>) &#x2014;
The feature extractor that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.40.2/ja/main_classes/feature_extractor#transformers.SequenceFeatureExtractor">SequenceFeatureExtractor</a>.`,name:"feature_extractor"},{anchor:"transformers.Pipeline.image_processor",description:`<strong>image_processor</strong> (<code>BaseImageProcessor</code>) &#x2014;
The image processor that will be used by the pipeline to encode data for the model. This object inherits from
<code>BaseImageProcessor</code>.`,name:"image_processor"},{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.40.2/ja/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.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.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 serialized format (i.e., pickle) or as
the raw output data e.g. text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/base.py#L785"}}),Ma=new k({props:{name:"check_model_type",anchor:"transformers.Pipeline.check_model_type",parameters:[{name:"supported_models",val:": Union"}],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.40.2/src/transformers/pipelines/base.py#L1065"}}),va=new k({props:{name:"device_placement",anchor:"transformers.Pipeline.device_placement",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/base.py#L1003",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Context manager</p>
`}}),yn=new P({props:{anchor:"transformers.Pipeline.device_placement.example",$$slots:{default:[V2]},$$scope:{ctx:M}}}),ja=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.40.2/src/transformers/pipelines/base.py#L1033",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The same as <code>inputs</code> but on the proper device.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>Dict[str, torch.Tensor]</code></p>
`}}),ka=new k({props:{name:"postprocess",anchor:"transformers.Pipeline.postprocess",parameters:[{name:"model_outputs",val:": ModelOutput"},{name:"**postprocess_parameters",val:": Dict"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/base.py#L1128"}}),Ua=new k({props:{name:"predict",anchor:"transformers.Pipeline.predict",parameters:[{name:"X",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/base.py#L990"}}),$a=new k({props:{name:"preprocess",anchor:"transformers.Pipeline.preprocess",parameters:[{name:"input_",val:": Any"},{name:"**preprocess_parameters",val:": Dict"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/base.py#L1107"}}),Ja=new k({props:{name:"push_to_hub",anchor:"transformers.Pipeline.push_to_hub",parameters:[{name:"repo_id",val:": str"},{name:"use_temp_dir",val:": Optional = None"},{name:"commit_message",val:": Optional = None"},{name:"private",val:": Optional = None"},{name:"token",val:": Union = None"},{name:"max_shard_size",val:": Union = '5GB'"},{name:"create_pr",val:": bool = False"},{name:"safe_serialization",val:": bool = True"},{name:"revision",val:": str = None"},{name:"commit_description",val:": str = None"},{name:"tags",val:": Optional = None"},{name:"**deprecated_kwargs",val:""}],parametersDescription:[{anchor:"transformers.Pipeline.push_to_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The name of the repository you want to push your pipe to. It should contain your organization name
when pushing to a given organization.`,name:"repo_id"},{anchor:"transformers.Pipeline.push_to_hub.use_temp_dir",description:`<strong>use_temp_dir</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to use a temporary directory to store the files saved before they are pushed to the Hub.
Will default to <code>True</code> if there is no directory named like <code>repo_id</code>, <code>False</code> otherwise.`,name:"use_temp_dir"},{anchor:"transformers.Pipeline.push_to_hub.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Message to commit while pushing. Will default to <code>&quot;Upload pipe&quot;</code>.`,name:"commit_message"},{anchor:"transformers.Pipeline.push_to_hub.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not the repository created should be private.`,name:"private"},{anchor:"transformers.Pipeline.push_to_hub.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <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>). Will default to <code>True</code> if <code>repo_url</code>
is not specified.`,name:"token"},{anchor:"transformers.Pipeline.push_to_hub.max_shard_size",description:`<strong>max_shard_size</strong> (<code>int</code> or <code>str</code>, <em>optional</em>, defaults to <code>&quot;5GB&quot;</code>) &#x2014;
Only applicable for models. The maximum size for a checkpoint before being sharded. Checkpoints shard
will then be each of size lower than this size. If expressed as a string, needs to be digits followed
by a unit (like <code>&quot;5MB&quot;</code>). We default it to <code>&quot;5GB&quot;</code> so that users can easily load models on free-tier
Google Colab instances without any CPU OOM issues.`,name:"max_shard_size"},{anchor:"transformers.Pipeline.push_to_hub.create_pr",description:`<strong>create_pr</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to create a PR with the uploaded files or directly commit.`,name:"create_pr"},{anchor:"transformers.Pipeline.push_to_hub.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to convert the model weights in safetensors format for safer serialization.`,name:"safe_serialization"},{anchor:"transformers.Pipeline.push_to_hub.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Branch to push the uploaded files to.`,name:"revision"},{anchor:"transformers.Pipeline.push_to_hub.commit_description",description:`<strong>commit_description</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The description of the commit that will be created`,name:"commit_description"},{anchor:"transformers.Pipeline.push_to_hub.tags",description:`<strong>tags</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
List of tags to push on the Hub.`,name:"tags"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/utils/hub.py#L768"}}),vn=new P({props:{anchor:"transformers.Pipeline.push_to_hub.example",$$slots:{default:[S2]},$$scope:{ctx:M}}}),Pa=new k({props:{name:"save_pretrained",anchor:"transformers.Pipeline.save_pretrained",parameters:[{name:"save_directory",val:": Union"},{name:"safe_serialization",val:": bool = True"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.Pipeline.save_pretrained.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</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"},{anchor:"transformers.Pipeline.save_pretrained.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional key word arguments passed along to the <a href="/docs/transformers/v4.40.2/ja/main_classes/model#transformers.utils.PushToHubMixin.push_to_hub">push_to_hub()</a> method.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/base.py#L913"}}),Ca=new k({props:{name:"transform",anchor:"transformers.Pipeline.transform",parameters:[{name:"X",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.40.2/src/transformers/pipelines/base.py#L984"}}),Ia=new t2({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/ja/main_classes/pipelines.md"}}),{c(){r=i("meta"),_=s(),h=i("p"),c=s(),g(w.$$.fragment),t=s(),x=i("p"),x.innerHTML=_c,jc=s(),$n=i("p"),$n.textContent=sT,kc=s(),Jn=i("ul"),Jn.innerHTML=oT,Uc=s(),g(Pn.$$.fragment),$c=s(),Cn=i("p"),Cn.innerHTML=aT,Jc=s(),In=i("p"),In.textContent=rT,Pc=s(),g(qn.$$.fragment),Cc=s(),Gn=i("p"),Gn.innerHTML=iT,Ic=s(),g(Zn.$$.fragment),qc=s(),zn=i("p"),zn.innerHTML=lT,Gc=s(),g(Fn.$$.fragment),Zc=s(),Bn=i("p"),Bn.innerHTML=cT,zc=s(),g(Dn.$$.fragment),Fc=s(),Rn=i("p"),Rn.textContent=pT,Bc=s(),g(Nn.$$.fragment),Dc=s(),ve=i("div"),g(Vn.$$.fragment),sm=s(),er=i("p"),er.innerHTML=dT,om=s(),tr=i("p"),tr.textContent=mT,am=s(),nr=i("ul"),nr.innerHTML=hT,rm=s(),g(Xe.$$.fragment),Rc=s(),g(Sn.$$.fragment),Nc=s(),An=i("p"),An.innerHTML=gT,Vc=s(),g(Wn.$$.fragment),Sc=s(),g(Qe.$$.fragment),Ac=s(),g(Ln.$$.fragment),Wc=s(),g(Hn.$$.fragment),Lc=s(),On=i("p"),On.textContent=fT,Hc=s(),g(Yn.$$.fragment),Oc=s(),En=i("p"),En.innerHTML=uT,Yc=s(),g(Xn.$$.fragment),Ec=s(),Qn=i("p"),Qn.textContent=TT,Xc=s(),Kn=i("p"),Kn.textContent=bT,Qc=s(),es=i("ul"),es.innerHTML=yT,Kc=s(),g(ts.$$.fragment),ep=s(),ns=i("p"),ns.innerHTML=wT,tp=s(),ss=i("p"),ss.innerHTML=xT,np=s(),g(os.$$.fragment),sp=s(),as=i("p"),as.textContent=_T,op=s(),g(rs.$$.fragment),ap=s(),is=i("p"),is.textContent=MT,rp=s(),ls=i("p"),ls.innerHTML=vT,ip=s(),g(cs.$$.fragment),lp=s(),ps=i("p"),ps.textContent=jT,cp=s(),ds=i("p"),ds.innerHTML=kT,pp=s(),ms=i("p"),ms.textContent=UT,dp=s(),hs=i("ul"),hs.innerHTML=$T,mp=s(),g(gs.$$.fragment),hp=s(),fs=i("p"),fs.textContent=JT,gp=s(),g(us.$$.fragment),fp=s(),Ts=i("p"),Ts.innerHTML=PT,up=s(),g(bs.$$.fragment),Tp=s(),ys=i("p"),ys.textContent=CT,bp=s(),g(ws.$$.fragment),yp=s(),W=i("div"),g(xs.$$.fragment),im=s(),sr=i("p"),sr.innerHTML=IT,lm=s(),g(Ke.$$.fragment),cm=s(),or=i("p"),or.innerHTML=qT,pm=s(),ar=i("p"),ar.innerHTML=GT,dm=s(),rr=i("p"),rr.innerHTML=ZT,mm=s(),et=i("div"),g(_s.$$.fragment),hm=s(),ir=i("p"),ir.innerHTML=zT,wp=s(),g(Ms.$$.fragment),xp=s(),le=i("div"),g(vs.$$.fragment),gm=s(),lr=i("p"),lr.textContent=FT,fm=s(),cr=i("p"),cr.textContent=BT,um=s(),g(tt.$$.fragment),Tm=s(),pr=i("p"),pr.innerHTML=DT,bm=s(),nt=i("div"),g(js.$$.fragment),ym=s(),dr=i("p"),dr.innerHTML=RT,_p=s(),g(ks.$$.fragment),Mp=s(),R=i("div"),g(Us.$$.fragment),wm=s(),mr=i("p"),mr.innerHTML=NT,xm=s(),g(st.$$.fragment),_m=s(),hr=i("p"),hr.innerHTML=VT,Mm=s(),g(ot.$$.fragment),vm=s(),gr=i("p"),gr.innerHTML=ST,jm=s(),fr=i("p"),fr.innerHTML=AT,km=s(),at=i("div"),g($s.$$.fragment),Um=s(),ur=i("p"),ur.innerHTML=WT,vp=s(),g(Js.$$.fragment),jp=s(),ce=i("div"),g(Ps.$$.fragment),$m=s(),Tr=i("p"),Tr.innerHTML=LT,Jm=s(),g(rt.$$.fragment),Pm=s(),g(it.$$.fragment),Cm=s(),br=i("p"),br.innerHTML=HT,Im=s(),lt=i("div"),g(Cs.$$.fragment),qm=s(),yr=i("p"),yr.textContent=OT,kp=s(),g(Is.$$.fragment),Up=s(),qs=i("p"),qs.textContent=YT,$p=s(),g(Gs.$$.fragment),Jp=s(),L=i("div"),g(Zs.$$.fragment),Gm=s(),wr=i("p"),wr.innerHTML=ET,Zm=s(),g(ct.$$.fragment),zm=s(),xr=i("p"),xr.innerHTML=XT,Fm=s(),_r=i("p"),_r.innerHTML=QT,Bm=s(),Mr=i("p"),Mr.innerHTML=KT,Dm=s(),pt=i("div"),g(zs.$$.fragment),Rm=s(),vr=i("p"),vr.textContent=eb,Pp=s(),g(Fs.$$.fragment),Cp=s(),H=i("div"),g(Bs.$$.fragment),Nm=s(),jr=i("p"),jr.innerHTML=tb,Vm=s(),g(dt.$$.fragment),Sm=s(),kr=i("p"),kr.innerHTML=nb,Am=s(),Ur=i("p"),Ur.innerHTML=sb,Wm=s(),$r=i("p"),$r.innerHTML=ob,Lm=s(),mt=i("div"),g(Ds.$$.fragment),Hm=s(),Jr=i("p"),Jr.textContent=ab,Ip=s(),g(Rs.$$.fragment),qp=s(),pe=i("div"),g(Ns.$$.fragment),Om=s(),Pr=i("p"),Pr.innerHTML=rb,Ym=s(),g(ht.$$.fragment),Em=s(),Cr=i("p"),Cr.innerHTML=ib,Xm=s(),Ir=i("p"),Ir.innerHTML=lb,Qm=s(),gt=i("div"),g(Vs.$$.fragment),Km=s(),qr=i("p"),qr.textContent=cb,Gp=s(),g(Ss.$$.fragment),Zp=s(),de=i("div"),g(As.$$.fragment),eh=s(),Gr=i("p"),Gr.innerHTML=pb,th=s(),g(ft.$$.fragment),nh=s(),Zr=i("p"),Zr.innerHTML=db,sh=s(),zr=i("p"),zr.innerHTML=mb,oh=s(),ut=i("div"),g(Ws.$$.fragment),ah=s(),Fr=i("p"),Fr.textContent=hb,zp=s(),g(Ls.$$.fragment),Fp=s(),O=i("div"),g(Hs.$$.fragment),rh=s(),Br=i("p"),Br.innerHTML=gb,ih=s(),g(Tt.$$.fragment),lh=s(),Dr=i("p"),Dr.innerHTML=fb,ch=s(),Rr=i("p"),Rr.innerHTML=ub,ph=s(),Nr=i("p"),Nr.innerHTML=Tb,dh=s(),bt=i("div"),g(Os.$$.fragment),mh=s(),Vr=i("p"),Vr.textContent=bb,Bp=s(),g(Ys.$$.fragment),Dp=s(),je=i("div"),g(Es.$$.fragment),hh=s(),Sr=i("p"),Sr.innerHTML=yb,gh=s(),Ar=i("p"),Ar.innerHTML=wb,fh=s(),Wr=i("p"),Wr.innerHTML=xb,uh=s(),yt=i("div"),g(Xs.$$.fragment),Th=s(),Lr=i("p"),Lr.textContent=_b,Rp=s(),g(Qs.$$.fragment),Np=s(),Y=i("div"),g(Ks.$$.fragment),bh=s(),Hr=i("p"),Hr.innerHTML=Mb,yh=s(),g(wt.$$.fragment),wh=s(),Or=i("p"),Or.innerHTML=vb,xh=s(),Yr=i("p"),Yr.innerHTML=jb,_h=s(),Er=i("p"),Er.innerHTML=kb,Mh=s(),xt=i("div"),g(eo.$$.fragment),vh=s(),Xr=i("p"),Xr.textContent=Ub,Vp=s(),g(to.$$.fragment),Sp=s(),E=i("div"),g(no.$$.fragment),jh=s(),Qr=i("p"),Qr.innerHTML=$b,kh=s(),g(_t.$$.fragment),Uh=s(),Kr=i("p"),Kr.innerHTML=Jb,$h=s(),ei=i("p"),ei.innerHTML=Pb,Jh=s(),ti=i("p"),ti.innerHTML=Cb,Ph=s(),Mt=i("div"),g(so.$$.fragment),Ch=s(),ni=i("p"),ni.textContent=Ib,Ap=s(),g(oo.$$.fragment),Wp=s(),ao=i("p"),ao.textContent=qb,Lp=s(),g(ro.$$.fragment),Hp=s(),me=i("div"),g(io.$$.fragment),Ih=s(),si=i("p"),si.innerHTML=Gb,qh=s(),g(vt.$$.fragment),Gh=s(),jt=i("div"),g(lo.$$.fragment),Zh=s(),oi=i("p"),oi.innerHTML=Zb,zh=s(),kt=i("div"),g(co.$$.fragment),Fh=s(),ai=i("p"),ai.innerHTML=zb,Bh=s(),Ut=i("div"),g(po.$$.fragment),Dh=s(),ri=i("p"),ri.textContent=Fb,Op=s(),X=i("div"),g(mo.$$.fragment),Rh=s(),ii=i("p"),ii.textContent=Bb,Nh=s(),g($t.$$.fragment),Vh=s(),li=i("p"),li.innerHTML=Db,Sh=s(),ci=i("p"),ci.innerHTML=Rb,Ah=s(),pi=i("p"),pi.innerHTML=Nb,Wh=s(),Jt=i("div"),g(ho.$$.fragment),Lh=s(),di=i("p"),di.textContent=Vb,Yp=s(),g(go.$$.fragment),Ep=s(),Z=i("div"),g(fo.$$.fragment),Hh=s(),mi=i("p"),mi.innerHTML=Sb,Oh=s(),g(Pt.$$.fragment),Yh=s(),hi=i("p"),hi.innerHTML=Ab,Eh=s(),gi=i("p"),gi.innerHTML=Wb,Xh=s(),fi=i("p"),fi.innerHTML=Lb,Qh=s(),g(Ct.$$.fragment),Kh=s(),g(It.$$.fragment),eg=s(),qt=i("div"),g(uo.$$.fragment),tg=s(),ui=i("p"),ui.textContent=Hb,Xp=s(),g(To.$$.fragment),Qp=s(),G=i("div"),g(bo.$$.fragment),ng=s(),Ti=i("p"),Ti.innerHTML=Ob,sg=s(),g(Gt.$$.fragment),og=s(),bi=i("p"),bi.innerHTML=Yb,ag=s(),yi=i("p"),yi.innerHTML=Eb,rg=s(),wi=i("p"),wi.innerHTML=Xb,ig=s(),Ae=i("div"),g(yo.$$.fragment),lg=s(),xi=i("p"),xi.textContent=Qb,cg=s(),_i=i("p"),_i.textContent=Kb,pg=s(),Zt=i("div"),g(wo.$$.fragment),dg=s(),Mi=i("p"),Mi.textContent=ey,mg=s(),zt=i("div"),g(xo.$$.fragment),hg=s(),vi=i("p"),vi.textContent=ty,gg=s(),Ft=i("div"),g(_o.$$.fragment),fg=s(),ji=i("p"),ji.textContent=ny,Kp=s(),Mo=i("p"),Mo.innerHTML=sy,ed=s(),g(vo.$$.fragment),td=s(),z=i("div"),g(jo.$$.fragment),ug=s(),ki=i("p"),ki.innerHTML=oy,Tg=s(),g(Bt.$$.fragment),bg=s(),Ui=i("p"),Ui.innerHTML=ay,yg=s(),$i=i("p"),$i.innerHTML=ry,wg=s(),Ji=i("p"),Ji.innerHTML=iy,xg=s(),Dt=i("div"),g(ko.$$.fragment),_g=s(),Pi=i("p"),Pi.textContent=ly,Mg=s(),We=i("div"),g(Uo.$$.fragment),vg=s(),Ci=i("p"),Ci.innerHTML=cy,jg=s(),Ii=i("p"),Ii.textContent=py,kg=s(),Rt=i("div"),g($o.$$.fragment),Ug=s(),qi=i("p"),qi.textContent=dy,nd=s(),g(Jo.$$.fragment),sd=s(),he=i("div"),g(Po.$$.fragment),$g=s(),Gi=i("p"),Gi.textContent=my,Jg=s(),Zi=i("p"),Zi.innerHTML=hy,Pg=s(),zi=i("p"),zi.innerHTML=gy,Cg=s(),g(Nt.$$.fragment),Ig=s(),Vt=i("div"),g(Co.$$.fragment),qg=s(),Fi=i("p"),Fi.textContent=fy,od=s(),g(Io.$$.fragment),ad=s(),Q=i("div"),g(qo.$$.fragment),Gg=s(),Bi=i("p"),Bi.innerHTML=uy,Zg=s(),g(St.$$.fragment),zg=s(),Di=i("p"),Di.innerHTML=Ty,Fg=s(),Ri=i("p"),Ri.innerHTML=by,Bg=s(),Ni=i("p"),Ni.innerHTML=yy,Dg=s(),re=i("div"),g(Go.$$.fragment),Rg=s(),Vi=i("p"),Vi.textContent=wy,Ng=s(),Si=i("ul"),Si.innerHTML=xy,Vg=s(),Ai=i("p"),Ai.innerHTML=_y,Sg=s(),g(At.$$.fragment),Ag=s(),Wi=i("p"),Wi.textContent=My,Wg=s(),g(Wt.$$.fragment),rd=s(),g(Zo.$$.fragment),id=s(),N=i("div"),g(zo.$$.fragment),Lg=s(),Li=i("p"),Li.innerHTML=vy,Hg=s(),g(Lt.$$.fragment),Og=s(),Hi=i("p"),Hi.innerHTML=jy,Yg=s(),Oi=i("p"),Oi.innerHTML=ky,Eg=s(),Yi=i("p"),Yi.innerHTML=Uy,Xg=s(),Ei=i("p"),Ei.innerHTML=$y,Qg=s(),Ht=i("div"),g(Fo.$$.fragment),Kg=s(),Xi=i("p"),Xi.textContent=Jy,ld=s(),g(Bo.$$.fragment),cd=s(),K=i("div"),g(Do.$$.fragment),ef=s(),Qi=i("p"),Qi.innerHTML=Py,tf=s(),g(Ot.$$.fragment),nf=s(),Ki=i("p"),Ki.innerHTML=Cy,sf=s(),el=i("p"),el.innerHTML=Iy,of=s(),tl=i("p"),tl.innerHTML=qy,af=s(),Yt=i("div"),g(Ro.$$.fragment),rf=s(),nl=i("p"),nl.textContent=Gy,pd=s(),g(No.$$.fragment),dd=s(),F=i("div"),g(Vo.$$.fragment),lf=s(),sl=i("p"),sl.textContent=Zy,cf=s(),g(Et.$$.fragment),pf=s(),ol=i("p"),ol.innerHTML=zy,df=s(),al=i("p"),al.innerHTML=Fy,mf=s(),rl=i("p"),rl.innerHTML=By,hf=s(),g(Xt.$$.fragment),gf=s(),Qt=i("div"),g(So.$$.fragment),ff=s(),il=i("p"),il.textContent=Dy,uf=s(),Kt=i("div"),g(Ao.$$.fragment),Tf=s(),ll=i("p"),ll.textContent=Ry,md=s(),g(Wo.$$.fragment),hd=s(),q=i("div"),g(Lo.$$.fragment),bf=s(),cl=i("p"),cl.innerHTML=Ny,yf=s(),g(en.$$.fragment),wf=s(),pl=i("p"),pl.innerHTML=Vy,xf=s(),dl=i("p"),dl.innerHTML=Sy,_f=s(),ml=i("p"),ml.innerHTML=Ay,Mf=s(),tn=i("div"),g(Ho.$$.fragment),vf=s(),hl=i("p"),hl.textContent=Wy,jf=s(),Le=i("div"),g(Oo.$$.fragment),kf=s(),gl=i("p"),gl.textContent=Ly,Uf=s(),fl=i("p"),fl.textContent=Hy,$f=s(),nn=i("div"),g(Yo.$$.fragment),Jf=s(),ul=i("p"),ul.textContent=Oy,Pf=s(),sn=i("div"),g(Eo.$$.fragment),Cf=s(),Tl=i("p"),Tl.textContent=Yy,If=s(),on=i("div"),g(Xo.$$.fragment),qf=s(),bl=i("p"),bl.textContent=Ey,gd=s(),g(Qo.$$.fragment),fd=s(),ge=i("div"),g(Ko.$$.fragment),Gf=s(),yl=i("p"),yl.textContent=Xy,Zf=s(),wl=i("p"),wl.innerHTML=Qy,zf=s(),xl=i("p"),xl.innerHTML=Ky,Ff=s(),g(an.$$.fragment),Bf=s(),rn=i("div"),g(ea.$$.fragment),Df=s(),_l=i("p"),_l.textContent=ew,ud=s(),g(ta.$$.fragment),Td=s(),V=i("div"),g(na.$$.fragment),Rf=s(),Ml=i("p"),Ml.innerHTML=tw,Nf=s(),vl=i("p"),vl.innerHTML=nw,Vf=s(),g(ln.$$.fragment),Sf=s(),jl=i("p"),jl.innerHTML=sw,Af=s(),kl=i("p"),kl.innerHTML=ow,Wf=s(),Ul=i("p"),Ul.innerHTML=aw,Lf=s(),cn=i("div"),g(sa.$$.fragment),Hf=s(),$l=i("p"),$l.innerHTML=rw,bd=s(),g(oa.$$.fragment),yd=s(),aa=i("p"),aa.textContent=iw,wd=s(),g(ra.$$.fragment),xd=s(),ee=i("div"),g(ia.$$.fragment),Of=s(),Jl=i("p"),Jl.innerHTML=lw,Yf=s(),g(pn.$$.fragment),Ef=s(),Pl=i("p"),Pl.innerHTML=cw,Xf=s(),Cl=i("p"),Cl.innerHTML=pw,Qf=s(),Il=i("p"),Il.innerHTML=dw,Kf=s(),Ne=i("div"),g(la.$$.fragment),eu=s(),ql=i("p"),ql.innerHTML=mw,tu=s(),Gl=i("p"),Gl.textContent=hw,nu=s(),Zl=i("ul"),Zl.innerHTML=gw,_d=s(),g(ca.$$.fragment),Md=s(),te=i("div"),g(pa.$$.fragment),su=s(),zl=i("p"),zl.textContent=fw,ou=s(),g(dn.$$.fragment),au=s(),Fl=i("p"),Fl.innerHTML=uw,ru=s(),Bl=i("p"),Bl.innerHTML=Tw,iu=s(),Dl=i("p"),Dl.innerHTML=bw,lu=s(),mn=i("div"),g(da.$$.fragment),cu=s(),Rl=i("p"),Rl.textContent=yw,vd=s(),g(ma.$$.fragment),jd=s(),ne=i("div"),g(ha.$$.fragment),pu=s(),Nl=i("p"),Nl.textContent=ww,du=s(),g(hn.$$.fragment),mu=s(),Vl=i("p"),Vl.innerHTML=xw,hu=s(),Sl=i("p"),Sl.innerHTML=_w,gu=s(),Al=i("p"),Al.innerHTML=Mw,fu=s(),gn=i("div"),g(ga.$$.fragment),uu=s(),Wl=i("p"),Wl.textContent=vw,kd=s(),g(fa.$$.fragment),Ud=s(),se=i("div"),g(ua.$$.fragment),Tu=s(),Ll=i("p"),Ll.innerHTML=jw,bu=s(),g(fn.$$.fragment),yu=s(),Hl=i("p"),Hl.innerHTML=kw,wu=s(),Ol=i("p"),Ol.textContent=Uw,xu=s(),Yl=i("p"),Yl.innerHTML=$w,_u=s(),un=i("div"),g(Ta.$$.fragment),Mu=s(),El=i("p"),El.textContent=Jw,$d=s(),g(ba.$$.fragment),Jd=s(),oe=i("div"),g(ya.$$.fragment),vu=s(),Xl=i("p"),Xl.innerHTML=Pw,ju=s(),g(Tn.$$.fragment),ku=s(),Ql=i("p"),Ql.innerHTML=Cw,Uu=s(),Kl=i("p"),Kl.innerHTML=Iw,$u=s(),ec=i("p"),ec.innerHTML=qw,Ju=s(),He=i("div"),g(wa.$$.fragment),Pu=s(),tc=i("p"),tc.textContent=Gw,Cu=s(),nc=i("ul"),nc.innerHTML=Zw,Pd=s(),g(xa.$$.fragment),Cd=s(),C=i("div"),g(_a.$$.fragment),Iu=s(),sc=i("p"),sc.textContent=zw,qu=s(),oc=i("p"),oc.textContent=Fw,Gu=s(),ac=i("p"),ac.textContent=Bw,Zu=s(),rc=i("p"),rc.textContent=Dw,zu=s(),ic=i("p"),ic.innerHTML=Rw,Fu=s(),bn=i("div"),g(Ma.$$.fragment),Bu=s(),lc=i("p"),lc.textContent=Nw,Du=s(),Oe=i("div"),g(va.$$.fragment),Ru=s(),cc=i("p"),cc.textContent=Vw,Nu=s(),g(yn.$$.fragment),Vu=s(),wn=i("div"),g(ja.$$.fragment),Su=s(),pc=i("p"),pc.textContent=Sw,Au=s(),xn=i("div"),g(ka.$$.fragment),Wu=s(),dc=i("p"),dc.innerHTML=Aw,Lu=s(),_n=i("div"),g(Ua.$$.fragment),Hu=s(),mc=i("p"),mc.innerHTML=Ww,Ou=s(),Mn=i("div"),g($a.$$.fragment),Yu=s(),hc=i("p"),hc.innerHTML=Lw,Eu=s(),Ye=i("div"),g(Ja.$$.fragment),Xu=s(),gc=i("p"),gc.textContent=Hw,Qu=s(),g(vn.$$.fragment),Ku=s(),jn=i("div"),g(Pa.$$.fragment),eT=s(),fc=i("p"),fc.textContent=Ow,tT=s(),kn=i("div"),g(Ca.$$.fragment),nT=s(),uc=i("p"),uc.innerHTML=Yw,Id=s(),g(Ia.$$.fragment),qd=s(),Mc=i("p"),this.h()},l(e){const p=e2("svelte-u9bgzb",document.head);r=l(p,"META",{name:!0,content:!0}),p.forEach(a),_=o(e),h=l(e,"P",{}),v(h).forEach(a),c=o(e),f(w.$$.fragment,e),t=o(e),x=l(e,"P",{"data-svelte-h":!0}),m(x)!=="svelte-fs43uo"&&(x.innerHTML=_c),jc=o(e),$n=l(e,"P",{"data-svelte-h":!0}),m($n)!=="svelte-c9gfx6"&&($n.textContent=sT),kc=o(e),Jn=l(e,"UL",{"data-svelte-h":!0}),m(Jn)!=="svelte-1gnw57q"&&(Jn.innerHTML=oT),Uc=o(e),f(Pn.$$.fragment,e),$c=o(e),Cn=l(e,"P",{"data-svelte-h":!0}),m(Cn)!=="svelte-1w1m0rn"&&(Cn.innerHTML=aT),Jc=o(e),In=l(e,"P",{"data-svelte-h":!0}),m(In)!=="svelte-1krqwzx"&&(In.textContent=rT),Pc=o(e),f(qn.$$.fragment,e),Cc=o(e),Gn=l(e,"P",{"data-svelte-h":!0}),m(Gn)!=="svelte-11ml0iq"&&(Gn.innerHTML=iT),Ic=o(e),f(Zn.$$.fragment,e),qc=o(e),zn=l(e,"P",{"data-svelte-h":!0}),m(zn)!=="svelte-92cvmm"&&(zn.innerHTML=lT),Gc=o(e),f(Fn.$$.fragment,e),Zc=o(e),Bn=l(e,"P",{"data-svelte-h":!0}),m(Bn)!=="svelte-156nasz"&&(Bn.innerHTML=cT),zc=o(e),f(Dn.$$.fragment,e),Fc=o(e),Rn=l(e,"P",{"data-svelte-h":!0}),m(Rn)!=="svelte-9siszl"&&(Rn.textContent=pT),Bc=o(e),f(Nn.$$.fragment,e),Dc=o(e),ve=l(e,"DIV",{class:!0});var De=v(ve);f(Vn.$$.fragment,De),sm=o(De),er=l(De,"P",{"data-svelte-h":!0}),m(er)!=="svelte-t5s1wu"&&(er.innerHTML=dT),om=o(De),tr=l(De,"P",{"data-svelte-h":!0}),m(tr)!=="svelte-1lntif9"&&(tr.textContent=mT),am=o(De),nr=l(De,"UL",{"data-svelte-h":!0}),m(nr)!=="svelte-18neydl"&&(nr.innerHTML=hT),rm=o(De),f(Xe.$$.fragment,De),De.forEach(a),Rc=o(e),f(Sn.$$.fragment,e),Nc=o(e),An=l(e,"P",{"data-svelte-h":!0}),m(An)!=="svelte-lk0ev4"&&(An.innerHTML=gT),Vc=o(e),f(Wn.$$.fragment,e),Sc=o(e),f(Qe.$$.fragment,e),Ac=o(e),f(Ln.$$.fragment,e),Wc=o(e),f(Hn.$$.fragment,e),Lc=o(e),On=l(e,"P",{"data-svelte-h":!0}),m(On)!=="svelte-wtyref"&&(On.textContent=fT),Hc=o(e),f(Yn.$$.fragment,e),Oc=o(e),En=l(e,"P",{"data-svelte-h":!0}),m(En)!=="svelte-1dsl6cu"&&(En.innerHTML=uT),Yc=o(e),f(Xn.$$.fragment,e),Ec=o(e),Qn=l(e,"P",{"data-svelte-h":!0}),m(Qn)!=="svelte-pz2mpy"&&(Qn.textContent=TT),Xc=o(e),Kn=l(e,"P",{"data-svelte-h":!0}),m(Kn)!=="svelte-m8iv5q"&&(Kn.textContent=bT),Qc=o(e),es=l(e,"UL",{"data-svelte-h":!0}),m(es)!=="svelte-13szoe9"&&(es.innerHTML=yT),Kc=o(e),f(ts.$$.fragment,e),ep=o(e),ns=l(e,"P",{"data-svelte-h":!0}),m(ns)!=="svelte-1anjqeq"&&(ns.innerHTML=wT),tp=o(e),ss=l(e,"P",{"data-svelte-h":!0}),m(ss)!=="svelte-7qgd4q"&&(ss.innerHTML=xT),np=o(e),f(os.$$.fragment,e),sp=o(e),as=l(e,"P",{"data-svelte-h":!0}),m(as)!=="svelte-6wbarw"&&(as.textContent=_T),op=o(e),f(rs.$$.fragment,e),ap=o(e),is=l(e,"P",{"data-svelte-h":!0}),m(is)!=="svelte-1o2q0dr"&&(is.textContent=MT),rp=o(e),ls=l(e,"P",{"data-svelte-h":!0}),m(ls)!=="svelte-srvn2p"&&(ls.innerHTML=vT),ip=o(e),f(cs.$$.fragment,e),lp=o(e),ps=l(e,"P",{"data-svelte-h":!0}),m(ps)!=="svelte-1vk9961"&&(ps.textContent=jT),cp=o(e),ds=l(e,"P",{"data-svelte-h":!0}),m(ds)!=="svelte-cz1axq"&&(ds.innerHTML=kT),pp=o(e),ms=l(e,"P",{"data-svelte-h":!0}),m(ms)!=="svelte-1bhbz67"&&(ms.textContent=UT),dp=o(e),hs=l(e,"UL",{"data-svelte-h":!0}),m(hs)!=="svelte-1ubjjlt"&&(hs.innerHTML=$T),mp=o(e),f(gs.$$.fragment,e),hp=o(e),fs=l(e,"P",{"data-svelte-h":!0}),m(fs)!=="svelte-mfuu0s"&&(fs.textContent=JT),gp=o(e),f(us.$$.fragment,e),fp=o(e),Ts=l(e,"P",{"data-svelte-h":!0}),m(Ts)!=="svelte-1dtjdk1"&&(Ts.innerHTML=PT),up=o(e),f(bs.$$.fragment,e),Tp=o(e),ys=l(e,"P",{"data-svelte-h":!0}),m(ys)!=="svelte-15gsdi4"&&(ys.textContent=CT),bp=o(e),f(ws.$$.fragment,e),yp=o(e),W=l(e,"DIV",{class:!0});var fe=v(W);f(xs.$$.fragment,fe),im=o(fe),sr=l(fe,"P",{"data-svelte-h":!0}),m(sr)!=="svelte-1wmh7ni"&&(sr.innerHTML=IT),lm=o(fe),f(Ke.$$.fragment,fe),cm=o(fe),or=l(fe,"P",{"data-svelte-h":!0}),m(or)!=="svelte-13rexfx"&&(or.innerHTML=qT),pm=o(fe),ar=l(fe,"P",{"data-svelte-h":!0}),m(ar)!=="svelte-1ino3yw"&&(ar.innerHTML=GT),dm=o(fe),rr=l(fe,"P",{"data-svelte-h":!0}),m(rr)!=="svelte-1pv1mxa"&&(rr.innerHTML=ZT),mm=o(fe),et=l(fe,"DIV",{class:!0});var qa=v(et);f(_s.$$.fragment,qa),hm=o(qa),ir=l(qa,"P",{"data-svelte-h":!0}),m(ir)!=="svelte-1ajfpa3"&&(ir.innerHTML=zT),qa.forEach(a),fe.forEach(a),wp=o(e),f(Ms.$$.fragment,e),xp=o(e),le=l(e,"DIV",{class:!0});var ke=v(le);f(vs.$$.fragment,ke),gm=o(ke),lr=l(ke,"P",{"data-svelte-h":!0}),m(lr)!=="svelte-vm8asa"&&(lr.textContent=FT),fm=o(ke),cr=l(ke,"P",{"data-svelte-h":!0}),m(cr)!=="svelte-1l0gjoy"&&(cr.textContent=BT),um=o(ke),f(tt.$$.fragment,ke),Tm=o(ke),pr=l(ke,"P",{"data-svelte-h":!0}),m(pr)!=="svelte-13rexfx"&&(pr.innerHTML=DT),bm=o(ke),nt=l(ke,"DIV",{class:!0});var Ga=v(nt);f(js.$$.fragment,Ga),ym=o(Ga),dr=l(Ga,"P",{"data-svelte-h":!0}),m(dr)!=="svelte-kl0jaa"&&(dr.innerHTML=RT),Ga.forEach(a),ke.forEach(a),_p=o(e),f(ks.$$.fragment,e),Mp=o(e),R=l(e,"DIV",{class:!0});var ae=v(R);f(Us.$$.fragment,ae),wm=o(ae),mr=l(ae,"P",{"data-svelte-h":!0}),m(mr)!=="svelte-y1s454"&&(mr.innerHTML=NT),xm=o(ae),f(st.$$.fragment,ae),_m=o(ae),hr=l(ae,"P",{"data-svelte-h":!0}),m(hr)!=="svelte-13rexfx"&&(hr.innerHTML=VT),Mm=o(ae),f(ot.$$.fragment,ae),vm=o(ae),gr=l(ae,"P",{"data-svelte-h":!0}),m(gr)!=="svelte-8x0g2m"&&(gr.innerHTML=ST),jm=o(ae),fr=l(ae,"P",{"data-svelte-h":!0}),m(fr)!=="svelte-1g4o6wf"&&(fr.innerHTML=AT),km=o(ae),at=l(ae,"DIV",{class:!0});var Za=v(at);f($s.$$.fragment,Za),Um=o(Za),ur=l(Za,"P",{"data-svelte-h":!0}),m(ur)!=="svelte-6fjjdy"&&(ur.innerHTML=WT),Za.forEach(a),ae.forEach(a),vp=o(e),f(Js.$$.fragment,e),jp=o(e),ce=l(e,"DIV",{class:!0});var Ue=v(ce);f(Ps.$$.fragment,Ue),$m=o(Ue),Tr=l(Ue,"P",{"data-svelte-h":!0}),m(Tr)!=="svelte-tmg4zt"&&(Tr.innerHTML=LT),Jm=o(Ue),f(rt.$$.fragment,Ue),Pm=o(Ue),f(it.$$.fragment,Ue),Cm=o(Ue),br=l(Ue,"P",{"data-svelte-h":!0}),m(br)!=="svelte-xp1b2n"&&(br.innerHTML=HT),Im=o(Ue),lt=l(Ue,"DIV",{class:!0});var za=v(lt);f(Cs.$$.fragment,za),qm=o(za),yr=l(za,"P",{"data-svelte-h":!0}),m(yr)!=="svelte-kd58rd"&&(yr.textContent=OT),za.forEach(a),Ue.forEach(a),kp=o(e),f(Is.$$.fragment,e),Up=o(e),qs=l(e,"P",{"data-svelte-h":!0}),m(qs)!=="svelte-wtc79l"&&(qs.textContent=YT),$p=o(e),f(Gs.$$.fragment,e),Jp=o(e),L=l(e,"DIV",{class:!0});var ue=v(L);f(Zs.$$.fragment,ue),Gm=o(ue),wr=l(ue,"P",{"data-svelte-h":!0}),m(wr)!=="svelte-cmozej"&&(wr.innerHTML=ET),Zm=o(ue),f(ct.$$.fragment,ue),zm=o(ue),xr=l(ue,"P",{"data-svelte-h":!0}),m(xr)!=="svelte-13rexfx"&&(xr.innerHTML=XT),Fm=o(ue),_r=l(ue,"P",{"data-svelte-h":!0}),m(_r)!=="svelte-v714te"&&(_r.innerHTML=QT),Bm=o(ue),Mr=l(ue,"P",{"data-svelte-h":!0}),m(Mr)!=="svelte-6trb8y"&&(Mr.innerHTML=KT),Dm=o(ue),pt=l(ue,"DIV",{class:!0});var Fa=v(pt);f(zs.$$.fragment,Fa),Rm=o(Fa),vr=l(Fa,"P",{"data-svelte-h":!0}),m(vr)!=="svelte-10lhg27"&&(vr.textContent=eb),Fa.forEach(a),ue.forEach(a),Pp=o(e),f(Fs.$$.fragment,e),Cp=o(e),H=l(e,"DIV",{class:!0});var Te=v(H);f(Bs.$$.fragment,Te),Nm=o(Te),jr=l(Te,"P",{"data-svelte-h":!0}),m(jr)!=="svelte-rlbi70"&&(jr.innerHTML=tb),Vm=o(Te),f(dt.$$.fragment,Te),Sm=o(Te),kr=l(Te,"P",{"data-svelte-h":!0}),m(kr)!=="svelte-13rexfx"&&(kr.innerHTML=nb),Am=o(Te),Ur=l(Te,"P",{"data-svelte-h":!0}),m(Ur)!=="svelte-djlqtm"&&(Ur.innerHTML=sb),Wm=o(Te),$r=l(Te,"P",{"data-svelte-h":!0}),m($r)!=="svelte-cqpf5t"&&($r.innerHTML=ob),Lm=o(Te),mt=l(Te,"DIV",{class:!0});var Ba=v(mt);f(Ds.$$.fragment,Ba),Hm=o(Ba),Jr=l(Ba,"P",{"data-svelte-h":!0}),m(Jr)!=="svelte-ypfmt8"&&(Jr.textContent=ab),Ba.forEach(a),Te.forEach(a),Ip=o(e),f(Rs.$$.fragment,e),qp=o(e),pe=l(e,"DIV",{class:!0});var $e=v(pe);f(Ns.$$.fragment,$e),Om=o($e),Pr=l($e,"P",{"data-svelte-h":!0}),m(Pr)!=="svelte-1y2a978"&&(Pr.innerHTML=rb),Ym=o($e),f(ht.$$.fragment,$e),Em=o($e),Cr=l($e,"P",{"data-svelte-h":!0}),m(Cr)!=="svelte-1dybcly"&&(Cr.innerHTML=ib),Xm=o($e),Ir=l($e,"P",{"data-svelte-h":!0}),m(Ir)!=="svelte-151zbn3"&&(Ir.innerHTML=lb),Qm=o($e),gt=l($e,"DIV",{class:!0});var Da=v(gt);f(Vs.$$.fragment,Da),Km=o(Da),qr=l(Da,"P",{"data-svelte-h":!0}),m(qr)!=="svelte-1qn9qfa"&&(qr.textContent=cb),Da.forEach(a),$e.forEach(a),Gp=o(e),f(Ss.$$.fragment,e),Zp=o(e),de=l(e,"DIV",{class:!0});var Je=v(de);f(As.$$.fragment,Je),eh=o(Je),Gr=l(Je,"P",{"data-svelte-h":!0}),m(Gr)!=="svelte-5hn3v1"&&(Gr.innerHTML=pb),th=o(Je),f(ft.$$.fragment,Je),nh=o(Je),Zr=l(Je,"P",{"data-svelte-h":!0}),m(Zr)!=="svelte-1pj627"&&(Zr.innerHTML=db),sh=o(Je),zr=l(Je,"P",{"data-svelte-h":!0}),m(zr)!=="svelte-1pm9980"&&(zr.innerHTML=mb),oh=o(Je),ut=l(Je,"DIV",{class:!0});var Ra=v(ut);f(Ws.$$.fragment,Ra),ah=o(Ra),Fr=l(Ra,"P",{"data-svelte-h":!0}),m(Fr)!=="svelte-1ega32d"&&(Fr.textContent=hb),Ra.forEach(a),Je.forEach(a),zp=o(e),f(Ls.$$.fragment,e),Fp=o(e),O=l(e,"DIV",{class:!0});var be=v(O);f(Hs.$$.fragment,be),rh=o(be),Br=l(be,"P",{"data-svelte-h":!0}),m(Br)!=="svelte-1c7y9od"&&(Br.innerHTML=gb),ih=o(be),f(Tt.$$.fragment,be),lh=o(be),Dr=l(be,"P",{"data-svelte-h":!0}),m(Dr)!=="svelte-13rexfx"&&(Dr.innerHTML=fb),ch=o(be),Rr=l(be,"P",{"data-svelte-h":!0}),m(Rr)!=="svelte-2f7p50"&&(Rr.innerHTML=ub),ph=o(be),Nr=l(be,"P",{"data-svelte-h":!0}),m(Nr)!=="svelte-1ea8edc"&&(Nr.innerHTML=Tb),dh=o(be),bt=l(be,"DIV",{class:!0});var Na=v(bt);f(Os.$$.fragment,Na),mh=o(Na),Vr=l(Na,"P",{"data-svelte-h":!0}),m(Vr)!=="svelte-1ws18e1"&&(Vr.textContent=bb),Na.forEach(a),be.forEach(a),Bp=o(e),f(Ys.$$.fragment,e),Dp=o(e),je=l(e,"DIV",{class:!0});var Re=v(je);f(Es.$$.fragment,Re),hh=o(Re),Sr=l(Re,"P",{"data-svelte-h":!0}),m(Sr)!=="svelte-115eloe"&&(Sr.innerHTML=yb),gh=o(Re),Ar=l(Re,"P",{"data-svelte-h":!0}),m(Ar)!=="svelte-1fx141y"&&(Ar.innerHTML=wb),fh=o(Re),Wr=l(Re,"P",{"data-svelte-h":!0}),m(Wr)!=="svelte-38n9pn"&&(Wr.innerHTML=xb),uh=o(Re),yt=l(Re,"DIV",{class:!0});var Va=v(yt);f(Xs.$$.fragment,Va),Th=o(Va),Lr=l(Va,"P",{"data-svelte-h":!0}),m(Lr)!=="svelte-1wpkis2"&&(Lr.textContent=_b),Va.forEach(a),Re.forEach(a),Rp=o(e),f(Qs.$$.fragment,e),Np=o(e),Y=l(e,"DIV",{class:!0});var ye=v(Y);f(Ks.$$.fragment,ye),bh=o(ye),Hr=l(ye,"P",{"data-svelte-h":!0}),m(Hr)!=="svelte-1lqk35m"&&(Hr.innerHTML=Mb),yh=o(ye),f(wt.$$.fragment,ye),wh=o(ye),Or=l(ye,"P",{"data-svelte-h":!0}),m(Or)!=="svelte-13rexfx"&&(Or.innerHTML=vb),xh=o(ye),Yr=l(ye,"P",{"data-svelte-h":!0}),m(Yr)!=="svelte-dfirye"&&(Yr.innerHTML=jb),_h=o(ye),Er=l(ye,"P",{"data-svelte-h":!0}),m(Er)!=="svelte-ab0ict"&&(Er.innerHTML=kb),Mh=o(ye),xt=l(ye,"DIV",{class:!0});var Sa=v(xt);f(eo.$$.fragment,Sa),vh=o(Sa),Xr=l(Sa,"P",{"data-svelte-h":!0}),m(Xr)!=="svelte-ypfmt8"&&(Xr.textContent=Ub),Sa.forEach(a),ye.forEach(a),Vp=o(e),f(to.$$.fragment,e),Sp=o(e),E=l(e,"DIV",{class:!0});var we=v(E);f(no.$$.fragment,we),jh=o(we),Qr=l(we,"P",{"data-svelte-h":!0}),m(Qr)!=="svelte-zegbdg"&&(Qr.innerHTML=$b),kh=o(we),f(_t.$$.fragment,we),Uh=o(we),Kr=l(we,"P",{"data-svelte-h":!0}),m(Kr)!=="svelte-13rexfx"&&(Kr.innerHTML=Jb),$h=o(we),ei=l(we,"P",{"data-svelte-h":!0}),m(ei)!=="svelte-1q9m2yw"&&(ei.innerHTML=Pb),Jh=o(we),ti=l(we,"P",{"data-svelte-h":!0}),m(ti)!=="svelte-1lmpzxi"&&(ti.innerHTML=Cb),Ph=o(we),Mt=l(we,"DIV",{class:!0});var Aa=v(Mt);f(so.$$.fragment,Aa),Ch=o(Aa),ni=l(Aa,"P",{"data-svelte-h":!0}),m(ni)!=="svelte-1ws18e1"&&(ni.textContent=Ib),Aa.forEach(a),we.forEach(a),Ap=o(e),f(oo.$$.fragment,e),Wp=o(e),ao=l(e,"P",{"data-svelte-h":!0}),m(ao)!=="svelte-at3w34"&&(ao.textContent=qb),Lp=o(e),f(ro.$$.fragment,e),Hp=o(e),me=l(e,"DIV",{class:!0});var Pe=v(me);f(io.$$.fragment,Pe),Ih=o(Pe),si=l(Pe,"P",{"data-svelte-h":!0}),m(si)!=="svelte-1jiqy8g"&&(si.innerHTML=Gb),qh=o(Pe),f(vt.$$.fragment,Pe),Gh=o(Pe),jt=l(Pe,"DIV",{class:!0});var Wa=v(jt);f(lo.$$.fragment,Wa),Zh=o(Wa),oi=l(Wa,"P",{"data-svelte-h":!0}),m(oi)!=="svelte-dgjtw0"&&(oi.innerHTML=Zb),Wa.forEach(a),zh=o(Pe),kt=l(Pe,"DIV",{class:!0});var La=v(kt);f(co.$$.fragment,La),Fh=o(La),ai=l(La,"P",{"data-svelte-h":!0}),m(ai)!=="svelte-4if1o7"&&(ai.innerHTML=zb),La.forEach(a),Bh=o(Pe),Ut=l(Pe,"DIV",{class:!0});var Ha=v(Ut);f(po.$$.fragment,Ha),Dh=o(Ha),ri=l(Ha,"P",{"data-svelte-h":!0}),m(ri)!=="svelte-1atfogl"&&(ri.textContent=Fb),Ha.forEach(a),Pe.forEach(a),Op=o(e),X=l(e,"DIV",{class:!0});var xe=v(X);f(mo.$$.fragment,xe),Rh=o(xe),ii=l(xe,"P",{"data-svelte-h":!0}),m(ii)!=="svelte-1aof0an"&&(ii.textContent=Bb),Nh=o(xe),f($t.$$.fragment,xe),Vh=o(xe),li=l(xe,"P",{"data-svelte-h":!0}),m(li)!=="svelte-13rexfx"&&(li.innerHTML=Db),Sh=o(xe),ci=l(xe,"P",{"data-svelte-h":!0}),m(ci)!=="svelte-pbct5p"&&(ci.innerHTML=Rb),Ah=o(xe),pi=l(xe,"P",{"data-svelte-h":!0}),m(pi)!=="svelte-11boun1"&&(pi.innerHTML=Nb),Wh=o(xe),Jt=l(xe,"DIV",{class:!0});var Oa=v(Jt);f(ho.$$.fragment,Oa),Lh=o(Oa),di=l(Oa,"P",{"data-svelte-h":!0}),m(di)!=="svelte-71qq28"&&(di.textContent=Vb),Oa.forEach(a),xe.forEach(a),Yp=o(e),f(go.$$.fragment,e),Ep=o(e),Z=l(e,"DIV",{class:!0});var S=v(Z);f(fo.$$.fragment,S),Hh=o(S),mi=l(S,"P",{"data-svelte-h":!0}),m(mi)!=="svelte-1y2vlya"&&(mi.innerHTML=Sb),Oh=o(S),f(Pt.$$.fragment,S),Yh=o(S),hi=l(S,"P",{"data-svelte-h":!0}),m(hi)!=="svelte-13rexfx"&&(hi.innerHTML=Ab),Eh=o(S),gi=l(S,"P",{"data-svelte-h":!0}),m(gi)!=="svelte-pttydi"&&(gi.innerHTML=Wb),Xh=o(S),fi=l(S,"P",{"data-svelte-h":!0}),m(fi)!=="svelte-6ieg"&&(fi.innerHTML=Lb),Qh=o(S),f(Ct.$$.fragment,S),Kh=o(S),f(It.$$.fragment,S),eg=o(S),qt=l(S,"DIV",{class:!0});var Ya=v(qt);f(uo.$$.fragment,Ya),tg=o(Ya),ui=l(Ya,"P",{"data-svelte-h":!0}),m(ui)!=="svelte-1dgb1r"&&(ui.textContent=Hb),Ya.forEach(a),S.forEach(a),Xp=o(e),f(To.$$.fragment,e),Qp=o(e),G=l(e,"DIV",{class:!0});var B=v(G);f(bo.$$.fragment,B),ng=o(B),Ti=l(B,"P",{"data-svelte-h":!0}),m(Ti)!=="svelte-15adoar"&&(Ti.innerHTML=Ob),sg=o(B),f(Gt.$$.fragment,B),og=o(B),bi=l(B,"P",{"data-svelte-h":!0}),m(bi)!=="svelte-13rexfx"&&(bi.innerHTML=Yb),ag=o(B),yi=l(B,"P",{"data-svelte-h":!0}),m(yi)!=="svelte-1812hrf"&&(yi.innerHTML=Eb),rg=o(B),wi=l(B,"P",{"data-svelte-h":!0}),m(wi)!=="svelte-jwg5m8"&&(wi.innerHTML=Xb),ig=o(B),Ae=l(B,"DIV",{class:!0});var Ee=v(Ae);f(yo.$$.fragment,Ee),lg=o(Ee),xi=l(Ee,"P",{"data-svelte-h":!0}),m(xi)!=="svelte-1qebl0w"&&(xi.textContent=Qb),cg=o(Ee),_i=l(Ee,"P",{"data-svelte-h":!0}),m(_i)!=="svelte-m7pmui"&&(_i.textContent=Kb),Ee.forEach(a),pg=o(B),Zt=l(B,"DIV",{class:!0});var Ea=v(Zt);f(wo.$$.fragment,Ea),dg=o(Ea),Mi=l(Ea,"P",{"data-svelte-h":!0}),m(Mi)!=="svelte-lj4b08"&&(Mi.textContent=ey),Ea.forEach(a),mg=o(B),zt=l(B,"DIV",{class:!0});var Xa=v(zt);f(xo.$$.fragment,Xa),hg=o(Xa),vi=l(Xa,"P",{"data-svelte-h":!0}),m(vi)!=="svelte-226no6"&&(vi.textContent=ty),Xa.forEach(a),gg=o(B),Ft=l(B,"DIV",{class:!0});var Qa=v(Ft);f(_o.$$.fragment,Qa),fg=o(Qa),ji=l(Qa,"P",{"data-svelte-h":!0}),m(ji)!=="svelte-vx34uc"&&(ji.textContent=ny),Qa.forEach(a),B.forEach(a),Kp=o(e),Mo=l(e,"P",{"data-svelte-h":!0}),m(Mo)!=="svelte-csvmd5"&&(Mo.innerHTML=sy),ed=o(e),f(vo.$$.fragment,e),td=o(e),z=l(e,"DIV",{class:!0});var A=v(z);f(jo.$$.fragment,A),ug=o(A),ki=l(A,"P",{"data-svelte-h":!0}),m(ki)!=="svelte-81lrkw"&&(ki.innerHTML=oy),Tg=o(A),f(Bt.$$.fragment,A),bg=o(A),Ui=l(A,"P",{"data-svelte-h":!0}),m(Ui)!=="svelte-13rexfx"&&(Ui.innerHTML=ay),yg=o(A),$i=l(A,"P",{"data-svelte-h":!0}),m($i)!=="svelte-xw8vt0"&&($i.innerHTML=ry),wg=o(A),Ji=l(A,"P",{"data-svelte-h":!0}),m(Ji)!=="svelte-13vdwbu"&&(Ji.innerHTML=iy),xg=o(A),Dt=l(A,"DIV",{class:!0});var Ka=v(Dt);f(ko.$$.fragment,Ka),_g=o(Ka),Pi=l(Ka,"P",{"data-svelte-h":!0}),m(Pi)!=="svelte-2lj46g"&&(Pi.textContent=ly),Ka.forEach(a),Mg=o(A),We=l(A,"DIV",{class:!0});var Tc=v(We);f(Uo.$$.fragment,Tc),vg=o(Tc),Ci=l(Tc,"P",{"data-svelte-h":!0}),m(Ci)!=="svelte-1iglp3e"&&(Ci.innerHTML=cy),jg=o(Tc),Ii=l(Tc,"P",{"data-svelte-h":!0}),m(Ii)!=="svelte-tiqx9u"&&(Ii.textContent=py),Tc.forEach(a),kg=o(A),Rt=l(A,"DIV",{class:!0});var Zd=v(Rt);f($o.$$.fragment,Zd),Ug=o(Zd),qi=l(Zd,"P",{"data-svelte-h":!0}),m(qi)!=="svelte-d6foro"&&(qi.textContent=dy),Zd.forEach(a),A.forEach(a),nd=o(e),f(Jo.$$.fragment,e),sd=o(e),he=l(e,"DIV",{class:!0});var Ve=v(he);f(Po.$$.fragment,Ve),$g=o(Ve),Gi=l(Ve,"P",{"data-svelte-h":!0}),m(Gi)!=="svelte-4fy8a0"&&(Gi.textContent=my),Jg=o(Ve),Zi=l(Ve,"P",{"data-svelte-h":!0}),m(Zi)!=="svelte-1ohb0wa"&&(Zi.innerHTML=hy),Pg=o(Ve),zi=l(Ve,"P",{"data-svelte-h":!0}),m(zi)!=="svelte-1rau5o"&&(zi.innerHTML=gy),Cg=o(Ve),f(Nt.$$.fragment,Ve),Ig=o(Ve),Vt=l(Ve,"DIV",{class:!0});var zd=v(Vt);f(Co.$$.fragment,zd),qg=o(zd),Fi=l(zd,"P",{"data-svelte-h":!0}),m(Fi)!=="svelte-myfdp"&&(Fi.textContent=fy),zd.forEach(a),Ve.forEach(a),od=o(e),f(Io.$$.fragment,e),ad=o(e),Q=l(e,"DIV",{class:!0});var Ce=v(Q);f(qo.$$.fragment,Ce),Gg=o(Ce),Bi=l(Ce,"P",{"data-svelte-h":!0}),m(Bi)!=="svelte-1j45sfj"&&(Bi.innerHTML=uy),Zg=o(Ce),f(St.$$.fragment,Ce),zg=o(Ce),Di=l(Ce,"P",{"data-svelte-h":!0}),m(Di)!=="svelte-13rexfx"&&(Di.innerHTML=Ty),Fg=o(Ce),Ri=l(Ce,"P",{"data-svelte-h":!0}),m(Ri)!=="svelte-1ssigr8"&&(Ri.innerHTML=by),Bg=o(Ce),Ni=l(Ce,"P",{"data-svelte-h":!0}),m(Ni)!=="svelte-1jig9aq"&&(Ni.innerHTML=yy),Dg=o(Ce),re=l(Ce,"DIV",{class:!0});var Ie=v(re);f(Go.$$.fragment,Ie),Rg=o(Ie),Vi=l(Ie,"P",{"data-svelte-h":!0}),m(Vi)!=="svelte-1pyysfu"&&(Vi.textContent=wy),Ng=o(Ie),Si=l(Ie,"UL",{"data-svelte-h":!0}),m(Si)!=="svelte-1ny9a5f"&&(Si.innerHTML=xy),Vg=o(Ie),Ai=l(Ie,"P",{"data-svelte-h":!0}),m(Ai)!=="svelte-11u3uey"&&(Ai.innerHTML=_y),Sg=o(Ie),f(At.$$.fragment,Ie),Ag=o(Ie),Wi=l(Ie,"P",{"data-svelte-h":!0}),m(Wi)!=="svelte-madj2v"&&(Wi.textContent=My),Wg=o(Ie),f(Wt.$$.fragment,Ie),Ie.forEach(a),Ce.forEach(a),rd=o(e),f(Zo.$$.fragment,e),id=o(e),N=l(e,"DIV",{class:!0});var _e=v(N);f(zo.$$.fragment,_e),Lg=o(_e),Li=l(_e,"P",{"data-svelte-h":!0}),m(Li)!=="svelte-n7evf0"&&(Li.innerHTML=vy),Hg=o(_e),f(Lt.$$.fragment,_e),Og=o(_e),Hi=l(_e,"P",{"data-svelte-h":!0}),m(Hi)!=="svelte-13rexfx"&&(Hi.innerHTML=jy),Yg=o(_e),Oi=l(_e,"P",{"data-svelte-h":!0}),m(Oi)!=="svelte-69bwxk"&&(Oi.innerHTML=ky),Eg=o(_e),Yi=l(_e,"P",{"data-svelte-h":!0}),m(Yi)!=="svelte-me3s3q"&&(Yi.innerHTML=Uy),Xg=o(_e),Ei=l(_e,"P",{"data-svelte-h":!0}),m(Ei)!=="svelte-1qrdw9i"&&(Ei.innerHTML=$y),Qg=o(_e),Ht=l(_e,"DIV",{class:!0});var Fd=v(Ht);f(Fo.$$.fragment,Fd),Kg=o(Fd),Xi=l(Fd,"P",{"data-svelte-h":!0}),m(Xi)!=="svelte-14zfmze"&&(Xi.textContent=Jy),Fd.forEach(a),_e.forEach(a),ld=o(e),f(Bo.$$.fragment,e),cd=o(e),K=l(e,"DIV",{class:!0});var qe=v(K);f(Do.$$.fragment,qe),ef=o(qe),Qi=l(qe,"P",{"data-svelte-h":!0}),m(Qi)!=="svelte-507nyz"&&(Qi.innerHTML=Py),tf=o(qe),f(Ot.$$.fragment,qe),nf=o(qe),Ki=l(qe,"P",{"data-svelte-h":!0}),m(Ki)!=="svelte-26qptp"&&(Ki.innerHTML=Cy),sf=o(qe),el=l(qe,"P",{"data-svelte-h":!0}),m(el)!=="svelte-1m48kgz"&&(el.innerHTML=Iy),of=o(qe),tl=l(qe,"P",{"data-svelte-h":!0}),m(tl)!=="svelte-1qhi99d"&&(tl.innerHTML=qy),af=o(qe),Yt=l(qe,"DIV",{class:!0});var Bd=v(Yt);f(Ro.$$.fragment,Bd),rf=o(Bd),nl=l(Bd,"P",{"data-svelte-h":!0}),m(nl)!=="svelte-1ql86ls"&&(nl.textContent=Gy),Bd.forEach(a),qe.forEach(a),pd=o(e),f(No.$$.fragment,e),dd=o(e),F=l(e,"DIV",{class:!0});var ie=v(F);f(Vo.$$.fragment,ie),lf=o(ie),sl=l(ie,"P",{"data-svelte-h":!0}),m(sl)!=="svelte-xbi6mw"&&(sl.textContent=Zy),cf=o(ie),f(Et.$$.fragment,ie),pf=o(ie),ol=l(ie,"P",{"data-svelte-h":!0}),m(ol)!=="svelte-26qptp"&&(ol.innerHTML=zy),df=o(ie),al=l(ie,"P",{"data-svelte-h":!0}),m(al)!=="svelte-1h454j0"&&(al.innerHTML=Fy),mf=o(ie),rl=l(ie,"P",{"data-svelte-h":!0}),m(rl)!=="svelte-1iyxmj8"&&(rl.innerHTML=By),hf=o(ie),f(Xt.$$.fragment,ie),gf=o(ie),Qt=l(ie,"DIV",{class:!0});var Dd=v(Qt);f(So.$$.fragment,Dd),ff=o(Dd),il=l(Dd,"P",{"data-svelte-h":!0}),m(il)!=="svelte-48qsnz"&&(il.textContent=Dy),Dd.forEach(a),uf=o(ie),Kt=l(ie,"DIV",{class:!0});var Rd=v(Kt);f(Ao.$$.fragment,Rd),Tf=o(Rd),ll=l(Rd,"P",{"data-svelte-h":!0}),m(ll)!=="svelte-uzfqtg"&&(ll.textContent=Ry),Rd.forEach(a),ie.forEach(a),md=o(e),f(Wo.$$.fragment,e),hd=o(e),q=l(e,"DIV",{class:!0});var D=v(q);f(Lo.$$.fragment,D),bf=o(D),cl=l(D,"P",{"data-svelte-h":!0}),m(cl)!=="svelte-15adoar"&&(cl.innerHTML=Ny),yf=o(D),f(en.$$.fragment,D),wf=o(D),pl=l(D,"P",{"data-svelte-h":!0}),m(pl)!=="svelte-13rexfx"&&(pl.innerHTML=Vy),xf=o(D),dl=l(D,"P",{"data-svelte-h":!0}),m(dl)!=="svelte-1812hrf"&&(dl.innerHTML=Sy),_f=o(D),ml=l(D,"P",{"data-svelte-h":!0}),m(ml)!=="svelte-jwg5m8"&&(ml.innerHTML=Ay),Mf=o(D),tn=l(D,"DIV",{class:!0});var Nd=v(tn);f(Ho.$$.fragment,Nd),vf=o(Nd),hl=l(Nd,"P",{"data-svelte-h":!0}),m(hl)!=="svelte-1fmsbp5"&&(hl.textContent=Wy),Nd.forEach(a),jf=o(D),Le=l(D,"DIV",{class:!0});var bc=v(Le);f(Oo.$$.fragment,bc),kf=o(bc),gl=l(bc,"P",{"data-svelte-h":!0}),m(gl)!=="svelte-1qebl0w"&&(gl.textContent=Ly),Uf=o(bc),fl=l(bc,"P",{"data-svelte-h":!0}),m(fl)!=="svelte-m7pmui"&&(fl.textContent=Hy),bc.forEach(a),$f=o(D),nn=l(D,"DIV",{class:!0});var Vd=v(nn);f(Yo.$$.fragment,Vd),Jf=o(Vd),ul=l(Vd,"P",{"data-svelte-h":!0}),m(ul)!=="svelte-lj4b08"&&(ul.textContent=Oy),Vd.forEach(a),Pf=o(D),sn=l(D,"DIV",{class:!0});var Sd=v(sn);f(Eo.$$.fragment,Sd),Cf=o(Sd),Tl=l(Sd,"P",{"data-svelte-h":!0}),m(Tl)!=="svelte-226no6"&&(Tl.textContent=Yy),Sd.forEach(a),If=o(D),on=l(D,"DIV",{class:!0});var Ad=v(on);f(Xo.$$.fragment,Ad),qf=o(Ad),bl=l(Ad,"P",{"data-svelte-h":!0}),m(bl)!=="svelte-vx34uc"&&(bl.textContent=Ey),Ad.forEach(a),D.forEach(a),gd=o(e),f(Qo.$$.fragment,e),fd=o(e),ge=l(e,"DIV",{class:!0});var Se=v(ge);f(Ko.$$.fragment,Se),Gf=o(Se),yl=l(Se,"P",{"data-svelte-h":!0}),m(yl)!=="svelte-1ufl6u7"&&(yl.textContent=Xy),Zf=o(Se),wl=l(Se,"P",{"data-svelte-h":!0}),m(wl)!=="svelte-hm5m3n"&&(wl.innerHTML=Qy),zf=o(Se),xl=l(Se,"P",{"data-svelte-h":!0}),m(xl)!=="svelte-175zgvy"&&(xl.innerHTML=Ky),Ff=o(Se),f(an.$$.fragment,Se),Bf=o(Se),rn=l(Se,"DIV",{class:!0});var Wd=v(rn);f(ea.$$.fragment,Wd),Df=o(Wd),_l=l(Wd,"P",{"data-svelte-h":!0}),m(_l)!=="svelte-1q7dj96"&&(_l.textContent=ew),Wd.forEach(a),Se.forEach(a),ud=o(e),f(ta.$$.fragment,e),Td=o(e),V=l(e,"DIV",{class:!0});var Me=v(V);f(na.$$.fragment,Me),Rf=o(Me),Ml=l(Me,"P",{"data-svelte-h":!0}),m(Ml)!=="svelte-gusdnf"&&(Ml.innerHTML=tw),Nf=o(Me),vl=l(Me,"P",{"data-svelte-h":!0}),m(vl)!=="svelte-1hjzyz9"&&(vl.innerHTML=nw),Vf=o(Me),f(ln.$$.fragment,Me),Sf=o(Me),jl=l(Me,"P",{"data-svelte-h":!0}),m(jl)!=="svelte-13rexfx"&&(jl.innerHTML=sw),Af=o(Me),kl=l(Me,"P",{"data-svelte-h":!0}),m(kl)!=="svelte-1umsftc"&&(kl.innerHTML=ow),Wf=o(Me),Ul=l(Me,"P",{"data-svelte-h":!0}),m(Ul)!=="svelte-17eq97f"&&(Ul.innerHTML=aw),Lf=o(Me),cn=l(Me,"DIV",{class:!0});var Ld=v(cn);f(sa.$$.fragment,Ld),Hf=o(Ld),$l=l(Ld,"P",{"data-svelte-h":!0}),m($l)!=="svelte-lwmddf"&&($l.innerHTML=rw),Ld.forEach(a),Me.forEach(a),bd=o(e),f(oa.$$.fragment,e),yd=o(e),aa=l(e,"P",{"data-svelte-h":!0}),m(aa)!=="svelte-1xh66q3"&&(aa.textContent=iw),wd=o(e),f(ra.$$.fragment,e),xd=o(e),ee=l(e,"DIV",{class:!0});var Ge=v(ee);f(ia.$$.fragment,Ge),Of=o(Ge),Jl=l(Ge,"P",{"data-svelte-h":!0}),m(Jl)!=="svelte-40flx9"&&(Jl.innerHTML=lw),Yf=o(Ge),f(pn.$$.fragment,Ge),Ef=o(Ge),Pl=l(Ge,"P",{"data-svelte-h":!0}),m(Pl)!=="svelte-13rexfx"&&(Pl.innerHTML=cw),Xf=o(Ge),Cl=l(Ge,"P",{"data-svelte-h":!0}),m(Cl)!=="svelte-d76wq3"&&(Cl.innerHTML=pw),Qf=o(Ge),Il=l(Ge,"P",{"data-svelte-h":!0}),m(Il)!=="svelte-1akhzjj"&&(Il.innerHTML=dw),Kf=o(Ge),Ne=l(Ge,"DIV",{class:!0});var Un=v(Ne);f(la.$$.fragment,Un),eu=o(Un),ql=l(Un,"P",{"data-svelte-h":!0}),m(ql)!=="svelte-1211nrg"&&(ql.innerHTML=mw),tu=o(Un),Gl=l(Un,"P",{"data-svelte-h":!0}),m(Gl)!=="svelte-1njhmhw"&&(Gl.textContent=hw),nu=o(Un),Zl=l(Un,"UL",{"data-svelte-h":!0}),m(Zl)!=="svelte-gfpbs1"&&(Zl.innerHTML=gw),Un.forEach(a),Ge.forEach(a),_d=o(e),f(ca.$$.fragment,e),Md=o(e),te=l(e,"DIV",{class:!0});var Ze=v(te);f(pa.$$.fragment,Ze),su=o(Ze),zl=l(Ze,"P",{"data-svelte-h":!0}),m(zl)!=="svelte-2bxem6"&&(zl.textContent=fw),ou=o(Ze),f(dn.$$.fragment,Ze),au=o(Ze),Fl=l(Ze,"P",{"data-svelte-h":!0}),m(Fl)!=="svelte-13rexfx"&&(Fl.innerHTML=uw),ru=o(Ze),Bl=l(Ze,"P",{"data-svelte-h":!0}),m(Bl)!=="svelte-7u6whz"&&(Bl.innerHTML=Tw),iu=o(Ze),Dl=l(Ze,"P",{"data-svelte-h":!0}),m(Dl)!=="svelte-85c9z6"&&(Dl.innerHTML=bw),lu=o(Ze),mn=l(Ze,"DIV",{class:!0});var Hd=v(mn);f(da.$$.fragment,Hd),cu=o(Hd),Rl=l(Hd,"P",{"data-svelte-h":!0}),m(Rl)!=="svelte-11eoigb"&&(Rl.textContent=yw),Hd.forEach(a),Ze.forEach(a),vd=o(e),f(ma.$$.fragment,e),jd=o(e),ne=l(e,"DIV",{class:!0});var ze=v(ne);f(ha.$$.fragment,ze),pu=o(ze),Nl=l(ze,"P",{"data-svelte-h":!0}),m(Nl)!=="svelte-1cp7rf7"&&(Nl.textContent=ww),du=o(ze),f(hn.$$.fragment,ze),mu=o(ze),Vl=l(ze,"P",{"data-svelte-h":!0}),m(Vl)!=="svelte-13rexfx"&&(Vl.innerHTML=xw),hu=o(ze),Sl=l(ze,"P",{"data-svelte-h":!0}),m(Sl)!=="svelte-1a2lu1o"&&(Sl.innerHTML=_w),gu=o(ze),Al=l(ze,"P",{"data-svelte-h":!0}),m(Al)!=="svelte-19r0ftw"&&(Al.innerHTML=Mw),fu=o(ze),gn=l(ze,"DIV",{class:!0});var Od=v(gn);f(ga.$$.fragment,Od),uu=o(Od),Wl=l(Od,"P",{"data-svelte-h":!0}),m(Wl)!=="svelte-11eoigb"&&(Wl.textContent=vw),Od.forEach(a),ze.forEach(a),kd=o(e),f(fa.$$.fragment,e),Ud=o(e),se=l(e,"DIV",{class:!0});var Fe=v(se);f(ua.$$.fragment,Fe),Tu=o(Fe),Ll=l(Fe,"P",{"data-svelte-h":!0}),m(Ll)!=="svelte-yuzbfo"&&(Ll.innerHTML=jw),bu=o(Fe),f(fn.$$.fragment,Fe),yu=o(Fe),Hl=l(Fe,"P",{"data-svelte-h":!0}),m(Hl)!=="svelte-13rexfx"&&(Hl.innerHTML=kw),wu=o(Fe),Ol=l(Fe,"P",{"data-svelte-h":!0}),m(Ol)!=="svelte-172bsdq"&&(Ol.textContent=Uw),xu=o(Fe),Yl=l(Fe,"P",{"data-svelte-h":!0}),m(Yl)!=="svelte-6aba0z"&&(Yl.innerHTML=$w),_u=o(Fe),un=l(Fe,"DIV",{class:!0});var Yd=v(un);f(Ta.$$.fragment,Yd),Mu=o(Yd),El=l(Yd,"P",{"data-svelte-h":!0}),m(El)!=="svelte-ypfmt8"&&(El.textContent=Jw),Yd.forEach(a),Fe.forEach(a),$d=o(e),f(ba.$$.fragment,e),Jd=o(e),oe=l(e,"DIV",{class:!0});var Be=v(oe);f(ya.$$.fragment,Be),vu=o(Be),Xl=l(Be,"P",{"data-svelte-h":!0}),m(Xl)!=="svelte-1lg1j1m"&&(Xl.innerHTML=Pw),ju=o(Be),f(Tn.$$.fragment,Be),ku=o(Be),Ql=l(Be,"P",{"data-svelte-h":!0}),m(Ql)!=="svelte-13rexfx"&&(Ql.innerHTML=Cw),Uu=o(Be),Kl=l(Be,"P",{"data-svelte-h":!0}),m(Kl)!=="svelte-8f9yyk"&&(Kl.innerHTML=Iw),$u=o(Be),ec=l(Be,"P",{"data-svelte-h":!0}),m(ec)!=="svelte-lcegcp"&&(ec.innerHTML=qw),Ju=o(Be),He=l(Be,"DIV",{class:!0});var yc=v(He);f(wa.$$.fragment,yc),Pu=o(yc),tc=l(yc,"P",{"data-svelte-h":!0}),m(tc)!=="svelte-10yp62t"&&(tc.textContent=Gw),Cu=o(yc),nc=l(yc,"UL",{"data-svelte-h":!0}),m(nc)!=="svelte-15cnno4"&&(nc.innerHTML=Zw),yc.forEach(a),Be.forEach(a),Pd=o(e),f(xa.$$.fragment,e),Cd=o(e),C=l(e,"DIV",{class:!0});var I=v(C);f(_a.$$.fragment,I),Iu=o(I),sc=l(I,"P",{"data-svelte-h":!0}),m(sc)!=="svelte-k7p6k2"&&(sc.textContent=zw),qu=o(I),oc=l(I,"P",{"data-svelte-h":!0}),m(oc)!=="svelte-3qu5a5"&&(oc.textContent=Fw),Gu=o(I),ac=l(I,"P",{"data-svelte-h":!0}),m(ac)!=="svelte-1mj6jcv"&&(ac.textContent=Bw),Zu=o(I),rc=l(I,"P",{"data-svelte-h":!0}),m(rc)!=="svelte-pcl79b"&&(rc.textContent=Dw),zu=o(I),ic=l(I,"P",{"data-svelte-h":!0}),m(ic)!=="svelte-nqwtk9"&&(ic.innerHTML=Rw),Fu=o(I),bn=l(I,"DIV",{class:!0});var Ed=v(bn);f(Ma.$$.fragment,Ed),Bu=o(Ed),lc=l(Ed,"P",{"data-svelte-h":!0}),m(lc)!=="svelte-exnhmi"&&(lc.textContent=Nw),Ed.forEach(a),Du=o(I),Oe=l(I,"DIV",{class:!0});var wc=v(Oe);f(va.$$.fragment,wc),Ru=o(wc),cc=l(wc,"P",{"data-svelte-h":!0}),m(cc)!=="svelte-1piccye"&&(cc.textContent=Vw),Nu=o(wc),f(yn.$$.fragment,wc),wc.forEach(a),Vu=o(I),wn=l(I,"DIV",{class:!0});var Xd=v(wn);f(ja.$$.fragment,Xd),Su=o(Xd),pc=l(Xd,"P",{"data-svelte-h":!0}),m(pc)!=="svelte-p1t4ev"&&(pc.textContent=Sw),Xd.forEach(a),Au=o(I),xn=l(I,"DIV",{class:!0});var Qd=v(xn);f(ka.$$.fragment,Qd),Wu=o(Qd),dc=l(Qd,"P",{"data-svelte-h":!0}),m(dc)!=="svelte-2wm42a"&&(dc.innerHTML=Aw),Qd.forEach(a),Lu=o(I),_n=l(I,"DIV",{class:!0});var Kd=v(_n);f(Ua.$$.fragment,Kd),Hu=o(Kd),mc=l(Kd,"P",{"data-svelte-h":!0}),m(mc)!=="svelte-10cd17f"&&(mc.innerHTML=Ww),Kd.forEach(a),Ou=o(I),Mn=l(I,"DIV",{class:!0});var em=v(Mn);f($a.$$.fragment,em),Yu=o(em),hc=l(em,"P",{"data-svelte-h":!0}),m(hc)!=="svelte-12sv4vl"&&(hc.innerHTML=Lw),em.forEach(a),Eu=o(I),Ye=l(I,"DIV",{class:!0});var xc=v(Ye);f(Ja.$$.fragment,xc),Xu=o(xc),gc=l(xc,"P",{"data-svelte-h":!0}),m(gc)!=="svelte-15f1ri9"&&(gc.textContent=Hw),Qu=o(xc),f(vn.$$.fragment,xc),xc.forEach(a),Ku=o(I),jn=l(I,"DIV",{class:!0});var tm=v(jn);f(Pa.$$.fragment,tm),eT=o(tm),fc=l(tm,"P",{"data-svelte-h":!0}),m(fc)!=="svelte-kp2v8j"&&(fc.textContent=Ow),tm.forEach(a),tT=o(I),kn=l(I,"DIV",{class:!0});var nm=v(kn);f(Ca.$$.fragment,nm),nT=o(nm),uc=l(nm,"P",{"data-svelte-h":!0}),m(uc)!=="svelte-10cd17f"&&(uc.innerHTML=Yw),nm.forEach(a),I.forEach(a),Id=o(e),f(Ia.$$.fragment,e),qd=o(e),Mc=l(e,"P",{}),v(Mc).forEach(a),this.h()},h(){j(r,"name","hf:doc:metadata"),j(r,"content",W2),j(ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(et,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(nt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(at,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(lt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(pt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(mt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(gt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(ut,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(bt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(yt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(xt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Mt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(jt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(kt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Ut,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Jt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(qt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Zt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(zt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Ft,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Dt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(We,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Rt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Vt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(he,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Ht,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Yt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Qt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Kt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(tn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(nn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(sn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(on,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(rn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(cn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(mn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(gn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(un,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(He,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(bn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(wn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(xn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(_n,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Mn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(Ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(jn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(kn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(C,"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,p){n(document.head,r),d(e,_,p),d(e,h,p),d(e,c,p),u(w,e,p),d(e,t,p),d(e,x,p),d(e,jc,p),d(e,$n,p),d(e,kc,p),d(e,Jn,p),d(e,Uc,p),u(Pn,e,p),d(e,$c,p),d(e,Cn,p),d(e,Jc,p),d(e,In,p),d(e,Pc,p),u(qn,e,p),d(e,Cc,p),d(e,Gn,p),d(e,Ic,p),u(Zn,e,p),d(e,qc,p),d(e,zn,p),d(e,Gc,p),u(Fn,e,p),d(e,Zc,p),d(e,Bn,p),d(e,zc,p),u(Dn,e,p),d(e,Fc,p),d(e,Rn,p),d(e,Bc,p),u(Nn,e,p),d(e,Dc,p),d(e,ve,p),u(Vn,ve,null),n(ve,sm),n(ve,er),n(ve,om),n(ve,tr),n(ve,am),n(ve,nr),n(ve,rm),u(Xe,ve,null),d(e,Rc,p),u(Sn,e,p),d(e,Nc,p),d(e,An,p),d(e,Vc,p),u(Wn,e,p),d(e,Sc,p),u(Qe,e,p),d(e,Ac,p),u(Ln,e,p),d(e,Wc,p),u(Hn,e,p),d(e,Lc,p),d(e,On,p),d(e,Hc,p),u(Yn,e,p),d(e,Oc,p),d(e,En,p),d(e,Yc,p),u(Xn,e,p),d(e,Ec,p),d(e,Qn,p),d(e,Xc,p),d(e,Kn,p),d(e,Qc,p),d(e,es,p),d(e,Kc,p),u(ts,e,p),d(e,ep,p),d(e,ns,p),d(e,tp,p),d(e,ss,p),d(e,np,p),u(os,e,p),d(e,sp,p),d(e,as,p),d(e,op,p),u(rs,e,p),d(e,ap,p),d(e,is,p),d(e,rp,p),d(e,ls,p),d(e,ip,p),u(cs,e,p),d(e,lp,p),d(e,ps,p),d(e,cp,p),d(e,ds,p),d(e,pp,p),d(e,ms,p),d(e,dp,p),d(e,hs,p),d(e,mp,p),u(gs,e,p),d(e,hp,p),d(e,fs,p),d(e,gp,p),u(us,e,p),d(e,fp,p),d(e,Ts,p),d(e,up,p),u(bs,e,p),d(e,Tp,p),d(e,ys,p),d(e,bp,p),u(ws,e,p),d(e,yp,p),d(e,W,p),u(xs,W,null),n(W,im),n(W,sr),n(W,lm),u(Ke,W,null),n(W,cm),n(W,or),n(W,pm),n(W,ar),n(W,dm),n(W,rr),n(W,mm),n(W,et),u(_s,et,null),n(et,hm),n(et,ir),d(e,wp,p),u(Ms,e,p),d(e,xp,p),d(e,le,p),u(vs,le,null),n(le,gm),n(le,lr),n(le,fm),n(le,cr),n(le,um),u(tt,le,null),n(le,Tm),n(le,pr),n(le,bm),n(le,nt),u(js,nt,null),n(nt,ym),n(nt,dr),d(e,_p,p),u(ks,e,p),d(e,Mp,p),d(e,R,p),u(Us,R,null),n(R,wm),n(R,mr),n(R,xm),u(st,R,null),n(R,_m),n(R,hr),n(R,Mm),u(ot,R,null),n(R,vm),n(R,gr),n(R,jm),n(R,fr),n(R,km),n(R,at),u($s,at,null),n(at,Um),n(at,ur),d(e,vp,p),u(Js,e,p),d(e,jp,p),d(e,ce,p),u(Ps,ce,null),n(ce,$m),n(ce,Tr),n(ce,Jm),u(rt,ce,null),n(ce,Pm),u(it,ce,null),n(ce,Cm),n(ce,br),n(ce,Im),n(ce,lt),u(Cs,lt,null),n(lt,qm),n(lt,yr),d(e,kp,p),u(Is,e,p),d(e,Up,p),d(e,qs,p),d(e,$p,p),u(Gs,e,p),d(e,Jp,p),d(e,L,p),u(Zs,L,null),n(L,Gm),n(L,wr),n(L,Zm),u(ct,L,null),n(L,zm),n(L,xr),n(L,Fm),n(L,_r),n(L,Bm),n(L,Mr),n(L,Dm),n(L,pt),u(zs,pt,null),n(pt,Rm),n(pt,vr),d(e,Pp,p),u(Fs,e,p),d(e,Cp,p),d(e,H,p),u(Bs,H,null),n(H,Nm),n(H,jr),n(H,Vm),u(dt,H,null),n(H,Sm),n(H,kr),n(H,Am),n(H,Ur),n(H,Wm),n(H,$r),n(H,Lm),n(H,mt),u(Ds,mt,null),n(mt,Hm),n(mt,Jr),d(e,Ip,p),u(Rs,e,p),d(e,qp,p),d(e,pe,p),u(Ns,pe,null),n(pe,Om),n(pe,Pr),n(pe,Ym),u(ht,pe,null),n(pe,Em),n(pe,Cr),n(pe,Xm),n(pe,Ir),n(pe,Qm),n(pe,gt),u(Vs,gt,null),n(gt,Km),n(gt,qr),d(e,Gp,p),u(Ss,e,p),d(e,Zp,p),d(e,de,p),u(As,de,null),n(de,eh),n(de,Gr),n(de,th),u(ft,de,null),n(de,nh),n(de,Zr),n(de,sh),n(de,zr),n(de,oh),n(de,ut),u(Ws,ut,null),n(ut,ah),n(ut,Fr),d(e,zp,p),u(Ls,e,p),d(e,Fp,p),d(e,O,p),u(Hs,O,null),n(O,rh),n(O,Br),n(O,ih),u(Tt,O,null),n(O,lh),n(O,Dr),n(O,ch),n(O,Rr),n(O,ph),n(O,Nr),n(O,dh),n(O,bt),u(Os,bt,null),n(bt,mh),n(bt,Vr),d(e,Bp,p),u(Ys,e,p),d(e,Dp,p),d(e,je,p),u(Es,je,null),n(je,hh),n(je,Sr),n(je,gh),n(je,Ar),n(je,fh),n(je,Wr),n(je,uh),n(je,yt),u(Xs,yt,null),n(yt,Th),n(yt,Lr),d(e,Rp,p),u(Qs,e,p),d(e,Np,p),d(e,Y,p),u(Ks,Y,null),n(Y,bh),n(Y,Hr),n(Y,yh),u(wt,Y,null),n(Y,wh),n(Y,Or),n(Y,xh),n(Y,Yr),n(Y,_h),n(Y,Er),n(Y,Mh),n(Y,xt),u(eo,xt,null),n(xt,vh),n(xt,Xr),d(e,Vp,p),u(to,e,p),d(e,Sp,p),d(e,E,p),u(no,E,null),n(E,jh),n(E,Qr),n(E,kh),u(_t,E,null),n(E,Uh),n(E,Kr),n(E,$h),n(E,ei),n(E,Jh),n(E,ti),n(E,Ph),n(E,Mt),u(so,Mt,null),n(Mt,Ch),n(Mt,ni),d(e,Ap,p),u(oo,e,p),d(e,Wp,p),d(e,ao,p),d(e,Lp,p),u(ro,e,p),d(e,Hp,p),d(e,me,p),u(io,me,null),n(me,Ih),n(me,si),n(me,qh),u(vt,me,null),n(me,Gh),n(me,jt),u(lo,jt,null),n(jt,Zh),n(jt,oi),n(me,zh),n(me,kt),u(co,kt,null),n(kt,Fh),n(kt,ai),n(me,Bh),n(me,Ut),u(po,Ut,null),n(Ut,Dh),n(Ut,ri),d(e,Op,p),d(e,X,p),u(mo,X,null),n(X,Rh),n(X,ii),n(X,Nh),u($t,X,null),n(X,Vh),n(X,li),n(X,Sh),n(X,ci),n(X,Ah),n(X,pi),n(X,Wh),n(X,Jt),u(ho,Jt,null),n(Jt,Lh),n(Jt,di),d(e,Yp,p),u(go,e,p),d(e,Ep,p),d(e,Z,p),u(fo,Z,null),n(Z,Hh),n(Z,mi),n(Z,Oh),u(Pt,Z,null),n(Z,Yh),n(Z,hi),n(Z,Eh),n(Z,gi),n(Z,Xh),n(Z,fi),n(Z,Qh),u(Ct,Z,null),n(Z,Kh),u(It,Z,null),n(Z,eg),n(Z,qt),u(uo,qt,null),n(qt,tg),n(qt,ui),d(e,Xp,p),u(To,e,p),d(e,Qp,p),d(e,G,p),u(bo,G,null),n(G,ng),n(G,Ti),n(G,sg),u(Gt,G,null),n(G,og),n(G,bi),n(G,ag),n(G,yi),n(G,rg),n(G,wi),n(G,ig),n(G,Ae),u(yo,Ae,null),n(Ae,lg),n(Ae,xi),n(Ae,cg),n(Ae,_i),n(G,pg),n(G,Zt),u(wo,Zt,null),n(Zt,dg),n(Zt,Mi),n(G,mg),n(G,zt),u(xo,zt,null),n(zt,hg),n(zt,vi),n(G,gg),n(G,Ft),u(_o,Ft,null),n(Ft,fg),n(Ft,ji),d(e,Kp,p),d(e,Mo,p),d(e,ed,p),u(vo,e,p),d(e,td,p),d(e,z,p),u(jo,z,null),n(z,ug),n(z,ki),n(z,Tg),u(Bt,z,null),n(z,bg),n(z,Ui),n(z,yg),n(z,$i),n(z,wg),n(z,Ji),n(z,xg),n(z,Dt),u(ko,Dt,null),n(Dt,_g),n(Dt,Pi),n(z,Mg),n(z,We),u(Uo,We,null),n(We,vg),n(We,Ci),n(We,jg),n(We,Ii),n(z,kg),n(z,Rt),u($o,Rt,null),n(Rt,Ug),n(Rt,qi),d(e,nd,p),u(Jo,e,p),d(e,sd,p),d(e,he,p),u(Po,he,null),n(he,$g),n(he,Gi),n(he,Jg),n(he,Zi),n(he,Pg),n(he,zi),n(he,Cg),u(Nt,he,null),n(he,Ig),n(he,Vt),u(Co,Vt,null),n(Vt,qg),n(Vt,Fi),d(e,od,p),u(Io,e,p),d(e,ad,p),d(e,Q,p),u(qo,Q,null),n(Q,Gg),n(Q,Bi),n(Q,Zg),u(St,Q,null),n(Q,zg),n(Q,Di),n(Q,Fg),n(Q,Ri),n(Q,Bg),n(Q,Ni),n(Q,Dg),n(Q,re),u(Go,re,null),n(re,Rg),n(re,Vi),n(re,Ng),n(re,Si),n(re,Vg),n(re,Ai),n(re,Sg),u(At,re,null),n(re,Ag),n(re,Wi),n(re,Wg),u(Wt,re,null),d(e,rd,p),u(Zo,e,p),d(e,id,p),d(e,N,p),u(zo,N,null),n(N,Lg),n(N,Li),n(N,Hg),u(Lt,N,null),n(N,Og),n(N,Hi),n(N,Yg),n(N,Oi),n(N,Eg),n(N,Yi),n(N,Xg),n(N,Ei),n(N,Qg),n(N,Ht),u(Fo,Ht,null),n(Ht,Kg),n(Ht,Xi),d(e,ld,p),u(Bo,e,p),d(e,cd,p),d(e,K,p),u(Do,K,null),n(K,ef),n(K,Qi),n(K,tf),u(Ot,K,null),n(K,nf),n(K,Ki),n(K,sf),n(K,el),n(K,of),n(K,tl),n(K,af),n(K,Yt),u(Ro,Yt,null),n(Yt,rf),n(Yt,nl),d(e,pd,p),u(No,e,p),d(e,dd,p),d(e,F,p),u(Vo,F,null),n(F,lf),n(F,sl),n(F,cf),u(Et,F,null),n(F,pf),n(F,ol),n(F,df),n(F,al),n(F,mf),n(F,rl),n(F,hf),u(Xt,F,null),n(F,gf),n(F,Qt),u(So,Qt,null),n(Qt,ff),n(Qt,il),n(F,uf),n(F,Kt),u(Ao,Kt,null),n(Kt,Tf),n(Kt,ll),d(e,md,p),u(Wo,e,p),d(e,hd,p),d(e,q,p),u(Lo,q,null),n(q,bf),n(q,cl),n(q,yf),u(en,q,null),n(q,wf),n(q,pl),n(q,xf),n(q,dl),n(q,_f),n(q,ml),n(q,Mf),n(q,tn),u(Ho,tn,null),n(tn,vf),n(tn,hl),n(q,jf),n(q,Le),u(Oo,Le,null),n(Le,kf),n(Le,gl),n(Le,Uf),n(Le,fl),n(q,$f),n(q,nn),u(Yo,nn,null),n(nn,Jf),n(nn,ul),n(q,Pf),n(q,sn),u(Eo,sn,null),n(sn,Cf),n(sn,Tl),n(q,If),n(q,on),u(Xo,on,null),n(on,qf),n(on,bl),d(e,gd,p),u(Qo,e,p),d(e,fd,p),d(e,ge,p),u(Ko,ge,null),n(ge,Gf),n(ge,yl),n(ge,Zf),n(ge,wl),n(ge,zf),n(ge,xl),n(ge,Ff),u(an,ge,null),n(ge,Bf),n(ge,rn),u(ea,rn,null),n(rn,Df),n(rn,_l),d(e,ud,p),u(ta,e,p),d(e,Td,p),d(e,V,p),u(na,V,null),n(V,Rf),n(V,Ml),n(V,Nf),n(V,vl),n(V,Vf),u(ln,V,null),n(V,Sf),n(V,jl),n(V,Af),n(V,kl),n(V,Wf),n(V,Ul),n(V,Lf),n(V,cn),u(sa,cn,null),n(cn,Hf),n(cn,$l),d(e,bd,p),u(oa,e,p),d(e,yd,p),d(e,aa,p),d(e,wd,p),u(ra,e,p),d(e,xd,p),d(e,ee,p),u(ia,ee,null),n(ee,Of),n(ee,Jl),n(ee,Yf),u(pn,ee,null),n(ee,Ef),n(ee,Pl),n(ee,Xf),n(ee,Cl),n(ee,Qf),n(ee,Il),n(ee,Kf),n(ee,Ne),u(la,Ne,null),n(Ne,eu),n(Ne,ql),n(Ne,tu),n(Ne,Gl),n(Ne,nu),n(Ne,Zl),d(e,_d,p),u(ca,e,p),d(e,Md,p),d(e,te,p),u(pa,te,null),n(te,su),n(te,zl),n(te,ou),u(dn,te,null),n(te,au),n(te,Fl),n(te,ru),n(te,Bl),n(te,iu),n(te,Dl),n(te,lu),n(te,mn),u(da,mn,null),n(mn,cu),n(mn,Rl),d(e,vd,p),u(ma,e,p),d(e,jd,p),d(e,ne,p),u(ha,ne,null),n(ne,pu),n(ne,Nl),n(ne,du),u(hn,ne,null),n(ne,mu),n(ne,Vl),n(ne,hu),n(ne,Sl),n(ne,gu),n(ne,Al),n(ne,fu),n(ne,gn),u(ga,gn,null),n(gn,uu),n(gn,Wl),d(e,kd,p),u(fa,e,p),d(e,Ud,p),d(e,se,p),u(ua,se,null),n(se,Tu),n(se,Ll),n(se,bu),u(fn,se,null),n(se,yu),n(se,Hl),n(se,wu),n(se,Ol),n(se,xu),n(se,Yl),n(se,_u),n(se,un),u(Ta,un,null),n(un,Mu),n(un,El),d(e,$d,p),u(ba,e,p),d(e,Jd,p),d(e,oe,p),u(ya,oe,null),n(oe,vu),n(oe,Xl),n(oe,ju),u(Tn,oe,null),n(oe,ku),n(oe,Ql),n(oe,Uu),n(oe,Kl),n(oe,$u),n(oe,ec),n(oe,Ju),n(oe,He),u(wa,He,null),n(He,Pu),n(He,tc),n(He,Cu),n(He,nc),d(e,Pd,p),u(xa,e,p),d(e,Cd,p),d(e,C,p),u(_a,C,null),n(C,Iu),n(C,sc),n(C,qu),n(C,oc),n(C,Gu),n(C,ac),n(C,Zu),n(C,rc),n(C,zu),n(C,ic),n(C,Fu),n(C,bn),u(Ma,bn,null),n(bn,Bu),n(bn,lc),n(C,Du),n(C,Oe),u(va,Oe,null),n(Oe,Ru),n(Oe,cc),n(Oe,Nu),u(yn,Oe,null),n(C,Vu),n(C,wn),u(ja,wn,null),n(wn,Su),n(wn,pc),n(C,Au),n(C,xn),u(ka,xn,null),n(xn,Wu),n(xn,dc),n(C,Lu),n(C,_n),u(Ua,_n,null),n(_n,Hu),n(_n,mc),n(C,Ou),n(C,Mn),u($a,Mn,null),n(Mn,Yu),n(Mn,hc),n(C,Eu),n(C,Ye),u(Ja,Ye,null),n(Ye,Xu),n(Ye,gc),n(Ye,Qu),u(vn,Ye,null),n(C,Ku),n(C,jn),u(Pa,jn,null),n(jn,eT),n(jn,fc),n(C,tT),n(C,kn),u(Ca,kn,null),n(kn,nT),n(kn,uc),d(e,Id,p),u(Ia,e,p),d(e,qd,p),d(e,Mc,p),Gd=!0},p(e,[p]){const De={};p&2&&(De.$$scope={dirty:p,ctx:e}),Xe.$set(De);const fe={};p&2&&(fe.$$scope={dirty:p,ctx:e}),Qe.$set(fe);const qa={};p&2&&(qa.$$scope={dirty:p,ctx:e}),Ke.$set(qa);const ke={};p&2&&(ke.$$scope={dirty:p,ctx:e}),tt.$set(ke);const Ga={};p&2&&(Ga.$$scope={dirty:p,ctx:e}),st.$set(Ga);const ae={};p&2&&(ae.$$scope={dirty:p,ctx:e}),ot.$set(ae);const Za={};p&2&&(Za.$$scope={dirty:p,ctx:e}),rt.$set(Za);const Ue={};p&2&&(Ue.$$scope={dirty:p,ctx:e}),it.$set(Ue);const za={};p&2&&(za.$$scope={dirty:p,ctx:e}),ct.$set(za);const ue={};p&2&&(ue.$$scope={dirty:p,ctx:e}),dt.$set(ue);const Fa={};p&2&&(Fa.$$scope={dirty:p,ctx:e}),ht.$set(Fa);const Te={};p&2&&(Te.$$scope={dirty:p,ctx:e}),ft.$set(Te);const Ba={};p&2&&(Ba.$$scope={dirty:p,ctx:e}),Tt.$set(Ba);const $e={};p&2&&($e.$$scope={dirty:p,ctx:e}),wt.$set($e);const Da={};p&2&&(Da.$$scope={dirty:p,ctx:e}),_t.$set(Da);const Je={};p&2&&(Je.$$scope={dirty:p,ctx:e}),vt.$set(Je);const Ra={};p&2&&(Ra.$$scope={dirty:p,ctx:e}),$t.$set(Ra);const be={};p&2&&(be.$$scope={dirty:p,ctx:e}),Pt.$set(be);const Na={};p&2&&(Na.$$scope={dirty:p,ctx:e}),Ct.$set(Na);const Re={};p&2&&(Re.$$scope={dirty:p,ctx:e}),It.$set(Re);const Va={};p&2&&(Va.$$scope={dirty:p,ctx:e}),Gt.$set(Va);const ye={};p&2&&(ye.$$scope={dirty:p,ctx:e}),Bt.$set(ye);const Sa={};p&2&&(Sa.$$scope={dirty:p,ctx:e}),Nt.$set(Sa);const we={};p&2&&(we.$$scope={dirty:p,ctx:e}),St.$set(we);const Aa={};p&2&&(Aa.$$scope={dirty:p,ctx:e}),At.$set(Aa);const Pe={};p&2&&(Pe.$$scope={dirty:p,ctx:e}),Wt.$set(Pe);const Wa={};p&2&&(Wa.$$scope={dirty:p,ctx:e}),Lt.$set(Wa);const La={};p&2&&(La.$$scope={dirty:p,ctx:e}),Ot.$set(La);const Ha={};p&2&&(Ha.$$scope={dirty:p,ctx:e}),Et.$set(Ha);const xe={};p&2&&(xe.$$scope={dirty:p,ctx:e}),Xt.$set(xe);const Oa={};p&2&&(Oa.$$scope={dirty:p,ctx:e}),en.$set(Oa);const S={};p&2&&(S.$$scope={dirty:p,ctx:e}),an.$set(S);const Ya={};p&2&&(Ya.$$scope={dirty:p,ctx:e}),ln.$set(Ya);const B={};p&2&&(B.$$scope={dirty:p,ctx:e}),pn.$set(B);const Ee={};p&2&&(Ee.$$scope={dirty:p,ctx:e}),dn.$set(Ee);const Ea={};p&2&&(Ea.$$scope={dirty:p,ctx:e}),hn.$set(Ea);const Xa={};p&2&&(Xa.$$scope={dirty:p,ctx:e}),fn.$set(Xa);const Qa={};p&2&&(Qa.$$scope={dirty:p,ctx:e}),Tn.$set(Qa);const A={};p&2&&(A.$$scope={dirty:p,ctx:e}),yn.$set(A);const Ka={};p&2&&(Ka.$$scope={dirty:p,ctx:e}),vn.$set(Ka)},i(e){Gd||(T(w.$$.fragment,e),T(Pn.$$.fragment,e),T(qn.$$.fragment,e),T(Zn.$$.fragment,e),T(Fn.$$.fragment,e),T(Dn.$$.fragment,e),T(Nn.$$.fragment,e),T(Vn.$$.fragment,e),T(Xe.$$.fragment,e),T(Sn.$$.fragment,e),T(Wn.$$.fragment,e),T(Qe.$$.fragment,e),T(Ln.$$.fragment,e),T(Hn.$$.fragment,e),T(Yn.$$.fragment,e),T(Xn.$$.fragment,e),T(ts.$$.fragment,e),T(os.$$.fragment,e),T(rs.$$.fragment,e),T(cs.$$.fragment,e),T(gs.$$.fragment,e),T(us.$$.fragment,e),T(bs.$$.fragment,e),T(ws.$$.fragment,e),T(xs.$$.fragment,e),T(Ke.$$.fragment,e),T(_s.$$.fragment,e),T(Ms.$$.fragment,e),T(vs.$$.fragment,e),T(tt.$$.fragment,e),T(js.$$.fragment,e),T(ks.$$.fragment,e),T(Us.$$.fragment,e),T(st.$$.fragment,e),T(ot.$$.fragment,e),T($s.$$.fragment,e),T(Js.$$.fragment,e),T(Ps.$$.fragment,e),T(rt.$$.fragment,e),T(it.$$.fragment,e),T(Cs.$$.fragment,e),T(Is.$$.fragment,e),T(Gs.$$.fragment,e),T(Zs.$$.fragment,e),T(ct.$$.fragment,e),T(zs.$$.fragment,e),T(Fs.$$.fragment,e),T(Bs.$$.fragment,e),T(dt.$$.fragment,e),T(Ds.$$.fragment,e),T(Rs.$$.fragment,e),T(Ns.$$.fragment,e),T(ht.$$.fragment,e),T(Vs.$$.fragment,e),T(Ss.$$.fragment,e),T(As.$$.fragment,e),T(ft.$$.fragment,e),T(Ws.$$.fragment,e),T(Ls.$$.fragment,e),T(Hs.$$.fragment,e),T(Tt.$$.fragment,e),T(Os.$$.fragment,e),T(Ys.$$.fragment,e),T(Es.$$.fragment,e),T(Xs.$$.fragment,e),T(Qs.$$.fragment,e),T(Ks.$$.fragment,e),T(wt.$$.fragment,e),T(eo.$$.fragment,e),T(to.$$.fragment,e),T(no.$$.fragment,e),T(_t.$$.fragment,e),T(so.$$.fragment,e),T(oo.$$.fragment,e),T(ro.$$.fragment,e),T(io.$$.fragment,e),T(vt.$$.fragment,e),T(lo.$$.fragment,e),T(co.$$.fragment,e),T(po.$$.fragment,e),T(mo.$$.fragment,e),T($t.$$.fragment,e),T(ho.$$.fragment,e),T(go.$$.fragment,e),T(fo.$$.fragment,e),T(Pt.$$.fragment,e),T(Ct.$$.fragment,e),T(It.$$.fragment,e),T(uo.$$.fragment,e),T(To.$$.fragment,e),T(bo.$$.fragment,e),T(Gt.$$.fragment,e),T(yo.$$.fragment,e),T(wo.$$.fragment,e),T(xo.$$.fragment,e),T(_o.$$.fragment,e),T(vo.$$.fragment,e),T(jo.$$.fragment,e),T(Bt.$$.fragment,e),T(ko.$$.fragment,e),T(Uo.$$.fragment,e),T($o.$$.fragment,e),T(Jo.$$.fragment,e),T(Po.$$.fragment,e),T(Nt.$$.fragment,e),T(Co.$$.fragment,e),T(Io.$$.fragment,e),T(qo.$$.fragment,e),T(St.$$.fragment,e),T(Go.$$.fragment,e),T(At.$$.fragment,e),T(Wt.$$.fragment,e),T(Zo.$$.fragment,e),T(zo.$$.fragment,e),T(Lt.$$.fragment,e),T(Fo.$$.fragment,e),T(Bo.$$.fragment,e),T(Do.$$.fragment,e),T(Ot.$$.fragment,e),T(Ro.$$.fragment,e),T(No.$$.fragment,e),T(Vo.$$.fragment,e),T(Et.$$.fragment,e),T(Xt.$$.fragment,e),T(So.$$.fragment,e),T(Ao.$$.fragment,e),T(Wo.$$.fragment,e),T(Lo.$$.fragment,e),T(en.$$.fragment,e),T(Ho.$$.fragment,e),T(Oo.$$.fragment,e),T(Yo.$$.fragment,e),T(Eo.$$.fragment,e),T(Xo.$$.fragment,e),T(Qo.$$.fragment,e),T(Ko.$$.fragment,e),T(an.$$.fragment,e),T(ea.$$.fragment,e),T(ta.$$.fragment,e),T(na.$$.fragment,e),T(ln.$$.fragment,e),T(sa.$$.fragment,e),T(oa.$$.fragment,e),T(ra.$$.fragment,e),T(ia.$$.fragment,e),T(pn.$$.fragment,e),T(la.$$.fragment,e),T(ca.$$.fragment,e),T(pa.$$.fragment,e),T(dn.$$.fragment,e),T(da.$$.fragment,e),T(ma.$$.fragment,e),T(ha.$$.fragment,e),T(hn.$$.fragment,e),T(ga.$$.fragment,e),T(fa.$$.fragment,e),T(ua.$$.fragment,e),T(fn.$$.fragment,e),T(Ta.$$.fragment,e),T(ba.$$.fragment,e),T(ya.$$.fragment,e),T(Tn.$$.fragment,e),T(wa.$$.fragment,e),T(xa.$$.fragment,e),T(_a.$$.fragment,e),T(Ma.$$.fragment,e),T(va.$$.fragment,e),T(yn.$$.fragment,e),T(ja.$$.fragment,e),T(ka.$$.fragment,e),T(Ua.$$.fragment,e),T($a.$$.fragment,e),T(Ja.$$.fragment,e),T(vn.$$.fragment,e),T(Pa.$$.fragment,e),T(Ca.$$.fragment,e),T(Ia.$$.fragment,e),Gd=!0)},o(e){b(w.$$.fragment,e),b(Pn.$$.fragment,e),b(qn.$$.fragment,e),b(Zn.$$.fragment,e),b(Fn.$$.fragment,e),b(Dn.$$.fragment,e),b(Nn.$$.fragment,e),b(Vn.$$.fragment,e),b(Xe.$$.fragment,e),b(Sn.$$.fragment,e),b(Wn.$$.fragment,e),b(Qe.$$.fragment,e),b(Ln.$$.fragment,e),b(Hn.$$.fragment,e),b(Yn.$$.fragment,e),b(Xn.$$.fragment,e),b(ts.$$.fragment,e),b(os.$$.fragment,e),b(rs.$$.fragment,e),b(cs.$$.fragment,e),b(gs.$$.fragment,e),b(us.$$.fragment,e),b(bs.$$.fragment,e),b(ws.$$.fragment,e),b(xs.$$.fragment,e),b(Ke.$$.fragment,e),b(_s.$$.fragment,e),b(Ms.$$.fragment,e),b(vs.$$.fragment,e),b(tt.$$.fragment,e),b(js.$$.fragment,e),b(ks.$$.fragment,e),b(Us.$$.fragment,e),b(st.$$.fragment,e),b(ot.$$.fragment,e),b($s.$$.fragment,e),b(Js.$$.fragment,e),b(Ps.$$.fragment,e),b(rt.$$.fragment,e),b(it.$$.fragment,e),b(Cs.$$.fragment,e),b(Is.$$.fragment,e),b(Gs.$$.fragment,e),b(Zs.$$.fragment,e),b(ct.$$.fragment,e),b(zs.$$.fragment,e),b(Fs.$$.fragment,e),b(Bs.$$.fragment,e),b(dt.$$.fragment,e),b(Ds.$$.fragment,e),b(Rs.$$.fragment,e),b(Ns.$$.fragment,e),b(ht.$$.fragment,e),b(Vs.$$.fragment,e),b(Ss.$$.fragment,e),b(As.$$.fragment,e),b(ft.$$.fragment,e),b(Ws.$$.fragment,e),b(Ls.$$.fragment,e),b(Hs.$$.fragment,e),b(Tt.$$.fragment,e),b(Os.$$.fragment,e),b(Ys.$$.fragment,e),b(Es.$$.fragment,e),b(Xs.$$.fragment,e),b(Qs.$$.fragment,e),b(Ks.$$.fragment,e),b(wt.$$.fragment,e),b(eo.$$.fragment,e),b(to.$$.fragment,e),b(no.$$.fragment,e),b(_t.$$.fragment,e),b(so.$$.fragment,e),b(oo.$$.fragment,e),b(ro.$$.fragment,e),b(io.$$.fragment,e),b(vt.$$.fragment,e),b(lo.$$.fragment,e),b(co.$$.fragment,e),b(po.$$.fragment,e),b(mo.$$.fragment,e),b($t.$$.fragment,e),b(ho.$$.fragment,e),b(go.$$.fragment,e),b(fo.$$.fragment,e),b(Pt.$$.fragment,e),b(Ct.$$.fragment,e),b(It.$$.fragment,e),b(uo.$$.fragment,e),b(To.$$.fragment,e),b(bo.$$.fragment,e),b(Gt.$$.fragment,e),b(yo.$$.fragment,e),b(wo.$$.fragment,e),b(xo.$$.fragment,e),b(_o.$$.fragment,e),b(vo.$$.fragment,e),b(jo.$$.fragment,e),b(Bt.$$.fragment,e),b(ko.$$.fragment,e),b(Uo.$$.fragment,e),b($o.$$.fragment,e),b(Jo.$$.fragment,e),b(Po.$$.fragment,e),b(Nt.$$.fragment,e),b(Co.$$.fragment,e),b(Io.$$.fragment,e),b(qo.$$.fragment,e),b(St.$$.fragment,e),b(Go.$$.fragment,e),b(At.$$.fragment,e),b(Wt.$$.fragment,e),b(Zo.$$.fragment,e),b(zo.$$.fragment,e),b(Lt.$$.fragment,e),b(Fo.$$.fragment,e),b(Bo.$$.fragment,e),b(Do.$$.fragment,e),b(Ot.$$.fragment,e),b(Ro.$$.fragment,e),b(No.$$.fragment,e),b(Vo.$$.fragment,e),b(Et.$$.fragment,e),b(Xt.$$.fragment,e),b(So.$$.fragment,e),b(Ao.$$.fragment,e),b(Wo.$$.fragment,e),b(Lo.$$.fragment,e),b(en.$$.fragment,e),b(Ho.$$.fragment,e),b(Oo.$$.fragment,e),b(Yo.$$.fragment,e),b(Eo.$$.fragment,e),b(Xo.$$.fragment,e),b(Qo.$$.fragment,e),b(Ko.$$.fragment,e),b(an.$$.fragment,e),b(ea.$$.fragment,e),b(ta.$$.fragment,e),b(na.$$.fragment,e),b(ln.$$.fragment,e),b(sa.$$.fragment,e),b(oa.$$.fragment,e),b(ra.$$.fragment,e),b(ia.$$.fragment,e),b(pn.$$.fragment,e),b(la.$$.fragment,e),b(ca.$$.fragment,e),b(pa.$$.fragment,e),b(dn.$$.fragment,e),b(da.$$.fragment,e),b(ma.$$.fragment,e),b(ha.$$.fragment,e),b(hn.$$.fragment,e),b(ga.$$.fragment,e),b(fa.$$.fragment,e),b(ua.$$.fragment,e),b(fn.$$.fragment,e),b(Ta.$$.fragment,e),b(ba.$$.fragment,e),b(ya.$$.fragment,e),b(Tn.$$.fragment,e),b(wa.$$.fragment,e),b(xa.$$.fragment,e),b(_a.$$.fragment,e),b(Ma.$$.fragment,e),b(va.$$.fragment,e),b(yn.$$.fragment,e),b(ja.$$.fragment,e),b(ka.$$.fragment,e),b(Ua.$$.fragment,e),b($a.$$.fragment,e),b(Ja.$$.fragment,e),b(vn.$$.fragment,e),b(Pa.$$.fragment,e),b(Ca.$$.fragment,e),b(Ia.$$.fragment,e),Gd=!1},d(e){e&&(a(_),a(h),a(c),a(t),a(x),a(jc),a($n),a(kc),a(Jn),a(Uc),a($c),a(Cn),a(Jc),a(In),a(Pc),a(Cc),a(Gn),a(Ic),a(qc),a(zn),a(Gc),a(Zc),a(Bn),a(zc),a(Fc),a(Rn),a(Bc),a(Dc),a(ve),a(Rc),a(Nc),a(An),a(Vc),a(Sc),a(Ac),a(Wc),a(Lc),a(On),a(Hc),a(Oc),a(En),a(Yc),a(Ec),a(Qn),a(Xc),a(Kn),a(Qc),a(es),a(Kc),a(ep),a(ns),a(tp),a(ss),a(np),a(sp),a(as),a(op),a(ap),a(is),a(rp),a(ls),a(ip),a(lp),a(ps),a(cp),a(ds),a(pp),a(ms),a(dp),a(hs),a(mp),a(hp),a(fs),a(gp),a(fp),a(Ts),a(up),a(Tp),a(ys),a(bp),a(yp),a(W),a(wp),a(xp),a(le),a(_p),a(Mp),a(R),a(vp),a(jp),a(ce),a(kp),a(Up),a(qs),a($p),a(Jp),a(L),a(Pp),a(Cp),a(H),a(Ip),a(qp),a(pe),a(Gp),a(Zp),a(de),a(zp),a(Fp),a(O),a(Bp),a(Dp),a(je),a(Rp),a(Np),a(Y),a(Vp),a(Sp),a(E),a(Ap),a(Wp),a(ao),a(Lp),a(Hp),a(me),a(Op),a(X),a(Yp),a(Ep),a(Z),a(Xp),a(Qp),a(G),a(Kp),a(Mo),a(ed),a(td),a(z),a(nd),a(sd),a(he),a(od),a(ad),a(Q),a(rd),a(id),a(N),a(ld),a(cd),a(K),a(pd),a(dd),a(F),a(md),a(hd),a(q),a(gd),a(fd),a(ge),a(ud),a(Td),a(V),a(bd),a(yd),a(aa),a(wd),a(xd),a(ee),a(_d),a(Md),a(te),a(vd),a(jd),a(ne),a(kd),a(Ud),a(se),a($d),a(Jd),a(oe),a(Pd),a(Cd),a(C),a(Id),a(qd),a(Mc)),a(r),y(w,e),y(Pn,e),y(qn,e),y(Zn,e),y(Fn,e),y(Dn,e),y(Nn,e),y(Vn),y(Xe),y(Sn,e),y(Wn,e),y(Qe,e),y(Ln,e),y(Hn,e),y(Yn,e),y(Xn,e),y(ts,e),y(os,e),y(rs,e),y(cs,e),y(gs,e),y(us,e),y(bs,e),y(ws,e),y(xs),y(Ke),y(_s),y(Ms,e),y(vs),y(tt),y(js),y(ks,e),y(Us),y(st),y(ot),y($s),y(Js,e),y(Ps),y(rt),y(it),y(Cs),y(Is,e),y(Gs,e),y(Zs),y(ct),y(zs),y(Fs,e),y(Bs),y(dt),y(Ds),y(Rs,e),y(Ns),y(ht),y(Vs),y(Ss,e),y(As),y(ft),y(Ws),y(Ls,e),y(Hs),y(Tt),y(Os),y(Ys,e),y(Es),y(Xs),y(Qs,e),y(Ks),y(wt),y(eo),y(to,e),y(no),y(_t),y(so),y(oo,e),y(ro,e),y(io),y(vt),y(lo),y(co),y(po),y(mo),y($t),y(ho),y(go,e),y(fo),y(Pt),y(Ct),y(It),y(uo),y(To,e),y(bo),y(Gt),y(yo),y(wo),y(xo),y(_o),y(vo,e),y(jo),y(Bt),y(ko),y(Uo),y($o),y(Jo,e),y(Po),y(Nt),y(Co),y(Io,e),y(qo),y(St),y(Go),y(At),y(Wt),y(Zo,e),y(zo),y(Lt),y(Fo),y(Bo,e),y(Do),y(Ot),y(Ro),y(No,e),y(Vo),y(Et),y(Xt),y(So),y(Ao),y(Wo,e),y(Lo),y(en),y(Ho),y(Oo),y(Yo),y(Eo),y(Xo),y(Qo,e),y(Ko),y(an),y(ea),y(ta,e),y(na),y(ln),y(sa),y(oa,e),y(ra,e),y(ia),y(pn),y(la),y(ca,e),y(pa),y(dn),y(da),y(ma,e),y(ha),y(hn),y(ga),y(fa,e),y(ua),y(fn),y(Ta),y(ba,e),y(ya),y(Tn),y(wa),y(xa,e),y(_a),y(Ma),y(va),y(yn),y(ja),y(ka),y(Ua),y($a),y(Ja),y(vn),y(Pa),y(Ca),y(Ia,e)}}}const W2='{"title":"Pipelines","local":"pipelines","sections":[{"title":"The pipeline abstraction","local":"transformers.pipeline","sections":[],"depth":2},{"title":"Pipeline batching","local":"pipeline-batching","sections":[],"depth":2},{"title":"Pipeline chunk batching","local":"pipeline-chunk-batching","sections":[],"depth":2},{"title":"Pipeline custom code","local":"pipeline-custom-code","sections":[],"depth":2},{"title":"Implementing a pipeline","local":"implementing-a-pipeline","sections":[],"depth":2},{"title":"Audio","local":"audio","sections":[{"title":"AudioClassificationPipeline","local":"transformers.AudioClassificationPipeline","sections":[],"depth":3},{"title":"AutomaticSpeechRecognitionPipeline","local":"transformers.AutomaticSpeechRecognitionPipeline","sections":[],"depth":3},{"title":"TextToAudioPipeline","local":"transformers.TextToAudioPipeline","sections":[],"depth":3},{"title":"ZeroShotAudioClassificationPipeline","local":"transformers.ZeroShotAudioClassificationPipeline","sections":[],"depth":3}],"depth":2},{"title":"Computer vision","local":"computer-vision","sections":[{"title":"DepthEstimationPipeline","local":"transformers.DepthEstimationPipeline","sections":[],"depth":3},{"title":"ImageClassificationPipeline","local":"transformers.ImageClassificationPipeline","sections":[],"depth":3},{"title":"ImageSegmentationPipeline","local":"transformers.ImageSegmentationPipeline","sections":[],"depth":3},{"title":"ImageToImagePipeline","local":"transformers.ImageToImagePipeline","sections":[],"depth":3},{"title":"ObjectDetectionPipeline","local":"transformers.ObjectDetectionPipeline","sections":[],"depth":3},{"title":"VideoClassificationPipeline","local":"transformers.VideoClassificationPipeline","sections":[],"depth":3},{"title":"ZeroShotImageClassificationPipeline","local":"transformers.ZeroShotImageClassificationPipeline","sections":[],"depth":3},{"title":"ZeroShotObjectDetectionPipeline","local":"transformers.ZeroShotObjectDetectionPipeline","sections":[],"depth":3}],"depth":2},{"title":"Natural Language Processing","local":"natural-language-processing","sections":[{"title":"ConversationalPipeline","local":"transformers.Conversation","sections":[],"depth":3},{"title":"FillMaskPipeline","local":"transformers.FillMaskPipeline","sections":[],"depth":3},{"title":"NerPipeline","local":"transformers.TokenClassificationPipeline","sections":[],"depth":3},{"title":"QuestionAnsweringPipeline","local":"transformers.QuestionAnsweringPipeline","sections":[],"depth":3},{"title":"SummarizationPipeline","local":"transformers.SummarizationPipeline","sections":[],"depth":3},{"title":"TableQuestionAnsweringPipeline","local":"transformers.TableQuestionAnsweringPipeline","sections":[],"depth":3},{"title":"TextClassificationPipeline","local":"transformers.TextClassificationPipeline","sections":[],"depth":3},{"title":"TextGenerationPipeline","local":"transformers.TextGenerationPipeline","sections":[],"depth":3},{"title":"Text2TextGenerationPipeline","local":"transformers.Text2TextGenerationPipeline","sections":[],"depth":3},{"title":"TokenClassificationPipeline","local":"transformers.TokenClassificationPipeline","sections":[],"depth":3},{"title":"TranslationPipeline","local":"transformers.TranslationPipeline","sections":[],"depth":3},{"title":"ZeroShotClassificationPipeline","local":"transformers.ZeroShotClassificationPipeline","sections":[],"depth":3}],"depth":2},{"title":"Multimodal","local":"multimodal","sections":[{"title":"DocumentQuestionAnsweringPipeline","local":"transformers.DocumentQuestionAnsweringPipeline","sections":[],"depth":3},{"title":"FeatureExtractionPipeline","local":"transformers.FeatureExtractionPipeline","sections":[],"depth":3},{"title":"ImageFeatureExtractionPipeline","local":"transformers.ImageFeatureExtractionPipeline","sections":[],"depth":3},{"title":"ImageToTextPipeline","local":"transformers.ImageToTextPipeline","sections":[],"depth":3},{"title":"VisualQuestionAnsweringPipeline","local":"transformers.VisualQuestionAnsweringPipeline","sections":[],"depth":3}],"depth":2},{"title":"Parent class: Pipeline","local":"transformers.Pipeline","sections":[],"depth":2}],"depth":1}';function L2(M){return Xw(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ex extends Qw{constructor(r){super(),Kw(this,r,L2,A2,Ew,{})}}export{ex as component};
