import{s as k_,o as v_,n as $}from"../chunks/scheduler.9bc65507.js";import{S as $_,i as J_,g as i,s as n,r as g,A as P_,h as l,f as r,c as a,j,u as f,x as m,k as U,y as s,a as d,v as u,d as T,t as y,w as b,m as C_,n as I_}from"../chunks/index.707bf1b6.js";import{T as cp}from"../chunks/Tip.c2ecdbf4.js";import{D as k}from"../chunks/Docstring.570ddb64.js";import{C as v}from"../chunks/CodeBlock.54a9f38d.js";import{E as P}from"../chunks/ExampleCodeBlock.bc2be6bc.js";import{H as J,E as q_}from"../chunks/EditOnGithub.922df6ba.js";function G_(M){let o;return{c(){o=C_("While there are such optional arguments as `tokenizer`, `feature_extractor`, `image_processor`, and `processor`,\nthey shouldn't be specified all at once. If these components are not provided, `pipeline` will try to load\nrequired ones automatically. In case you want to provide these components explicitly, please refer to a\nspecific pipeline in order to get more details regarding what components are required.")},l(w){o=I_(w,"While there are such optional arguments as `tokenizer`, `feature_extractor`, `image_processor`, and `processor`,\nthey shouldn't be specified all at once. If these components are not provided, `pipeline` will try to load\nrequired ones automatically. In case you want to provide these components explicitly, please refer to a\nspecific pipeline in order to get more details regarding what components are required.")},m(w,h){d(w,o,h)},d(w){w&&r(o)}}}function Z_(M){let o,w="Examples:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-kvfsh7"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function F_(M){let o,w=`ただし、これによってパフォーマンスが自動的に向上するわけではありません。状況に応じて、10 倍の高速化または 5 倍の低速化のいずれかになります。
ハードウェア、データ、使用されている実際のモデルについて。`,h,c,_="主に高速化である例:";return{c(){o=i("p"),o.textContent=w,h=n(),c=i("p"),c.textContent=_},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-1g5spbt"&&(o.textContent=w),h=a(t),c=l(t,"P",{"data-svelte-h":!0}),m(c)!=="svelte-2d0f8u"&&(c.textContent=_)},m(t,x){d(t,o,x),d(t,h,x),d(t,c,x)},p:$,d(t){t&&(r(o),r(h),r(c))}}}function z_(M){let o,w="Example:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-11lpom8"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function B_(M){let o,w="Example:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-11lpom8"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function R_(M){let o,w="Example:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-11lpom8"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function D_(M){let o,w="Example:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-11lpom8"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function N_(M){let o,w=`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,_;return c=new P({props:{anchor:"transformers.TextToAudioPipeline.example-2",$$slots:{default:[D_]},$$scope:{ctx:M}}}),{c(){o=i("p"),o.innerHTML=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-1g6q8re"&&(o.innerHTML=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p(t,x){const dp={};x&2&&(dp.$$scope={dirty:x,ctx:t}),c.$set(dp)},i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function A_(M){let o,w="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(){o=i("p"),o.innerHTML=w},l(h){o=l(h,"P",{"data-svelte-h":!0}),m(o)!=="svelte-2d3hnv"&&(o.innerHTML=w)},m(h,c){d(h,o,c)},p:$,d(h){h&&r(o)}}}function V_(M){let o,w="Example:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-11lpom8"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function S_(M){let o,w="Example:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-11lpom8"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function W_(M){let o,w="Example:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-11lpom8"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function L_(M){let o,w="Example:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-11lpom8"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function H_(M){let o,w="Example:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-11lpom8"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function O_(M){let o,w="Example:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-11lpom8"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function Y_(M){let o,w="Example:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-11lpom8"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function E_(M){let o,w="Example:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-11lpom8"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function Q_(M){let o,w="Example:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-11lpom8"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function X_(M){let o,w=`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(){o=i("p"),o.innerHTML=w},l(h){o=l(h,"P",{"data-svelte-h":!0}),m(o)!=="svelte-126iymh"&&(o.innerHTML=w)},m(h,c){d(h,o,c)},p:$,d(h){h&&r(o)}}}function K_(M){let o,w="This pipeline now supports tokenizer_kwargs. For example try:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-1pudxyz"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function ex(M){let o,w;return o=new P({props:{anchor:"transformers.FillMaskPipeline.example-2",$$slots:{default:[K_]},$$scope:{ctx:M}}}),{c(){g(o.$$.fragment)},l(h){f(o.$$.fragment,h)},m(h,c){u(o,h,c),w=!0},p(h,c){const _={};c&2&&(_.$$scope={dirty:c,ctx:h}),o.$set(_)},i(h){w||(T(o.$$.fragment,h),w=!0)},o(h){y(o.$$.fragment,h),w=!1},d(h){b(o,h)}}}function tx(M){let o,w="Example:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-11lpom8"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function sx(M){let o,w="Example:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-11lpom8"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function nx(M){let o,w="Usage:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-5wyjqd"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function ax(M){let o,w="Example:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-11lpom8"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function ox(M){let o,w="Example:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-11lpom8"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function rx(M){let o,w="Example:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-11lpom8"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function ix(M){let o,w="Example:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-11lpom8"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function lx(M){let o,w="Examples:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-kvfsh7"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function px(M){let o,w;return o=new v({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZ2VuZXJhdG9yJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJIdWdnaW5nRmFjZUg0JTJGemVwaHlyLTdiLWJldGElMjIpJTBBJTIzJTIwWmVwaHlyLWJldGElMjBpcyUyMGElMjBjb252ZXJzYXRpb25hbCUyMG1vZGVsJTJDJTIwc28lMjBsZXQncyUyMHBhc3MlMjBpdCUyMGElMjBjaGF0JTIwaW5zdGVhZCUyMG9mJTIwYSUyMHNpbmdsZSUyMHN0cmluZyUwQWdlbmVyYXRvciglNUIlN0IlMjJyb2xlJTIyJTNBJTIwJTIydXNlciUyMiUyQyUyMCUyMmNvbnRlbnQlMjIlM0ElMjAlMjJXaGF0JTIwaXMlMjB0aGUlMjBjYXBpdGFsJTIwb2YlMjBGcmFuY2UlM0YlMjBBbnN3ZXIlMjBpbiUyMG9uZSUyMHdvcmQuJTIyJTdEJTVEJTJDJTIwZG9fc2FtcGxlJTNERmFsc2UlMkMlMjBtYXhfbmV3X3Rva2VucyUzRDIp",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;HuggingFaceH4/zephyr-7b-beta&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Zephyr-beta is a conversational model, so let&#x27;s pass it a chat instead of a single string</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>generator([{<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;What is the capital of France? Answer in one word.&quot;</span>}], do_sample=<span class="hljs-literal">False</span>, max_new_tokens=<span class="hljs-number">2</span>)
[{<span class="hljs-string">&#x27;generated_text&#x27;</span>: [{<span class="hljs-string">&#x27;role&#x27;</span>: <span class="hljs-string">&#x27;user&#x27;</span>, <span class="hljs-string">&#x27;content&#x27;</span>: <span class="hljs-string">&#x27;What is the capital of France? Answer in one word.&#x27;</span>}, {<span class="hljs-string">&#x27;role&#x27;</span>: <span class="hljs-string">&#x27;assistant&#x27;</span>, <span class="hljs-string">&#x27;content&#x27;</span>: <span class="hljs-string">&#x27;Paris&#x27;</span>}]}]`,wrap:!1}}),{c(){g(o.$$.fragment)},l(h){f(o.$$.fragment,h)},m(h,c){u(o,h,c),w=!0},p:$,i(h){w||(T(o.$$.fragment,h),w=!0)},o(h){y(o.$$.fragment,h),w=!1},d(h){b(o,h)}}}function cx(M){let o,w="Example:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-11lpom8"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function dx(M){let o,w="Usage:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-5wyjqd"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function mx(M){let o,w="Example:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-11lpom8"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function hx(M){let o,w="Usage:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-5wyjqd"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function gx(M){let o,w="Example:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-11lpom8"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function fx(M){let o,w="Example:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-11lpom8"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function ux(M){let o,w="Example:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-11lpom8"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function Tx(M){let o,w="Example:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-11lpom8"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function yx(M){let o,w="Example:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-11lpom8"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function bx(M){let o,w="Example:",h,c,_;return c=new v({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBcGlwZSUyMCUzRCUyMHBpcGVsaW5lKHRhc2slM0QlMjJpbWFnZS10ZXh0LXRvLXRleHQlMjIlMkMlMjBtb2RlbCUzRCUyMlNhbGVzZm9yY2UlMkZibGlwLWltYWdlLWNhcHRpb25pbmctYmFzZSUyMiklMEFwaXBlKCUyMmh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZkYXRhc2V0cyUyRk5hcnNpbCUyRmltYWdlX2R1bW15JTJGcmF3JTJGbWFpbiUyRnBhcnJvdHMucG5nJTIyJTJDJTIwdGV4dCUzRCUyMkElMjBwaG90byUyMG9mJTIyKQ==",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(task=<span class="hljs-string">&quot;image-text-to-text&quot;</span>, model=<span class="hljs-string">&quot;Salesforce/blip-image-captioning-base&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe(<span class="hljs-string">&quot;https://huggingface.co/datasets/Narsil/image_dummy/raw/main/parrots.png&quot;</span>, text=<span class="hljs-string">&quot;A photo of&quot;</span>)
[{<span class="hljs-string">&#x27;generated_text&#x27;</span>: <span class="hljs-string">&#x27;a photo of two birds&#x27;</span>}]`,wrap:!1}}),{c(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-11lpom8"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function _x(M){let o,w;return o=new v({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBcGlwZSUyMCUzRCUyMHBpcGVsaW5lKCUyMmltYWdlLXRleHQtdG8tdGV4dCUyMiUyQyUyMG1vZGVsJTNEJTIybGxhdmEtaGYlMkZsbGF2YS1pbnRlcmxlYXZlLXF3ZW4tMC41Yi1oZiUyMiklMEFtZXNzYWdlcyUyMCUzRCUyMCU1QiUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnJvbGUlMjIlM0ElMjAlMjJ1c2VyJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyY29udGVudCUyMiUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnR5cGUlMjIlM0ElMjAlMjJpbWFnZSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnVybCUyMiUzQSUyMCUyMmh0dHBzJTNBJTJGJTJGcWlhbndlbi1yZXMub3NzLWNuLWJlaWppbmcuYWxpeXVuY3MuY29tJTJGUXdlbi1WTCUyRmFzc2V0cyUyRmRlbW8uanBlZyUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUyMnR5cGUlMjIlM0ElMjAlMjJ0ZXh0JTIyJTJDJTIwJTIydGV4dCUyMiUzQSUyMCUyMkRlc2NyaWJlJTIwdGhpcyUyMGltYWdlLiUyMiU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUyQyUwQSUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnJvbGUlMjIlM0ElMjAlMjJhc3Npc3RhbnQlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJjb250ZW50JTIyJTNBJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTIydHlwZSUyMiUzQSUyMCUyMnRleHQlMjIlMkMlMjAlMjJ0ZXh0JTIyJTNBJTIwJTIyVGhlcmUlMjBpcyUyMGElMjBkb2clMjBhbmQlMjIlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMkMlMEElMjAlMjAlMjAlMjAlN0QlMkMlMEElNUQlMEFwaXBlKHRleHQlM0RtZXNzYWdlcyUyQyUyMG1heF9uZXdfdG9rZW5zJTNEMjAlMkMlMjByZXR1cm5fZnVsbF90ZXh0JTNERmFsc2Up",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(<span class="hljs-string">&quot;image-text-to-text&quot;</span>, model=<span class="hljs-string">&quot;llava-hf/llava-interleave-qwen-0.5b-hf&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>messages = [
<span class="hljs-meta">&gt;&gt;&gt; </span>    {
<span class="hljs-meta">&gt;&gt;&gt; </span>        <span class="hljs-string">&quot;role&quot;</span>: <span class="hljs-string">&quot;user&quot;</span>,
<span class="hljs-meta">&gt;&gt;&gt; </span>        <span class="hljs-string">&quot;content&quot;</span>: [
<span class="hljs-meta">&gt;&gt;&gt; </span>            {
<span class="hljs-meta">&gt;&gt;&gt; </span>                <span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;image&quot;</span>,
<span class="hljs-meta">&gt;&gt;&gt; </span>                <span class="hljs-string">&quot;url&quot;</span>: <span class="hljs-string">&quot;https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-VL/assets/demo.jpeg&quot;</span>,
<span class="hljs-meta">&gt;&gt;&gt; </span>            },
<span class="hljs-meta">&gt;&gt;&gt; </span>            {<span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;text&quot;</span>, <span class="hljs-string">&quot;text&quot;</span>: <span class="hljs-string">&quot;Describe this image.&quot;</span>},
<span class="hljs-meta">&gt;&gt;&gt; </span>        ],
<span class="hljs-meta">&gt;&gt;&gt; </span>    },
<span class="hljs-meta">&gt;&gt;&gt; </span>    {
<span class="hljs-meta">&gt;&gt;&gt; </span>        <span class="hljs-string">&quot;role&quot;</span>: <span class="hljs-string">&quot;assistant&quot;</span>,
<span class="hljs-meta">&gt;&gt;&gt; </span>        <span class="hljs-string">&quot;content&quot;</span>: [
<span class="hljs-meta">&gt;&gt;&gt; </span>            {<span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;text&quot;</span>, <span class="hljs-string">&quot;text&quot;</span>: <span class="hljs-string">&quot;There is a dog and&quot;</span>},
<span class="hljs-meta">&gt;&gt;&gt; </span>        ],
<span class="hljs-meta">&gt;&gt;&gt; </span>    },
<span class="hljs-meta">&gt;&gt;&gt; </span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe(text=messages, max_new_tokens=<span class="hljs-number">20</span>, return_full_text=<span class="hljs-literal">False</span>)
[{<span class="hljs-string">&#x27;input_text&#x27;</span>: [{<span class="hljs-string">&#x27;role&#x27;</span>: <span class="hljs-string">&#x27;user&#x27;</span>,
    <span class="hljs-string">&#x27;content&#x27;</span>: [{<span class="hljs-string">&#x27;type&#x27;</span>: <span class="hljs-string">&#x27;image&#x27;</span>,
    <span class="hljs-string">&#x27;url&#x27;</span>: <span class="hljs-string">&#x27;https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-VL/assets/demo.jpeg&#x27;</span>},
    {<span class="hljs-string">&#x27;type&#x27;</span>: <span class="hljs-string">&#x27;text&#x27;</span>, <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;Describe this image.&#x27;</span>}]},
{<span class="hljs-string">&#x27;role&#x27;</span>: <span class="hljs-string">&#x27;assistant&#x27;</span>,
    <span class="hljs-string">&#x27;content&#x27;</span>: [{<span class="hljs-string">&#x27;type&#x27;</span>: <span class="hljs-string">&#x27;text&#x27;</span>, <span class="hljs-string">&#x27;text&#x27;</span>: <span class="hljs-string">&#x27;There is a dog and&#x27;</span>}]}],
<span class="hljs-string">&#x27;generated_text&#x27;</span>: <span class="hljs-string">&#x27; a person in the image. The dog is sitting on the sand, and the person is sitting on&#x27;</span>}]`,wrap:!1}}),{c(){g(o.$$.fragment)},l(h){f(o.$$.fragment,h)},m(h,c){u(o,h,c),w=!0},p:$,i(h){w||(T(o.$$.fragment,h),w=!0)},o(h){y(o.$$.fragment,h),w=!1},d(h){b(o,h)}}}function xx(M){let o,w="Example:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-11lpom8"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function wx(M){let o,w="Examples:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-kvfsh7"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function Mx(M){let o,w="Examples:",h,c,_;return c=new v({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(){o=i("p"),o.textContent=w,h=n(),g(c.$$.fragment)},l(t){o=l(t,"P",{"data-svelte-h":!0}),m(o)!=="svelte-kvfsh7"&&(o.textContent=w),h=a(t),f(c.$$.fragment,t)},m(t,x){d(t,o,x),d(t,h,x),u(c,t,x),_=!0},p:$,i(t){_||(T(c.$$.fragment,t),_=!0)},o(t){y(c.$$.fragment,t),_=!1},d(t){t&&(r(o),r(h)),b(c,t)}}}function jx(M){let o,w,h,c,_,t,x,dp=`パイプラインは、推論にモデルを使うための簡単で優れた方法である。パイプラインは、複雑なコードのほとんどを抽象化したオブジェクトです。
パイプラインは、ライブラリから複雑なコードのほとんどを抽象化したオブジェクトで、名前付き固有表現認識、マスク言語モデリング、感情分析、特徴抽出、質問応答などのタスクに特化したシンプルなAPIを提供します。
Recognition、Masked Language Modeling、Sentiment Analysis、Feature Extraction、Question Answeringなどのタスクに特化したシンプルなAPIを提供します。以下を参照のこと。
<a href="../task_summary">タスク概要</a>を参照してください。`,hp,Us,zu="パイプラインの抽象化には2つのカテゴリーがある：",gp,ks,Bu='<li><a href="/docs/transformers/pr_30530/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>',fp,vs,up,$s,Ru=`<em>パイプライン</em> 抽象化は、他のすべての利用可能なパイプラインのラッパーです。他のものと同様にインスタンス化されます
パイプラインですが、さらなる生活の質を提供できます。`,Tp,Js,Du="1 つの項目に対する単純な呼び出し:",yp,Ps,bp,Cs,Nu=`<a href="https://huggingface.co" rel="nofollow">ハブ</a> の特定のモデルを使用したい場合は、モデルがオンになっている場合はタスクを無視できます。
ハブはすでにそれを定義しています。`,_p,Is,xp,qs,Au="多くの項目に対してパイプラインを呼び出すには、<em>list</em> を使用してパイプラインを呼び出すことができます。",wp,Gs,Mp,Zs,Vu=`完全なデータセットを反復するには、<code>Dataset</code>を直接使用することをお勧めします。これは、割り当てる必要がないことを意味します
データセット全体を一度に処理することも、自分でバッチ処理を行う必要もありません。これはカスタムループと同じくらい速く動作するはずです。
GPU。それが問題でない場合は、ためらわずに問題を作成してください。`,jp,Fs,Up,zs,Su="使いやすくするために、ジェネレーターを使用することもできます。",kp,Bs,vp,pe,Rs,Ad,Ho,Wu='Utility factory method to build a <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.Pipeline">Pipeline</a>.',Vd,Oo,Lu="A pipeline consists of:",Sd,Yo,Hu=`<li>One or more components for pre-processing model inputs, such as a <a href="tokenizer">tokenizer</a>,
<a href="image_processor">image_processor</a>, <a href="feature_extractor">feature_extractor</a>, or <a href="processors">processor</a>.</li> <li>A <a href="model">model</a> that generates predictions from the inputs.</li> <li>Optional post-processing steps to refine the model’s output, which can also be handled by processors.</li>`,Wd,Ee,Ld,Qe,$p,Ds,Jp,Ns,Ou=`すべてのパイプラインでバッチ処理を使用できます。これはうまくいきます
パイプラインがストリーミング機能を使用するときは常に (つまり、リスト、<code>dataset</code>、または <code>generator</code>を渡すとき)。`,Pp,As,Cp,Xe,Ip,Vs,qp,Ss,Gp,Ws,Yu="最も速度が低下する例:",Zp,Ls,Fp,Hs,Eu=`これは、他の文に比べて非常に長い文が時折あります。その場合、<strong>全体</strong>のバッチは 400 である必要があります。
トークンが長いため、バッチ全体が [64, 4] ではなく [64, 400] になり、速度が大幅に低下します。さらに悪いことに、
バッチが大きくなると、プログラムは単純にクラッシュします。`,zp,Os,Bp,Ys,Qu=`この問題に対する適切な (一般的な) 解決策はなく、使用できる距離はユースケースによって異なる場合があります。のルール
親指：`,Rp,Es,Xu="ユーザーにとっての経験則は次のとおりです。",Dp,Qs,Ku=`<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>`,Np,Xs,Ap,Ks,eT=`<code>zero-shot-classification</code> と <code>question-answering</code> は、単一の入力で結果が得られる可能性があるという意味で、少し特殊です。
モデルの複数の前方パス。通常の状況では、これにより <code>batch_size</code> 引数に関する問題が発生します。`,Vp,en,tT=`この問題を回避するために、これらのパイプラインはどちらも少し特殊になっており、代わりに <code>ChunkPipeline</code> になっています。
通常の <code>Pipeline</code>。要するに：`,Sp,tn,Wp,sn,sT="今は次のようになります:",Lp,nn,Hp,an,nT=`パイプラインは以下で使用されるため、これはコードに対して非常に透過的である必要があります。
同じ方法。`,Op,on,aT=`パイプラインはバッチを自動的に処理できるため、これは簡略化されたビューです。気にする必要はないという意味です
入力が実際にトリガーする前方パスの数については、<code>batch_size</code> を最適化できます。
入力とは独立して。前のセクションの注意事項が引き続き適用されます。`,Yp,rn,Ep,ln,oT="特定のパイプラインをオーバーライドする場合。",Qp,pn,rT=`目の前のタスクに関する問題を作成することを躊躇しないでください。パイプラインの目標は、使いやすく、ほとんどのユーザーをサポートすることです。
したがって、<code>transformers</code>があなたのユースケースをサポートする可能性があります。`,Xp,cn,iT="単純に試してみたい場合は、次のことができます。",Kp,dn,lT="<li>選択したパイプラインをサブクラス化します</li>",ec,mn,tc,hn,pT="これにより、必要なカスタム コードをすべて実行できるようになります。",sc,gn,nc,fn,cT='<a href="../add_new_pipeline">Implementing a new pipeline</a>',ac,un,oc,Tn,dT="オーディオ タスクに使用できるパイプラインには次のものがあります。",rc,yn,ic,H,bn,Hd,Eo,mT=`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.`,Od,Ke,Yd,Qo,hT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Ed,Xo,gT=`This pipeline can currently be loaded from <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;audio-classification&quot;</code>.`,Qd,Ko,fT=`See the list of available models on
<a href="https://huggingface.co/models?filter=audio-classification" rel="nofollow">huggingface.co/models</a>.`,Xd,et,_n,Kd,er,uT=`Classify the sequence(s) given as inputs. See the <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.AutomaticSpeechRecognitionPipeline">AutomaticSpeechRecognitionPipeline</a> documentation for more
information.`,lc,xn,pc,ce,wn,em,tr,TT="Pipeline that aims at extracting spoken text contained within some audio.",tm,sr,yT=`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`,sm,tt,nm,nr,bT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',am,st,Mn,om,ar,_T=`Transcribe the audio sequence(s) given as inputs to text. See the <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.AutomaticSpeechRecognitionPipeline">AutomaticSpeechRecognitionPipeline</a>
documentation for more information.`,cc,jn,dc,D,Un,rm,or,xT=`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.`,im,nt,lm,rr,wT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',pm,at,cm,ir,MT=`This pipeline can currently be loaded from <a href="/docs/transformers/pr_30530/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>.`,dm,lr,jT='See the list of available models on <a href="https://huggingface.co/models?filter=text-to-speech" rel="nofollow">huggingface.co/models</a>.',mm,ot,kn,hm,pr,UT='Generates speech/audio from the inputs. See the <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.TextToAudioPipeline">TextToAudioPipeline</a> documentation for more information.',mc,vn,hc,de,$n,gm,cr,kT=`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>.`,fm,rt,um,it,Tm,dr,vT=`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/pr_30530/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>.`,ym,lt,Jn,bm,mr,$T="Assign labels to the audio(s) passed as inputs.",gc,Pn,fc,Cn,JT="コンピューター ビジョン タスクに使用できるパイプラインには次のものがあります。",uc,In,Tc,O,qn,_m,hr,PT="Depth estimation pipeline using any <code>AutoModelForDepthEstimation</code>. This pipeline predicts the depth of an image.",xm,pt,wm,gr,CT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Mm,fr,IT=`This depth estimation pipeline can currently be loaded from <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;depth-estimation&quot;</code>.`,jm,ur,qT='See the list of available models on <a href="https://huggingface.co/models?filter=depth-estimation" rel="nofollow">huggingface.co/models</a>.',Um,ct,Gn,km,Tr,GT="Predict the depth(s) of the image(s) passed as inputs.",yc,Zn,bc,Y,Fn,vm,yr,ZT=`Image classification pipeline using any <code>AutoModelForImageClassification</code>. This pipeline predicts the class of an
image.`,$m,dt,Jm,br,FT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Pm,_r,zT=`This image classification pipeline can currently be loaded from <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;image-classification&quot;</code>.`,Cm,xr,BT=`See the list of available models on
<a href="https://huggingface.co/models?filter=image-classification" rel="nofollow">huggingface.co/models</a>.`,Im,mt,zn,qm,wr,RT="Assign labels to the image(s) passed as inputs.",_c,Bn,xc,me,Rn,Gm,Mr,DT=`Image segmentation pipeline using any <code>AutoModelForXXXSegmentation</code>. This pipeline predicts masks of objects and
their classes.`,Zm,ht,Fm,jr,NT=`This image segmentation pipeline can currently be loaded from <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;image-segmentation&quot;</code>.`,zm,Ur,AT=`See the list of available models on
<a href="https://huggingface.co/models?filter=image-segmentation" rel="nofollow">huggingface.co/models</a>.`,Bm,gt,Dn,Rm,kr,VT="Perform segmentation (detect masks & classes) in the image(s) passed as inputs.",wc,Nn,Mc,he,An,Dm,vr,ST=`Image to Image pipeline using any <code>AutoModelForImageToImage</code>. This pipeline generates an image based on a previous
image input.`,Nm,ft,Am,$r,WT=`This image to image pipeline can currently be loaded from <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;image-to-image&quot;</code>.`,Vm,Jr,LT='See the list of available models on <a href="https://huggingface.co/models?filter=image-to-image" rel="nofollow">huggingface.co/models</a>.',Sm,ut,Vn,Wm,Pr,HT="Transform the image(s) passed as inputs.",jc,Sn,Uc,E,Wn,Lm,Cr,OT=`Object detection pipeline using any <code>AutoModelForObjectDetection</code>. This pipeline predicts bounding boxes of objects
and their classes.`,Hm,Tt,Om,Ir,YT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Ym,qr,ET=`This object detection pipeline can currently be loaded from <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;object-detection&quot;</code>.`,Em,Gr,QT='See the list of available models on <a href="https://huggingface.co/models?filter=object-detection" rel="nofollow">huggingface.co/models</a>.',Qm,yt,Ln,Xm,Zr,XT="Detect objects (bounding boxes & classes) in the image(s) passed as inputs.",kc,Hn,vc,ve,On,Km,Fr,KT=`Video classification pipeline using any <code>AutoModelForVideoClassification</code>. This pipeline predicts the class of a
video.`,eh,zr,ey=`This video classification pipeline can currently be loaded from <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;video-classification&quot;</code>.`,th,Br,ty=`See the list of available models on
<a href="https://huggingface.co/models?filter=video-classification" rel="nofollow">huggingface.co/models</a>.`,sh,bt,Yn,nh,Rr,sy="Assign labels to the video(s) passed as inputs.",$c,En,Jc,Q,Qn,ah,Dr,ny=`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>.`,oh,_t,rh,Nr,ay='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',ih,Ar,oy=`This image classification pipeline can currently be loaded from <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;zero-shot-image-classification&quot;</code>.`,lh,Vr,ry=`See the list of available models on
<a href="https://huggingface.co/models?filter=zero-shot-image-classification" rel="nofollow">huggingface.co/models</a>.`,ph,xt,Xn,ch,Sr,iy="Assign labels to the image(s) passed as inputs.",Pc,Kn,Cc,X,ea,dh,Wr,ly=`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>.`,mh,wt,hh,Lr,py='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',gh,Hr,cy=`This object detection pipeline can currently be loaded from <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;zero-shot-object-detection&quot;</code>.`,fh,Or,dy=`See the list of available models on
<a href="https://huggingface.co/models?filter=zero-shot-object-detection" rel="nofollow">huggingface.co/models</a>.`,uh,Mt,ta,Th,Yr,my="Detect objects (bounding boxes & classes) in the image(s) passed as inputs.",Ic,sa,qc,na,hy="自然言語処理タスクに使用できるパイプラインには次のものがあります。",Gc,aa,Zc,Z,oa,yh,Er,gy=`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.`,bh,jt,_h,Qr,fy='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',xh,Xr,uy=`This mask filling pipeline can currently be loaded from <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;fill-mask&quot;</code>.`,wh,Kr,Ty=`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>.`,Mh,Ut,jh,kt,Uh,vt,ra,kh,ei,yy="Fill the masked token in the text(s) given as inputs.",Fc,ia,zc,G,la,vh,ti,by=`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.`,$h,$t,Jh,si,_y='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Ph,ni,xy=`This token recognition pipeline can currently be loaded from <a href="/docs/transformers/pr_30530/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).`,Ch,ai,wy=`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>.`,Ih,Ae,pa,qh,oi,My="Override tokens from a given word that disagree to force agreement on word boundaries.",Gh,ri,jy=`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`,Zh,Jt,ca,Fh,ii,Uy="Fuse various numpy arrays into dicts with all the information needed for aggregation",zh,Pt,da,Bh,li,ky="Find and group together the adjacent tokens with the same entity predicted.",Rh,Ct,ma,Dh,pi,vy="Group together the adjacent tokens with the same entity predicted.",Bc,ha,$y='詳細については、<a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.TokenClassificationPipeline">TokenClassificationPipeline</a> を参照してください。',Rc,ga,Dc,F,fa,Nh,ci,Jy=`Question Answering pipeline using any <code>ModelForQuestionAnswering</code>. See the <a href="../task_summary#question-answering">question answering
examples</a> for more information.`,Ah,It,Vh,di,Py='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Sh,mi,Cy=`This question answering pipeline can currently be loaded from <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;question-answering&quot;</code>.`,Wh,hi,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>.`,Lh,qt,ua,Hh,gi,qy="Answer the question(s) given as inputs by using the context(s).",Oh,Ve,Ta,Yh,fi,Gy=`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>.`,Eh,ui,Zy="We currently support extractive question answering.",Qh,Gt,ya,Xh,Ti,Fy="When decoding from token probabilities, this method maps token indexes to actual word in the initial context.",Nc,ba,Ac,ge,_a,Kh,yi,zy="Summarize news articles and other documents.",eg,bi,By=`This summarizing pipeline can currently be loaded from <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;summarization&quot;</code>.`,tg,_i,Ry=`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>`,sg,Zt,ng,Ft,xa,ag,xi,Dy="Summarize the text(s) given as inputs.",Vc,wa,Sc,K,Ma,og,wi,Ny=`Table Question Answering pipeline using a <code>ModelForTableQuestionAnswering</code>. This pipeline is only available in
PyTorch.`,rg,zt,ig,Mi,Ay='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',lg,ji,Vy=`This tabular question answering pipeline can currently be loaded from <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task
identifier: <code>&quot;table-question-answering&quot;</code>.`,pg,Ui,Sy=`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>.`,cg,ie,ja,dg,ki,Wy="Answers queries according to a table. The pipeline accepts several types of inputs which are detailed below:",mg,vi,Ly="<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>",hg,$i,Hy="The <code>table</code> argument should be a dict or a DataFrame built from that dict, containing the whole table:",gg,Bt,fg,Ji,Oy="This dictionary can be passed in as such, or can be converted to a pandas DataFrame:",ug,Rt,Wc,Ua,Lc,N,ka,Tg,Pi,Yy=`Text classification pipeline using any <code>ModelForSequenceClassification</code>. See the <a href="../task_summary#sequence-classification">sequence classification
examples</a> for more information.`,yg,Dt,bg,Ci,Ey='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',_g,Ii,Qy=`This text classification pipeline can currently be loaded from <a href="/docs/transformers/pr_30530/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).`,xg,qi,Xy=`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. In case of regression
tasks (<code>model.config.problem_type == &quot;regression&quot;</code>), will not apply any function on the output.`,wg,Gi,Ky=`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>.`,Mg,Nt,va,jg,Zi,eb="Classify the text(s) given as inputs.",Hc,$a,Oc,A,Ja,Ug,Fi,tb=`Language generation pipeline using any <code>ModelWithLMHead</code>. This pipeline predicts the words that will follow a
specified text prompt. When the underlying model is a conversational model, it can also accept one or more chats,
in which case the pipeline will operate in chat mode and will continue the chat(s) by adding its response(s).
Each chat takes the form of a list of dicts, where each dict contains “role” and “content” keys.`,kg,At,vg,Vt,$g,zi,sb=`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>.`,Jg,Bi,nb=`This language generation pipeline can currently be loaded from <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;text-generation&quot;</code>.`,Pg,Ri,ab=`The models that this pipeline can use are models that have been trained with an autoregressive language modeling
objective. See the list of available <a href="https://huggingface.co/models?filter=text-generation" rel="nofollow">text completion models</a>
and the list of <a href="https://huggingface.co/models?other=conversational" rel="nofollow">conversational models</a>
on [huggingface.co/models].`,Cg,St,Pa,Ig,Di,ob="Complete the prompt(s) given as inputs.",Yc,Ca,Ec,z,Ia,qg,Ni,rb="Pipeline for text to text generation using seq2seq models.",Gg,Wt,Zg,Ai,ib=`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>.`,Fg,Vi,lb=`This Text2TextGenerationPipeline pipeline can currently be loaded from <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task
identifier: <code>&quot;text2text-generation&quot;</code>.`,zg,Si,pb=`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>`,Bg,Lt,Rg,Ht,qa,Dg,Wi,cb="Generate the output text(s) using text(s) given as inputs.",Ng,Ot,Ga,Ag,Li,db="Checks whether there might be something wrong with given input with regard to the model.",Qc,Za,Xc,q,Fa,Vg,Hi,mb=`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,Yt,Wg,Oi,hb='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Lg,Yi,gb=`This token recognition pipeline can currently be loaded from <a href="/docs/transformers/pr_30530/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).`,Hg,Ei,fb=`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>.`,Og,Et,za,Yg,Qi,ub="Classify each token of the text(s) given as inputs.",Eg,Se,Ba,Qg,Xi,Tb="Override tokens from a given word that disagree to force agreement on word boundaries.",Xg,Ki,yb=`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`,Kg,Qt,Ra,ef,el,bb="Fuse various numpy arrays into dicts with all the information needed for aggregation",tf,Xt,Da,sf,tl,_b="Find and group together the adjacent tokens with the same entity predicted.",nf,Kt,Na,af,sl,xb="Group together the adjacent tokens with the same entity predicted.",Kc,Aa,ed,fe,Va,of,nl,wb="Translates from one language to another.",rf,al,Mb=`This translation pipeline can currently be loaded from <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;translation_xx_to_yy&quot;</code>.`,lf,ol,jb=`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>`,pf,es,cf,ts,Sa,df,rl,Ub="Translate the text(s) given as inputs.",td,Wa,sd,V,La,mf,il,kb=`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.`,hf,ll,vb=`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>.`,gf,ss,ff,pl,$b='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',uf,cl,Jb=`This NLI pipeline can currently be loaded from <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;zero-shot-classification&quot;</code>.`,Tf,dl,Pb=`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>.`,yf,ns,Ha,bf,ml,Cb=`Classify the sequence(s) given as inputs. See the <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.ZeroShotClassificationPipeline">ZeroShotClassificationPipeline</a> documentation for more
information.`,nd,Oa,ad,Ya,Ib="マルチモーダル タスクに使用できるパイプラインには次のものがあります。",od,Ea,rd,ee,Qa,_f,hl,qb=`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.`,xf,as,wf,gl,Gb='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Mf,fl,Zb=`This document question answering pipeline can currently be loaded from <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task
identifier: <code>&quot;document-question-answering&quot;</code>.`,jf,ul,Fb=`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>.`,Uf,De,Xa,kf,Tl,zb=`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.`,vf,yl,Bb="You can invoke the pipeline several ways:",$f,bl,Rb="<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>",id,Ka,ld,te,eo,Jf,_l,Db=`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.`,Pf,os,Cf,xl,Nb='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',If,wl,Ab=`This feature extraction pipeline can currently be loaded from <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the task identifier:
<code>&quot;feature-extraction&quot;</code>.`,qf,Ml,Vb=`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>.`,Gf,rs,to,Zf,jl,Sb="Extract the features of the input(s).",pd,so,cd,se,no,Ff,Ul,Wb=`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.`,zf,is,Bf,kl,Lb='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Rf,vl,Hb=`This image feature extraction pipeline can currently be loaded from <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the task identifier:
<code>&quot;image-feature-extraction&quot;</code>.`,Df,$l,Ob=`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>.`,Nf,ls,ao,Af,Jl,Yb="Extract the features of the input(s).",dd,oo,md,ne,ro,Vf,Pl,Eb="Image To Text pipeline using a <code>AutoModelForVision2Seq</code>. This pipeline predicts a caption for a given image.",Sf,ps,Wf,Cl,Qb='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Lf,Il,Xb=`This image to text pipeline can currently be loaded from pipeline() using the following task identifier:
“image-to-text”.`,Hf,ql,Kb=`See the list of available models on
<a href="https://huggingface.co/models?pipeline_tag=image-to-text" rel="nofollow">huggingface.co/models</a>.`,Of,cs,io,Yf,Gl,e_="Assign labels to the image(s) passed as inputs.",hd,lo,gd,S,po,Ef,Zl,t_=`Image-text-to-text pipeline using an <code>AutoModelForImageTextToText</code>. This pipeline generates text given an image and text.
When the underlying model is a conversational model, it can also accept one or more chats,
in which case the pipeline will operate in chat mode and will continue the chat(s) by adding its response(s).
Each chat takes the form of a list of dicts, where each dict contains “role” and “content” keys.`,Qf,ds,Xf,ms,Kf,Fl,s_='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',eu,zl,n_=`This image-text to text pipeline can currently be loaded from pipeline() using the following task identifier:
“image-text-to-text”.`,tu,Bl,a_=`See the list of available models on
<a href="https://huggingface.co/models?pipeline_tag=image-text-to-text" rel="nofollow">huggingface.co/models</a>.`,su,hs,co,nu,Rl,o_="Generate a text given text and the image(s) passed as inputs.",fd,mo,ud,ae,ho,au,Dl,r_=`Visual Question Answering pipeline using a <code>AutoModelForVisualQuestionAnswering</code>. This pipeline is currently only
available in PyTorch.`,ou,gs,ru,Nl,i_='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',iu,Al,l_=`This visual question answering pipeline can currently be loaded from <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task
identifiers: <code>&quot;visual-question-answering&quot;, &quot;vqa&quot;</code>.`,lu,Vl,p_=`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>.`,pu,We,go,cu,Sl,c_=`Answers open-ended questions about images. The pipeline accepts several types of inputs which are detailed
below:`,du,Wl,d_="<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>",Td,fo,yd,C,uo,mu,Ll,m_=`The Pipeline class is the class from which all pipelines inherit. Refer to this class for methods shared across
different pipelines.`,hu,Hl,h_=`Base class implementing pipelined operations. Pipeline workflow is defined as a sequence of the following
operations:`,gu,Ol,g_="Input -> Tokenization -> Model Inference -> Post-Processing (task dependent) -> Output",fu,Yl,f_="Pipeline supports running on CPU or GPU through the device argument (see below).",uu,El,u_=`Some pipeline, like for instance <a href="/docs/transformers/pr_30530/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.`,Tu,fs,To,yu,Ql,T_="Check if the model class is in supported by the pipeline.",bu,Le,yo,_u,Xl,y_="Context Manager allowing tensor allocation on the user-specified device in framework agnostic way.",xu,us,wu,Ts,bo,Mu,Kl,b_="Ensure PyTorch tensors are on the specified device.",ju,ys,_o,Uu,ep,__=`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).`,ku,bs,xo,vu,tp,x_="Scikit / Keras interface to transformers’ pipelines. This method will forward to <strong>call</strong>().",$u,_s,wo,Ju,sp,w_=`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.`,Pu,He,Mo,Cu,np,M_="Upload the pipeline file to the 🤗 Model Hub.",Iu,xs,qu,ws,jo,Gu,ap,j_="Save the pipeline’s model and tokenizer.",Zu,Ms,Uo,Fu,op,U_="Scikit / Keras interface to transformers’ pipelines. This method will forward to <strong>call</strong>().",bd,ko,_d,mp,xd;return _=new J({props:{title:"Pipelines",local:"pipelines",headingTag:"h1"}}),vs=new J({props:{title:"The pipeline abstraction",local:"transformers.pipeline",headingTag:"h2"}}),Ps=new v({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}}),Is=new v({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}}),Gs=new v({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}}),Fs=new v({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}}),Bs=new v({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}}),Rs=new k({props:{name:"transformers.pipeline",anchor:"transformers.pipeline",parameters:[{name:"task",val:": str = None"},{name:"model",val:": typing.Union[str, ForwardRef('PreTrainedModel'), ForwardRef('TFPreTrainedModel'), NoneType] = None"},{name:"config",val:": typing.Union[str, transformers.configuration_utils.PretrainedConfig, NoneType] = None"},{name:"tokenizer",val:": typing.Union[str, transformers.tokenization_utils.PreTrainedTokenizer, ForwardRef('PreTrainedTokenizerFast'), NoneType] = None"},{name:"feature_extractor",val:": typing.Union[str, ForwardRef('SequenceFeatureExtractor'), NoneType] = None"},{name:"image_processor",val:": typing.Union[str, transformers.image_processing_utils.BaseImageProcessor, NoneType] = None"},{name:"processor",val:": typing.Union[str, transformers.processing_utils.ProcessorMixin, NoneType] = None"},{name:"framework",val:": typing.Optional[str] = None"},{name:"revision",val:": typing.Optional[str] = None"},{name:"use_fast",val:": bool = True"},{name:"token",val:": typing.Union[str, bool, NoneType] = None"},{name:"device",val:": typing.Union[int, str, ForwardRef('torch.device'), NoneType] = None"},{name:"device_map",val:" = None"},{name:"torch_dtype",val:" = None"},{name:"trust_remote_code",val:": typing.Optional[bool] = None"},{name:"model_kwargs",val:": typing.Dict[str, typing.Any] = None"},{name:"pipeline_class",val:": typing.Optional[typing.Any] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.pipeline.task",description:`<strong>task</strong> (<code>str</code>) &#x2014;
The task defining which pipeline will be returned. Currently accepted tasks are:</p>
<ul>
<li><code>&quot;audio-classification&quot;</code>: will return a <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.AudioClassificationPipeline">AudioClassificationPipeline</a>.</li>
<li><code>&quot;automatic-speech-recognition&quot;</code>: will return a <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.AutomaticSpeechRecognitionPipeline">AutomaticSpeechRecognitionPipeline</a>.</li>
<li><code>&quot;depth-estimation&quot;</code>: will return a <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.DepthEstimationPipeline">DepthEstimationPipeline</a>.</li>
<li><code>&quot;document-question-answering&quot;</code>: will return a <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.DocumentQuestionAnsweringPipeline">DocumentQuestionAnsweringPipeline</a>.</li>
<li><code>&quot;feature-extraction&quot;</code>: will return a <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.FeatureExtractionPipeline">FeatureExtractionPipeline</a>.</li>
<li><code>&quot;fill-mask&quot;</code>: will return a <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.FillMaskPipeline">FillMaskPipeline</a>:.</li>
<li><code>&quot;image-classification&quot;</code>: will return a <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.ImageClassificationPipeline">ImageClassificationPipeline</a>.</li>
<li><code>&quot;image-feature-extraction&quot;</code>: will return an <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.ImageFeatureExtractionPipeline">ImageFeatureExtractionPipeline</a>.</li>
<li><code>&quot;image-segmentation&quot;</code>: will return a <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.ImageSegmentationPipeline">ImageSegmentationPipeline</a>.</li>
<li><code>&quot;image-text-to-text&quot;</code>: will return a <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.ImageTextToTextPipeline">ImageTextToTextPipeline</a>.</li>
<li><code>&quot;image-to-image&quot;</code>: will return a <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.ImageToImagePipeline">ImageToImagePipeline</a>.</li>
<li><code>&quot;image-to-text&quot;</code>: will return a <a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/pipelines#transformers.ObjectDetectionPipeline">ObjectDetectionPipeline</a>.</li>
<li><code>&quot;question-answering&quot;</code>: will return a <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.QuestionAnsweringPipeline">QuestionAnsweringPipeline</a>.</li>
<li><code>&quot;summarization&quot;</code>: will return a <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.SummarizationPipeline">SummarizationPipeline</a>.</li>
<li><code>&quot;table-question-answering&quot;</code>: will return a <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.TableQuestionAnsweringPipeline">TableQuestionAnsweringPipeline</a>.</li>
<li><code>&quot;text2text-generation&quot;</code>: will return a <a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/pipelines#transformers.TextClassificationPipeline">TextClassificationPipeline</a>.</li>
<li><code>&quot;text-generation&quot;</code>: will return a <a href="/docs/transformers/pr_30530/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/pr_30530/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/pr_30530/ja/main_classes/pipelines#transformers.TokenClassificationPipeline">TokenClassificationPipeline</a>.</li>
<li><code>&quot;translation&quot;</code>: will return a <a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/pipelines#transformers.TranslationPipeline">TranslationPipeline</a>.</li>
<li><code>&quot;video-classification&quot;</code>: will return a <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.VideoClassificationPipeline">VideoClassificationPipeline</a>.</li>
<li><code>&quot;visual-question-answering&quot;</code>: will return a <a href="/docs/transformers/pr_30530/ja/main_classes/pipelines#transformers.VisualQuestionAnsweringPipeline">VisualQuestionAnsweringPipeline</a>.</li>
<li><code>&quot;zero-shot-classification&quot;</code>: will return a <a href="/docs/transformers/pr_30530/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/pr_30530/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/pr_30530/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/pr_30530/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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> (for PyTorch) or
<a href="/docs/transformers/pr_30530/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/pr_30530/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/pr_30530/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/pr_30530/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/pr_30530/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.image_processor",description:`<strong>image_processor</strong> (<code>str</code> or <a href="/docs/transformers/pr_30530/ja/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>, <em>optional</em>) &#x2014;
The image processor that will be used by the pipeline to preprocess images for the model. This can be a
model identifier or an actual image processor inheriting from <a href="/docs/transformers/pr_30530/ja/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>.</p>
<p>Image processors are used for Vision models and multi-modal models that require image inputs. Multi-modal
models will also require a tokenizer to be passed.</p>
<p>If not provided, the default image processor 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 image processor for <code>config</code> is loaded (if it is
a string).`,name:"image_processor"},{anchor:"transformers.pipeline.processor",description:`<strong>processor</strong> (<code>str</code> or <a href="/docs/transformers/pr_30530/ja/main_classes/processors#transformers.ProcessorMixin">ProcessorMixin</a>, <em>optional</em>) &#x2014;
The processor that will be used by the pipeline to preprocess data for the model. This can be a model
identifier or an actual processor inheriting from <a href="/docs/transformers/pr_30530/ja/main_classes/processors#transformers.ProcessorMixin">ProcessorMixin</a>.</p>
<p>Processors are used for multi-modal models that require multi-modal inputs, for example, a model that
requires both text and image inputs.</p>
<p>If not provided, the default processor 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 processor for <code>config</code> is loaded (if it is a string).`,name:"processor"},{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/pr_30530/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/vr_30530/src/transformers/pipelines/__init__.py#L567",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/pr_30530/ja/main_classes/pipelines#transformers.Pipeline"
>Pipeline</a></p>
`}}),Ee=new cp({props:{$$slots:{default:[G_]},$$scope:{ctx:M}}}),Qe=new P({props:{anchor:"transformers.pipeline.example",$$slots:{default:[Z_]},$$scope:{ctx:M}}}),Ds=new J({props:{title:"Pipeline batching",local:"pipeline-batching",headingTag:"h2"}}),As=new v({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}}),Xe=new cp({props:{warning:!0,$$slots:{default:[F_]},$$scope:{ctx:M}}}),Vs=new v({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}}),Ss=new v({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}}),Ls=new v({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}}),Os=new v({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}}),Xs=new J({props:{title:"Pipeline chunk batching",local:"pipeline-chunk-batching",headingTag:"h2"}}),tn=new v({props:{code:"cHJlcHJvY2Vzc2VkJTIwJTNEJTIwcGlwZS5wcmVwcm9jZXNzKGlucHV0cyklMEFtb2RlbF9vdXRwdXRzJTIwJTNEJTIwcGlwZS5mb3J3YXJkKHByZXByb2Nlc3NlZCklMEFvdXRwdXRzJTIwJTNEJTIwcGlwZS5wb3N0cHJvY2Vzcyhtb2RlbF9vdXRwdXRzKQ==",highlighted:`preprocessed = pipe.preprocess(inputs)
model_outputs = pipe.forward(preprocessed)
outputs = pipe.postprocess(model_outputs)`,wrap:!1}}),nn=new v({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}}),rn=new J({props:{title:"Pipeline custom code",local:"pipeline-custom-code",headingTag:"h2"}}),mn=new v({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}}),gn=new J({props:{title:"Implementing a pipeline",local:"implementing-a-pipeline",headingTag:"h2"}}),un=new J({props:{title:"Audio",local:"audio",headingTag:"h2"}}),yn=new J({props:{title:"AudioClassificationPipeline",local:"transformers.AudioClassificationPipeline",headingTag:"h3"}}),bn=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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/pr_30530/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/pr_30530/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/pr_30530/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/pr_30530/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/vr_30530/src/transformers/pipelines/audio_classification.py#L66"}}),Ke=new P({props:{anchor:"transformers.AudioClassificationPipeline.example",$$slots:{default:[z_]},$$scope:{ctx:M}}}),_n=new k({props:{name:"__call__",anchor:"transformers.AudioClassificationPipeline.__call__",parameters:[{name:"inputs",val:": typing.Union[numpy.ndarray, bytes, str]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.AudioClassificationPipeline.__call__.inputs",description:`<strong>inputs</strong> (<code>np.ndarray</code> or <code>bytes</code> or <code>str</code> or <code>dict</code>) &#x2014;
The inputs is either :<ul>
<li><code>str</code> that is the filename of the audio file, the file will be read at the correct sampling rate
to get the waveform using <em>ffmpeg</em>. This requires <em>ffmpeg</em> to be installed on the system.</li>
<li><code>bytes</code> it is supposed to be the content of an audio file and is interpreted by <em>ffmpeg</em> in the
same way.</li>
<li>(<code>np.ndarray</code> of shape (n, ) of type <code>np.float32</code> or <code>np.float64</code>)
Raw audio at the correct sampling rate (no further check will be done)</li>
<li><code>dict</code> form can be used to pass raw audio sampled at arbitrary <code>sampling_rate</code> and let this
pipeline do the resampling. The dict must be either be in the format <code>{&quot;sampling_rate&quot;: int, &quot;raw&quot;: np.array}</code>, or <code>{&quot;sampling_rate&quot;: int, &quot;array&quot;: np.array}</code>, where the key <code>&quot;raw&quot;</code> or
<code>&quot;array&quot;</code> is used to denote the raw audio waveform.</li>
</ul>`,name:"inputs"},{anchor:"transformers.AudioClassificationPipeline.__call__.top_k",description:`<strong>top_k</strong> (<code>int</code>, <em>optional</em>, defaults to None) &#x2014;
The number of top labels that will be returned by the pipeline. If the provided number is <code>None</code> or
higher than the number of labels available in the model configuration, it will default to the number of
labels.`,name:"top_k"},{anchor:"transformers.AudioClassificationPipeline.__call__.function_to_apply(str,",description:`<strong>function_to_apply(<code>str</code>,</strong> <em>optional</em>, defaults to &#x201C;softmax&#x201D;) &#x2014;
The function to apply to the model output. By default, the pipeline will apply the softmax function to
the output of the model. Valid options: [&#x201C;softmax&#x201D;, &#x201C;sigmoid&#x201D;, &#x201C;none&#x201D;]. Note that passing Python&#x2019;s
built-in <code>None</code> will default to &#x201C;softmax&#x201D;, so you need to pass the string &#x201C;none&#x201D; to disable any
post-processing.`,name:"function_to_apply(str,"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/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>
`}}),xn=new J({props:{title:"AutomaticSpeechRecognitionPipeline",local:"transformers.AutomaticSpeechRecognitionPipeline",headingTag:"h3"}}),wn=new k({props:{name:"class transformers.AutomaticSpeechRecognitionPipeline",anchor:"transformers.AutomaticSpeechRecognitionPipeline",parameters:[{name:"model",val:": PreTrainedModel"},{name:"feature_extractor",val:": typing.Union[ForwardRef('SequenceFeatureExtractor'), str] = None"},{name:"tokenizer",val:": typing.Optional[transformers.tokenization_utils.PreTrainedTokenizer] = None"},{name:"decoder",val:": typing.Union[ForwardRef('BeamSearchDecoderCTC'), str, NoneType] = None"},{name:"device",val:": typing.Union[int, ForwardRef('torch.device')] = None"},{name:"torch_dtype",val:": typing.Union[str, ForwardRef('torch.dtype'), NoneType] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.AutomaticSpeechRecognitionPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/pr_30530/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/pr_30530/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/pr_30530/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/pr_30530/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/vr_30530/src/transformers/pipelines/automatic_speech_recognition.py#L127"}}),tt=new P({props:{anchor:"transformers.AutomaticSpeechRecognitionPipeline.example",$$slots:{default:[B_]},$$scope:{ctx:M}}}),Mn=new k({props:{name:"__call__",anchor:"transformers.AutomaticSpeechRecognitionPipeline.__call__",parameters:[{name:"inputs",val:": typing.Union[numpy.ndarray, bytes, str]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.AutomaticSpeechRecognitionPipeline.__call__.inputs",description:`<strong>inputs</strong> (<code>np.ndarray</code> or <code>bytes</code> or <code>str</code> or <code>dict</code>) &#x2014;
The inputs is either :</p>
<ul>
<li><code>str</code> that is 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"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/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>
`}}),jn=new J({props:{title:"TextToAudioPipeline",local:"transformers.TextToAudioPipeline",headingTag:"h3"}}),Un=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/vr_30530/src/transformers/pipelines/text_to_audio.py#L27"}}),nt=new P({props:{anchor:"transformers.TextToAudioPipeline.example",$$slots:{default:[R_]},$$scope:{ctx:M}}}),at=new cp({props:{$$slots:{default:[N_]},$$scope:{ctx:M}}}),kn=new k({props:{name:"__call__",anchor:"transformers.TextToAudioPipeline.__call__",parameters:[{name:"text_inputs",val:": typing.Union[str, typing.List[str]]"},{name:"**forward_params",val:""}],parametersDescription:[{anchor:"transformers.TextToAudioPipeline.__call__.text_inputs",description:`<strong>text_inputs</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
The text(s) to generate.`,name:"text_inputs"},{anchor:"transformers.TextToAudioPipeline.__call__.forward_params",description:`<strong>forward_params</strong> (<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/vr_30530/src/transformers/pipelines/text_to_audio.py#L164",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>
`}}),vn=new J({props:{title:"ZeroShotAudioClassificationPipeline",local:"transformers.ZeroShotAudioClassificationPipeline",headingTag:"h3"}}),$n=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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.feature_extractor",description:`<strong>feature_extractor</strong> (<a href="/docs/transformers/pr_30530/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/pr_30530/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/pr_30530/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/vr_30530/src/transformers/pipelines/zero_shot_audio_classification.py#L32"}}),rt=new cp({props:{warning:!0,$$slots:{default:[A_]},$$scope:{ctx:M}}}),it=new P({props:{anchor:"transformers.ZeroShotAudioClassificationPipeline.example",$$slots:{default:[V_]},$$scope:{ctx:M}}}),Jn=new k({props:{name:"__call__",anchor:"transformers.ZeroShotAudioClassificationPipeline.__call__",parameters:[{name:"audios",val:": typing.Union[numpy.ndarray, bytes, str]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotAudioClassificationPipeline.__call__.audios",description:`<strong>audios</strong> (<code>str</code>, <code>List[str]</code>, <code>np.array</code> or <code>List[np.array]</code>) &#x2014;
The pipeline handles three types of inputs:<ul>
<li>A string containing a http link pointing to an audio</li>
<li>A string containing a local path to an audio</li>
<li>An audio loaded in numpy</li>
</ul>`,name:"audios"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.__call__.candidate_labels",description:`<strong>candidate_labels</strong> (<code>List[str]</code>) &#x2014;
The candidate labels for this audio. They will be formatted using <em>hypothesis_template</em>.`,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 format used in conjunction with <em>candidate_labels</em> to attempt the audio classification by
replacing the placeholder with the candidate_labels. Pass &#x201D;{}&#x201D; if <em>candidate_labels</em> are
already formatted.`,name:"hypothesis_template"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/pipelines/zero_shot_audio_classification.py#L70",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of dictionaries containing one entry per proposed label. Each dictionary contains the
following keys:</p>
<ul>
<li><strong>label</strong> (<code>str</code>) — One of the suggested <em>candidate_labels</em>.</li>
<li><strong>score</strong> (<code>float</code>) — The score attributed by the model to that label. It is a value between
0 and 1, computed as the <code>softmax</code> of <code>logits_per_audio</code>.</li>
</ul>
`}}),Pn=new J({props:{title:"Computer vision",local:"computer-vision",headingTag:"h2"}}),In=new J({props:{title:"DepthEstimationPipeline",local:"transformers.DepthEstimationPipeline",headingTag:"h3"}}),qn=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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.DepthEstimationPipeline.image_processor",description:`<strong>image_processor</strong> (<a href="/docs/transformers/pr_30530/ja/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>) &#x2014;
The image processor that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/pr_30530/ja/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>.`,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/pr_30530/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/vr_30530/src/transformers/pipelines/depth_estimation.py#L24"}}),pt=new P({props:{anchor:"transformers.DepthEstimationPipeline.example",$$slots:{default:[S_]},$$scope:{ctx:M}}}),Gn=new k({props:{name:"__call__",anchor:"transformers.DepthEstimationPipeline.__call__",parameters:[{name:"inputs",val:": typing.Union[str, typing.List[str], ForwardRef('Image.Image'), typing.List[ForwardRef('Image.Image')]] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.DepthEstimationPipeline.__call__.inputs",description:`<strong>inputs</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:"inputs"},{anchor:"transformers.DepthEstimationPipeline.__call__.parameters",description:`<strong>parameters</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
A dictionary of argument names to parameter values, to control pipeline behaviour.
The only parameter available right now is <code>timeout</code>, which is the length of time, in seconds,
that the pipeline should wait before giving up on trying to download an image.`,name:"parameters"},{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/vr_30530/src/transformers/pipelines/depth_estimation.py#L55",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>
`}}),Zn=new J({props:{title:"ImageClassificationPipeline",local:"transformers.ImageClassificationPipeline",headingTag:"h3"}}),Fn=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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ImageClassificationPipeline.image_processor",description:`<strong>image_processor</strong> (<a href="/docs/transformers/pr_30530/ja/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>) &#x2014;
The image processor that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/pr_30530/ja/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>.`,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/pr_30530/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/vr_30530/src/transformers/pipelines/image_classification.py#L65"}}),dt=new P({props:{anchor:"transformers.ImageClassificationPipeline.example",$$slots:{default:[W_]},$$scope:{ctx:M}}}),zn=new k({props:{name:"__call__",anchor:"transformers.ImageClassificationPipeline.__call__",parameters:[{name:"inputs",val:": typing.Union[str, typing.List[str], ForwardRef('Image.Image'), typing.List[ForwardRef('Image.Image')]] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageClassificationPipeline.__call__.inputs",description:`<strong>inputs</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:"inputs"},{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/vr_30530/src/transformers/pipelines/image_classification.py#L125",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>
`}}),Bn=new J({props:{title:"ImageSegmentationPipeline",local:"transformers.ImageSegmentationPipeline",headingTag:"h3"}}),Rn=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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ImageSegmentationPipeline.image_processor",description:`<strong>image_processor</strong> (<a href="/docs/transformers/pr_30530/ja/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>) &#x2014;
The image processor that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/pr_30530/ja/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>.`,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/pr_30530/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/vr_30530/src/transformers/pipelines/image_segmentation.py#L30"}}),ht=new P({props:{anchor:"transformers.ImageSegmentationPipeline.example",$$slots:{default:[L_]},$$scope:{ctx:M}}}),Dn=new k({props:{name:"__call__",anchor:"transformers.ImageSegmentationPipeline.__call__",parameters:[{name:"inputs",val:" = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageSegmentationPipeline.__call__.inputs",description:`<strong>inputs</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:"inputs"},{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/vr_30530/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>
`}}),Nn=new J({props:{title:"ImageToImagePipeline",local:"transformers.ImageToImagePipeline",headingTag:"h3"}}),An=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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ImageToImagePipeline.image_processor",description:`<strong>image_processor</strong> (<a href="/docs/transformers/pr_30530/ja/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>) &#x2014;
The image processor that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/pr_30530/ja/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>.`,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/pr_30530/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/vr_30530/src/transformers/pipelines/image_to_image.py#L39"}}),ft=new P({props:{anchor:"transformers.ImageToImagePipeline.example",$$slots:{default:[H_]},$$scope:{ctx:M}}}),Vn=new k({props:{name:"__call__",anchor:"transformers.ImageToImagePipeline.__call__",parameters:[{name:"images",val:": typing.Union[str, typing.List[str], ForwardRef('Image.Image'), typing.List[ForwardRef('Image.Image')]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.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/vr_30530/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>
`}}),Sn=new J({props:{title:"ObjectDetectionPipeline",local:"transformers.ObjectDetectionPipeline",headingTag:"h3"}}),Wn=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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ObjectDetectionPipeline.image_processor",description:`<strong>image_processor</strong> (<a href="/docs/transformers/pr_30530/ja/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>) &#x2014;
The image processor that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/pr_30530/ja/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>.`,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/pr_30530/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/vr_30530/src/transformers/pipelines/object_detection.py#L26"}}),Tt=new P({props:{anchor:"transformers.ObjectDetectionPipeline.example",$$slots:{default:[O_]},$$scope:{ctx:M}}}),Ln=new k({props:{name:"__call__",anchor:"transformers.ObjectDetectionPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ObjectDetectionPipeline.__call__.inputs",description:`<strong>inputs</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:"inputs"},{anchor:"transformers.ObjectDetectionPipeline.__call__.threshold",description:`<strong>threshold</strong> (<code>float</code>, <em>optional</em>, defaults to 0.5) &#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/vr_30530/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>
`}}),Hn=new J({props:{title:"VideoClassificationPipeline",local:"transformers.VideoClassificationPipeline",headingTag:"h3"}}),On=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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.VideoClassificationPipeline.image_processor",description:`<strong>image_processor</strong> (<a href="/docs/transformers/pr_30530/ja/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>) &#x2014;
The image processor that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/pr_30530/ja/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>.`,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/pr_30530/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/vr_30530/src/transformers/pipelines/video_classification.py#L41"}}),Yn=new k({props:{name:"__call__",anchor:"transformers.VideoClassificationPipeline.__call__",parameters:[{name:"inputs",val:": typing.Union[str, typing.List[str]] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.VideoClassificationPipeline.__call__.inputs",description:`<strong>inputs</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:"inputs"},{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"},{anchor:"transformers.VideoClassificationPipeline.__call__.function_to_apply(str,",description:`<strong>function_to_apply(<code>str</code>,</strong> <em>optional</em>, defaults to &#x201C;softmax&#x201D;) &#x2014;
The function to apply to the model output. By default, the pipeline will apply the softmax function to
the output of the model. Valid options: [&#x201C;softmax&#x201D;, &#x201C;sigmoid&#x201D;, &#x201C;none&#x201D;]. Note that passing Python&#x2019;s
built-in <code>None</code> will default to &#x201C;softmax&#x201D;, so you need to pass the string &#x201C;none&#x201D; to disable any
post-processing.`,name:"function_to_apply(str,"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/pipelines/video_classification.py#L80",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>
`}}),En=new J({props:{title:"ZeroShotImageClassificationPipeline",local:"transformers.ZeroShotImageClassificationPipeline",headingTag:"h3"}}),Qn=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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ZeroShotImageClassificationPipeline.image_processor",description:`<strong>image_processor</strong> (<a href="/docs/transformers/pr_30530/ja/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>) &#x2014;
The image processor that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/pr_30530/ja/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>.`,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/pr_30530/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/vr_30530/src/transformers/pipelines/zero_shot_image_classification.py#L33"}}),_t=new P({props:{anchor:"transformers.ZeroShotImageClassificationPipeline.example",$$slots:{default:[Y_]},$$scope:{ctx:M}}}),Xn=new k({props:{name:"__call__",anchor:"transformers.ZeroShotImageClassificationPipeline.__call__",parameters:[{name:"image",val:": typing.Union[str, typing.List[str], ForwardRef('Image'), typing.List[ForwardRef('Image')]] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotImageClassificationPipeline.__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>`,name:"image"},{anchor:"transformers.ZeroShotImageClassificationPipeline.__call__.candidate_labels",description:`<strong>candidate_labels</strong> (<code>List[str]</code>) &#x2014;
The candidate labels for this image. They will be formatted using <em>hypothesis_template</em>.`,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 format used in conjunction with <em>candidate_labels</em> to attempt the image classification by
replacing the placeholder with the candidate_labels. Pass &#x201D;{}&#x201D; if <em>candidate_labels</em> are
already formatted.`,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/vr_30530/src/transformers/pipelines/zero_shot_image_classification.py#L77",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of dictionaries containing one entry per proposed label. Each dictionary contains the
following keys:</p>
<ul>
<li><strong>label</strong> (<code>str</code>) — One of the suggested <em>candidate_labels</em>.</li>
<li><strong>score</strong> (<code>float</code>) — The score attributed by the model to that label. It is a value between
0 and 1, computed as the <code>softmax</code> of <code>logits_per_image</code>.</li>
</ul>
`}}),Kn=new J({props:{title:"ZeroShotObjectDetectionPipeline",local:"transformers.ZeroShotObjectDetectionPipeline",headingTag:"h3"}}),ea=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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ZeroShotObjectDetectionPipeline.image_processor",description:`<strong>image_processor</strong> (<a href="/docs/transformers/pr_30530/ja/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>) &#x2014;
The image processor that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/pr_30530/ja/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>.`,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/pr_30530/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/vr_30530/src/transformers/pipelines/zero_shot_object_detection.py#L22"}}),wt=new P({props:{anchor:"transformers.ZeroShotObjectDetectionPipeline.example",$$slots:{default:[E_]},$$scope:{ctx:M}}}),ta=new k({props:{name:"__call__",anchor:"transformers.ZeroShotObjectDetectionPipeline.__call__",parameters:[{name:"image",val:": typing.Union[str, ForwardRef('Image.Image'), typing.List[typing.Dict[str, typing.Any]]]"},{name:"candidate_labels",val:": typing.Union[str, typing.List[str]] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotObjectDetectionPipeline.__call__.image",description:`<strong>image</strong> (<code>str</code>, <code>PIL.Image</code> or <code>List[Dict[str, Any]]</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing an http url pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>
<p>You can use this parameter to send directly a list of images, or a dataset or a generator like so:`,name:"image"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/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>
`}}),sa=new J({props:{title:"Natural Language Processing",local:"natural-language-processing",headingTag:"h2"}}),aa=new J({props:{title:"FillMaskPipeline",local:"transformers.FillMaskPipeline",headingTag:"h3"}}),oa=new k({props:{name:"class transformers.FillMaskPipeline",anchor:"transformers.FillMaskPipeline",parameters:[{name:"model",val:": typing.Union[ForwardRef('PreTrainedModel'), ForwardRef('TFPreTrainedModel')]"},{name:"tokenizer",val:": typing.Optional[transformers.tokenization_utils.PreTrainedTokenizer] = None"},{name:"feature_extractor",val:": typing.Optional[ForwardRef('SequenceFeatureExtractor')] = None"},{name:"image_processor",val:": typing.Optional[transformers.image_processing_utils.BaseImageProcessor] = None"},{name:"processor",val:": typing.Optional[transformers.processing_utils.ProcessorMixin] = None"},{name:"modelcard",val:": typing.Optional[transformers.modelcard.ModelCard] = None"},{name:"framework",val:": typing.Optional[str] = None"},{name:"task",val:": str = ''"},{name:"args_parser",val:": ArgumentHandler = None"},{name:"device",val:": typing.Union[int, ForwardRef('torch.device')] = None"},{name:"torch_dtype",val:": typing.Union[str, ForwardRef('torch.dtype'), NoneType] = None"},{name:"binary_output",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FillMaskPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.FillMaskPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/pr_30530/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/pr_30530/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/pr_30530/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>, <em>optional</em>, 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/vr_30530/src/transformers/pipelines/fill_mask.py#L22"}}),jt=new P({props:{anchor:"transformers.FillMaskPipeline.example",$$slots:{default:[Q_]},$$scope:{ctx:M}}}),Ut=new cp({props:{$$slots:{default:[X_]},$$scope:{ctx:M}}}),kt=new cp({props:{$$slots:{default:[ex]},$$scope:{ctx:M}}}),ra=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/vr_30530/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>
`}}),ia=new J({props:{title:"NerPipeline",local:"transformers.TokenClassificationPipeline",headingTag:"h3"}}),la=new k({props:{name:"class transformers.TokenClassificationPipeline",anchor:"transformers.TokenClassificationPipeline",parameters:[{name:"args_parser",val:" = <transformers.pipelines.token_classification.TokenClassificationArgumentHandler object at 0x7f7debbc9f60>"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TokenClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/pr_30530/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/pr_30530/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/pr_30530/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/vr_30530/src/transformers/pipelines/token_classification.py#L63"}}),$t=new P({props:{anchor:"transformers.TokenClassificationPipeline.example",$$slots:{default:[tx]},$$scope:{ctx:M}}}),pa=new k({props:{name:"aggregate_words",anchor:"transformers.TokenClassificationPipeline.aggregate_words",parameters:[{name:"entities",val:": typing.List[dict]"},{name:"aggregation_strategy",val:": AggregationStrategy"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/pipelines/token_classification.py#L475"}}),ca=new k({props:{name:"gather_pre_entities",anchor:"transformers.TokenClassificationPipeline.gather_pre_entities",parameters:[{name:"sentence",val:": str"},{name:"input_ids",val:": ndarray"},{name:"scores",val:": ndarray"},{name:"offset_mapping",val:": typing.Optional[typing.List[typing.Tuple[int, int]]]"},{name:"special_tokens_mask",val:": ndarray"},{name:"aggregation_strategy",val:": AggregationStrategy"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/pipelines/token_classification.py#L361"}}),da=new k({props:{name:"group_entities",anchor:"transformers.TokenClassificationPipeline.group_entities",parameters:[{name:"entities",val:": typing.List[dict]"}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.group_entities.entities",description:"<strong>entities</strong> (<code>dict</code>) &#x2014; The entities predicted by the pipeline.",name:"entities"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/pipelines/token_classification.py#L538"}}),ma=new k({props:{name:"group_sub_entities",anchor:"transformers.TokenClassificationPipeline.group_sub_entities",parameters:[{name:"entities",val:": typing.List[dict]"}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.group_sub_entities.entities",description:"<strong>entities</strong> (<code>dict</code>) &#x2014; The entities predicted by the pipeline.",name:"entities"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/pipelines/token_classification.py#L503"}}),ga=new J({props:{title:"QuestionAnsweringPipeline",local:"transformers.QuestionAnsweringPipeline",headingTag:"h3"}}),fa=new k({props:{name:"class transformers.QuestionAnsweringPipeline",anchor:"transformers.QuestionAnsweringPipeline",parameters:[{name:"model",val:": typing.Union[ForwardRef('PreTrainedModel'), ForwardRef('TFPreTrainedModel')]"},{name:"tokenizer",val:": PreTrainedTokenizer"},{name:"modelcard",val:": typing.Optional[transformers.modelcard.ModelCard] = None"},{name:"framework",val:": typing.Optional[str] = None"},{name:"task",val:": str = ''"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.QuestionAnsweringPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.QuestionAnsweringPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/pr_30530/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/pr_30530/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/pr_30530/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/vr_30530/src/transformers/pipelines/question_answering.py#L232"}}),It=new P({props:{anchor:"transformers.QuestionAnsweringPipeline.example",$$slots:{default:[sx]},$$scope:{ctx:M}}}),ua=new k({props:{name:"__call__",anchor:"transformers.QuestionAnsweringPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{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__.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.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 languages. Might hurt on
non-space-separated languages (like Japanese or Chinese)`,name:"align_to_words"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/pipelines/question_answering.py#L351",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>
`}}),Ta=new k({props:{name:"create_sample",anchor:"transformers.QuestionAnsweringPipeline.create_sample",parameters:[{name:"question",val:": typing.Union[str, typing.List[str]]"},{name:"context",val:": typing.Union[str, typing.List[str]]"}],parametersDescription:[{anchor:"transformers.QuestionAnsweringPipeline.create_sample.question",description:"<strong>question</strong> (<code>str</code> or <code>List[str]</code>) &#x2014; The question(s) asked.",name:"question"},{anchor:"transformers.QuestionAnsweringPipeline.create_sample.context",description:"<strong>context</strong> (<code>str</code> or <code>List[str]</code>) &#x2014; The context(s) in which we will look for the answer.",name:"context"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/pipelines/question_answering.py#L286",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>
`}}),ya=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/vr_30530/src/transformers/pipelines/question_answering.py#L641",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>
`}}),ba=new J({props:{title:"SummarizationPipeline",local:"transformers.SummarizationPipeline",headingTag:"h3"}}),_a=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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.SummarizationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/pr_30530/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/pr_30530/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/pr_30530/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/vr_30530/src/transformers/pipelines/text2text_generation.py#L221"}}),Zt=new P({props:{anchor:"transformers.SummarizationPipeline.example",$$slots:{default:[nx]},$$scope:{ctx:M}}}),xa=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.`,name:"clean_up_tokenization_spaces"},{anchor:"transformers.SummarizationPipeline.__call__.generate_kwargs",description:`<strong>generate_kwargs</strong> &#x2014;
Additional keyword arguments to pass along to the generate method of the model (see the generate method
corresponding to your framework <a href="./text_generation">here</a>).`,name:"generate_kwargs"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/pipelines/text2text_generation.py#L250",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>
`}}),wa=new J({props:{title:"TableQuestionAnsweringPipeline",local:"transformers.TableQuestionAnsweringPipeline",headingTag:"h3"}}),Ma=new k({props:{name:"class transformers.TableQuestionAnsweringPipeline",anchor:"transformers.TableQuestionAnsweringPipeline",parameters:[{name:"args_parser",val:" = <transformers.pipelines.table_question_answering.TableQuestionAnsweringArgumentHandler object at 0x7f7debb191e0>"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TableQuestionAnsweringPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TableQuestionAnsweringPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/pr_30530/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/pr_30530/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/pr_30530/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/vr_30530/src/transformers/pipelines/table_question_answering.py#L85"}}),zt=new P({props:{anchor:"transformers.TableQuestionAnsweringPipeline.example",$$slots:{default:[ax]},$$scope:{ctx:M}}}),ja=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/pr_30530/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/vr_30530/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>
`}}),Bt=new P({props:{anchor:"transformers.TableQuestionAnsweringPipeline.__call__.example",$$slots:{default:[ox]},$$scope:{ctx:M}}}),Rt=new P({props:{anchor:"transformers.TableQuestionAnsweringPipeline.__call__.example-2",$$slots:{default:[rx]},$$scope:{ctx:M}}}),Ua=new J({props:{title:"TextClassificationPipeline",local:"transformers.TextClassificationPipeline",headingTag:"h3"}}),ka=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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TextClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/pr_30530/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/pr_30530/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/pr_30530/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. In case of regression tasks, will not
apply any 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/vr_30530/src/transformers/pipelines/text_classification.py#L34"}}),Dt=new P({props:{anchor:"transformers.TextClassificationPipeline.example",$$slots:{default:[ix]},$$scope:{ctx:M}}}),va=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 problem type is regression, will not apply any function on the output.</li>
<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/vr_30530/src/transformers/pipelines/text_classification.py#L123",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>
`}}),$a=new J({props:{title:"TextGenerationPipeline",local:"transformers.TextGenerationPipeline",headingTag:"h3"}}),Ja=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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TextGenerationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/pr_30530/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/pr_30530/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/pr_30530/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/vr_30530/src/transformers/pipelines/text_generation.py#L37"}}),At=new P({props:{anchor:"transformers.TextGenerationPipeline.example",$$slots:{default:[lx]},$$scope:{ctx:M}}}),Vt=new P({props:{anchor:"transformers.TextGenerationPipeline.example-2",$$slots:{default:[px]},$$scope:{ctx:M}}}),Pa=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>, <code>List[str]</code>, List[Dict[str, str]], or <code>List[List[Dict[str, str]]]</code>) &#x2014;
One or several prompts (or one list of prompts) to complete. If strings or a list of string are
passed, this pipeline will continue each prompt. Alternatively, a &#x201C;chat&#x201D;, in the form of a list
of dicts with &#x201C;role&#x201D; and &#x201C;content&#x201D; keys, can be passed, or a list of such chats. When chats are passed,
the model&#x2019;s chat template will be used to format them before passing them to the model.`,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;
Returns 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>) &#x2014;
Returns 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. Cannot be
specified at the same time as <code>return_text</code>.`,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__.continue_final_message(",description:`<strong>continue_final_message(</strong> <code>bool</code>, <em>optional</em>) &#x2014; This indicates that you want the model to continue the
last message in the input chat rather than starting a new one, allowing you to &#x201C;prefill&#x201D; its response.
By default this is <code>True</code> when the final message in the input chat has the <code>assistant</code> role and
<code>False</code> otherwise, but you can manually override that behaviour by setting this flag.`,name:"continue_final_message("},{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="./text_generation">here</a>).`,name:"generate_kwargs"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/pipelines/text_generation.py#L215",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 lists of <code>dict</code></p>
`}}),Ca=new J({props:{title:"Text2TextGenerationPipeline",local:"transformers.Text2TextGenerationPipeline",headingTag:"h3"}}),Ia=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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.Text2TextGenerationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/pr_30530/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/pr_30530/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/pr_30530/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/vr_30530/src/transformers/pipelines/text2text_generation.py#L25"}}),Wt=new P({props:{anchor:"transformers.Text2TextGenerationPipeline.example",$$slots:{default:[cx]},$$scope:{ctx:M}}}),Lt=new P({props:{anchor:"transformers.Text2TextGenerationPipeline.example-2",$$slots:{default:[dx]},$$scope:{ctx:M}}}),qa=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.`,name:"truncation"},{anchor:"transformers.Text2TextGenerationPipeline.__call__.generate_kwargs",description:`<strong>generate_kwargs</strong> &#x2014;
Additional keyword arguments to pass along to the generate method of the model (see the generate method
corresponding to your framework <a href="./text_generation">here</a>).`,name:"generate_kwargs"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/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>
`}}),Ga=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/vr_30530/src/transformers/pipelines/text2text_generation.py#L111"}}),Za=new J({props:{title:"TokenClassificationPipeline",local:"transformers.TokenClassificationPipeline",headingTag:"h3"}}),Fa=new k({props:{name:"class transformers.TokenClassificationPipeline",anchor:"transformers.TokenClassificationPipeline",parameters:[{name:"args_parser",val:" = <transformers.pipelines.token_classification.TokenClassificationArgumentHandler object at 0x7f7debbc9f60>"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TokenClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/pr_30530/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/pr_30530/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/pr_30530/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/vr_30530/src/transformers/pipelines/token_classification.py#L63"}}),Yt=new P({props:{anchor:"transformers.TokenClassificationPipeline.example",$$slots:{default:[mx]},$$scope:{ctx:M}}}),za=new k({props:{name:"__call__",anchor:"transformers.TokenClassificationPipeline.__call__",parameters:[{name:"inputs",val:": typing.Union[str, typing.List[str]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.__call__.inputs",description:`<strong>inputs</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
One or several texts (or one list of texts) for token classification.`,name:"inputs"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/pipelines/token_classification.py#L220",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>
`}}),Ba=new k({props:{name:"aggregate_words",anchor:"transformers.TokenClassificationPipeline.aggregate_words",parameters:[{name:"entities",val:": typing.List[dict]"},{name:"aggregation_strategy",val:": AggregationStrategy"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/pipelines/token_classification.py#L475"}}),Ra=new k({props:{name:"gather_pre_entities",anchor:"transformers.TokenClassificationPipeline.gather_pre_entities",parameters:[{name:"sentence",val:": str"},{name:"input_ids",val:": ndarray"},{name:"scores",val:": ndarray"},{name:"offset_mapping",val:": typing.Optional[typing.List[typing.Tuple[int, int]]]"},{name:"special_tokens_mask",val:": ndarray"},{name:"aggregation_strategy",val:": AggregationStrategy"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/pipelines/token_classification.py#L361"}}),Da=new k({props:{name:"group_entities",anchor:"transformers.TokenClassificationPipeline.group_entities",parameters:[{name:"entities",val:": typing.List[dict]"}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.group_entities.entities",description:"<strong>entities</strong> (<code>dict</code>) &#x2014; The entities predicted by the pipeline.",name:"entities"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/pipelines/token_classification.py#L538"}}),Na=new k({props:{name:"group_sub_entities",anchor:"transformers.TokenClassificationPipeline.group_sub_entities",parameters:[{name:"entities",val:": typing.List[dict]"}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.group_sub_entities.entities",description:"<strong>entities</strong> (<code>dict</code>) &#x2014; The entities predicted by the pipeline.",name:"entities"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/pipelines/token_classification.py#L503"}}),Aa=new J({props:{title:"TranslationPipeline",local:"transformers.TranslationPipeline",headingTag:"h3"}}),Va=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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TranslationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/pr_30530/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/pr_30530/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/pr_30530/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/vr_30530/src/transformers/pipelines/text2text_generation.py#L291"}}),es=new P({props:{anchor:"transformers.TranslationPipeline.example",$$slots:{default:[hx]},$$scope:{ctx:M}}}),Sa=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`,name:"tgt_lang"},{anchor:"transformers.TranslationPipeline.__call__.generate_kwargs",description:`<strong>generate_kwargs</strong> &#x2014;
Additional keyword arguments to pass along to the generate method of the model (see the generate method
corresponding to your framework <a href="./text_generation">here</a>).`,name:"generate_kwargs"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/pipelines/text2text_generation.py#L346",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>
`}}),Wa=new J({props:{title:"ZeroShotClassificationPipeline",local:"transformers.ZeroShotClassificationPipeline",headingTag:"h3"}}),La=new k({props:{name:"class transformers.ZeroShotClassificationPipeline",anchor:"transformers.ZeroShotClassificationPipeline",parameters:[{name:"args_parser",val:" = <transformers.pipelines.zero_shot_classification.ZeroShotClassificationArgumentHandler object at 0x7f7debbcb580>"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ZeroShotClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/pr_30530/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/pr_30530/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/pr_30530/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/vr_30530/src/transformers/pipelines/zero_shot_classification.py#L46"}}),ss=new P({props:{anchor:"transformers.ZeroShotClassificationPipeline.example",$$slots:{default:[gx]},$$scope:{ctx:M}}}),Ha=new k({props:{name:"__call__",anchor:"transformers.ZeroShotClassificationPipeline.__call__",parameters:[{name:"sequences",val:": typing.Union[str, typing.List[str]]"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotClassificationPipeline.__call__.sequences",description:`<strong>sequences</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
The sequence(s) to classify, will be truncated if the model input is too large.`,name:"sequences"},{anchor:"transformers.ZeroShotClassificationPipeline.__call__.candidate_labels",description:`<strong>candidate_labels</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
The set of possible class labels to classify each sequence into. Can be a single label, a string of
comma-separated labels, or a list of labels.`,name:"candidate_labels"},{anchor:"transformers.ZeroShotClassificationPipeline.__call__.hypothesis_template",description:`<strong>hypothesis_template</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;This example is {}.&quot;</code>) &#x2014;
The template used to turn each label into an NLI-style hypothesis. This template must include a {} or
similar syntax for the candidate label to be inserted into the template. For example, the default
template is <code>&quot;This example is {}.&quot;</code> With the candidate label <code>&quot;sports&quot;</code>, this would be fed into the
model like <code>&quot;&lt;cls&gt; sequence to classify &lt;sep&gt; This example is sports . &lt;sep&gt;&quot;</code>. The default template
works well in many cases, but it may be worthwhile to experiment with different templates depending on
the task setting.`,name:"hypothesis_template"},{anchor:"transformers.ZeroShotClassificationPipeline.__call__.multi_label",description:`<strong>multi_label</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not multiple candidate labels can be true. If <code>False</code>, the scores are normalized such that
the sum of the label likelihoods for each sequence is 1. If <code>True</code>, the labels are considered
independent and probabilities are normalized for each candidate by doing a softmax of the entailment
score vs. the contradiction score.`,name:"multi_label"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/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 J({props:{title:"Multimodal",local:"multimodal",headingTag:"h2"}}),Ea=new J({props:{title:"DocumentQuestionAnsweringPipeline",local:"transformers.DocumentQuestionAnsweringPipeline",headingTag:"h3"}}),Qa=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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.image_processor",description:`<strong>image_processor</strong> (<a href="/docs/transformers/pr_30530/ja/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>) &#x2014;
The image processor that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/pr_30530/ja/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>.`,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/pr_30530/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/vr_30530/src/transformers/pipelines/document_question_answering.py#L101"}}),as=new P({props:{anchor:"transformers.DocumentQuestionAnsweringPipeline.example",$$slots:{default:[fx]},$$scope:{ctx:M}}}),Xa=new k({props:{name:"__call__",anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__",parameters:[{name:"image",val:": typing.Union[ForwardRef('Image.Image'), str]"},{name:"question",val:": typing.Optional[str] = None"},{name:"word_boxes",val:": typing.Tuple[str, typing.List[float]] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.image",description:`<strong>image</strong> (<code>str</code> or <code>PIL.Image</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing a http link pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>
<p>The pipeline accepts either a single image or a batch of images. If given a single image, it can be
broadcasted to multiple questions.`,name:"image"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.question",description:`<strong>question</strong> (<code>str</code>) &#x2014;
A question to ask of the document.`,name:"question"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.word_boxes",description:`<strong>word_boxes</strong> (<code>List[str, Tuple[float, float, float, float]]</code>, <em>optional</em>) &#x2014;
A list of words and bounding boxes (normalized 0-&gt;1000). If you provide this optional input, then the
pipeline will use these words and boxes instead of running OCR on the image to derive them for models
that need them (e.g. LayoutLM). This allows you to reuse OCR&#x2019;d results across many invocations of the
pipeline without having to re-run it each time.`,name:"word_boxes"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.top_k",description:`<strong>top_k</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The number of answers to return (will be chosen by order of likelihood). Note that we return less than
top_k answers if there are not enough options available within the context.`,name:"top_k"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.doc_stride",description:`<strong>doc_stride</strong> (<code>int</code>, <em>optional</em>, defaults to 128) &#x2014;
If the words in the document are too long to fit with the question for the model, it will be split in
several chunks with some overlap. This argument controls the size of that overlap.`,name:"doc_stride"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.max_answer_len",description:`<strong>max_answer_len</strong> (<code>int</code>, <em>optional</em>, defaults to 15) &#x2014;
The maximum length of predicted answers (e.g., only answers with a shorter length are considered).`,name:"max_answer_len"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.max_seq_len",description:`<strong>max_seq_len</strong> (<code>int</code>, <em>optional</em>, defaults to 384) &#x2014;
The maximum length of the total sentence (context + question) in tokens of each chunk passed to the
model. The context will be split in several chunks (using <code>doc_stride</code> as overlap) if needed.`,name:"max_seq_len"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.max_question_len",description:`<strong>max_question_len</strong> (<code>int</code>, <em>optional</em>, defaults to 64) &#x2014;
The maximum length of the question after tokenization. It will be truncated if needed.`,name:"max_question_len"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.handle_impossible_answer",description:`<strong>handle_impossible_answer</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not we accept impossible as an answer.`,name:"handle_impossible_answer"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.lang",description:`<strong>lang</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Language to use while running OCR. Defaults to english.`,name:"lang"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.tesseract_config",description:`<strong>tesseract_config</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Additional flags to pass to tesseract while running OCR.`,name:"tesseract_config"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to None) &#x2014;
The maximum time in seconds to wait for fetching images from the web. If None, no timeout is set and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/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>
`}}),Ka=new J({props:{title:"FeatureExtractionPipeline",local:"transformers.FeatureExtractionPipeline",headingTag:"h3"}}),eo=new k({props:{name:"class transformers.FeatureExtractionPipeline",anchor:"transformers.FeatureExtractionPipeline",parameters:[{name:"model",val:": typing.Union[ForwardRef('PreTrainedModel'), ForwardRef('TFPreTrainedModel')]"},{name:"tokenizer",val:": typing.Optional[transformers.tokenization_utils.PreTrainedTokenizer] = None"},{name:"feature_extractor",val:": typing.Optional[ForwardRef('SequenceFeatureExtractor')] = None"},{name:"image_processor",val:": typing.Optional[transformers.image_processing_utils.BaseImageProcessor] = None"},{name:"processor",val:": typing.Optional[transformers.processing_utils.ProcessorMixin] = None"},{name:"modelcard",val:": typing.Optional[transformers.modelcard.ModelCard] = None"},{name:"framework",val:": typing.Optional[str] = None"},{name:"task",val:": str = ''"},{name:"args_parser",val:": ArgumentHandler = None"},{name:"device",val:": typing.Union[int, ForwardRef('torch.device')] = None"},{name:"torch_dtype",val:": typing.Union[str, ForwardRef('torch.dtype'), NoneType] = None"},{name:"binary_output",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FeatureExtractionPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.FeatureExtractionPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/pr_30530/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/pr_30530/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/pr_30530/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/vr_30530/src/transformers/pipelines/feature_extraction.py#L7"}}),os=new P({props:{anchor:"transformers.FeatureExtractionPipeline.example",$$slots:{default:[ux]},$$scope:{ctx:M}}}),to=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/vr_30530/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>
`}}),so=new J({props:{title:"ImageFeatureExtractionPipeline",local:"transformers.ImageFeatureExtractionPipeline",headingTag:"h3"}}),no=new k({props:{name:"class transformers.ImageFeatureExtractionPipeline",anchor:"transformers.ImageFeatureExtractionPipeline",parameters:[{name:"model",val:": typing.Union[ForwardRef('PreTrainedModel'), ForwardRef('TFPreTrainedModel')]"},{name:"tokenizer",val:": typing.Optional[transformers.tokenization_utils.PreTrainedTokenizer] = None"},{name:"feature_extractor",val:": typing.Optional[ForwardRef('SequenceFeatureExtractor')] = None"},{name:"image_processor",val:": typing.Optional[transformers.image_processing_utils.BaseImageProcessor] = None"},{name:"processor",val:": typing.Optional[transformers.processing_utils.ProcessorMixin] = None"},{name:"modelcard",val:": typing.Optional[transformers.modelcard.ModelCard] = None"},{name:"framework",val:": typing.Optional[str] = None"},{name:"task",val:": str = ''"},{name:"args_parser",val:": ArgumentHandler = None"},{name:"device",val:": typing.Union[int, ForwardRef('torch.device')] = None"},{name:"torch_dtype",val:": typing.Union[str, ForwardRef('torch.dtype'), NoneType] = None"},{name:"binary_output",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageFeatureExtractionPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ImageFeatureExtractionPipeline.image_processor",description:`<strong>image_processor</strong> (<a href="/docs/transformers/pr_30530/ja/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>) &#x2014;
The image processor that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/pr_30530/ja/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>.`,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/pr_30530/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/vr_30530/src/transformers/pipelines/image_feature_extraction.py#L11"}}),is=new P({props:{anchor:"transformers.ImageFeatureExtractionPipeline.example",$$slots:{default:[Tx]},$$scope:{ctx:M}}}),ao=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/vr_30530/src/transformers/pipelines/image_feature_extraction.py#L91",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>
`}}),oo=new J({props:{title:"ImageToTextPipeline",local:"transformers.ImageToTextPipeline",headingTag:"h3"}}),ro=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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ImageToTextPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.ImageToTextPipeline.image_processor",description:`<strong>image_processor</strong> (<a href="/docs/transformers/pr_30530/ja/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>) &#x2014;
The image processor that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/pr_30530/ja/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>.`,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/pr_30530/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/vr_30530/src/transformers/pipelines/image_to_text.py#L45"}}),ps=new P({props:{anchor:"transformers.ImageToTextPipeline.example",$$slots:{default:[yx]},$$scope:{ctx:M}}}),io=new k({props:{name:"__call__",anchor:"transformers.ImageToTextPipeline.__call__",parameters:[{name:"inputs",val:": typing.Union[str, typing.List[str], ForwardRef('Image.Image'), typing.List[ForwardRef('Image.Image')]] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageToTextPipeline.__call__.inputs",description:`<strong>inputs</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:"inputs"},{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/vr_30530/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>
`}}),lo=new J({props:{title:"ImageTextToTextPipeline",local:"transformers.ImageTextToTextPipeline",headingTag:"h3"}}),po=new k({props:{name:"class transformers.ImageTextToTextPipeline",anchor:"transformers.ImageTextToTextPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageTextToTextPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ImageTextToTextPipeline.processor",description:`<strong>processor</strong> (<a href="/docs/transformers/pr_30530/ja/main_classes/processors#transformers.ProcessorMixin">ProcessorMixin</a>) &#x2014;
The processor that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/pr_30530/ja/main_classes/processors#transformers.ProcessorMixin">ProcessorMixin</a>. Processor is a composite object that might contain <code>tokenizer</code>, <code>feature_extractor</code>, and
<code>image_processor</code>.`,name:"processor"},{anchor:"transformers.ImageTextToTextPipeline.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.ImageTextToTextPipeline.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.ImageTextToTextPipeline.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.ImageTextToTextPipeline.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.ImageTextToTextPipeline.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.ImageTextToTextPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/pr_30530/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.ImageTextToTextPipeline.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.ImageTextToTextPipeline.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.ImageTextToTextPipeline.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/vr_30530/src/transformers/pipelines/image_text_to_text.py#L114"}}),ds=new P({props:{anchor:"transformers.ImageTextToTextPipeline.example",$$slots:{default:[bx]},$$scope:{ctx:M}}}),ms=new P({props:{anchor:"transformers.ImageTextToTextPipeline.example-2",$$slots:{default:[_x]},$$scope:{ctx:M}}}),co=new k({props:{name:"__call__",anchor:"transformers.ImageTextToTextPipeline.__call__",parameters:[{name:"images",val:": typing.Union[str, typing.List[str], typing.List[typing.List[str]], ForwardRef('Image.Image'), typing.List[ForwardRef('Image.Image')], typing.List[typing.List[ForwardRef('Image.Image')]], NoneType] = None"},{name:"text",val:": typing.Union[str, typing.List[str], typing.List[dict], NoneType] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageTextToTextPipeline.__call__.images",description:`<strong>images</strong> (<code>str</code>, <code>List[str]</code>, <code>PIL.Image or </code>List[PIL.Image]\`) &#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.ImageTextToTextPipeline.__call__.text",description:`<strong>text</strong> (str, List[str], <code>List[Dict[str, Union[str, PIL.Image]]]</code>) &#x2014;
The text to be used for generation. If a list of strings is passed, the length of the list should be the
same as the number of images. Text can also follow the chat format: a list of dictionaries where each
dictionary represents a message in a conversation. Each dictionary should have two keys: &#x2018;role&#x2019; and
&#x2018;content&#x2019;. &#x2018;role&#x2019; should be one of &#x2018;user&#x2019;, &#x2018;system&#x2019; or &#x2018;assistant&#x2019;. &#x2018;content&#x2019; should be a list of dictionary
containing the text of the message and the type of the message. The type of the message can be either
&#x2018;text&#x2019; or &#x2018;image&#x2019;. If the type is &#x2018;image&#x2019;, no text is needed.`,name:"text"},{anchor:"transformers.ImageTextToTextPipeline.__call__.return_tensors",description:`<strong>return_tensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Returns 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.ImageTextToTextPipeline.__call__.return_text",description:`<strong>return_text</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Returns the decoded texts in the outputs.`,name:"return_text"},{anchor:"transformers.ImageTextToTextPipeline.__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. Cannot be
specified at the same time as <code>return_text</code>.`,name:"return_full_text"},{anchor:"transformers.ImageTextToTextPipeline.__call__.continue_final_message(",description:`<strong>continue_final_message(</strong> <code>bool</code>, <em>optional</em>) &#x2014; This indicates that you want the model to continue the
last message in the input chat rather than starting a new one, allowing you to &#x201C;prefill&#x201D; its response.
By default this is <code>True</code> when the final message in the input chat has the <code>assistant</code> role and
<code>False</code> otherwise, but you can manually override that behaviour by setting this flag.`,name:"continue_final_message("}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/pipelines/image_text_to_text.py#L232",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Each result comes as a dictionary with the following key (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>, present when <code>return_tensors=True</code>) — The token
ids of the generated text.</li>
<li><strong>input_text</strong> (<code>str</code>) — The input 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>
`}}),mo=new J({props:{title:"VisualQuestionAnsweringPipeline",local:"transformers.VisualQuestionAnsweringPipeline",headingTag:"h3"}}),ho=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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.VisualQuestionAnsweringPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.VisualQuestionAnsweringPipeline.image_processor",description:`<strong>image_processor</strong> (<a href="/docs/transformers/pr_30530/ja/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>) &#x2014;
The image processor that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/pr_30530/ja/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>.`,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/pr_30530/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/vr_30530/src/transformers/pipelines/visual_question_answering.py#L19"}}),gs=new P({props:{anchor:"transformers.VisualQuestionAnsweringPipeline.example",$$slots:{default:[xx]},$$scope:{ctx:M}}}),go=new k({props:{name:"__call__",anchor:"transformers.VisualQuestionAnsweringPipeline.__call__",parameters:[{name:"image",val:": typing.Union[ForwardRef('Image.Image'), str, typing.List[ForwardRef('Image.Image')], typing.List[str], ForwardRef('KeyDataset')]"},{name:"question",val:": typing.Union[str, typing.List[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>, <code>List[PIL.Image]</code> or <code>KeyDataset</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.
For dataset: the passed in dataset must be of type <code>transformers.pipelines.pt_utils.KeyDataset</code>
Example:`,name:"image"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/pipelines/visual_question_answering.py#L71",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>
`}}),fo=new J({props:{title:"Parent class: Pipeline",local:"transformers.Pipeline",headingTag:"h2"}}),uo=new k({props:{name:"class transformers.Pipeline",anchor:"transformers.Pipeline",parameters:[{name:"model",val:": typing.Union[ForwardRef('PreTrainedModel'), ForwardRef('TFPreTrainedModel')]"},{name:"tokenizer",val:": typing.Optional[transformers.tokenization_utils.PreTrainedTokenizer] = None"},{name:"feature_extractor",val:": typing.Optional[ForwardRef('SequenceFeatureExtractor')] = None"},{name:"image_processor",val:": typing.Optional[transformers.image_processing_utils.BaseImageProcessor] = None"},{name:"processor",val:": typing.Optional[transformers.processing_utils.ProcessorMixin] = None"},{name:"modelcard",val:": typing.Optional[transformers.modelcard.ModelCard] = None"},{name:"framework",val:": typing.Optional[str] = None"},{name:"task",val:": str = ''"},{name:"args_parser",val:": ArgumentHandler = None"},{name:"device",val:": typing.Union[int, ForwardRef('torch.device')] = None"},{name:"torch_dtype",val:": typing.Union[str, ForwardRef('torch.dtype'), NoneType] = None"},{name:"binary_output",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.Pipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/pr_30530/ja/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.Pipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.Pipeline.feature_extractor",description:`<strong>feature_extractor</strong> (<a href="/docs/transformers/pr_30530/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/pr_30530/ja/main_classes/feature_extractor#transformers.SequenceFeatureExtractor">SequenceFeatureExtractor</a>.`,name:"feature_extractor"},{anchor:"transformers.Pipeline.image_processor",description:`<strong>image_processor</strong> (<a href="/docs/transformers/pr_30530/ja/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>) &#x2014;
The image processor that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/pr_30530/ja/main_classes/image_processor#transformers.BaseImageProcessor">BaseImageProcessor</a>.`,name:"image_processor"},{anchor:"transformers.Pipeline.processor",description:`<strong>processor</strong> (<a href="/docs/transformers/pr_30530/ja/main_classes/processors#transformers.ProcessorMixin">ProcessorMixin</a>) &#x2014;
The processor that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/pr_30530/ja/main_classes/processors#transformers.ProcessorMixin">ProcessorMixin</a>. Processor is a composite object that might contain <code>tokenizer</code>, <code>feature_extractor</code>, and
<code>image_processor</code>.`,name:"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/pr_30530/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/vr_30530/src/transformers/pipelines/base.py#L802"}}),To=new k({props:{name:"check_model_type",anchor:"transformers.Pipeline.check_model_type",parameters:[{name:"supported_models",val:": typing.Union[typing.List[str], dict]"}],parametersDescription:[{anchor:"transformers.Pipeline.check_model_type.supported_models",description:`<strong>supported_models</strong> (<code>List[str]</code> or <code>dict</code>) &#x2014;
The list of models supported by the pipeline, or a dictionary with model class values.`,name:"supported_models"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/pipelines/base.py#L1124"}}),yo=new k({props:{name:"device_placement",anchor:"transformers.Pipeline.device_placement",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/pipelines/base.py#L1059",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Context manager</p>
`}}),us=new P({props:{anchor:"transformers.Pipeline.device_placement.example",$$slots:{default:[wx]},$$scope:{ctx:M}}}),bo=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/vr_30530/src/transformers/pipelines/base.py#L1092",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>
`}}),_o=new k({props:{name:"postprocess",anchor:"transformers.Pipeline.postprocess",parameters:[{name:"model_outputs",val:": ModelOutput"},{name:"**postprocess_parameters",val:": typing.Dict"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/pipelines/base.py#L1187"}}),xo=new k({props:{name:"predict",anchor:"transformers.Pipeline.predict",parameters:[{name:"X",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/pipelines/base.py#L1046"}}),wo=new k({props:{name:"preprocess",anchor:"transformers.Pipeline.preprocess",parameters:[{name:"input_",val:": typing.Any"},{name:"**preprocess_parameters",val:": typing.Dict"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/pipelines/base.py#L1166"}}),Mo=new k({props:{name:"push_to_hub",anchor:"transformers.Pipeline.push_to_hub",parameters:[{name:"repo_id",val:": str"},{name:"use_temp_dir",val:": typing.Optional[bool] = None"},{name:"commit_message",val:": typing.Optional[str] = None"},{name:"private",val:": typing.Optional[bool] = None"},{name:"token",val:": typing.Union[bool, str, NoneType] = None"},{name:"max_shard_size",val:": typing.Union[int, str, NoneType] = '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:": typing.Optional[typing.List[str]] = 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/vr_30530/src/transformers/utils/hub.py#L828"}}),xs=new P({props:{anchor:"transformers.Pipeline.push_to_hub.example",$$slots:{default:[Mx]},$$scope:{ctx:M}}}),jo=new k({props:{name:"save_pretrained",anchor:"transformers.Pipeline.save_pretrained",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{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/pr_30530/ja/main_classes/model#transformers.utils.PushToHubMixin.push_to_hub">push_to_hub()</a> method.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/pipelines/base.py#L969"}}),Uo=new k({props:{name:"transform",anchor:"transformers.Pipeline.transform",parameters:[{name:"X",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_30530/src/transformers/pipelines/base.py#L1040"}}),ko=new q_({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/ja/main_classes/pipelines.md"}}),{c(){o=i("meta"),w=n(),h=i("p"),c=n(),g(_.$$.fragment),t=n(),x=i("p"),x.innerHTML=dp,hp=n(),Us=i("p"),Us.textContent=zu,gp=n(),ks=i("ul"),ks.innerHTML=Bu,fp=n(),g(vs.$$.fragment),up=n(),$s=i("p"),$s.innerHTML=Ru,Tp=n(),Js=i("p"),Js.textContent=Du,yp=n(),g(Ps.$$.fragment),bp=n(),Cs=i("p"),Cs.innerHTML=Nu,_p=n(),g(Is.$$.fragment),xp=n(),qs=i("p"),qs.innerHTML=Au,wp=n(),g(Gs.$$.fragment),Mp=n(),Zs=i("p"),Zs.innerHTML=Vu,jp=n(),g(Fs.$$.fragment),Up=n(),zs=i("p"),zs.textContent=Su,kp=n(),g(Bs.$$.fragment),vp=n(),pe=i("div"),g(Rs.$$.fragment),Ad=n(),Ho=i("p"),Ho.innerHTML=Wu,Vd=n(),Oo=i("p"),Oo.textContent=Lu,Sd=n(),Yo=i("ul"),Yo.innerHTML=Hu,Wd=n(),g(Ee.$$.fragment),Ld=n(),g(Qe.$$.fragment),$p=n(),g(Ds.$$.fragment),Jp=n(),Ns=i("p"),Ns.innerHTML=Ou,Pp=n(),g(As.$$.fragment),Cp=n(),g(Xe.$$.fragment),Ip=n(),g(Vs.$$.fragment),qp=n(),g(Ss.$$.fragment),Gp=n(),Ws=i("p"),Ws.textContent=Yu,Zp=n(),g(Ls.$$.fragment),Fp=n(),Hs=i("p"),Hs.innerHTML=Eu,zp=n(),g(Os.$$.fragment),Bp=n(),Ys=i("p"),Ys.textContent=Qu,Rp=n(),Es=i("p"),Es.textContent=Xu,Dp=n(),Qs=i("ul"),Qs.innerHTML=Ku,Np=n(),g(Xs.$$.fragment),Ap=n(),Ks=i("p"),Ks.innerHTML=eT,Vp=n(),en=i("p"),en.innerHTML=tT,Sp=n(),g(tn.$$.fragment),Wp=n(),sn=i("p"),sn.textContent=sT,Lp=n(),g(nn.$$.fragment),Hp=n(),an=i("p"),an.textContent=nT,Op=n(),on=i("p"),on.innerHTML=aT,Yp=n(),g(rn.$$.fragment),Ep=n(),ln=i("p"),ln.textContent=oT,Qp=n(),pn=i("p"),pn.innerHTML=rT,Xp=n(),cn=i("p"),cn.textContent=iT,Kp=n(),dn=i("ul"),dn.innerHTML=lT,ec=n(),g(mn.$$.fragment),tc=n(),hn=i("p"),hn.textContent=pT,sc=n(),g(gn.$$.fragment),nc=n(),fn=i("p"),fn.innerHTML=cT,ac=n(),g(un.$$.fragment),oc=n(),Tn=i("p"),Tn.textContent=dT,rc=n(),g(yn.$$.fragment),ic=n(),H=i("div"),g(bn.$$.fragment),Hd=n(),Eo=i("p"),Eo.innerHTML=mT,Od=n(),g(Ke.$$.fragment),Yd=n(),Qo=i("p"),Qo.innerHTML=hT,Ed=n(),Xo=i("p"),Xo.innerHTML=gT,Qd=n(),Ko=i("p"),Ko.innerHTML=fT,Xd=n(),et=i("div"),g(_n.$$.fragment),Kd=n(),er=i("p"),er.innerHTML=uT,lc=n(),g(xn.$$.fragment),pc=n(),ce=i("div"),g(wn.$$.fragment),em=n(),tr=i("p"),tr.textContent=TT,tm=n(),sr=i("p"),sr.textContent=yT,sm=n(),g(tt.$$.fragment),nm=n(),nr=i("p"),nr.innerHTML=bT,am=n(),st=i("div"),g(Mn.$$.fragment),om=n(),ar=i("p"),ar.innerHTML=_T,cc=n(),g(jn.$$.fragment),dc=n(),D=i("div"),g(Un.$$.fragment),rm=n(),or=i("p"),or.innerHTML=xT,im=n(),g(nt.$$.fragment),lm=n(),rr=i("p"),rr.innerHTML=wT,pm=n(),g(at.$$.fragment),cm=n(),ir=i("p"),ir.innerHTML=MT,dm=n(),lr=i("p"),lr.innerHTML=jT,mm=n(),ot=i("div"),g(kn.$$.fragment),hm=n(),pr=i("p"),pr.innerHTML=UT,mc=n(),g(vn.$$.fragment),hc=n(),de=i("div"),g($n.$$.fragment),gm=n(),cr=i("p"),cr.innerHTML=kT,fm=n(),g(rt.$$.fragment),um=n(),g(it.$$.fragment),Tm=n(),dr=i("p"),dr.innerHTML=vT,ym=n(),lt=i("div"),g(Jn.$$.fragment),bm=n(),mr=i("p"),mr.textContent=$T,gc=n(),g(Pn.$$.fragment),fc=n(),Cn=i("p"),Cn.textContent=JT,uc=n(),g(In.$$.fragment),Tc=n(),O=i("div"),g(qn.$$.fragment),_m=n(),hr=i("p"),hr.innerHTML=PT,xm=n(),g(pt.$$.fragment),wm=n(),gr=i("p"),gr.innerHTML=CT,Mm=n(),fr=i("p"),fr.innerHTML=IT,jm=n(),ur=i("p"),ur.innerHTML=qT,Um=n(),ct=i("div"),g(Gn.$$.fragment),km=n(),Tr=i("p"),Tr.textContent=GT,yc=n(),g(Zn.$$.fragment),bc=n(),Y=i("div"),g(Fn.$$.fragment),vm=n(),yr=i("p"),yr.innerHTML=ZT,$m=n(),g(dt.$$.fragment),Jm=n(),br=i("p"),br.innerHTML=FT,Pm=n(),_r=i("p"),_r.innerHTML=zT,Cm=n(),xr=i("p"),xr.innerHTML=BT,Im=n(),mt=i("div"),g(zn.$$.fragment),qm=n(),wr=i("p"),wr.textContent=RT,_c=n(),g(Bn.$$.fragment),xc=n(),me=i("div"),g(Rn.$$.fragment),Gm=n(),Mr=i("p"),Mr.innerHTML=DT,Zm=n(),g(ht.$$.fragment),Fm=n(),jr=i("p"),jr.innerHTML=NT,zm=n(),Ur=i("p"),Ur.innerHTML=AT,Bm=n(),gt=i("div"),g(Dn.$$.fragment),Rm=n(),kr=i("p"),kr.textContent=VT,wc=n(),g(Nn.$$.fragment),Mc=n(),he=i("div"),g(An.$$.fragment),Dm=n(),vr=i("p"),vr.innerHTML=ST,Nm=n(),g(ft.$$.fragment),Am=n(),$r=i("p"),$r.innerHTML=WT,Vm=n(),Jr=i("p"),Jr.innerHTML=LT,Sm=n(),ut=i("div"),g(Vn.$$.fragment),Wm=n(),Pr=i("p"),Pr.textContent=HT,jc=n(),g(Sn.$$.fragment),Uc=n(),E=i("div"),g(Wn.$$.fragment),Lm=n(),Cr=i("p"),Cr.innerHTML=OT,Hm=n(),g(Tt.$$.fragment),Om=n(),Ir=i("p"),Ir.innerHTML=YT,Ym=n(),qr=i("p"),qr.innerHTML=ET,Em=n(),Gr=i("p"),Gr.innerHTML=QT,Qm=n(),yt=i("div"),g(Ln.$$.fragment),Xm=n(),Zr=i("p"),Zr.textContent=XT,kc=n(),g(Hn.$$.fragment),vc=n(),ve=i("div"),g(On.$$.fragment),Km=n(),Fr=i("p"),Fr.innerHTML=KT,eh=n(),zr=i("p"),zr.innerHTML=ey,th=n(),Br=i("p"),Br.innerHTML=ty,sh=n(),bt=i("div"),g(Yn.$$.fragment),nh=n(),Rr=i("p"),Rr.textContent=sy,$c=n(),g(En.$$.fragment),Jc=n(),Q=i("div"),g(Qn.$$.fragment),ah=n(),Dr=i("p"),Dr.innerHTML=ny,oh=n(),g(_t.$$.fragment),rh=n(),Nr=i("p"),Nr.innerHTML=ay,ih=n(),Ar=i("p"),Ar.innerHTML=oy,lh=n(),Vr=i("p"),Vr.innerHTML=ry,ph=n(),xt=i("div"),g(Xn.$$.fragment),ch=n(),Sr=i("p"),Sr.textContent=iy,Pc=n(),g(Kn.$$.fragment),Cc=n(),X=i("div"),g(ea.$$.fragment),dh=n(),Wr=i("p"),Wr.innerHTML=ly,mh=n(),g(wt.$$.fragment),hh=n(),Lr=i("p"),Lr.innerHTML=py,gh=n(),Hr=i("p"),Hr.innerHTML=cy,fh=n(),Or=i("p"),Or.innerHTML=dy,uh=n(),Mt=i("div"),g(ta.$$.fragment),Th=n(),Yr=i("p"),Yr.textContent=my,Ic=n(),g(sa.$$.fragment),qc=n(),na=i("p"),na.textContent=hy,Gc=n(),g(aa.$$.fragment),Zc=n(),Z=i("div"),g(oa.$$.fragment),yh=n(),Er=i("p"),Er.innerHTML=gy,bh=n(),g(jt.$$.fragment),_h=n(),Qr=i("p"),Qr.innerHTML=fy,xh=n(),Xr=i("p"),Xr.innerHTML=uy,wh=n(),Kr=i("p"),Kr.innerHTML=Ty,Mh=n(),g(Ut.$$.fragment),jh=n(),g(kt.$$.fragment),Uh=n(),vt=i("div"),g(ra.$$.fragment),kh=n(),ei=i("p"),ei.textContent=yy,Fc=n(),g(ia.$$.fragment),zc=n(),G=i("div"),g(la.$$.fragment),vh=n(),ti=i("p"),ti.innerHTML=by,$h=n(),g($t.$$.fragment),Jh=n(),si=i("p"),si.innerHTML=_y,Ph=n(),ni=i("p"),ni.innerHTML=xy,Ch=n(),ai=i("p"),ai.innerHTML=wy,Ih=n(),Ae=i("div"),g(pa.$$.fragment),qh=n(),oi=i("p"),oi.textContent=My,Gh=n(),ri=i("p"),ri.textContent=jy,Zh=n(),Jt=i("div"),g(ca.$$.fragment),Fh=n(),ii=i("p"),ii.textContent=Uy,zh=n(),Pt=i("div"),g(da.$$.fragment),Bh=n(),li=i("p"),li.textContent=ky,Rh=n(),Ct=i("div"),g(ma.$$.fragment),Dh=n(),pi=i("p"),pi.textContent=vy,Bc=n(),ha=i("p"),ha.innerHTML=$y,Rc=n(),g(ga.$$.fragment),Dc=n(),F=i("div"),g(fa.$$.fragment),Nh=n(),ci=i("p"),ci.innerHTML=Jy,Ah=n(),g(It.$$.fragment),Vh=n(),di=i("p"),di.innerHTML=Py,Sh=n(),mi=i("p"),mi.innerHTML=Cy,Wh=n(),hi=i("p"),hi.innerHTML=Iy,Lh=n(),qt=i("div"),g(ua.$$.fragment),Hh=n(),gi=i("p"),gi.textContent=qy,Oh=n(),Ve=i("div"),g(Ta.$$.fragment),Yh=n(),fi=i("p"),fi.innerHTML=Gy,Eh=n(),ui=i("p"),ui.textContent=Zy,Qh=n(),Gt=i("div"),g(ya.$$.fragment),Xh=n(),Ti=i("p"),Ti.textContent=Fy,Nc=n(),g(ba.$$.fragment),Ac=n(),ge=i("div"),g(_a.$$.fragment),Kh=n(),yi=i("p"),yi.textContent=zy,eg=n(),bi=i("p"),bi.innerHTML=By,tg=n(),_i=i("p"),_i.innerHTML=Ry,sg=n(),g(Zt.$$.fragment),ng=n(),Ft=i("div"),g(xa.$$.fragment),ag=n(),xi=i("p"),xi.textContent=Dy,Vc=n(),g(wa.$$.fragment),Sc=n(),K=i("div"),g(Ma.$$.fragment),og=n(),wi=i("p"),wi.innerHTML=Ny,rg=n(),g(zt.$$.fragment),ig=n(),Mi=i("p"),Mi.innerHTML=Ay,lg=n(),ji=i("p"),ji.innerHTML=Vy,pg=n(),Ui=i("p"),Ui.innerHTML=Sy,cg=n(),ie=i("div"),g(ja.$$.fragment),dg=n(),ki=i("p"),ki.textContent=Wy,mg=n(),vi=i("ul"),vi.innerHTML=Ly,hg=n(),$i=i("p"),$i.innerHTML=Hy,gg=n(),g(Bt.$$.fragment),fg=n(),Ji=i("p"),Ji.textContent=Oy,ug=n(),g(Rt.$$.fragment),Wc=n(),g(Ua.$$.fragment),Lc=n(),N=i("div"),g(ka.$$.fragment),Tg=n(),Pi=i("p"),Pi.innerHTML=Yy,yg=n(),g(Dt.$$.fragment),bg=n(),Ci=i("p"),Ci.innerHTML=Ey,_g=n(),Ii=i("p"),Ii.innerHTML=Qy,xg=n(),qi=i("p"),qi.innerHTML=Xy,wg=n(),Gi=i("p"),Gi.innerHTML=Ky,Mg=n(),Nt=i("div"),g(va.$$.fragment),jg=n(),Zi=i("p"),Zi.textContent=eb,Hc=n(),g($a.$$.fragment),Oc=n(),A=i("div"),g(Ja.$$.fragment),Ug=n(),Fi=i("p"),Fi.innerHTML=tb,kg=n(),g(At.$$.fragment),vg=n(),g(Vt.$$.fragment),$g=n(),zi=i("p"),zi.innerHTML=sb,Jg=n(),Bi=i("p"),Bi.innerHTML=nb,Pg=n(),Ri=i("p"),Ri.innerHTML=ab,Cg=n(),St=i("div"),g(Pa.$$.fragment),Ig=n(),Di=i("p"),Di.textContent=ob,Yc=n(),g(Ca.$$.fragment),Ec=n(),z=i("div"),g(Ia.$$.fragment),qg=n(),Ni=i("p"),Ni.textContent=rb,Gg=n(),g(Wt.$$.fragment),Zg=n(),Ai=i("p"),Ai.innerHTML=ib,Fg=n(),Vi=i("p"),Vi.innerHTML=lb,zg=n(),Si=i("p"),Si.innerHTML=pb,Bg=n(),g(Lt.$$.fragment),Rg=n(),Ht=i("div"),g(qa.$$.fragment),Dg=n(),Wi=i("p"),Wi.textContent=cb,Ng=n(),Ot=i("div"),g(Ga.$$.fragment),Ag=n(),Li=i("p"),Li.textContent=db,Qc=n(),g(Za.$$.fragment),Xc=n(),q=i("div"),g(Fa.$$.fragment),Vg=n(),Hi=i("p"),Hi.innerHTML=mb,Sg=n(),g(Yt.$$.fragment),Wg=n(),Oi=i("p"),Oi.innerHTML=hb,Lg=n(),Yi=i("p"),Yi.innerHTML=gb,Hg=n(),Ei=i("p"),Ei.innerHTML=fb,Og=n(),Et=i("div"),g(za.$$.fragment),Yg=n(),Qi=i("p"),Qi.textContent=ub,Eg=n(),Se=i("div"),g(Ba.$$.fragment),Qg=n(),Xi=i("p"),Xi.textContent=Tb,Xg=n(),Ki=i("p"),Ki.textContent=yb,Kg=n(),Qt=i("div"),g(Ra.$$.fragment),ef=n(),el=i("p"),el.textContent=bb,tf=n(),Xt=i("div"),g(Da.$$.fragment),sf=n(),tl=i("p"),tl.textContent=_b,nf=n(),Kt=i("div"),g(Na.$$.fragment),af=n(),sl=i("p"),sl.textContent=xb,Kc=n(),g(Aa.$$.fragment),ed=n(),fe=i("div"),g(Va.$$.fragment),of=n(),nl=i("p"),nl.textContent=wb,rf=n(),al=i("p"),al.innerHTML=Mb,lf=n(),ol=i("p"),ol.innerHTML=jb,pf=n(),g(es.$$.fragment),cf=n(),ts=i("div"),g(Sa.$$.fragment),df=n(),rl=i("p"),rl.textContent=Ub,td=n(),g(Wa.$$.fragment),sd=n(),V=i("div"),g(La.$$.fragment),mf=n(),il=i("p"),il.innerHTML=kb,hf=n(),ll=i("p"),ll.innerHTML=vb,gf=n(),g(ss.$$.fragment),ff=n(),pl=i("p"),pl.innerHTML=$b,uf=n(),cl=i("p"),cl.innerHTML=Jb,Tf=n(),dl=i("p"),dl.innerHTML=Pb,yf=n(),ns=i("div"),g(Ha.$$.fragment),bf=n(),ml=i("p"),ml.innerHTML=Cb,nd=n(),g(Oa.$$.fragment),ad=n(),Ya=i("p"),Ya.textContent=Ib,od=n(),g(Ea.$$.fragment),rd=n(),ee=i("div"),g(Qa.$$.fragment),_f=n(),hl=i("p"),hl.innerHTML=qb,xf=n(),g(as.$$.fragment),wf=n(),gl=i("p"),gl.innerHTML=Gb,Mf=n(),fl=i("p"),fl.innerHTML=Zb,jf=n(),ul=i("p"),ul.innerHTML=Fb,Uf=n(),De=i("div"),g(Xa.$$.fragment),kf=n(),Tl=i("p"),Tl.innerHTML=zb,vf=n(),yl=i("p"),yl.textContent=Bb,$f=n(),bl=i("ul"),bl.innerHTML=Rb,id=n(),g(Ka.$$.fragment),ld=n(),te=i("div"),g(eo.$$.fragment),Jf=n(),_l=i("p"),_l.textContent=Db,Pf=n(),g(os.$$.fragment),Cf=n(),xl=i("p"),xl.innerHTML=Nb,If=n(),wl=i("p"),wl.innerHTML=Ab,qf=n(),Ml=i("p"),Ml.innerHTML=Vb,Gf=n(),rs=i("div"),g(to.$$.fragment),Zf=n(),jl=i("p"),jl.textContent=Sb,pd=n(),g(so.$$.fragment),cd=n(),se=i("div"),g(no.$$.fragment),Ff=n(),Ul=i("p"),Ul.textContent=Wb,zf=n(),g(is.$$.fragment),Bf=n(),kl=i("p"),kl.innerHTML=Lb,Rf=n(),vl=i("p"),vl.innerHTML=Hb,Df=n(),$l=i("p"),$l.innerHTML=Ob,Nf=n(),ls=i("div"),g(ao.$$.fragment),Af=n(),Jl=i("p"),Jl.textContent=Yb,dd=n(),g(oo.$$.fragment),md=n(),ne=i("div"),g(ro.$$.fragment),Vf=n(),Pl=i("p"),Pl.innerHTML=Eb,Sf=n(),g(ps.$$.fragment),Wf=n(),Cl=i("p"),Cl.innerHTML=Qb,Lf=n(),Il=i("p"),Il.textContent=Xb,Hf=n(),ql=i("p"),ql.innerHTML=Kb,Of=n(),cs=i("div"),g(io.$$.fragment),Yf=n(),Gl=i("p"),Gl.textContent=e_,hd=n(),g(lo.$$.fragment),gd=n(),S=i("div"),g(po.$$.fragment),Ef=n(),Zl=i("p"),Zl.innerHTML=t_,Qf=n(),g(ds.$$.fragment),Xf=n(),g(ms.$$.fragment),Kf=n(),Fl=i("p"),Fl.innerHTML=s_,eu=n(),zl=i("p"),zl.textContent=n_,tu=n(),Bl=i("p"),Bl.innerHTML=a_,su=n(),hs=i("div"),g(co.$$.fragment),nu=n(),Rl=i("p"),Rl.textContent=o_,fd=n(),g(mo.$$.fragment),ud=n(),ae=i("div"),g(ho.$$.fragment),au=n(),Dl=i("p"),Dl.innerHTML=r_,ou=n(),g(gs.$$.fragment),ru=n(),Nl=i("p"),Nl.innerHTML=i_,iu=n(),Al=i("p"),Al.innerHTML=l_,lu=n(),Vl=i("p"),Vl.innerHTML=p_,pu=n(),We=i("div"),g(go.$$.fragment),cu=n(),Sl=i("p"),Sl.textContent=c_,du=n(),Wl=i("ul"),Wl.innerHTML=d_,Td=n(),g(fo.$$.fragment),yd=n(),C=i("div"),g(uo.$$.fragment),mu=n(),Ll=i("p"),Ll.textContent=m_,hu=n(),Hl=i("p"),Hl.textContent=h_,gu=n(),Ol=i("p"),Ol.textContent=g_,fu=n(),Yl=i("p"),Yl.textContent=f_,uu=n(),El=i("p"),El.innerHTML=u_,Tu=n(),fs=i("div"),g(To.$$.fragment),yu=n(),Ql=i("p"),Ql.textContent=T_,bu=n(),Le=i("div"),g(yo.$$.fragment),_u=n(),Xl=i("p"),Xl.textContent=y_,xu=n(),g(us.$$.fragment),wu=n(),Ts=i("div"),g(bo.$$.fragment),Mu=n(),Kl=i("p"),Kl.textContent=b_,ju=n(),ys=i("div"),g(_o.$$.fragment),Uu=n(),ep=i("p"),ep.innerHTML=__,ku=n(),bs=i("div"),g(xo.$$.fragment),vu=n(),tp=i("p"),tp.innerHTML=x_,$u=n(),_s=i("div"),g(wo.$$.fragment),Ju=n(),sp=i("p"),sp.innerHTML=w_,Pu=n(),He=i("div"),g(Mo.$$.fragment),Cu=n(),np=i("p"),np.textContent=M_,Iu=n(),g(xs.$$.fragment),qu=n(),ws=i("div"),g(jo.$$.fragment),Gu=n(),ap=i("p"),ap.textContent=j_,Zu=n(),Ms=i("div"),g(Uo.$$.fragment),Fu=n(),op=i("p"),op.innerHTML=U_,bd=n(),g(ko.$$.fragment),_d=n(),mp=i("p"),this.h()},l(e){const p=P_("svelte-u9bgzb",document.head);o=l(p,"META",{name:!0,content:!0}),p.forEach(r),w=a(e),h=l(e,"P",{}),j(h).forEach(r),c=a(e),f(_.$$.fragment,e),t=a(e),x=l(e,"P",{"data-svelte-h":!0}),m(x)!=="svelte-fs43uo"&&(x.innerHTML=dp),hp=a(e),Us=l(e,"P",{"data-svelte-h":!0}),m(Us)!=="svelte-c9gfx6"&&(Us.textContent=zu),gp=a(e),ks=l(e,"UL",{"data-svelte-h":!0}),m(ks)!=="svelte-1ty5np4"&&(ks.innerHTML=Bu),fp=a(e),f(vs.$$.fragment,e),up=a(e),$s=l(e,"P",{"data-svelte-h":!0}),m($s)!=="svelte-1w1m0rn"&&($s.innerHTML=Ru),Tp=a(e),Js=l(e,"P",{"data-svelte-h":!0}),m(Js)!=="svelte-1krqwzx"&&(Js.textContent=Du),yp=a(e),f(Ps.$$.fragment,e),bp=a(e),Cs=l(e,"P",{"data-svelte-h":!0}),m(Cs)!=="svelte-11ml0iq"&&(Cs.innerHTML=Nu),_p=a(e),f(Is.$$.fragment,e),xp=a(e),qs=l(e,"P",{"data-svelte-h":!0}),m(qs)!=="svelte-92cvmm"&&(qs.innerHTML=Au),wp=a(e),f(Gs.$$.fragment,e),Mp=a(e),Zs=l(e,"P",{"data-svelte-h":!0}),m(Zs)!=="svelte-156nasz"&&(Zs.innerHTML=Vu),jp=a(e),f(Fs.$$.fragment,e),Up=a(e),zs=l(e,"P",{"data-svelte-h":!0}),m(zs)!=="svelte-9siszl"&&(zs.textContent=Su),kp=a(e),f(Bs.$$.fragment,e),vp=a(e),pe=l(e,"DIV",{class:!0});var $e=j(pe);f(Rs.$$.fragment,$e),Ad=a($e),Ho=l($e,"P",{"data-svelte-h":!0}),m(Ho)!=="svelte-1gatmym"&&(Ho.innerHTML=Wu),Vd=a($e),Oo=l($e,"P",{"data-svelte-h":!0}),m(Oo)!=="svelte-jpprfs"&&(Oo.textContent=Lu),Sd=a($e),Yo=l($e,"UL",{"data-svelte-h":!0}),m(Yo)!=="svelte-1htam2n"&&(Yo.innerHTML=Hu),Wd=a($e),f(Ee.$$.fragment,$e),Ld=a($e),f(Qe.$$.fragment,$e),$e.forEach(r),$p=a(e),f(Ds.$$.fragment,e),Jp=a(e),Ns=l(e,"P",{"data-svelte-h":!0}),m(Ns)!=="svelte-lk0ev4"&&(Ns.innerHTML=Ou),Pp=a(e),f(As.$$.fragment,e),Cp=a(e),f(Xe.$$.fragment,e),Ip=a(e),f(Vs.$$.fragment,e),qp=a(e),f(Ss.$$.fragment,e),Gp=a(e),Ws=l(e,"P",{"data-svelte-h":!0}),m(Ws)!=="svelte-wtyref"&&(Ws.textContent=Yu),Zp=a(e),f(Ls.$$.fragment,e),Fp=a(e),Hs=l(e,"P",{"data-svelte-h":!0}),m(Hs)!=="svelte-1dsl6cu"&&(Hs.innerHTML=Eu),zp=a(e),f(Os.$$.fragment,e),Bp=a(e),Ys=l(e,"P",{"data-svelte-h":!0}),m(Ys)!=="svelte-pz2mpy"&&(Ys.textContent=Qu),Rp=a(e),Es=l(e,"P",{"data-svelte-h":!0}),m(Es)!=="svelte-m8iv5q"&&(Es.textContent=Xu),Dp=a(e),Qs=l(e,"UL",{"data-svelte-h":!0}),m(Qs)!=="svelte-13szoe9"&&(Qs.innerHTML=Ku),Np=a(e),f(Xs.$$.fragment,e),Ap=a(e),Ks=l(e,"P",{"data-svelte-h":!0}),m(Ks)!=="svelte-1anjqeq"&&(Ks.innerHTML=eT),Vp=a(e),en=l(e,"P",{"data-svelte-h":!0}),m(en)!=="svelte-7qgd4q"&&(en.innerHTML=tT),Sp=a(e),f(tn.$$.fragment,e),Wp=a(e),sn=l(e,"P",{"data-svelte-h":!0}),m(sn)!=="svelte-6wbarw"&&(sn.textContent=sT),Lp=a(e),f(nn.$$.fragment,e),Hp=a(e),an=l(e,"P",{"data-svelte-h":!0}),m(an)!=="svelte-1o2q0dr"&&(an.textContent=nT),Op=a(e),on=l(e,"P",{"data-svelte-h":!0}),m(on)!=="svelte-srvn2p"&&(on.innerHTML=aT),Yp=a(e),f(rn.$$.fragment,e),Ep=a(e),ln=l(e,"P",{"data-svelte-h":!0}),m(ln)!=="svelte-1vk9961"&&(ln.textContent=oT),Qp=a(e),pn=l(e,"P",{"data-svelte-h":!0}),m(pn)!=="svelte-cz1axq"&&(pn.innerHTML=rT),Xp=a(e),cn=l(e,"P",{"data-svelte-h":!0}),m(cn)!=="svelte-1bhbz67"&&(cn.textContent=iT),Kp=a(e),dn=l(e,"UL",{"data-svelte-h":!0}),m(dn)!=="svelte-1ubjjlt"&&(dn.innerHTML=lT),ec=a(e),f(mn.$$.fragment,e),tc=a(e),hn=l(e,"P",{"data-svelte-h":!0}),m(hn)!=="svelte-mfuu0s"&&(hn.textContent=pT),sc=a(e),f(gn.$$.fragment,e),nc=a(e),fn=l(e,"P",{"data-svelte-h":!0}),m(fn)!=="svelte-1dtjdk1"&&(fn.innerHTML=cT),ac=a(e),f(un.$$.fragment,e),oc=a(e),Tn=l(e,"P",{"data-svelte-h":!0}),m(Tn)!=="svelte-15gsdi4"&&(Tn.textContent=dT),rc=a(e),f(yn.$$.fragment,e),ic=a(e),H=l(e,"DIV",{class:!0});var ue=j(H);f(bn.$$.fragment,ue),Hd=a(ue),Eo=l(ue,"P",{"data-svelte-h":!0}),m(Eo)!=="svelte-1wmh7ni"&&(Eo.innerHTML=mT),Od=a(ue),f(Ke.$$.fragment,ue),Yd=a(ue),Qo=l(ue,"P",{"data-svelte-h":!0}),m(Qo)!=="svelte-13rexfx"&&(Qo.innerHTML=hT),Ed=a(ue),Xo=l(ue,"P",{"data-svelte-h":!0}),m(Xo)!=="svelte-aaq6h2"&&(Xo.innerHTML=gT),Qd=a(ue),Ko=l(ue,"P",{"data-svelte-h":!0}),m(Ko)!=="svelte-1pv1mxa"&&(Ko.innerHTML=fT),Xd=a(ue),et=l(ue,"DIV",{class:!0});var vo=j(et);f(_n.$$.fragment,vo),Kd=a(vo),er=l(vo,"P",{"data-svelte-h":!0}),m(er)!=="svelte-123jabj"&&(er.innerHTML=uT),vo.forEach(r),ue.forEach(r),lc=a(e),f(xn.$$.fragment,e),pc=a(e),ce=l(e,"DIV",{class:!0});var Je=j(ce);f(wn.$$.fragment,Je),em=a(Je),tr=l(Je,"P",{"data-svelte-h":!0}),m(tr)!=="svelte-vm8asa"&&(tr.textContent=TT),tm=a(Je),sr=l(Je,"P",{"data-svelte-h":!0}),m(sr)!=="svelte-1l0gjoy"&&(sr.textContent=yT),sm=a(Je),f(tt.$$.fragment,Je),nm=a(Je),nr=l(Je,"P",{"data-svelte-h":!0}),m(nr)!=="svelte-13rexfx"&&(nr.innerHTML=bT),am=a(Je),st=l(Je,"DIV",{class:!0});var $o=j(st);f(Mn.$$.fragment,$o),om=a($o),ar=l($o,"P",{"data-svelte-h":!0}),m(ar)!=="svelte-z53e6"&&(ar.innerHTML=_T),$o.forEach(r),Je.forEach(r),cc=a(e),f(jn.$$.fragment,e),dc=a(e),D=l(e,"DIV",{class:!0});var oe=j(D);f(Un.$$.fragment,oe),rm=a(oe),or=l(oe,"P",{"data-svelte-h":!0}),m(or)!=="svelte-y1s454"&&(or.innerHTML=xT),im=a(oe),f(nt.$$.fragment,oe),lm=a(oe),rr=l(oe,"P",{"data-svelte-h":!0}),m(rr)!=="svelte-13rexfx"&&(rr.innerHTML=wT),pm=a(oe),f(at.$$.fragment,oe),cm=a(oe),ir=l(oe,"P",{"data-svelte-h":!0}),m(ir)!=="svelte-13zlr1k"&&(ir.innerHTML=MT),dm=a(oe),lr=l(oe,"P",{"data-svelte-h":!0}),m(lr)!=="svelte-1g4o6wf"&&(lr.innerHTML=jT),mm=a(oe),ot=l(oe,"DIV",{class:!0});var Jo=j(ot);f(kn.$$.fragment,Jo),hm=a(Jo),pr=l(Jo,"P",{"data-svelte-h":!0}),m(pr)!=="svelte-yezpsm"&&(pr.innerHTML=UT),Jo.forEach(r),oe.forEach(r),mc=a(e),f(vn.$$.fragment,e),hc=a(e),de=l(e,"DIV",{class:!0});var Pe=j(de);f($n.$$.fragment,Pe),gm=a(Pe),cr=l(Pe,"P",{"data-svelte-h":!0}),m(cr)!=="svelte-tmg4zt"&&(cr.innerHTML=kT),fm=a(Pe),f(rt.$$.fragment,Pe),um=a(Pe),f(it.$$.fragment,Pe),Tm=a(Pe),dr=l(Pe,"P",{"data-svelte-h":!0}),m(dr)!=="svelte-1s1jtc5"&&(dr.innerHTML=vT),ym=a(Pe),lt=l(Pe,"DIV",{class:!0});var Po=j(lt);f(Jn.$$.fragment,Po),bm=a(Po),mr=l(Po,"P",{"data-svelte-h":!0}),m(mr)!=="svelte-kd58rd"&&(mr.textContent=$T),Po.forEach(r),Pe.forEach(r),gc=a(e),f(Pn.$$.fragment,e),fc=a(e),Cn=l(e,"P",{"data-svelte-h":!0}),m(Cn)!=="svelte-wtc79l"&&(Cn.textContent=JT),uc=a(e),f(In.$$.fragment,e),Tc=a(e),O=l(e,"DIV",{class:!0});var Te=j(O);f(qn.$$.fragment,Te),_m=a(Te),hr=l(Te,"P",{"data-svelte-h":!0}),m(hr)!=="svelte-cmozej"&&(hr.innerHTML=PT),xm=a(Te),f(pt.$$.fragment,Te),wm=a(Te),gr=l(Te,"P",{"data-svelte-h":!0}),m(gr)!=="svelte-13rexfx"&&(gr.innerHTML=CT),Mm=a(Te),fr=l(Te,"P",{"data-svelte-h":!0}),m(fr)!=="svelte-6jwhfw"&&(fr.innerHTML=IT),jm=a(Te),ur=l(Te,"P",{"data-svelte-h":!0}),m(ur)!=="svelte-6trb8y"&&(ur.innerHTML=qT),Um=a(Te),ct=l(Te,"DIV",{class:!0});var Co=j(ct);f(Gn.$$.fragment,Co),km=a(Co),Tr=l(Co,"P",{"data-svelte-h":!0}),m(Tr)!=="svelte-10lhg27"&&(Tr.textContent=GT),Co.forEach(r),Te.forEach(r),yc=a(e),f(Zn.$$.fragment,e),bc=a(e),Y=l(e,"DIV",{class:!0});var ye=j(Y);f(Fn.$$.fragment,ye),vm=a(ye),yr=l(ye,"P",{"data-svelte-h":!0}),m(yr)!=="svelte-rlbi70"&&(yr.innerHTML=ZT),$m=a(ye),f(dt.$$.fragment,ye),Jm=a(ye),br=l(ye,"P",{"data-svelte-h":!0}),m(br)!=="svelte-13rexfx"&&(br.innerHTML=FT),Pm=a(ye),_r=l(ye,"P",{"data-svelte-h":!0}),m(_r)!=="svelte-1yolplm"&&(_r.innerHTML=zT),Cm=a(ye),xr=l(ye,"P",{"data-svelte-h":!0}),m(xr)!=="svelte-cqpf5t"&&(xr.innerHTML=BT),Im=a(ye),mt=l(ye,"DIV",{class:!0});var Io=j(mt);f(zn.$$.fragment,Io),qm=a(Io),wr=l(Io,"P",{"data-svelte-h":!0}),m(wr)!=="svelte-ypfmt8"&&(wr.textContent=RT),Io.forEach(r),ye.forEach(r),_c=a(e),f(Bn.$$.fragment,e),xc=a(e),me=l(e,"DIV",{class:!0});var Ce=j(me);f(Rn.$$.fragment,Ce),Gm=a(Ce),Mr=l(Ce,"P",{"data-svelte-h":!0}),m(Mr)!=="svelte-1y2a978"&&(Mr.innerHTML=DT),Zm=a(Ce),f(ht.$$.fragment,Ce),Fm=a(Ce),jr=l(Ce,"P",{"data-svelte-h":!0}),m(jr)!=="svelte-1e4kuuq"&&(jr.innerHTML=NT),zm=a(Ce),Ur=l(Ce,"P",{"data-svelte-h":!0}),m(Ur)!=="svelte-151zbn3"&&(Ur.innerHTML=AT),Bm=a(Ce),gt=l(Ce,"DIV",{class:!0});var qo=j(gt);f(Dn.$$.fragment,qo),Rm=a(qo),kr=l(qo,"P",{"data-svelte-h":!0}),m(kr)!=="svelte-1qn9qfa"&&(kr.textContent=VT),qo.forEach(r),Ce.forEach(r),wc=a(e),f(Nn.$$.fragment,e),Mc=a(e),he=l(e,"DIV",{class:!0});var Ie=j(he);f(An.$$.fragment,Ie),Dm=a(Ie),vr=l(Ie,"P",{"data-svelte-h":!0}),m(vr)!=="svelte-5hn3v1"&&(vr.innerHTML=ST),Nm=a(Ie),f(ft.$$.fragment,Ie),Am=a(Ie),$r=l(Ie,"P",{"data-svelte-h":!0}),m($r)!=="svelte-117fbtx"&&($r.innerHTML=WT),Vm=a(Ie),Jr=l(Ie,"P",{"data-svelte-h":!0}),m(Jr)!=="svelte-1pm9980"&&(Jr.innerHTML=LT),Sm=a(Ie),ut=l(Ie,"DIV",{class:!0});var Go=j(ut);f(Vn.$$.fragment,Go),Wm=a(Go),Pr=l(Go,"P",{"data-svelte-h":!0}),m(Pr)!=="svelte-1ega32d"&&(Pr.textContent=HT),Go.forEach(r),Ie.forEach(r),jc=a(e),f(Sn.$$.fragment,e),Uc=a(e),E=l(e,"DIV",{class:!0});var be=j(E);f(Wn.$$.fragment,be),Lm=a(be),Cr=l(be,"P",{"data-svelte-h":!0}),m(Cr)!=="svelte-1c7y9od"&&(Cr.innerHTML=OT),Hm=a(be),f(Tt.$$.fragment,be),Om=a(be),Ir=l(be,"P",{"data-svelte-h":!0}),m(Ir)!=="svelte-13rexfx"&&(Ir.innerHTML=YT),Ym=a(be),qr=l(be,"P",{"data-svelte-h":!0}),m(qr)!=="svelte-gg1582"&&(qr.innerHTML=ET),Em=a(be),Gr=l(be,"P",{"data-svelte-h":!0}),m(Gr)!=="svelte-1ea8edc"&&(Gr.innerHTML=QT),Qm=a(be),yt=l(be,"DIV",{class:!0});var Zo=j(yt);f(Ln.$$.fragment,Zo),Xm=a(Zo),Zr=l(Zo,"P",{"data-svelte-h":!0}),m(Zr)!=="svelte-1ws18e1"&&(Zr.textContent=XT),Zo.forEach(r),be.forEach(r),kc=a(e),f(Hn.$$.fragment,e),vc=a(e),ve=l(e,"DIV",{class:!0});var Re=j(ve);f(On.$$.fragment,Re),Km=a(Re),Fr=l(Re,"P",{"data-svelte-h":!0}),m(Fr)!=="svelte-115eloe"&&(Fr.innerHTML=KT),eh=a(Re),zr=l(Re,"P",{"data-svelte-h":!0}),m(zr)!=="svelte-ffhvey"&&(zr.innerHTML=ey),th=a(Re),Br=l(Re,"P",{"data-svelte-h":!0}),m(Br)!=="svelte-38n9pn"&&(Br.innerHTML=ty),sh=a(Re),bt=l(Re,"DIV",{class:!0});var Fo=j(bt);f(Yn.$$.fragment,Fo),nh=a(Fo),Rr=l(Fo,"P",{"data-svelte-h":!0}),m(Rr)!=="svelte-1wpkis2"&&(Rr.textContent=sy),Fo.forEach(r),Re.forEach(r),$c=a(e),f(En.$$.fragment,e),Jc=a(e),Q=l(e,"DIV",{class:!0});var _e=j(Q);f(Qn.$$.fragment,_e),ah=a(_e),Dr=l(_e,"P",{"data-svelte-h":!0}),m(Dr)!=="svelte-1lqk35m"&&(Dr.innerHTML=ny),oh=a(_e),f(_t.$$.fragment,_e),rh=a(_e),Nr=l(_e,"P",{"data-svelte-h":!0}),m(Nr)!=="svelte-13rexfx"&&(Nr.innerHTML=ay),ih=a(_e),Ar=l(_e,"P",{"data-svelte-h":!0}),m(Ar)!=="svelte-1q6ct5i"&&(Ar.innerHTML=oy),lh=a(_e),Vr=l(_e,"P",{"data-svelte-h":!0}),m(Vr)!=="svelte-ab0ict"&&(Vr.innerHTML=ry),ph=a(_e),xt=l(_e,"DIV",{class:!0});var zo=j(xt);f(Xn.$$.fragment,zo),ch=a(zo),Sr=l(zo,"P",{"data-svelte-h":!0}),m(Sr)!=="svelte-ypfmt8"&&(Sr.textContent=iy),zo.forEach(r),_e.forEach(r),Pc=a(e),f(Kn.$$.fragment,e),Cc=a(e),X=l(e,"DIV",{class:!0});var xe=j(X);f(ea.$$.fragment,xe),dh=a(xe),Wr=l(xe,"P",{"data-svelte-h":!0}),m(Wr)!=="svelte-zegbdg"&&(Wr.innerHTML=ly),mh=a(xe),f(wt.$$.fragment,xe),hh=a(xe),Lr=l(xe,"P",{"data-svelte-h":!0}),m(Lr)!=="svelte-13rexfx"&&(Lr.innerHTML=py),gh=a(xe),Hr=l(xe,"P",{"data-svelte-h":!0}),m(Hr)!=="svelte-nvgok6"&&(Hr.innerHTML=cy),fh=a(xe),Or=l(xe,"P",{"data-svelte-h":!0}),m(Or)!=="svelte-1lmpzxi"&&(Or.innerHTML=dy),uh=a(xe),Mt=l(xe,"DIV",{class:!0});var Bo=j(Mt);f(ta.$$.fragment,Bo),Th=a(Bo),Yr=l(Bo,"P",{"data-svelte-h":!0}),m(Yr)!=="svelte-1ws18e1"&&(Yr.textContent=my),Bo.forEach(r),xe.forEach(r),Ic=a(e),f(sa.$$.fragment,e),qc=a(e),na=l(e,"P",{"data-svelte-h":!0}),m(na)!=="svelte-at3w34"&&(na.textContent=hy),Gc=a(e),f(aa.$$.fragment,e),Zc=a(e),Z=l(e,"DIV",{class:!0});var W=j(Z);f(oa.$$.fragment,W),yh=a(W),Er=l(W,"P",{"data-svelte-h":!0}),m(Er)!=="svelte-1y2vlya"&&(Er.innerHTML=gy),bh=a(W),f(jt.$$.fragment,W),_h=a(W),Qr=l(W,"P",{"data-svelte-h":!0}),m(Qr)!=="svelte-13rexfx"&&(Qr.innerHTML=fy),xh=a(W),Xr=l(W,"P",{"data-svelte-h":!0}),m(Xr)!=="svelte-ykh506"&&(Xr.innerHTML=uy),wh=a(W),Kr=l(W,"P",{"data-svelte-h":!0}),m(Kr)!=="svelte-6ieg"&&(Kr.innerHTML=Ty),Mh=a(W),f(Ut.$$.fragment,W),jh=a(W),f(kt.$$.fragment,W),Uh=a(W),vt=l(W,"DIV",{class:!0});var Ro=j(vt);f(ra.$$.fragment,Ro),kh=a(Ro),ei=l(Ro,"P",{"data-svelte-h":!0}),m(ei)!=="svelte-1dgb1r"&&(ei.textContent=yy),Ro.forEach(r),W.forEach(r),Fc=a(e),f(ia.$$.fragment,e),zc=a(e),G=l(e,"DIV",{class:!0});var B=j(G);f(la.$$.fragment,B),vh=a(B),ti=l(B,"P",{"data-svelte-h":!0}),m(ti)!=="svelte-15adoar"&&(ti.innerHTML=by),$h=a(B),f($t.$$.fragment,B),Jh=a(B),si=l(B,"P",{"data-svelte-h":!0}),m(si)!=="svelte-13rexfx"&&(si.innerHTML=_y),Ph=a(B),ni=l(B,"P",{"data-svelte-h":!0}),m(ni)!=="svelte-1n0xn3r"&&(ni.innerHTML=xy),Ch=a(B),ai=l(B,"P",{"data-svelte-h":!0}),m(ai)!=="svelte-jwg5m8"&&(ai.innerHTML=wy),Ih=a(B),Ae=l(B,"DIV",{class:!0});var Oe=j(Ae);f(pa.$$.fragment,Oe),qh=a(Oe),oi=l(Oe,"P",{"data-svelte-h":!0}),m(oi)!=="svelte-1qebl0w"&&(oi.textContent=My),Gh=a(Oe),ri=l(Oe,"P",{"data-svelte-h":!0}),m(ri)!=="svelte-m7pmui"&&(ri.textContent=jy),Oe.forEach(r),Zh=a(B),Jt=l(B,"DIV",{class:!0});var Do=j(Jt);f(ca.$$.fragment,Do),Fh=a(Do),ii=l(Do,"P",{"data-svelte-h":!0}),m(ii)!=="svelte-lj4b08"&&(ii.textContent=Uy),Do.forEach(r),zh=a(B),Pt=l(B,"DIV",{class:!0});var No=j(Pt);f(da.$$.fragment,No),Bh=a(No),li=l(No,"P",{"data-svelte-h":!0}),m(li)!=="svelte-226no6"&&(li.textContent=ky),No.forEach(r),Rh=a(B),Ct=l(B,"DIV",{class:!0});var Ao=j(Ct);f(ma.$$.fragment,Ao),Dh=a(Ao),pi=l(Ao,"P",{"data-svelte-h":!0}),m(pi)!=="svelte-vx34uc"&&(pi.textContent=vy),Ao.forEach(r),B.forEach(r),Bc=a(e),ha=l(e,"P",{"data-svelte-h":!0}),m(ha)!=="svelte-abw50l"&&(ha.innerHTML=$y),Rc=a(e),f(ga.$$.fragment,e),Dc=a(e),F=l(e,"DIV",{class:!0});var L=j(F);f(fa.$$.fragment,L),Nh=a(L),ci=l(L,"P",{"data-svelte-h":!0}),m(ci)!=="svelte-81lrkw"&&(ci.innerHTML=Jy),Ah=a(L),f(It.$$.fragment,L),Vh=a(L),di=l(L,"P",{"data-svelte-h":!0}),m(di)!=="svelte-13rexfx"&&(di.innerHTML=Py),Sh=a(L),mi=l(L,"P",{"data-svelte-h":!0}),m(mi)!=="svelte-xqv5xi"&&(mi.innerHTML=Cy),Wh=a(L),hi=l(L,"P",{"data-svelte-h":!0}),m(hi)!=="svelte-13vdwbu"&&(hi.innerHTML=Iy),Lh=a(L),qt=l(L,"DIV",{class:!0});var Vo=j(qt);f(ua.$$.fragment,Vo),Hh=a(Vo),gi=l(Vo,"P",{"data-svelte-h":!0}),m(gi)!=="svelte-2lj46g"&&(gi.textContent=qy),Vo.forEach(r),Oh=a(L),Ve=l(L,"DIV",{class:!0});var Ye=j(Ve);f(Ta.$$.fragment,Ye),Yh=a(Ye),fi=l(Ye,"P",{"data-svelte-h":!0}),m(fi)!=="svelte-1iglp3e"&&(fi.innerHTML=Gy),Eh=a(Ye),ui=l(Ye,"P",{"data-svelte-h":!0}),m(ui)!=="svelte-tiqx9u"&&(ui.textContent=Zy),Ye.forEach(r),Qh=a(L),Gt=l(L,"DIV",{class:!0});var So=j(Gt);f(ya.$$.fragment,So),Xh=a(So),Ti=l(So,"P",{"data-svelte-h":!0}),m(Ti)!=="svelte-d6foro"&&(Ti.textContent=Fy),So.forEach(r),L.forEach(r),Nc=a(e),f(ba.$$.fragment,e),Ac=a(e),ge=l(e,"DIV",{class:!0});var qe=j(ge);f(_a.$$.fragment,qe),Kh=a(qe),yi=l(qe,"P",{"data-svelte-h":!0}),m(yi)!=="svelte-4fy8a0"&&(yi.textContent=zy),eg=a(qe),bi=l(qe,"P",{"data-svelte-h":!0}),m(bi)!=="svelte-1ef6fes"&&(bi.innerHTML=By),tg=a(qe),_i=l(qe,"P",{"data-svelte-h":!0}),m(_i)!=="svelte-1rau5o"&&(_i.innerHTML=Ry),sg=a(qe),f(Zt.$$.fragment,qe),ng=a(qe),Ft=l(qe,"DIV",{class:!0});var Wo=j(Ft);f(xa.$$.fragment,Wo),ag=a(Wo),xi=l(Wo,"P",{"data-svelte-h":!0}),m(xi)!=="svelte-myfdp"&&(xi.textContent=Dy),Wo.forEach(r),qe.forEach(r),Vc=a(e),f(wa.$$.fragment,e),Sc=a(e),K=l(e,"DIV",{class:!0});var we=j(K);f(Ma.$$.fragment,we),og=a(we),wi=l(we,"P",{"data-svelte-h":!0}),m(wi)!=="svelte-1j45sfj"&&(wi.innerHTML=Ny),rg=a(we),f(zt.$$.fragment,we),ig=a(we),Mi=l(we,"P",{"data-svelte-h":!0}),m(Mi)!=="svelte-13rexfx"&&(Mi.innerHTML=Ay),lg=a(we),ji=l(we,"P",{"data-svelte-h":!0}),m(ji)!=="svelte-1b41wsk"&&(ji.innerHTML=Vy),pg=a(we),Ui=l(we,"P",{"data-svelte-h":!0}),m(Ui)!=="svelte-1jig9aq"&&(Ui.innerHTML=Sy),cg=a(we),ie=l(we,"DIV",{class:!0});var Me=j(ie);f(ja.$$.fragment,Me),dg=a(Me),ki=l(Me,"P",{"data-svelte-h":!0}),m(ki)!=="svelte-1pyysfu"&&(ki.textContent=Wy),mg=a(Me),vi=l(Me,"UL",{"data-svelte-h":!0}),m(vi)!=="svelte-1ny9a5f"&&(vi.innerHTML=Ly),hg=a(Me),$i=l(Me,"P",{"data-svelte-h":!0}),m($i)!=="svelte-11u3uey"&&($i.innerHTML=Hy),gg=a(Me),f(Bt.$$.fragment,Me),fg=a(Me),Ji=l(Me,"P",{"data-svelte-h":!0}),m(Ji)!=="svelte-madj2v"&&(Ji.textContent=Oy),ug=a(Me),f(Rt.$$.fragment,Me),Me.forEach(r),we.forEach(r),Wc=a(e),f(Ua.$$.fragment,e),Lc=a(e),N=l(e,"DIV",{class:!0});var re=j(N);f(ka.$$.fragment,re),Tg=a(re),Pi=l(re,"P",{"data-svelte-h":!0}),m(Pi)!=="svelte-n7evf0"&&(Pi.innerHTML=Yy),yg=a(re),f(Dt.$$.fragment,re),bg=a(re),Ci=l(re,"P",{"data-svelte-h":!0}),m(Ci)!=="svelte-13rexfx"&&(Ci.innerHTML=Ey),_g=a(re),Ii=l(re,"P",{"data-svelte-h":!0}),m(Ii)!=="svelte-ov9e7c"&&(Ii.innerHTML=Qy),xg=a(re),qi=l(re,"P",{"data-svelte-h":!0}),m(qi)!=="svelte-mvgqwz"&&(qi.innerHTML=Xy),wg=a(re),Gi=l(re,"P",{"data-svelte-h":!0}),m(Gi)!=="svelte-1qrdw9i"&&(Gi.innerHTML=Ky),Mg=a(re),Nt=l(re,"DIV",{class:!0});var Lo=j(Nt);f(va.$$.fragment,Lo),jg=a(Lo),Zi=l(Lo,"P",{"data-svelte-h":!0}),m(Zi)!=="svelte-14zfmze"&&(Zi.textContent=eb),Lo.forEach(r),re.forEach(r),Hc=a(e),f($a.$$.fragment,e),Oc=a(e),A=l(e,"DIV",{class:!0});var je=j(A);f(Ja.$$.fragment,je),Ug=a(je),Fi=l(je,"P",{"data-svelte-h":!0}),m(Fi)!=="svelte-hxbkbv"&&(Fi.innerHTML=tb),kg=a(je),f(At.$$.fragment,je),vg=a(je),f(Vt.$$.fragment,je),$g=a(je),zi=l(je,"P",{"data-svelte-h":!0}),m(zi)!=="svelte-26qptp"&&(zi.innerHTML=sb),Jg=a(je),Bi=l(je,"P",{"data-svelte-h":!0}),m(Bi)!=="svelte-393xsj"&&(Bi.innerHTML=nb),Pg=a(je),Ri=l(je,"P",{"data-svelte-h":!0}),m(Ri)!=="svelte-1j73hay"&&(Ri.innerHTML=ab),Cg=a(je),St=l(je,"DIV",{class:!0});var wd=j(St);f(Pa.$$.fragment,wd),Ig=a(wd),Di=l(wd,"P",{"data-svelte-h":!0}),m(Di)!=="svelte-1ql86ls"&&(Di.textContent=ob),wd.forEach(r),je.forEach(r),Yc=a(e),f(Ca.$$.fragment,e),Ec=a(e),z=l(e,"DIV",{class:!0});var le=j(z);f(Ia.$$.fragment,le),qg=a(le),Ni=l(le,"P",{"data-svelte-h":!0}),m(Ni)!=="svelte-xbi6mw"&&(Ni.textContent=rb),Gg=a(le),f(Wt.$$.fragment,le),Zg=a(le),Ai=l(le,"P",{"data-svelte-h":!0}),m(Ai)!=="svelte-26qptp"&&(Ai.innerHTML=ib),Fg=a(le),Vi=l(le,"P",{"data-svelte-h":!0}),m(Vi)!=="svelte-smuhfi"&&(Vi.innerHTML=lb),zg=a(le),Si=l(le,"P",{"data-svelte-h":!0}),m(Si)!=="svelte-1iyxmj8"&&(Si.innerHTML=pb),Bg=a(le),f(Lt.$$.fragment,le),Rg=a(le),Ht=l(le,"DIV",{class:!0});var Md=j(Ht);f(qa.$$.fragment,Md),Dg=a(Md),Wi=l(Md,"P",{"data-svelte-h":!0}),m(Wi)!=="svelte-48qsnz"&&(Wi.textContent=cb),Md.forEach(r),Ng=a(le),Ot=l(le,"DIV",{class:!0});var jd=j(Ot);f(Ga.$$.fragment,jd),Ag=a(jd),Li=l(jd,"P",{"data-svelte-h":!0}),m(Li)!=="svelte-uzfqtg"&&(Li.textContent=db),jd.forEach(r),le.forEach(r),Qc=a(e),f(Za.$$.fragment,e),Xc=a(e),q=l(e,"DIV",{class:!0});var R=j(q);f(Fa.$$.fragment,R),Vg=a(R),Hi=l(R,"P",{"data-svelte-h":!0}),m(Hi)!=="svelte-15adoar"&&(Hi.innerHTML=mb),Sg=a(R),f(Yt.$$.fragment,R),Wg=a(R),Oi=l(R,"P",{"data-svelte-h":!0}),m(Oi)!=="svelte-13rexfx"&&(Oi.innerHTML=hb),Lg=a(R),Yi=l(R,"P",{"data-svelte-h":!0}),m(Yi)!=="svelte-1n0xn3r"&&(Yi.innerHTML=gb),Hg=a(R),Ei=l(R,"P",{"data-svelte-h":!0}),m(Ei)!=="svelte-jwg5m8"&&(Ei.innerHTML=fb),Og=a(R),Et=l(R,"DIV",{class:!0});var Ud=j(Et);f(za.$$.fragment,Ud),Yg=a(Ud),Qi=l(Ud,"P",{"data-svelte-h":!0}),m(Qi)!=="svelte-1fmsbp5"&&(Qi.textContent=ub),Ud.forEach(r),Eg=a(R),Se=l(R,"DIV",{class:!0});var rp=j(Se);f(Ba.$$.fragment,rp),Qg=a(rp),Xi=l(rp,"P",{"data-svelte-h":!0}),m(Xi)!=="svelte-1qebl0w"&&(Xi.textContent=Tb),Xg=a(rp),Ki=l(rp,"P",{"data-svelte-h":!0}),m(Ki)!=="svelte-m7pmui"&&(Ki.textContent=yb),rp.forEach(r),Kg=a(R),Qt=l(R,"DIV",{class:!0});var kd=j(Qt);f(Ra.$$.fragment,kd),ef=a(kd),el=l(kd,"P",{"data-svelte-h":!0}),m(el)!=="svelte-lj4b08"&&(el.textContent=bb),kd.forEach(r),tf=a(R),Xt=l(R,"DIV",{class:!0});var vd=j(Xt);f(Da.$$.fragment,vd),sf=a(vd),tl=l(vd,"P",{"data-svelte-h":!0}),m(tl)!=="svelte-226no6"&&(tl.textContent=_b),vd.forEach(r),nf=a(R),Kt=l(R,"DIV",{class:!0});var $d=j(Kt);f(Na.$$.fragment,$d),af=a($d),sl=l($d,"P",{"data-svelte-h":!0}),m(sl)!=="svelte-vx34uc"&&(sl.textContent=xb),$d.forEach(r),R.forEach(r),Kc=a(e),f(Aa.$$.fragment,e),ed=a(e),fe=l(e,"DIV",{class:!0});var Ne=j(fe);f(Va.$$.fragment,Ne),of=a(Ne),nl=l(Ne,"P",{"data-svelte-h":!0}),m(nl)!=="svelte-1ufl6u7"&&(nl.textContent=wb),rf=a(Ne),al=l(Ne,"P",{"data-svelte-h":!0}),m(al)!=="svelte-1nt0uo9"&&(al.innerHTML=Mb),lf=a(Ne),ol=l(Ne,"P",{"data-svelte-h":!0}),m(ol)!=="svelte-175zgvy"&&(ol.innerHTML=jb),pf=a(Ne),f(es.$$.fragment,Ne),cf=a(Ne),ts=l(Ne,"DIV",{class:!0});var Jd=j(ts);f(Sa.$$.fragment,Jd),df=a(Jd),rl=l(Jd,"P",{"data-svelte-h":!0}),m(rl)!=="svelte-1q7dj96"&&(rl.textContent=Ub),Jd.forEach(r),Ne.forEach(r),td=a(e),f(Wa.$$.fragment,e),sd=a(e),V=l(e,"DIV",{class:!0});var Ue=j(V);f(La.$$.fragment,Ue),mf=a(Ue),il=l(Ue,"P",{"data-svelte-h":!0}),m(il)!=="svelte-gusdnf"&&(il.innerHTML=kb),hf=a(Ue),ll=l(Ue,"P",{"data-svelte-h":!0}),m(ll)!=="svelte-1hjzyz9"&&(ll.innerHTML=vb),gf=a(Ue),f(ss.$$.fragment,Ue),ff=a(Ue),pl=l(Ue,"P",{"data-svelte-h":!0}),m(pl)!=="svelte-13rexfx"&&(pl.innerHTML=$b),uf=a(Ue),cl=l(Ue,"P",{"data-svelte-h":!0}),m(cl)!=="svelte-otlqkg"&&(cl.innerHTML=Jb),Tf=a(Ue),dl=l(Ue,"P",{"data-svelte-h":!0}),m(dl)!=="svelte-17eq97f"&&(dl.innerHTML=Pb),yf=a(Ue),ns=l(Ue,"DIV",{class:!0});var Pd=j(ns);f(Ha.$$.fragment,Pd),bf=a(Pd),ml=l(Pd,"P",{"data-svelte-h":!0}),m(ml)!=="svelte-s9ppx3"&&(ml.innerHTML=Cb),Pd.forEach(r),Ue.forEach(r),nd=a(e),f(Oa.$$.fragment,e),ad=a(e),Ya=l(e,"P",{"data-svelte-h":!0}),m(Ya)!=="svelte-1xh66q3"&&(Ya.textContent=Ib),od=a(e),f(Ea.$$.fragment,e),rd=a(e),ee=l(e,"DIV",{class:!0});var Ge=j(ee);f(Qa.$$.fragment,Ge),_f=a(Ge),hl=l(Ge,"P",{"data-svelte-h":!0}),m(hl)!=="svelte-40flx9"&&(hl.innerHTML=qb),xf=a(Ge),f(as.$$.fragment,Ge),wf=a(Ge),gl=l(Ge,"P",{"data-svelte-h":!0}),m(gl)!=="svelte-13rexfx"&&(gl.innerHTML=Gb),Mf=a(Ge),fl=l(Ge,"P",{"data-svelte-h":!0}),m(fl)!=="svelte-rd6lpl"&&(fl.innerHTML=Zb),jf=a(Ge),ul=l(Ge,"P",{"data-svelte-h":!0}),m(ul)!=="svelte-1akhzjj"&&(ul.innerHTML=Fb),Uf=a(Ge),De=l(Ge,"DIV",{class:!0});var js=j(De);f(Xa.$$.fragment,js),kf=a(js),Tl=l(js,"P",{"data-svelte-h":!0}),m(Tl)!=="svelte-1211nrg"&&(Tl.innerHTML=zb),vf=a(js),yl=l(js,"P",{"data-svelte-h":!0}),m(yl)!=="svelte-1njhmhw"&&(yl.textContent=Bb),$f=a(js),bl=l(js,"UL",{"data-svelte-h":!0}),m(bl)!=="svelte-gfpbs1"&&(bl.innerHTML=Rb),js.forEach(r),Ge.forEach(r),id=a(e),f(Ka.$$.fragment,e),ld=a(e),te=l(e,"DIV",{class:!0});var Ze=j(te);f(eo.$$.fragment,Ze),Jf=a(Ze),_l=l(Ze,"P",{"data-svelte-h":!0}),m(_l)!=="svelte-2bxem6"&&(_l.textContent=Db),Pf=a(Ze),f(os.$$.fragment,Ze),Cf=a(Ze),xl=l(Ze,"P",{"data-svelte-h":!0}),m(xl)!=="svelte-13rexfx"&&(xl.innerHTML=Nb),If=a(Ze),wl=l(Ze,"P",{"data-svelte-h":!0}),m(wl)!=="svelte-68lhd"&&(wl.innerHTML=Ab),qf=a(Ze),Ml=l(Ze,"P",{"data-svelte-h":!0}),m(Ml)!=="svelte-85c9z6"&&(Ml.innerHTML=Vb),Gf=a(Ze),rs=l(Ze,"DIV",{class:!0});var Cd=j(rs);f(to.$$.fragment,Cd),Zf=a(Cd),jl=l(Cd,"P",{"data-svelte-h":!0}),m(jl)!=="svelte-11eoigb"&&(jl.textContent=Sb),Cd.forEach(r),Ze.forEach(r),pd=a(e),f(so.$$.fragment,e),cd=a(e),se=l(e,"DIV",{class:!0});var Fe=j(se);f(no.$$.fragment,Fe),Ff=a(Fe),Ul=l(Fe,"P",{"data-svelte-h":!0}),m(Ul)!=="svelte-1cp7rf7"&&(Ul.textContent=Wb),zf=a(Fe),f(is.$$.fragment,Fe),Bf=a(Fe),kl=l(Fe,"P",{"data-svelte-h":!0}),m(kl)!=="svelte-13rexfx"&&(kl.innerHTML=Lb),Rf=a(Fe),vl=l(Fe,"P",{"data-svelte-h":!0}),m(vl)!=="svelte-l3o1ei"&&(vl.innerHTML=Hb),Df=a(Fe),$l=l(Fe,"P",{"data-svelte-h":!0}),m($l)!=="svelte-19r0ftw"&&($l.innerHTML=Ob),Nf=a(Fe),ls=l(Fe,"DIV",{class:!0});var Id=j(ls);f(ao.$$.fragment,Id),Af=a(Id),Jl=l(Id,"P",{"data-svelte-h":!0}),m(Jl)!=="svelte-11eoigb"&&(Jl.textContent=Yb),Id.forEach(r),Fe.forEach(r),dd=a(e),f(oo.$$.fragment,e),md=a(e),ne=l(e,"DIV",{class:!0});var ze=j(ne);f(ro.$$.fragment,ze),Vf=a(ze),Pl=l(ze,"P",{"data-svelte-h":!0}),m(Pl)!=="svelte-yuzbfo"&&(Pl.innerHTML=Eb),Sf=a(ze),f(ps.$$.fragment,ze),Wf=a(ze),Cl=l(ze,"P",{"data-svelte-h":!0}),m(Cl)!=="svelte-13rexfx"&&(Cl.innerHTML=Qb),Lf=a(ze),Il=l(ze,"P",{"data-svelte-h":!0}),m(Il)!=="svelte-172bsdq"&&(Il.textContent=Xb),Hf=a(ze),ql=l(ze,"P",{"data-svelte-h":!0}),m(ql)!=="svelte-6aba0z"&&(ql.innerHTML=Kb),Of=a(ze),cs=l(ze,"DIV",{class:!0});var qd=j(cs);f(io.$$.fragment,qd),Yf=a(qd),Gl=l(qd,"P",{"data-svelte-h":!0}),m(Gl)!=="svelte-ypfmt8"&&(Gl.textContent=e_),qd.forEach(r),ze.forEach(r),hd=a(e),f(lo.$$.fragment,e),gd=a(e),S=l(e,"DIV",{class:!0});var ke=j(S);f(po.$$.fragment,ke),Ef=a(ke),Zl=l(ke,"P",{"data-svelte-h":!0}),m(Zl)!=="svelte-138vhyq"&&(Zl.innerHTML=t_),Qf=a(ke),f(ds.$$.fragment,ke),Xf=a(ke),f(ms.$$.fragment,ke),Kf=a(ke),Fl=l(ke,"P",{"data-svelte-h":!0}),m(Fl)!=="svelte-13rexfx"&&(Fl.innerHTML=s_),eu=a(ke),zl=l(ke,"P",{"data-svelte-h":!0}),m(zl)!=="svelte-96qbn6"&&(zl.textContent=n_),tu=a(ke),Bl=l(ke,"P",{"data-svelte-h":!0}),m(Bl)!=="svelte-185vjex"&&(Bl.innerHTML=a_),su=a(ke),hs=l(ke,"DIV",{class:!0});var Gd=j(hs);f(co.$$.fragment,Gd),nu=a(Gd),Rl=l(Gd,"P",{"data-svelte-h":!0}),m(Rl)!=="svelte-1nkqfj7"&&(Rl.textContent=o_),Gd.forEach(r),ke.forEach(r),fd=a(e),f(mo.$$.fragment,e),ud=a(e),ae=l(e,"DIV",{class:!0});var Be=j(ae);f(ho.$$.fragment,Be),au=a(Be),Dl=l(Be,"P",{"data-svelte-h":!0}),m(Dl)!=="svelte-1lg1j1m"&&(Dl.innerHTML=r_),ou=a(Be),f(gs.$$.fragment,Be),ru=a(Be),Nl=l(Be,"P",{"data-svelte-h":!0}),m(Nl)!=="svelte-13rexfx"&&(Nl.innerHTML=i_),iu=a(Be),Al=l(Be,"P",{"data-svelte-h":!0}),m(Al)!=="svelte-lexwj6"&&(Al.innerHTML=l_),lu=a(Be),Vl=l(Be,"P",{"data-svelte-h":!0}),m(Vl)!=="svelte-lcegcp"&&(Vl.innerHTML=p_),pu=a(Be),We=l(Be,"DIV",{class:!0});var ip=j(We);f(go.$$.fragment,ip),cu=a(ip),Sl=l(ip,"P",{"data-svelte-h":!0}),m(Sl)!=="svelte-10yp62t"&&(Sl.textContent=c_),du=a(ip),Wl=l(ip,"UL",{"data-svelte-h":!0}),m(Wl)!=="svelte-15cnno4"&&(Wl.innerHTML=d_),ip.forEach(r),Be.forEach(r),Td=a(e),f(fo.$$.fragment,e),yd=a(e),C=l(e,"DIV",{class:!0});var I=j(C);f(uo.$$.fragment,I),mu=a(I),Ll=l(I,"P",{"data-svelte-h":!0}),m(Ll)!=="svelte-k7p6k2"&&(Ll.textContent=m_),hu=a(I),Hl=l(I,"P",{"data-svelte-h":!0}),m(Hl)!=="svelte-3qu5a5"&&(Hl.textContent=h_),gu=a(I),Ol=l(I,"P",{"data-svelte-h":!0}),m(Ol)!=="svelte-1mj6jcv"&&(Ol.textContent=g_),fu=a(I),Yl=l(I,"P",{"data-svelte-h":!0}),m(Yl)!=="svelte-pcl79b"&&(Yl.textContent=f_),uu=a(I),El=l(I,"P",{"data-svelte-h":!0}),m(El)!=="svelte-3w4wq3"&&(El.innerHTML=u_),Tu=a(I),fs=l(I,"DIV",{class:!0});var Zd=j(fs);f(To.$$.fragment,Zd),yu=a(Zd),Ql=l(Zd,"P",{"data-svelte-h":!0}),m(Ql)!=="svelte-exnhmi"&&(Ql.textContent=T_),Zd.forEach(r),bu=a(I),Le=l(I,"DIV",{class:!0});var lp=j(Le);f(yo.$$.fragment,lp),_u=a(lp),Xl=l(lp,"P",{"data-svelte-h":!0}),m(Xl)!=="svelte-1piccye"&&(Xl.textContent=y_),xu=a(lp),f(us.$$.fragment,lp),lp.forEach(r),wu=a(I),Ts=l(I,"DIV",{class:!0});var Fd=j(Ts);f(bo.$$.fragment,Fd),Mu=a(Fd),Kl=l(Fd,"P",{"data-svelte-h":!0}),m(Kl)!=="svelte-p1t4ev"&&(Kl.textContent=b_),Fd.forEach(r),ju=a(I),ys=l(I,"DIV",{class:!0});var zd=j(ys);f(_o.$$.fragment,zd),Uu=a(zd),ep=l(zd,"P",{"data-svelte-h":!0}),m(ep)!=="svelte-2wm42a"&&(ep.innerHTML=__),zd.forEach(r),ku=a(I),bs=l(I,"DIV",{class:!0});var Bd=j(bs);f(xo.$$.fragment,Bd),vu=a(Bd),tp=l(Bd,"P",{"data-svelte-h":!0}),m(tp)!=="svelte-10cd17f"&&(tp.innerHTML=x_),Bd.forEach(r),$u=a(I),_s=l(I,"DIV",{class:!0});var Rd=j(_s);f(wo.$$.fragment,Rd),Ju=a(Rd),sp=l(Rd,"P",{"data-svelte-h":!0}),m(sp)!=="svelte-12sv4vl"&&(sp.innerHTML=w_),Rd.forEach(r),Pu=a(I),He=l(I,"DIV",{class:!0});var pp=j(He);f(Mo.$$.fragment,pp),Cu=a(pp),np=l(pp,"P",{"data-svelte-h":!0}),m(np)!=="svelte-15f1ri9"&&(np.textContent=M_),Iu=a(pp),f(xs.$$.fragment,pp),pp.forEach(r),qu=a(I),ws=l(I,"DIV",{class:!0});var Dd=j(ws);f(jo.$$.fragment,Dd),Gu=a(Dd),ap=l(Dd,"P",{"data-svelte-h":!0}),m(ap)!=="svelte-kp2v8j"&&(ap.textContent=j_),Dd.forEach(r),Zu=a(I),Ms=l(I,"DIV",{class:!0});var Nd=j(Ms);f(Uo.$$.fragment,Nd),Fu=a(Nd),op=l(Nd,"P",{"data-svelte-h":!0}),m(op)!=="svelte-10cd17f"&&(op.innerHTML=U_),Nd.forEach(r),I.forEach(r),bd=a(e),f(ko.$$.fragment,e),_d=a(e),mp=l(e,"P",{}),j(mp).forEach(r),this.h()},h(){U(o,"name","hf:doc:metadata"),U(o,"content",Ux),U(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(et,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(st,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(ot,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(lt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(ct,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(mt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(gt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(ut,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(he,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(yt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(bt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(xt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(Mt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(vt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(Ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(Jt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(Pt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(Ct,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(qt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(Ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(Gt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(Ft,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(Nt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(St,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(Ht,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(Ot,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(Et,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(Se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(Qt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(Xt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(Kt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(ts,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(ns,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(De,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(rs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(ls,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(cs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(hs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(We,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(fs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(Le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(Ts,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(ys,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(bs,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(_s,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(He,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(ws,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(Ms,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(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){s(document.head,o),d(e,w,p),d(e,h,p),d(e,c,p),u(_,e,p),d(e,t,p),d(e,x,p),d(e,hp,p),d(e,Us,p),d(e,gp,p),d(e,ks,p),d(e,fp,p),u(vs,e,p),d(e,up,p),d(e,$s,p),d(e,Tp,p),d(e,Js,p),d(e,yp,p),u(Ps,e,p),d(e,bp,p),d(e,Cs,p),d(e,_p,p),u(Is,e,p),d(e,xp,p),d(e,qs,p),d(e,wp,p),u(Gs,e,p),d(e,Mp,p),d(e,Zs,p),d(e,jp,p),u(Fs,e,p),d(e,Up,p),d(e,zs,p),d(e,kp,p),u(Bs,e,p),d(e,vp,p),d(e,pe,p),u(Rs,pe,null),s(pe,Ad),s(pe,Ho),s(pe,Vd),s(pe,Oo),s(pe,Sd),s(pe,Yo),s(pe,Wd),u(Ee,pe,null),s(pe,Ld),u(Qe,pe,null),d(e,$p,p),u(Ds,e,p),d(e,Jp,p),d(e,Ns,p),d(e,Pp,p),u(As,e,p),d(e,Cp,p),u(Xe,e,p),d(e,Ip,p),u(Vs,e,p),d(e,qp,p),u(Ss,e,p),d(e,Gp,p),d(e,Ws,p),d(e,Zp,p),u(Ls,e,p),d(e,Fp,p),d(e,Hs,p),d(e,zp,p),u(Os,e,p),d(e,Bp,p),d(e,Ys,p),d(e,Rp,p),d(e,Es,p),d(e,Dp,p),d(e,Qs,p),d(e,Np,p),u(Xs,e,p),d(e,Ap,p),d(e,Ks,p),d(e,Vp,p),d(e,en,p),d(e,Sp,p),u(tn,e,p),d(e,Wp,p),d(e,sn,p),d(e,Lp,p),u(nn,e,p),d(e,Hp,p),d(e,an,p),d(e,Op,p),d(e,on,p),d(e,Yp,p),u(rn,e,p),d(e,Ep,p),d(e,ln,p),d(e,Qp,p),d(e,pn,p),d(e,Xp,p),d(e,cn,p),d(e,Kp,p),d(e,dn,p),d(e,ec,p),u(mn,e,p),d(e,tc,p),d(e,hn,p),d(e,sc,p),u(gn,e,p),d(e,nc,p),d(e,fn,p),d(e,ac,p),u(un,e,p),d(e,oc,p),d(e,Tn,p),d(e,rc,p),u(yn,e,p),d(e,ic,p),d(e,H,p),u(bn,H,null),s(H,Hd),s(H,Eo),s(H,Od),u(Ke,H,null),s(H,Yd),s(H,Qo),s(H,Ed),s(H,Xo),s(H,Qd),s(H,Ko),s(H,Xd),s(H,et),u(_n,et,null),s(et,Kd),s(et,er),d(e,lc,p),u(xn,e,p),d(e,pc,p),d(e,ce,p),u(wn,ce,null),s(ce,em),s(ce,tr),s(ce,tm),s(ce,sr),s(ce,sm),u(tt,ce,null),s(ce,nm),s(ce,nr),s(ce,am),s(ce,st),u(Mn,st,null),s(st,om),s(st,ar),d(e,cc,p),u(jn,e,p),d(e,dc,p),d(e,D,p),u(Un,D,null),s(D,rm),s(D,or),s(D,im),u(nt,D,null),s(D,lm),s(D,rr),s(D,pm),u(at,D,null),s(D,cm),s(D,ir),s(D,dm),s(D,lr),s(D,mm),s(D,ot),u(kn,ot,null),s(ot,hm),s(ot,pr),d(e,mc,p),u(vn,e,p),d(e,hc,p),d(e,de,p),u($n,de,null),s(de,gm),s(de,cr),s(de,fm),u(rt,de,null),s(de,um),u(it,de,null),s(de,Tm),s(de,dr),s(de,ym),s(de,lt),u(Jn,lt,null),s(lt,bm),s(lt,mr),d(e,gc,p),u(Pn,e,p),d(e,fc,p),d(e,Cn,p),d(e,uc,p),u(In,e,p),d(e,Tc,p),d(e,O,p),u(qn,O,null),s(O,_m),s(O,hr),s(O,xm),u(pt,O,null),s(O,wm),s(O,gr),s(O,Mm),s(O,fr),s(O,jm),s(O,ur),s(O,Um),s(O,ct),u(Gn,ct,null),s(ct,km),s(ct,Tr),d(e,yc,p),u(Zn,e,p),d(e,bc,p),d(e,Y,p),u(Fn,Y,null),s(Y,vm),s(Y,yr),s(Y,$m),u(dt,Y,null),s(Y,Jm),s(Y,br),s(Y,Pm),s(Y,_r),s(Y,Cm),s(Y,xr),s(Y,Im),s(Y,mt),u(zn,mt,null),s(mt,qm),s(mt,wr),d(e,_c,p),u(Bn,e,p),d(e,xc,p),d(e,me,p),u(Rn,me,null),s(me,Gm),s(me,Mr),s(me,Zm),u(ht,me,null),s(me,Fm),s(me,jr),s(me,zm),s(me,Ur),s(me,Bm),s(me,gt),u(Dn,gt,null),s(gt,Rm),s(gt,kr),d(e,wc,p),u(Nn,e,p),d(e,Mc,p),d(e,he,p),u(An,he,null),s(he,Dm),s(he,vr),s(he,Nm),u(ft,he,null),s(he,Am),s(he,$r),s(he,Vm),s(he,Jr),s(he,Sm),s(he,ut),u(Vn,ut,null),s(ut,Wm),s(ut,Pr),d(e,jc,p),u(Sn,e,p),d(e,Uc,p),d(e,E,p),u(Wn,E,null),s(E,Lm),s(E,Cr),s(E,Hm),u(Tt,E,null),s(E,Om),s(E,Ir),s(E,Ym),s(E,qr),s(E,Em),s(E,Gr),s(E,Qm),s(E,yt),u(Ln,yt,null),s(yt,Xm),s(yt,Zr),d(e,kc,p),u(Hn,e,p),d(e,vc,p),d(e,ve,p),u(On,ve,null),s(ve,Km),s(ve,Fr),s(ve,eh),s(ve,zr),s(ve,th),s(ve,Br),s(ve,sh),s(ve,bt),u(Yn,bt,null),s(bt,nh),s(bt,Rr),d(e,$c,p),u(En,e,p),d(e,Jc,p),d(e,Q,p),u(Qn,Q,null),s(Q,ah),s(Q,Dr),s(Q,oh),u(_t,Q,null),s(Q,rh),s(Q,Nr),s(Q,ih),s(Q,Ar),s(Q,lh),s(Q,Vr),s(Q,ph),s(Q,xt),u(Xn,xt,null),s(xt,ch),s(xt,Sr),d(e,Pc,p),u(Kn,e,p),d(e,Cc,p),d(e,X,p),u(ea,X,null),s(X,dh),s(X,Wr),s(X,mh),u(wt,X,null),s(X,hh),s(X,Lr),s(X,gh),s(X,Hr),s(X,fh),s(X,Or),s(X,uh),s(X,Mt),u(ta,Mt,null),s(Mt,Th),s(Mt,Yr),d(e,Ic,p),u(sa,e,p),d(e,qc,p),d(e,na,p),d(e,Gc,p),u(aa,e,p),d(e,Zc,p),d(e,Z,p),u(oa,Z,null),s(Z,yh),s(Z,Er),s(Z,bh),u(jt,Z,null),s(Z,_h),s(Z,Qr),s(Z,xh),s(Z,Xr),s(Z,wh),s(Z,Kr),s(Z,Mh),u(Ut,Z,null),s(Z,jh),u(kt,Z,null),s(Z,Uh),s(Z,vt),u(ra,vt,null),s(vt,kh),s(vt,ei),d(e,Fc,p),u(ia,e,p),d(e,zc,p),d(e,G,p),u(la,G,null),s(G,vh),s(G,ti),s(G,$h),u($t,G,null),s(G,Jh),s(G,si),s(G,Ph),s(G,ni),s(G,Ch),s(G,ai),s(G,Ih),s(G,Ae),u(pa,Ae,null),s(Ae,qh),s(Ae,oi),s(Ae,Gh),s(Ae,ri),s(G,Zh),s(G,Jt),u(ca,Jt,null),s(Jt,Fh),s(Jt,ii),s(G,zh),s(G,Pt),u(da,Pt,null),s(Pt,Bh),s(Pt,li),s(G,Rh),s(G,Ct),u(ma,Ct,null),s(Ct,Dh),s(Ct,pi),d(e,Bc,p),d(e,ha,p),d(e,Rc,p),u(ga,e,p),d(e,Dc,p),d(e,F,p),u(fa,F,null),s(F,Nh),s(F,ci),s(F,Ah),u(It,F,null),s(F,Vh),s(F,di),s(F,Sh),s(F,mi),s(F,Wh),s(F,hi),s(F,Lh),s(F,qt),u(ua,qt,null),s(qt,Hh),s(qt,gi),s(F,Oh),s(F,Ve),u(Ta,Ve,null),s(Ve,Yh),s(Ve,fi),s(Ve,Eh),s(Ve,ui),s(F,Qh),s(F,Gt),u(ya,Gt,null),s(Gt,Xh),s(Gt,Ti),d(e,Nc,p),u(ba,e,p),d(e,Ac,p),d(e,ge,p),u(_a,ge,null),s(ge,Kh),s(ge,yi),s(ge,eg),s(ge,bi),s(ge,tg),s(ge,_i),s(ge,sg),u(Zt,ge,null),s(ge,ng),s(ge,Ft),u(xa,Ft,null),s(Ft,ag),s(Ft,xi),d(e,Vc,p),u(wa,e,p),d(e,Sc,p),d(e,K,p),u(Ma,K,null),s(K,og),s(K,wi),s(K,rg),u(zt,K,null),s(K,ig),s(K,Mi),s(K,lg),s(K,ji),s(K,pg),s(K,Ui),s(K,cg),s(K,ie),u(ja,ie,null),s(ie,dg),s(ie,ki),s(ie,mg),s(ie,vi),s(ie,hg),s(ie,$i),s(ie,gg),u(Bt,ie,null),s(ie,fg),s(ie,Ji),s(ie,ug),u(Rt,ie,null),d(e,Wc,p),u(Ua,e,p),d(e,Lc,p),d(e,N,p),u(ka,N,null),s(N,Tg),s(N,Pi),s(N,yg),u(Dt,N,null),s(N,bg),s(N,Ci),s(N,_g),s(N,Ii),s(N,xg),s(N,qi),s(N,wg),s(N,Gi),s(N,Mg),s(N,Nt),u(va,Nt,null),s(Nt,jg),s(Nt,Zi),d(e,Hc,p),u($a,e,p),d(e,Oc,p),d(e,A,p),u(Ja,A,null),s(A,Ug),s(A,Fi),s(A,kg),u(At,A,null),s(A,vg),u(Vt,A,null),s(A,$g),s(A,zi),s(A,Jg),s(A,Bi),s(A,Pg),s(A,Ri),s(A,Cg),s(A,St),u(Pa,St,null),s(St,Ig),s(St,Di),d(e,Yc,p),u(Ca,e,p),d(e,Ec,p),d(e,z,p),u(Ia,z,null),s(z,qg),s(z,Ni),s(z,Gg),u(Wt,z,null),s(z,Zg),s(z,Ai),s(z,Fg),s(z,Vi),s(z,zg),s(z,Si),s(z,Bg),u(Lt,z,null),s(z,Rg),s(z,Ht),u(qa,Ht,null),s(Ht,Dg),s(Ht,Wi),s(z,Ng),s(z,Ot),u(Ga,Ot,null),s(Ot,Ag),s(Ot,Li),d(e,Qc,p),u(Za,e,p),d(e,Xc,p),d(e,q,p),u(Fa,q,null),s(q,Vg),s(q,Hi),s(q,Sg),u(Yt,q,null),s(q,Wg),s(q,Oi),s(q,Lg),s(q,Yi),s(q,Hg),s(q,Ei),s(q,Og),s(q,Et),u(za,Et,null),s(Et,Yg),s(Et,Qi),s(q,Eg),s(q,Se),u(Ba,Se,null),s(Se,Qg),s(Se,Xi),s(Se,Xg),s(Se,Ki),s(q,Kg),s(q,Qt),u(Ra,Qt,null),s(Qt,ef),s(Qt,el),s(q,tf),s(q,Xt),u(Da,Xt,null),s(Xt,sf),s(Xt,tl),s(q,nf),s(q,Kt),u(Na,Kt,null),s(Kt,af),s(Kt,sl),d(e,Kc,p),u(Aa,e,p),d(e,ed,p),d(e,fe,p),u(Va,fe,null),s(fe,of),s(fe,nl),s(fe,rf),s(fe,al),s(fe,lf),s(fe,ol),s(fe,pf),u(es,fe,null),s(fe,cf),s(fe,ts),u(Sa,ts,null),s(ts,df),s(ts,rl),d(e,td,p),u(Wa,e,p),d(e,sd,p),d(e,V,p),u(La,V,null),s(V,mf),s(V,il),s(V,hf),s(V,ll),s(V,gf),u(ss,V,null),s(V,ff),s(V,pl),s(V,uf),s(V,cl),s(V,Tf),s(V,dl),s(V,yf),s(V,ns),u(Ha,ns,null),s(ns,bf),s(ns,ml),d(e,nd,p),u(Oa,e,p),d(e,ad,p),d(e,Ya,p),d(e,od,p),u(Ea,e,p),d(e,rd,p),d(e,ee,p),u(Qa,ee,null),s(ee,_f),s(ee,hl),s(ee,xf),u(as,ee,null),s(ee,wf),s(ee,gl),s(ee,Mf),s(ee,fl),s(ee,jf),s(ee,ul),s(ee,Uf),s(ee,De),u(Xa,De,null),s(De,kf),s(De,Tl),s(De,vf),s(De,yl),s(De,$f),s(De,bl),d(e,id,p),u(Ka,e,p),d(e,ld,p),d(e,te,p),u(eo,te,null),s(te,Jf),s(te,_l),s(te,Pf),u(os,te,null),s(te,Cf),s(te,xl),s(te,If),s(te,wl),s(te,qf),s(te,Ml),s(te,Gf),s(te,rs),u(to,rs,null),s(rs,Zf),s(rs,jl),d(e,pd,p),u(so,e,p),d(e,cd,p),d(e,se,p),u(no,se,null),s(se,Ff),s(se,Ul),s(se,zf),u(is,se,null),s(se,Bf),s(se,kl),s(se,Rf),s(se,vl),s(se,Df),s(se,$l),s(se,Nf),s(se,ls),u(ao,ls,null),s(ls,Af),s(ls,Jl),d(e,dd,p),u(oo,e,p),d(e,md,p),d(e,ne,p),u(ro,ne,null),s(ne,Vf),s(ne,Pl),s(ne,Sf),u(ps,ne,null),s(ne,Wf),s(ne,Cl),s(ne,Lf),s(ne,Il),s(ne,Hf),s(ne,ql),s(ne,Of),s(ne,cs),u(io,cs,null),s(cs,Yf),s(cs,Gl),d(e,hd,p),u(lo,e,p),d(e,gd,p),d(e,S,p),u(po,S,null),s(S,Ef),s(S,Zl),s(S,Qf),u(ds,S,null),s(S,Xf),u(ms,S,null),s(S,Kf),s(S,Fl),s(S,eu),s(S,zl),s(S,tu),s(S,Bl),s(S,su),s(S,hs),u(co,hs,null),s(hs,nu),s(hs,Rl),d(e,fd,p),u(mo,e,p),d(e,ud,p),d(e,ae,p),u(ho,ae,null),s(ae,au),s(ae,Dl),s(ae,ou),u(gs,ae,null),s(ae,ru),s(ae,Nl),s(ae,iu),s(ae,Al),s(ae,lu),s(ae,Vl),s(ae,pu),s(ae,We),u(go,We,null),s(We,cu),s(We,Sl),s(We,du),s(We,Wl),d(e,Td,p),u(fo,e,p),d(e,yd,p),d(e,C,p),u(uo,C,null),s(C,mu),s(C,Ll),s(C,hu),s(C,Hl),s(C,gu),s(C,Ol),s(C,fu),s(C,Yl),s(C,uu),s(C,El),s(C,Tu),s(C,fs),u(To,fs,null),s(fs,yu),s(fs,Ql),s(C,bu),s(C,Le),u(yo,Le,null),s(Le,_u),s(Le,Xl),s(Le,xu),u(us,Le,null),s(C,wu),s(C,Ts),u(bo,Ts,null),s(Ts,Mu),s(Ts,Kl),s(C,ju),s(C,ys),u(_o,ys,null),s(ys,Uu),s(ys,ep),s(C,ku),s(C,bs),u(xo,bs,null),s(bs,vu),s(bs,tp),s(C,$u),s(C,_s),u(wo,_s,null),s(_s,Ju),s(_s,sp),s(C,Pu),s(C,He),u(Mo,He,null),s(He,Cu),s(He,np),s(He,Iu),u(xs,He,null),s(C,qu),s(C,ws),u(jo,ws,null),s(ws,Gu),s(ws,ap),s(C,Zu),s(C,Ms),u(Uo,Ms,null),s(Ms,Fu),s(Ms,op),d(e,bd,p),u(ko,e,p),d(e,_d,p),d(e,mp,p),xd=!0},p(e,[p]){const $e={};p&2&&($e.$$scope={dirty:p,ctx:e}),Ee.$set($e);const ue={};p&2&&(ue.$$scope={dirty:p,ctx:e}),Qe.$set(ue);const vo={};p&2&&(vo.$$scope={dirty:p,ctx:e}),Xe.$set(vo);const Je={};p&2&&(Je.$$scope={dirty:p,ctx:e}),Ke.$set(Je);const $o={};p&2&&($o.$$scope={dirty:p,ctx:e}),tt.$set($o);const oe={};p&2&&(oe.$$scope={dirty:p,ctx:e}),nt.$set(oe);const Jo={};p&2&&(Jo.$$scope={dirty:p,ctx:e}),at.$set(Jo);const Pe={};p&2&&(Pe.$$scope={dirty:p,ctx:e}),rt.$set(Pe);const Po={};p&2&&(Po.$$scope={dirty:p,ctx:e}),it.$set(Po);const Te={};p&2&&(Te.$$scope={dirty:p,ctx:e}),pt.$set(Te);const Co={};p&2&&(Co.$$scope={dirty:p,ctx:e}),dt.$set(Co);const ye={};p&2&&(ye.$$scope={dirty:p,ctx:e}),ht.$set(ye);const Io={};p&2&&(Io.$$scope={dirty:p,ctx:e}),ft.$set(Io);const Ce={};p&2&&(Ce.$$scope={dirty:p,ctx:e}),Tt.$set(Ce);const qo={};p&2&&(qo.$$scope={dirty:p,ctx:e}),_t.$set(qo);const Ie={};p&2&&(Ie.$$scope={dirty:p,ctx:e}),wt.$set(Ie);const Go={};p&2&&(Go.$$scope={dirty:p,ctx:e}),jt.$set(Go);const be={};p&2&&(be.$$scope={dirty:p,ctx:e}),Ut.$set(be);const Zo={};p&2&&(Zo.$$scope={dirty:p,ctx:e}),kt.$set(Zo);const Re={};p&2&&(Re.$$scope={dirty:p,ctx:e}),$t.$set(Re);const Fo={};p&2&&(Fo.$$scope={dirty:p,ctx:e}),It.$set(Fo);const _e={};p&2&&(_e.$$scope={dirty:p,ctx:e}),Zt.$set(_e);const zo={};p&2&&(zo.$$scope={dirty:p,ctx:e}),zt.$set(zo);const xe={};p&2&&(xe.$$scope={dirty:p,ctx:e}),Bt.$set(xe);const Bo={};p&2&&(Bo.$$scope={dirty:p,ctx:e}),Rt.$set(Bo);const W={};p&2&&(W.$$scope={dirty:p,ctx:e}),Dt.$set(W);const Ro={};p&2&&(Ro.$$scope={dirty:p,ctx:e}),At.$set(Ro);const B={};p&2&&(B.$$scope={dirty:p,ctx:e}),Vt.$set(B);const Oe={};p&2&&(Oe.$$scope={dirty:p,ctx:e}),Wt.$set(Oe);const Do={};p&2&&(Do.$$scope={dirty:p,ctx:e}),Lt.$set(Do);const No={};p&2&&(No.$$scope={dirty:p,ctx:e}),Yt.$set(No);const Ao={};p&2&&(Ao.$$scope={dirty:p,ctx:e}),es.$set(Ao);const L={};p&2&&(L.$$scope={dirty:p,ctx:e}),ss.$set(L);const Vo={};p&2&&(Vo.$$scope={dirty:p,ctx:e}),as.$set(Vo);const Ye={};p&2&&(Ye.$$scope={dirty:p,ctx:e}),os.$set(Ye);const So={};p&2&&(So.$$scope={dirty:p,ctx:e}),is.$set(So);const qe={};p&2&&(qe.$$scope={dirty:p,ctx:e}),ps.$set(qe);const Wo={};p&2&&(Wo.$$scope={dirty:p,ctx:e}),ds.$set(Wo);const we={};p&2&&(we.$$scope={dirty:p,ctx:e}),ms.$set(we);const Me={};p&2&&(Me.$$scope={dirty:p,ctx:e}),gs.$set(Me);const re={};p&2&&(re.$$scope={dirty:p,ctx:e}),us.$set(re);const Lo={};p&2&&(Lo.$$scope={dirty:p,ctx:e}),xs.$set(Lo)},i(e){xd||(T(_.$$.fragment,e),T(vs.$$.fragment,e),T(Ps.$$.fragment,e),T(Is.$$.fragment,e),T(Gs.$$.fragment,e),T(Fs.$$.fragment,e),T(Bs.$$.fragment,e),T(Rs.$$.fragment,e),T(Ee.$$.fragment,e),T(Qe.$$.fragment,e),T(Ds.$$.fragment,e),T(As.$$.fragment,e),T(Xe.$$.fragment,e),T(Vs.$$.fragment,e),T(Ss.$$.fragment,e),T(Ls.$$.fragment,e),T(Os.$$.fragment,e),T(Xs.$$.fragment,e),T(tn.$$.fragment,e),T(nn.$$.fragment,e),T(rn.$$.fragment,e),T(mn.$$.fragment,e),T(gn.$$.fragment,e),T(un.$$.fragment,e),T(yn.$$.fragment,e),T(bn.$$.fragment,e),T(Ke.$$.fragment,e),T(_n.$$.fragment,e),T(xn.$$.fragment,e),T(wn.$$.fragment,e),T(tt.$$.fragment,e),T(Mn.$$.fragment,e),T(jn.$$.fragment,e),T(Un.$$.fragment,e),T(nt.$$.fragment,e),T(at.$$.fragment,e),T(kn.$$.fragment,e),T(vn.$$.fragment,e),T($n.$$.fragment,e),T(rt.$$.fragment,e),T(it.$$.fragment,e),T(Jn.$$.fragment,e),T(Pn.$$.fragment,e),T(In.$$.fragment,e),T(qn.$$.fragment,e),T(pt.$$.fragment,e),T(Gn.$$.fragment,e),T(Zn.$$.fragment,e),T(Fn.$$.fragment,e),T(dt.$$.fragment,e),T(zn.$$.fragment,e),T(Bn.$$.fragment,e),T(Rn.$$.fragment,e),T(ht.$$.fragment,e),T(Dn.$$.fragment,e),T(Nn.$$.fragment,e),T(An.$$.fragment,e),T(ft.$$.fragment,e),T(Vn.$$.fragment,e),T(Sn.$$.fragment,e),T(Wn.$$.fragment,e),T(Tt.$$.fragment,e),T(Ln.$$.fragment,e),T(Hn.$$.fragment,e),T(On.$$.fragment,e),T(Yn.$$.fragment,e),T(En.$$.fragment,e),T(Qn.$$.fragment,e),T(_t.$$.fragment,e),T(Xn.$$.fragment,e),T(Kn.$$.fragment,e),T(ea.$$.fragment,e),T(wt.$$.fragment,e),T(ta.$$.fragment,e),T(sa.$$.fragment,e),T(aa.$$.fragment,e),T(oa.$$.fragment,e),T(jt.$$.fragment,e),T(Ut.$$.fragment,e),T(kt.$$.fragment,e),T(ra.$$.fragment,e),T(ia.$$.fragment,e),T(la.$$.fragment,e),T($t.$$.fragment,e),T(pa.$$.fragment,e),T(ca.$$.fragment,e),T(da.$$.fragment,e),T(ma.$$.fragment,e),T(ga.$$.fragment,e),T(fa.$$.fragment,e),T(It.$$.fragment,e),T(ua.$$.fragment,e),T(Ta.$$.fragment,e),T(ya.$$.fragment,e),T(ba.$$.fragment,e),T(_a.$$.fragment,e),T(Zt.$$.fragment,e),T(xa.$$.fragment,e),T(wa.$$.fragment,e),T(Ma.$$.fragment,e),T(zt.$$.fragment,e),T(ja.$$.fragment,e),T(Bt.$$.fragment,e),T(Rt.$$.fragment,e),T(Ua.$$.fragment,e),T(ka.$$.fragment,e),T(Dt.$$.fragment,e),T(va.$$.fragment,e),T($a.$$.fragment,e),T(Ja.$$.fragment,e),T(At.$$.fragment,e),T(Vt.$$.fragment,e),T(Pa.$$.fragment,e),T(Ca.$$.fragment,e),T(Ia.$$.fragment,e),T(Wt.$$.fragment,e),T(Lt.$$.fragment,e),T(qa.$$.fragment,e),T(Ga.$$.fragment,e),T(Za.$$.fragment,e),T(Fa.$$.fragment,e),T(Yt.$$.fragment,e),T(za.$$.fragment,e),T(Ba.$$.fragment,e),T(Ra.$$.fragment,e),T(Da.$$.fragment,e),T(Na.$$.fragment,e),T(Aa.$$.fragment,e),T(Va.$$.fragment,e),T(es.$$.fragment,e),T(Sa.$$.fragment,e),T(Wa.$$.fragment,e),T(La.$$.fragment,e),T(ss.$$.fragment,e),T(Ha.$$.fragment,e),T(Oa.$$.fragment,e),T(Ea.$$.fragment,e),T(Qa.$$.fragment,e),T(as.$$.fragment,e),T(Xa.$$.fragment,e),T(Ka.$$.fragment,e),T(eo.$$.fragment,e),T(os.$$.fragment,e),T(to.$$.fragment,e),T(so.$$.fragment,e),T(no.$$.fragment,e),T(is.$$.fragment,e),T(ao.$$.fragment,e),T(oo.$$.fragment,e),T(ro.$$.fragment,e),T(ps.$$.fragment,e),T(io.$$.fragment,e),T(lo.$$.fragment,e),T(po.$$.fragment,e),T(ds.$$.fragment,e),T(ms.$$.fragment,e),T(co.$$.fragment,e),T(mo.$$.fragment,e),T(ho.$$.fragment,e),T(gs.$$.fragment,e),T(go.$$.fragment,e),T(fo.$$.fragment,e),T(uo.$$.fragment,e),T(To.$$.fragment,e),T(yo.$$.fragment,e),T(us.$$.fragment,e),T(bo.$$.fragment,e),T(_o.$$.fragment,e),T(xo.$$.fragment,e),T(wo.$$.fragment,e),T(Mo.$$.fragment,e),T(xs.$$.fragment,e),T(jo.$$.fragment,e),T(Uo.$$.fragment,e),T(ko.$$.fragment,e),xd=!0)},o(e){y(_.$$.fragment,e),y(vs.$$.fragment,e),y(Ps.$$.fragment,e),y(Is.$$.fragment,e),y(Gs.$$.fragment,e),y(Fs.$$.fragment,e),y(Bs.$$.fragment,e),y(Rs.$$.fragment,e),y(Ee.$$.fragment,e),y(Qe.$$.fragment,e),y(Ds.$$.fragment,e),y(As.$$.fragment,e),y(Xe.$$.fragment,e),y(Vs.$$.fragment,e),y(Ss.$$.fragment,e),y(Ls.$$.fragment,e),y(Os.$$.fragment,e),y(Xs.$$.fragment,e),y(tn.$$.fragment,e),y(nn.$$.fragment,e),y(rn.$$.fragment,e),y(mn.$$.fragment,e),y(gn.$$.fragment,e),y(un.$$.fragment,e),y(yn.$$.fragment,e),y(bn.$$.fragment,e),y(Ke.$$.fragment,e),y(_n.$$.fragment,e),y(xn.$$.fragment,e),y(wn.$$.fragment,e),y(tt.$$.fragment,e),y(Mn.$$.fragment,e),y(jn.$$.fragment,e),y(Un.$$.fragment,e),y(nt.$$.fragment,e),y(at.$$.fragment,e),y(kn.$$.fragment,e),y(vn.$$.fragment,e),y($n.$$.fragment,e),y(rt.$$.fragment,e),y(it.$$.fragment,e),y(Jn.$$.fragment,e),y(Pn.$$.fragment,e),y(In.$$.fragment,e),y(qn.$$.fragment,e),y(pt.$$.fragment,e),y(Gn.$$.fragment,e),y(Zn.$$.fragment,e),y(Fn.$$.fragment,e),y(dt.$$.fragment,e),y(zn.$$.fragment,e),y(Bn.$$.fragment,e),y(Rn.$$.fragment,e),y(ht.$$.fragment,e),y(Dn.$$.fragment,e),y(Nn.$$.fragment,e),y(An.$$.fragment,e),y(ft.$$.fragment,e),y(Vn.$$.fragment,e),y(Sn.$$.fragment,e),y(Wn.$$.fragment,e),y(Tt.$$.fragment,e),y(Ln.$$.fragment,e),y(Hn.$$.fragment,e),y(On.$$.fragment,e),y(Yn.$$.fragment,e),y(En.$$.fragment,e),y(Qn.$$.fragment,e),y(_t.$$.fragment,e),y(Xn.$$.fragment,e),y(Kn.$$.fragment,e),y(ea.$$.fragment,e),y(wt.$$.fragment,e),y(ta.$$.fragment,e),y(sa.$$.fragment,e),y(aa.$$.fragment,e),y(oa.$$.fragment,e),y(jt.$$.fragment,e),y(Ut.$$.fragment,e),y(kt.$$.fragment,e),y(ra.$$.fragment,e),y(ia.$$.fragment,e),y(la.$$.fragment,e),y($t.$$.fragment,e),y(pa.$$.fragment,e),y(ca.$$.fragment,e),y(da.$$.fragment,e),y(ma.$$.fragment,e),y(ga.$$.fragment,e),y(fa.$$.fragment,e),y(It.$$.fragment,e),y(ua.$$.fragment,e),y(Ta.$$.fragment,e),y(ya.$$.fragment,e),y(ba.$$.fragment,e),y(_a.$$.fragment,e),y(Zt.$$.fragment,e),y(xa.$$.fragment,e),y(wa.$$.fragment,e),y(Ma.$$.fragment,e),y(zt.$$.fragment,e),y(ja.$$.fragment,e),y(Bt.$$.fragment,e),y(Rt.$$.fragment,e),y(Ua.$$.fragment,e),y(ka.$$.fragment,e),y(Dt.$$.fragment,e),y(va.$$.fragment,e),y($a.$$.fragment,e),y(Ja.$$.fragment,e),y(At.$$.fragment,e),y(Vt.$$.fragment,e),y(Pa.$$.fragment,e),y(Ca.$$.fragment,e),y(Ia.$$.fragment,e),y(Wt.$$.fragment,e),y(Lt.$$.fragment,e),y(qa.$$.fragment,e),y(Ga.$$.fragment,e),y(Za.$$.fragment,e),y(Fa.$$.fragment,e),y(Yt.$$.fragment,e),y(za.$$.fragment,e),y(Ba.$$.fragment,e),y(Ra.$$.fragment,e),y(Da.$$.fragment,e),y(Na.$$.fragment,e),y(Aa.$$.fragment,e),y(Va.$$.fragment,e),y(es.$$.fragment,e),y(Sa.$$.fragment,e),y(Wa.$$.fragment,e),y(La.$$.fragment,e),y(ss.$$.fragment,e),y(Ha.$$.fragment,e),y(Oa.$$.fragment,e),y(Ea.$$.fragment,e),y(Qa.$$.fragment,e),y(as.$$.fragment,e),y(Xa.$$.fragment,e),y(Ka.$$.fragment,e),y(eo.$$.fragment,e),y(os.$$.fragment,e),y(to.$$.fragment,e),y(so.$$.fragment,e),y(no.$$.fragment,e),y(is.$$.fragment,e),y(ao.$$.fragment,e),y(oo.$$.fragment,e),y(ro.$$.fragment,e),y(ps.$$.fragment,e),y(io.$$.fragment,e),y(lo.$$.fragment,e),y(po.$$.fragment,e),y(ds.$$.fragment,e),y(ms.$$.fragment,e),y(co.$$.fragment,e),y(mo.$$.fragment,e),y(ho.$$.fragment,e),y(gs.$$.fragment,e),y(go.$$.fragment,e),y(fo.$$.fragment,e),y(uo.$$.fragment,e),y(To.$$.fragment,e),y(yo.$$.fragment,e),y(us.$$.fragment,e),y(bo.$$.fragment,e),y(_o.$$.fragment,e),y(xo.$$.fragment,e),y(wo.$$.fragment,e),y(Mo.$$.fragment,e),y(xs.$$.fragment,e),y(jo.$$.fragment,e),y(Uo.$$.fragment,e),y(ko.$$.fragment,e),xd=!1},d(e){e&&(r(w),r(h),r(c),r(t),r(x),r(hp),r(Us),r(gp),r(ks),r(fp),r(up),r($s),r(Tp),r(Js),r(yp),r(bp),r(Cs),r(_p),r(xp),r(qs),r(wp),r(Mp),r(Zs),r(jp),r(Up),r(zs),r(kp),r(vp),r(pe),r($p),r(Jp),r(Ns),r(Pp),r(Cp),r(Ip),r(qp),r(Gp),r(Ws),r(Zp),r(Fp),r(Hs),r(zp),r(Bp),r(Ys),r(Rp),r(Es),r(Dp),r(Qs),r(Np),r(Ap),r(Ks),r(Vp),r(en),r(Sp),r(Wp),r(sn),r(Lp),r(Hp),r(an),r(Op),r(on),r(Yp),r(Ep),r(ln),r(Qp),r(pn),r(Xp),r(cn),r(Kp),r(dn),r(ec),r(tc),r(hn),r(sc),r(nc),r(fn),r(ac),r(oc),r(Tn),r(rc),r(ic),r(H),r(lc),r(pc),r(ce),r(cc),r(dc),r(D),r(mc),r(hc),r(de),r(gc),r(fc),r(Cn),r(uc),r(Tc),r(O),r(yc),r(bc),r(Y),r(_c),r(xc),r(me),r(wc),r(Mc),r(he),r(jc),r(Uc),r(E),r(kc),r(vc),r(ve),r($c),r(Jc),r(Q),r(Pc),r(Cc),r(X),r(Ic),r(qc),r(na),r(Gc),r(Zc),r(Z),r(Fc),r(zc),r(G),r(Bc),r(ha),r(Rc),r(Dc),r(F),r(Nc),r(Ac),r(ge),r(Vc),r(Sc),r(K),r(Wc),r(Lc),r(N),r(Hc),r(Oc),r(A),r(Yc),r(Ec),r(z),r(Qc),r(Xc),r(q),r(Kc),r(ed),r(fe),r(td),r(sd),r(V),r(nd),r(ad),r(Ya),r(od),r(rd),r(ee),r(id),r(ld),r(te),r(pd),r(cd),r(se),r(dd),r(md),r(ne),r(hd),r(gd),r(S),r(fd),r(ud),r(ae),r(Td),r(yd),r(C),r(bd),r(_d),r(mp)),r(o),b(_,e),b(vs,e),b(Ps,e),b(Is,e),b(Gs,e),b(Fs,e),b(Bs,e),b(Rs),b(Ee),b(Qe),b(Ds,e),b(As,e),b(Xe,e),b(Vs,e),b(Ss,e),b(Ls,e),b(Os,e),b(Xs,e),b(tn,e),b(nn,e),b(rn,e),b(mn,e),b(gn,e),b(un,e),b(yn,e),b(bn),b(Ke),b(_n),b(xn,e),b(wn),b(tt),b(Mn),b(jn,e),b(Un),b(nt),b(at),b(kn),b(vn,e),b($n),b(rt),b(it),b(Jn),b(Pn,e),b(In,e),b(qn),b(pt),b(Gn),b(Zn,e),b(Fn),b(dt),b(zn),b(Bn,e),b(Rn),b(ht),b(Dn),b(Nn,e),b(An),b(ft),b(Vn),b(Sn,e),b(Wn),b(Tt),b(Ln),b(Hn,e),b(On),b(Yn),b(En,e),b(Qn),b(_t),b(Xn),b(Kn,e),b(ea),b(wt),b(ta),b(sa,e),b(aa,e),b(oa),b(jt),b(Ut),b(kt),b(ra),b(ia,e),b(la),b($t),b(pa),b(ca),b(da),b(ma),b(ga,e),b(fa),b(It),b(ua),b(Ta),b(ya),b(ba,e),b(_a),b(Zt),b(xa),b(wa,e),b(Ma),b(zt),b(ja),b(Bt),b(Rt),b(Ua,e),b(ka),b(Dt),b(va),b($a,e),b(Ja),b(At),b(Vt),b(Pa),b(Ca,e),b(Ia),b(Wt),b(Lt),b(qa),b(Ga),b(Za,e),b(Fa),b(Yt),b(za),b(Ba),b(Ra),b(Da),b(Na),b(Aa,e),b(Va),b(es),b(Sa),b(Wa,e),b(La),b(ss),b(Ha),b(Oa,e),b(Ea,e),b(Qa),b(as),b(Xa),b(Ka,e),b(eo),b(os),b(to),b(so,e),b(no),b(is),b(ao),b(oo,e),b(ro),b(ps),b(io),b(lo,e),b(po),b(ds),b(ms),b(co),b(mo,e),b(ho),b(gs),b(go),b(fo,e),b(uo),b(To),b(yo),b(us),b(bo),b(_o),b(xo),b(wo),b(Mo),b(xs),b(jo),b(Uo),b(ko,e)}}}const Ux='{"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":"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":"ImageTextToTextPipeline","local":"transformers.ImageTextToTextPipeline","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 kx(M){return v_(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Gx extends $_{constructor(o){super(),J_(this,o,kx,jx,k_,{})}}export{Gx as component};
