import{s as Aw,o as Ww,n as J}from"../chunks/scheduler.9991993c.js";import{S as Lw,i as Sw,g as r,s,r as f,A as Ow,h as i,f as o,c as a,j as _,u as g,x as m,k as v,y as n,a as d,v as u,d as T,t as b,w as y}from"../chunks/index.7fc9a5e7.js";import{T as Ed}from"../chunks/Tip.9de92fc6.js";import{D as j}from"../chunks/Docstring.8180f571.js";import{C as U}from"../chunks/CodeBlock.e11cba92.js";import{E as P}from"../chunks/ExampleCodeBlock.a03fccd6.js";import{H as $}from"../chunks/Heading.e3de321f.js";function Hw(k){let l,M="Examples:",h,c,w;return c=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTJDJTIwQXV0b01vZGVsRm9yVG9rZW5DbGFzc2lmaWNhdGlvbiUyQyUyMEF1dG9Ub2tlbml6ZXIlMEElMEElMjMlMjBTZW50aW1lbnQlMjBhbmFseXNpcyUyMHBpcGVsaW5lJTBBYW5hbHl6ZXIlMjAlM0QlMjBwaXBlbGluZSglMjJzZW50aW1lbnQtYW5hbHlzaXMlMjIpJTBBJTBBJTIzJTIwUXVlc3Rpb24lMjBhbnN3ZXJpbmclMjBwaXBlbGluZSUyQyUyMHNwZWNpZnlpbmclMjB0aGUlMjBjaGVja3BvaW50JTIwaWRlbnRpZmllciUwQW9yYWNsZSUyMCUzRCUyMHBpcGVsaW5lKCUwQSUyMCUyMCUyMCUyMCUyMnF1ZXN0aW9uLWFuc3dlcmluZyUyMiUyQyUyMG1vZGVsJTNEJTIyZGlzdGlsYmVydC1iYXNlLWNhc2VkLWRpc3RpbGxlZC1zcXVhZCUyMiUyQyUyMHRva2VuaXplciUzRCUyMmJlcnQtYmFzZS1jYXNlZCUyMiUwQSklMEElMEElMjMlMjBOYW1lZCUyMGVudGl0eSUyMHJlY29nbml0aW9uJTIwcGlwZWxpbmUlMkMlMjBwYXNzaW5nJTIwaW4lMjBhJTIwc3BlY2lmaWMlMjBtb2RlbCUyMGFuZCUyMHRva2VuaXplciUwQW1vZGVsJTIwJTNEJTIwQXV0b01vZGVsRm9yVG9rZW5DbGFzc2lmaWNhdGlvbi5mcm9tX3ByZXRyYWluZWQoJTIyZGJtZHolMkZiZXJ0LWxhcmdlLWNhc2VkLWZpbmV0dW5lZC1jb25sbDAzLWVuZ2xpc2glMjIpJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIyYmVydC1iYXNlLWNhc2VkJTIyKSUwQXJlY29nbml6ZXIlMjAlM0QlMjBwaXBlbGluZSglMjJuZXIlMjIlMkMlMjBtb2RlbCUzRG1vZGVsJTJDJTIwdG9rZW5pemVyJTNEdG9rZW5pemVyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline, AutoModelForTokenClassification, AutoTokenizer

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

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

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Named entity recognition pipeline, passing in a specific model and tokenizer</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = AutoModelForTokenClassification.from_pretrained(<span class="hljs-string">&quot;dbmdz/bert-large-cased-finetuned-conll03-english&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;bert-base-cased&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>recognizer = pipeline(<span class="hljs-string">&quot;ner&quot;</span>, model=model, tokenizer=tokenizer)`,wrap:!1}}),{c(){l=r("p"),l.textContent=M,h=s(),f(c.$$.fragment)},l(t){l=i(t,"P",{"data-svelte-h":!0}),m(l)!=="svelte-kvfsh7"&&(l.textContent=M),h=a(t),g(c.$$.fragment,t)},m(t,x){d(t,l,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(o(l),o(h)),y(c,t)}}}function Yw(k){let l,M="然而，这并不自动意味着性能提升。它可能是一个10倍的加速或5倍的减速，具体取决于硬件、数据和实际使用的模型。",h,c,w="主要是加速的示例：";return{c(){l=r("p"),l.textContent=M,h=s(),c=r("p"),c.textContent=w},l(t){l=i(t,"P",{"data-svelte-h":!0}),m(l)!=="svelte-jbqn8u"&&(l.textContent=M),h=a(t),c=i(t,"P",{"data-svelte-h":!0}),m(c)!=="svelte-yo44t3"&&(c.textContent=w)},m(t,x){d(t,l,x),d(t,h,x),d(t,c,x)},p:J,d(t){t&&(o(l),o(h),o(c))}}}function Ew(k){let l,M="Example:",h,c,w;return c=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBY2xhc3NpZmllciUyMCUzRCUyMHBpcGVsaW5lKG1vZGVsJTNEJTIyc3VwZXJiJTJGd2F2MnZlYzItYmFzZS1zdXBlcmIta3MlMjIpJTBBY2xhc3NpZmllciglMjJodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGZGF0YXNldHMlMkZOYXJzaWwlMkZhc3JfZHVtbXklMkZyZXNvbHZlJTJGbWFpbiUyRjEuZmxhYyUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

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

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

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

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

<span class="hljs-meta">&gt;&gt;&gt; </span>music_generator = pipeline(task=<span class="hljs-string">&quot;text-to-audio&quot;</span>, model=<span class="hljs-string">&quot;facebook/musicgen-small&quot;</span>, framework=<span class="hljs-string">&quot;pt&quot;</span>)

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

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = music_generator(<span class="hljs-string">&quot;Techno music with high melodic riffs&quot;</span>, generate_kwargs=generate_kwargs)`,wrap:!1}}),{c(){l=r("p"),l.textContent=M,h=s(),f(c.$$.fragment)},l(t){l=i(t,"P",{"data-svelte-h":!0}),m(l)!=="svelte-11lpom8"&&(l.textContent=M),h=a(t),g(c.$$.fragment,t)},m(t,x){d(t,l,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(o(l),o(h)),y(c,t)}}}function ex(k){let l,M=`You can specify parameters passed to the model by using <code>TextToAudioPipeline.__call__.forward_params</code> or
<code>TextToAudioPipeline.__call__.generate_kwargs</code>.`,h,c,w;return c=new P({props:{anchor:"transformers.TextToAudioPipeline.example-2",$$slots:{default:[Kw]},$$scope:{ctx:k}}}),{c(){l=r("p"),l.innerHTML=M,h=s(),f(c.$$.fragment)},l(t){l=i(t,"P",{"data-svelte-h":!0}),m(l)!=="svelte-1g6q8re"&&(l.innerHTML=M),h=a(t),g(c.$$.fragment,t)},m(t,x){d(t,l,x),d(t,h,x),u(c,t,x),w=!0},p(t,x){const up={};x&2&&(up.$$scope={dirty:x,ctx:t}),c.$set(up)},i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(o(l),o(h)),y(c,t)}}}function tx(k){let l,M="Example:",h,c,w;return c=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBJTBBZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJhc2hyYXElMkZlc2M1MCUyMiklMEFhdWRpbyUyMCUzRCUyMG5leHQoaXRlcihkYXRhc2V0JTVCJTIydHJhaW4lMjIlNUQlNUIlMjJhdWRpbyUyMiU1RCkpJTVCJTIyYXJyYXklMjIlNUQlMEFjbGFzc2lmaWVyJTIwJTNEJTIwcGlwZWxpbmUodGFzayUzRCUyMnplcm8tc2hvdC1hdWRpby1jbGFzc2lmaWNhdGlvbiUyMiUyQyUyMG1vZGVsJTNEJTIybGFpb24lMkZjbGFwLWh0c2F0LXVuZnVzZWQlMjIpJTBBY2xhc3NpZmllcihhdWRpbyUyQyUyMGNhbmRpZGF0ZV9sYWJlbHMlM0QlNUIlMjJTb3VuZCUyMG9mJTIwYSUyMGRvZyUyMiUyQyUyMCUyMlNvdW5kJTIwb2YlMjB2YWNjdW0lMjBjbGVhbmVyJTIyJTVEKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset

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

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

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

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

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

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

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

<span class="hljs-meta">&gt;&gt;&gt; </span>segments[<span class="hljs-number">0</span>][<span class="hljs-string">&quot;mask&quot;</span>].size
(<span class="hljs-number">768</span>, <span class="hljs-number">512</span>)`,wrap:!1}}),{c(){l=r("p"),l.textContent=M,h=s(),f(c.$$.fragment)},l(t){l=i(t,"P",{"data-svelte-h":!0}),m(l)!=="svelte-11lpom8"&&(l.textContent=M),h=a(t),g(c.$$.fragment,t)},m(t,x){d(t,l,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(o(l),o(h)),y(c,t)}}}function ox(k){let l,M="Example:",h,c,w;return c=new U({props:{code:"ZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBaW1wb3J0JTIwcmVxdWVzdHMlMEElMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwcGlwZWxpbmUlMEElMEF1cHNjYWxlciUyMCUzRCUyMHBpcGVsaW5lKCUyMmltYWdlLXRvLWltYWdlJTIyJTJDJTIwbW9kZWwlM0QlMjJjYWlkYXMlMkZzd2luMlNSLWNsYXNzaWNhbC1zci14Mi02NCUyMiklMEFpbWclMjAlM0QlMjBJbWFnZS5vcGVuKHJlcXVlc3RzLmdldCglMjJodHRwJTNBJTJGJTJGaW1hZ2VzLmNvY29kYXRhc2V0Lm9yZyUyRnZhbDIwMTclMkYwMDAwMDAwMzk3NjkuanBnJTIyJTJDJTIwc3RyZWFtJTNEVHJ1ZSkucmF3KSUwQWltZyUyMCUzRCUyMGltZy5yZXNpemUoKDY0JTJDJTIwNjQpKSUwQXVwc2NhbGVkX2ltZyUyMCUzRCUyMHVwc2NhbGVyKGltZyklMEFpbWcuc2l6ZSUwQSUwQXVwc2NhbGVkX2ltZy5zaXpl",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> PIL <span class="hljs-keyword">import</span> Image
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> requests

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

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

<span class="hljs-meta">&gt;&gt;&gt; </span>upscaled_img.size
(<span class="hljs-number">144</span>, <span class="hljs-number">144</span>)`,wrap:!1}}),{c(){l=r("p"),l.textContent=M,h=s(),f(c.$$.fragment)},l(t){l=i(t,"P",{"data-svelte-h":!0}),m(l)!=="svelte-11lpom8"&&(l.textContent=M),h=a(t),g(c.$$.fragment,t)},m(t,x){d(t,l,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(o(l),o(h)),y(c,t)}}}function rx(k){let l,M="Example:",h,c,w;return c=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZGV0ZWN0b3IlMjAlM0QlMjBwaXBlbGluZShtb2RlbCUzRCUyMmZhY2Vib29rJTJGZGV0ci1yZXNuZXQtNTAlMjIpJTBBZGV0ZWN0b3IoJTIyaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRmRhdGFzZXRzJTJGTmFyc2lsJTJGaW1hZ2VfZHVtbXklMkZyYXclMkZtYWluJTJGcGFycm90cy5wbmclMjIpJTBBJTBBJTIzJTIweCUyQyUyMHklMjAlMjBhcmUlMjBleHByZXNzZWQlMjByZWxhdGl2ZSUyMHRvJTIwdGhlJTIwdG9wJTIwbGVmdCUyMGhhbmQlMjBjb3JuZXIu",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

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

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

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

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

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

<span class="hljs-meta">&gt;&gt;&gt; </span>detector(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;https://huggingface.co/datasets/Narsil/image_dummy/raw/main/parrots.png&quot;</span>,
<span class="hljs-meta">... </span>    candidate_labels=[<span class="hljs-string">&quot;head&quot;</span>, <span class="hljs-string">&quot;bird&quot;</span>],
<span class="hljs-meta">... </span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.119</span>, <span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;bird&#x27;</span>, <span class="hljs-string">&#x27;box&#x27;</span>: {<span class="hljs-string">&#x27;xmin&#x27;</span>: <span class="hljs-number">71</span>, <span class="hljs-string">&#x27;ymin&#x27;</span>: <span class="hljs-number">170</span>, <span class="hljs-string">&#x27;xmax&#x27;</span>: <span class="hljs-number">410</span>, <span class="hljs-string">&#x27;ymax&#x27;</span>: <span class="hljs-number">508</span>}}]`,wrap:!1}}),{c(){l=r("p"),l.textContent=M,h=s(),f(c.$$.fragment)},l(t){l=i(t,"P",{"data-svelte-h":!0}),m(l)!=="svelte-11lpom8"&&(l.textContent=M),h=a(t),g(c.$$.fragment,t)},m(t,x){d(t,l,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(o(l),o(h)),y(c,t)}}}function px(k){let l,M="Usage:",h,c,w;return c=new U({props:{code:"Y29udmVyc2F0aW9uJTIwJTNEJTIwQ29udmVyc2F0aW9uKCUyMkdvaW5nJTIwdG8lMjB0aGUlMjBtb3ZpZXMlMjB0b25pZ2h0JTIwLSUyMGFueSUyMHN1Z2dlc3Rpb25zJTNGJTIyKSUwQWNvbnZlcnNhdGlvbi5hZGRfbWVzc2FnZSglN0IlMjJyb2xlJTIyJTNBJTIwJTIyYXNzaXN0YW50JTIyJTJDJTIwJTIyY29udGVudCUyMiUzQSUyMCUyMlRoZSUyMEJpZyUyMGxlYm93c2tpLiUyMiU3RCklMEFjb252ZXJzYXRpb24uYWRkX21lc3NhZ2UoJTdCJTIycm9sZSUyMiUzQSUyMCUyMnVzZXIlMjIlMkMlMjAlMjJjb250ZW50JTIyJTNBJTIwJTIySXMlMjBpdCUyMGdvb2QlM0YlMjIlN0Qp",highlighted:`conversation = Conversation(<span class="hljs-string">&quot;Going to the movies tonight - any suggestions?&quot;</span>)
conversation.add_message({<span class="hljs-string">&quot;role&quot;</span>: <span class="hljs-string">&quot;assistant&quot;</span>, <span class="hljs-string">&quot;content&quot;</span>: <span class="hljs-string">&quot;The Big lebowski.&quot;</span>})
conversation.add_message({<span class="hljs-string">&quot;role&quot;</span>: <span class="hljs-string">&quot;user&quot;</span>, <span class="hljs-string">&quot;content&quot;</span>: <span class="hljs-string">&quot;Is it good?&quot;</span>})`,wrap:!1}}),{c(){l=r("p"),l.textContent=M,h=s(),f(c.$$.fragment)},l(t){l=i(t,"P",{"data-svelte-h":!0}),m(l)!=="svelte-5wyjqd"&&(l.textContent=M),h=a(t),g(c.$$.fragment,t)},m(t,x){d(t,l,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(o(l),o(h)),y(c,t)}}}function cx(k){let l,M="Example:",h,c,w;return c=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTJDJTIwQ29udmVyc2F0aW9uJTBBJTBBY2hhdGJvdCUyMCUzRCUyMHBpcGVsaW5lKG1vZGVsJTNEJTIyZmFjZWJvb2slMkZibGVuZGVyYm90LTQwME0tZGlzdGlsbCUyMiklMEElMjMlMjBDb252ZXJzYXRpb24lMjBvYmplY3RzJTIwaW5pdGlhbGl6ZWQlMjB3aXRoJTIwYSUyMHN0cmluZyUyMHdpbGwlMjB0cmVhdCUyMGl0JTIwYXMlMjBhJTIwdXNlciUyMG1lc3NhZ2UlMEFjb252ZXJzYXRpb24lMjAlM0QlMjBDb252ZXJzYXRpb24oJTIySSdtJTIwbG9va2luZyUyMGZvciUyMGElMjBtb3ZpZSUyMC0lMjB3aGF0J3MlMjB5b3VyJTIwZmF2b3VyaXRlJTIwb25lJTNGJTIyKSUwQWNvbnZlcnNhdGlvbiUyMCUzRCUyMGNoYXRib3QoY29udmVyc2F0aW9uKSUwQWNvbnZlcnNhdGlvbi5tZXNzYWdlcyU1Qi0xJTVEJTVCJTIyY29udGVudCUyMiU1RCUwQSUwQWNvbnZlcnNhdGlvbi5hZGRfbWVzc2FnZSglN0IlMjJyb2xlJTIyJTNBJTIwJTIydXNlciUyMiUyQyUyMCUyMmNvbnRlbnQlMjIlM0ElMjAlMjJUaGF0J3MlMjBpbnRlcmVzdGluZyUyQyUyMHdoeSUyMGRvJTIweW91JTIwbGlrZSUyMGFjdGlvbiUyMG1vdmllcyUzRiUyMiU3RCklMEFjb252ZXJzYXRpb24lMjAlM0QlMjBjaGF0Ym90KGNvbnZlcnNhdGlvbiklMEFjb252ZXJzYXRpb24ubWVzc2FnZXMlNUItMSU1RCU1QiUyMmNvbnRlbnQlMjIlNUQ=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline, Conversation
<span class="hljs-comment"># Any model with a chat template can be used in a ConversationalPipeline.</span>

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

&gt;&gt;&gt; conversation.add_message({&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;That&#x27;</span>s interesting, why do you like action movies?<span class="hljs-string">&quot;})
&gt;&gt;&gt; conversation = chatbot(conversation)
&gt;&gt;&gt; conversation.messages[-1][&quot;</span>content<span class="hljs-string">&quot;]
&#x27; I think it&#x27;s just because they&#x27;re so fast-paced and action-fantastic.&#x27;</span>`,wrap:!1}}),{c(){l=r("p"),l.textContent=M,h=s(),f(c.$$.fragment)},l(t){l=i(t,"P",{"data-svelte-h":!0}),m(l)!=="svelte-11lpom8"&&(l.textContent=M),h=a(t),g(c.$$.fragment,t)},m(t,x){d(t,l,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(o(l),o(h)),y(c,t)}}}function dx(k){let l,M="Example:",h,c,w;return c=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZmlsbF9tYXNrZXIlMjAlM0QlMjBwaXBlbGluZShtb2RlbCUzRCUyMmJlcnQtYmFzZS11bmNhc2VkJTIyKSUwQWZpbGxfbWFza2VyKCUyMlRoaXMlMjBpcyUyMGElMjBzaW1wbGUlMjAlNUJNQVNLJTVELiUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

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

<span class="hljs-meta">&gt;&gt;&gt; </span>fill_masker = pipeline(model=<span class="hljs-string">&quot;bert-base-uncased&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>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(){l=r("p"),l.textContent=M,h=s(),f(c.$$.fragment)},l(t){l=i(t,"P",{"data-svelte-h":!0}),m(l)!=="svelte-1pudxyz"&&(l.textContent=M),h=a(t),g(c.$$.fragment,t)},m(t,x){d(t,l,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(o(l),o(h)),y(c,t)}}}function fx(k){let l,M;return l=new P({props:{anchor:"transformers.FillMaskPipeline.example-2",$$slots:{default:[hx]},$$scope:{ctx:k}}}),{c(){f(l.$$.fragment)},l(h){g(l.$$.fragment,h)},m(h,c){u(l,h,c),M=!0},p(h,c){const w={};c&2&&(w.$$scope={dirty:c,ctx:h}),l.$set(w)},i(h){M||(T(l.$$.fragment,h),M=!0)},o(h){b(l.$$.fragment,h),M=!1},d(h){y(l,h)}}}function gx(k){let l,M="Example:",h,c,w;return c=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBdG9rZW5fY2xhc3NpZmllciUyMCUzRCUyMHBpcGVsaW5lKG1vZGVsJTNEJTIySmVhbi1CYXB0aXN0ZSUyRmNhbWVtYmVydC1uZXIlMjIlMkMlMjBhZ2dyZWdhdGlvbl9zdHJhdGVneSUzRCUyMnNpbXBsZSUyMiklMEFzZW50ZW5jZSUyMCUzRCUyMCUyMkplJTIwbSdhcHBlbGxlJTIwamVhbi1iYXB0aXN0ZSUyMGV0JTIwamUlMjB2aXMlMjAlQzMlQTAlMjBtb250ciVDMyVBOWFsJTIyJTBBdG9rZW5zJTIwJTNEJTIwdG9rZW5fY2xhc3NpZmllcihzZW50ZW5jZSklMEF0b2tlbnMlMEElMEF0b2tlbiUyMCUzRCUyMHRva2VucyU1QjAlNUQlMEElMjMlMjBTdGFydCUyMGFuZCUyMGVuZCUyMHByb3ZpZGUlMjBhbiUyMGVhc3klMjB3YXklMjB0byUyMGhpZ2hsaWdodCUyMHdvcmRzJTIwaW4lMjB0aGUlMjBvcmlnaW5hbCUyMHRleHQuJTBBc2VudGVuY2UlNUJ0b2tlbiU1QiUyMnN0YXJ0JTIyJTVEJTIwJTNBJTIwdG9rZW4lNUIlMjJlbmQlMjIlNUQlNUQlMEElMEElMjMlMjBTb21lJTIwbW9kZWxzJTIwdXNlJTIwdGhlJTIwc2FtZSUyMGlkZWElMjB0byUyMGRvJTIwcGFydCUyMG9mJTIwc3BlZWNoLiUwQXN5bnRheGVyJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJ2YmxhZ29qZSUyRmJlcnQtZW5nbGlzaC11bmNhc2VkLWZpbmV0dW5lZC1wb3MlMjIlMkMlMjBhZ2dyZWdhdGlvbl9zdHJhdGVneSUzRCUyMnNpbXBsZSUyMiklMEFzeW50YXhlciglMjJNeSUyMG5hbWUlMjBpcyUyMFNhcmFoJTIwYW5kJTIwSSUyMGxpdmUlMjBpbiUyMExvbmRvbiUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

<span class="hljs-meta">&gt;&gt;&gt; </span>captioner = pipeline(model=<span class="hljs-string">&quot;ydshieh/vit-gpt2-coco-en&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>captioner(<span class="hljs-string">&quot;https://huggingface.co/datasets/Narsil/image_dummy/raw/main/parrots.png&quot;</span>)
[{<span class="hljs-string">&#x27;generated_text&#x27;</span>: <span class="hljs-string">&#x27;two birds are standing next to each other &#x27;</span>}]`,wrap:!1}}),{c(){l=r("p"),l.textContent=M,h=s(),f(c.$$.fragment)},l(t){l=i(t,"P",{"data-svelte-h":!0}),m(l)!=="svelte-11lpom8"&&(l.textContent=M),h=a(t),g(c.$$.fragment,t)},m(t,x){d(t,l,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(o(l),o(h)),y(c,t)}}}function Cx(k){let l,M="Example:",h,c,w;return c=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBZ2VuZXJhdG9yJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJmYWNlYm9vayUyRnNhbS12aXQtYmFzZSUyMiUyQyUyMHRhc2slM0QlMjJtYXNrLWdlbmVyYXRpb24lMjIpJTBBb3V0cHV0cyUyMCUzRCUyMGdlbmVyYXRvciglMEElMjAlMjAlMjAlMjAlMjJodHRwJTNBJTJGJTJGaW1hZ2VzLmNvY29kYXRhc2V0Lm9yZyUyRnZhbDIwMTclMkYwMDAwMDAwMzk3NjkuanBnJTIyJTJDJTBBKSUwQSUwQW91dHB1dHMlMjAlM0QlMjBnZW5lcmF0b3IoJTBBJTIwJTIwJTIwJTIwJTIyaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRmRhdGFzZXRzJTJGTmFyc2lsJTJGaW1hZ2VfZHVtbXklMkZyYXclMkZtYWluJTJGcGFycm90cy5wbmclMjIlMkMlMjBwb2ludHNfcGVyX2JhdGNoJTNEMTI4JTBBKQ==",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;facebook/sam-vit-base&quot;</span>, task=<span class="hljs-string">&quot;mask-generation&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = generator(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;http://images.cocodataset.org/val2017/000000039769.jpg&quot;</span>,
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = generator(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;https://huggingface.co/datasets/Narsil/image_dummy/raw/main/parrots.png&quot;</span>, points_per_batch=<span class="hljs-number">128</span>
<span class="hljs-meta">... </span>)`,wrap:!1}}),{c(){l=r("p"),l.textContent=M,h=s(),f(c.$$.fragment)},l(t){l=i(t,"P",{"data-svelte-h":!0}),m(l)!=="svelte-11lpom8"&&(l.textContent=M),h=a(t),g(c.$$.fragment,t)},m(t,x){d(t,l,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(o(l),o(h)),y(c,t)}}}function Ix(k){let l,M="Example:",h,c,w;return c=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBJTBBb3JhY2xlJTIwJTNEJTIwcGlwZWxpbmUobW9kZWwlM0QlMjJkYW5kZWxpbiUyRnZpbHQtYjMyLWZpbmV0dW5lZC12cWElMjIpJTBBaW1hZ2VfdXJsJTIwJTNEJTIwJTIyaHR0cHMlM0ElMkYlMkZodWdnaW5nZmFjZS5jbyUyRmRhdGFzZXRzJTJGTmFyc2lsJTJGaW1hZ2VfZHVtbXklMkZyYXclMkZtYWluJTJGbGVuYS5wbmclMjIlMEFvcmFjbGUocXVlc3Rpb24lM0QlMjJXaGF0JTIwaXMlMjBzaGUlMjB3ZWFyaW5nJTIwJTNGJTIyJTJDJTIwaW1hZ2UlM0RpbWFnZV91cmwpJTBBJTBBb3JhY2xlKHF1ZXN0aW9uJTNEJTIyV2hhdCUyMGlzJTIwc2hlJTIwd2VhcmluZyUyMCUzRiUyMiUyQyUyMGltYWdlJTNEaW1hZ2VfdXJsJTJDJTIwdG9wX2slM0QxKSUwQSUwQW9yYWNsZShxdWVzdGlvbiUzRCUyMklzJTIwdGhpcyUyMGElMjBwZXJzb24lMjAlM0YlMjIlMkMlMjBpbWFnZSUzRGltYWdlX3VybCUyQyUyMHRvcF9rJTNEMSklMEElMEFvcmFjbGUocXVlc3Rpb24lM0QlMjJJcyUyMHRoaXMlMjBhJTIwbWFuJTIwJTNGJTIyJTJDJTIwaW1hZ2UlM0RpbWFnZV91cmwlMkMlMjB0b3BfayUzRDEp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline

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

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

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

<span class="hljs-meta">&gt;&gt;&gt; </span>oracle(question=<span class="hljs-string">&quot;Is this a man ?&quot;</span>, image=image_url, top_k=<span class="hljs-number">1</span>)
[{<span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.996</span>, <span class="hljs-string">&#x27;answer&#x27;</span>: <span class="hljs-string">&#x27;no&#x27;</span>}]`,wrap:!1}}),{c(){l=r("p"),l.textContent=M,h=s(),f(c.$$.fragment)},l(t){l=i(t,"P",{"data-svelte-h":!0}),m(l)!=="svelte-11lpom8"&&(l.textContent=M),h=a(t),g(c.$$.fragment,t)},m(t,x){d(t,l,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(o(l),o(h)),y(c,t)}}}function zx(k){let l,M="Examples:",h,c,w;return c=new U({props:{code:"JTIzJTIwRXhwbGljaXRseSUyMGFzayUyMGZvciUyMHRlbnNvciUyMGFsbG9jYXRpb24lMjBvbiUyMENVREElMjBkZXZpY2UlMjAlM0EwJTBBcGlwZSUyMCUzRCUyMHBpcGVsaW5lKC4uLiUyQyUyMGRldmljZSUzRDApJTBBd2l0aCUyMHBpcGUuZGV2aWNlX3BsYWNlbWVudCgpJTNBJTBBJTIwJTIwJTIwJTIwJTIzJTIwRXZlcnklMjBmcmFtZXdvcmslMjBzcGVjaWZpYyUyMHRlbnNvciUyMGFsbG9jYXRpb24lMjB3aWxsJTIwYmUlMjBkb25lJTIwb24lMjB0aGUlMjByZXF1ZXN0JTIwZGV2aWNlJTBBJTIwJTIwJTIwJTIwb3V0cHV0JTIwJTNEJTIwcGlwZSguLi4p",highlighted:`<span class="hljs-comment"># Explicitly ask for tensor allocation on CUDA device :0</span>
pipe = pipeline(..., device=<span class="hljs-number">0</span>)
<span class="hljs-keyword">with</span> pipe.device_placement():
    <span class="hljs-comment"># Every framework specific tensor allocation will be done on the request device</span>
    output = pipe(...)`,wrap:!1}}),{c(){l=r("p"),l.textContent=M,h=s(),f(c.$$.fragment)},l(t){l=i(t,"P",{"data-svelte-h":!0}),m(l)!=="svelte-kvfsh7"&&(l.textContent=M),h=a(t),g(c.$$.fragment,t)},m(t,x){d(t,l,x),d(t,h,x),u(c,t,x),w=!0},p:J,i(t){w||(T(c.$$.fragment,t),w=!0)},o(t){b(c.$$.fragment,t),w=!1},d(t){t&&(o(l),o(h)),y(c,t)}}}function qx(k){let l,M,h,c,w,t,x,up='pipelines是使用模型进行推理的一种简单方法。这些pipelines是抽象了库中大部分复杂代码的对象，提供了一个专用于多个任务的简单API，包括专名识别、掩码语言建模、情感分析、特征提取和问答等。请参阅<a href="../task_summary">任务摘要</a>以获取使用示例。',bp,kn,Yu="有两种pipelines抽象类需要注意：",yp,jn,Eu='<li><a href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.pipeline">pipeline()</a>，它是封装所有其他pipelines的最强大的对象。</li> <li>针对特定任务pipelines，适用于<a href="#audio">音频</a>、<a href="#computer-vision">计算机视觉</a>、<a href="#natural-language-processing">自然语言处理</a>和<a href="#multimodal">多模态</a>任务。</li>',wp,Un,xp,$n,Qu="<em>pipeline</em>抽象类是对所有其他可用pipeline的封装。它可以像任何其他pipeline一样实例化，但进一步提供额外的便利性。",Mp,Jn,Xu="简单调用一个项目：",_p,Pn,vp,Cn,Ku='如果您想使用 <a href="https://huggingface.co" rel="nofollow">hub</a> 上的特定模型，可以忽略任务，如果hub上的模型已经定义了该任务：',kp,In,jp,zn,eT="要在多个项目上调用pipeline，可以使用<em>列表</em>调用它。",Up,qn,$p,Gn,tT="为了遍历整个数据集，建议直接使用 <code>dataset</code>。这意味着您不需要一次性分配整个数据集，也不需要自己进行批处理。这应该与GPU上的自定义循环一样快。如果不是，请随时提出issue。",Jp,Zn,Pp,Fn,nT="为了方便使用，也可以使用生成器：",Cp,Rn,Ip,ve,Dn,Qd,Ho,sT='Utility factory method to build a <a href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.Pipeline">Pipeline</a>.',Xd,Yo,aT="Pipelines are made of:",Kd,Eo,oT='<li>A <a href="tokenizer">tokenizer</a> in charge of mapping raw textual input to token.</li> <li>A <a href="model">model</a> to make predictions from the inputs.</li> <li>Some (optional) post processing for enhancing model’s output.</li>',em,Ee,zp,Nn,qp,Bn,rT="所有pipeline都可以使用批处理。这将在pipeline使用其流处理功能时起作用（即传递列表或 <code>Dataset</code> 或 <code>generator</code> 时）。",Gp,Vn,Zp,Qe,Fp,An,Rp,Wn,Dp,Ln,iT="主要是减速的示例：",Np,Sn,Bp,On,lT="与其他句子相比，这是一个非常长的句子。在这种情况下，<strong>整个</strong>批次将需要400个tokens的长度，因此整个批次将是 [64, 400] 而不是 [64, 4]，从而导致较大的减速。更糟糕的是，在更大的批次上，程序会崩溃。",Vp,Hn,Ap,Yn,pT="对于这个问题，没有好的（通用）解决方案，效果可能因您的用例而异。经验法则如下：",Wp,En,cT="对于用户，一个经验法则是：",Lp,Qn,dT="<li><strong>使用硬件测量负载性能。测量、测量、再测量。真实的数字是唯一的方法。</strong></li> <li>如果受到延迟的限制（进行推理的实时产品），不要进行批处理。</li> <li>如果使用CPU，不要进行批处理。</li> <li>如果您在GPU上处理的是吞吐量（您希望在大量静态数据上运行模型），则：<ul><li>如果对序列长度的大小没有概念（“自然”数据），默认情况下不要进行批处理，进行测试并尝试逐渐添加，添加OOM检查以在失败时恢复（如果您不能控制序列长度，它将在某些时候失败）。</li> <li>如果您的序列长度非常规律，那么批处理更有可能非常有趣，进行测试并推动它，直到出现OOM。</li> <li>GPU越大，批处理越有可能变得更有趣</li></ul></li> <li>一旦启用批处理，确保能够很好地处理OOM。</li>",Sp,Xn,Op,Kn,mT="<code>zero-shot-classification</code> 和 <code>question-answering</code> 在某种意义上稍微特殊，因为单个输入可能会导致模型的多次前向传递。在正常情况下，这将导致 <code>batch_size</code> 参数的问题。",Hp,es,hT="为了规避这个问题，这两个pipeline都有点特殊，它们是 <code>ChunkPipeline</code> 而不是常规的 <code>Pipeline</code>。简而言之：",Yp,ts,Ep,ns,fT="现在变成：",Qp,ss,Xp,as,gT="这对您的代码应该是非常直观的，因为pipeline的使用方式是相同的。",Kp,os,uT="这是一个简化的视图，因为Pipeline可以自动处理批次！这意味着您不必担心您的输入实际上会触发多少次前向传递，您可以独立于输入优化 <code>batch_size</code>。前面部分的注意事项仍然适用。",ec,rs,tc,is,TT="如果您想要重载特定的pipeline。",nc,ls,bT="请随时为您手头的任务创建一个issue，Pipeline的目标是易于使用并支持大多数情况，因此 <code>transformers</code> 可能支持您的用例。",sc,ps,yT="如果您想简单地尝试一下，可以：",ac,cs,wT="<li>继承您选择的pipeline</li>",oc,ds,rc,ms,xT="这样就可以让您编写所有想要的自定义代码。",ic,hs,lc,fs,MT='<a href="../add_new_pipeline">实现一个新的pipeline</a>',pc,gs,cc,us,_T="可用于音频任务的pipeline包括以下几种。",dc,Ts,mc,L,bs,tm,Qo,vT=`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.`,nm,Xe,sm,Xo,kT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',am,Ko,jT=`This pipeline can currently be loaded from <a href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;audio-classification&quot;</code>.`,om,er,UT=`See the list of available models on
<a href="https://huggingface.co/models?filter=audio-classification" rel="nofollow">huggingface.co/models</a>.`,rm,Ke,ys,im,tr,$T=`Classify the sequence(s) given as inputs. See the <a href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.AutomaticSpeechRecognitionPipeline">AutomaticSpeechRecognitionPipeline</a> documentation for more
information.`,hc,ws,fc,pe,xs,lm,nr,JT="Pipeline that aims at extracting spoken text contained within some audio.",pm,sr,PT=`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`,cm,et,dm,ar,CT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',mm,tt,Ms,hm,or,IT=`Transcribe the audio sequence(s) given as inputs to text. See the <a href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.AutomaticSpeechRecognitionPipeline">AutomaticSpeechRecognitionPipeline</a>
documentation for more information.`,gc,_s,uc,B,vs,fm,rr,zT=`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.`,gm,nt,um,ir,qT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Tm,st,bm,lr,GT=`This pipeline can currently be loaded from <a href="/docs/transformers/v4.36.0/zh/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>.`,ym,pr,ZT='See the list of available models on <a href="https://huggingface.co/models?filter=text-to-speech" rel="nofollow">huggingface.co/models</a>.',wm,at,ks,xm,cr,FT='Generates speech/audio from the inputs. See the <a href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.TextToAudioPipeline">TextToAudioPipeline</a> documentation for more information.',Tc,js,bc,ke,Us,Mm,dr,RT=`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>.`,_m,ot,vm,mr,DT=`Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a> This audio
classification pipeline can currently be loaded from <a href="/docs/transformers/v4.36.0/zh/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>.`,km,rt,$s,jm,hr,NT="Assign labels to the audio(s) passed as inputs.",yc,Js,wc,Ps,BT="可用于计算机视觉任务的pipeline包括以下几种。",xc,Cs,Mc,S,Is,Um,fr,VT="Depth estimation pipeline using any <code>AutoModelForDepthEstimation</code>. This pipeline predicts the depth of an image.",$m,it,Jm,gr,AT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Pm,ur,WT=`This depth estimation pipeline can currently be loaded from <a href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;depth-estimation&quot;</code>.`,Cm,Tr,LT='See the list of available models on <a href="https://huggingface.co/models?filter=depth-estimation" rel="nofollow">huggingface.co/models</a>.',Im,lt,zs,zm,br,ST="Assign labels to the image(s) passed as inputs.",_c,qs,vc,O,Gs,qm,yr,OT=`Image classification pipeline using any <code>AutoModelForImageClassification</code>. This pipeline predicts the class of an
image.`,Gm,pt,Zm,wr,HT='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Fm,xr,YT=`This image classification pipeline can currently be loaded from <a href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;image-classification&quot;</code>.`,Rm,Mr,ET=`See the list of available models on
<a href="https://huggingface.co/models?filter=image-classification" rel="nofollow">huggingface.co/models</a>.`,Dm,ct,Zs,Nm,_r,QT="Assign labels to the image(s) passed as inputs.",kc,Fs,jc,ce,Rs,Bm,vr,XT=`Image segmentation pipeline using any <code>AutoModelForXXXSegmentation</code>. This pipeline predicts masks of objects and
their classes.`,Vm,dt,Am,kr,KT=`This image segmentation pipeline can currently be loaded from <a href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;image-segmentation&quot;</code>.`,Wm,jr,eb=`See the list of available models on
<a href="https://huggingface.co/models?filter=image-segmentation" rel="nofollow">huggingface.co/models</a>.`,Lm,mt,Ds,Sm,Ur,tb="Perform segmentation (detect masks & classes) in the image(s) passed as inputs.",Uc,Ns,$c,de,Bs,Om,$r,nb=`Image to Image pipeline using any <code>AutoModelForImageToImage</code>. This pipeline generates an image based on a previous
image input.`,Hm,ht,Ym,Jr,sb=`This image to image pipeline can currently be loaded from <a href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;image-to-image&quot;</code>.`,Em,Pr,ab='See the list of available models on <a href="https://huggingface.co/models?filter=image-to-image" rel="nofollow">huggingface.co/models</a>.',Qm,ft,Vs,Xm,Cr,ob="Transform the image(s) passed as inputs.",Jc,As,Pc,H,Ws,Km,Ir,rb=`Object detection pipeline using any <code>AutoModelForObjectDetection</code>. This pipeline predicts bounding boxes of objects
and their classes.`,eh,gt,th,zr,ib='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',nh,qr,lb=`This object detection pipeline can currently be loaded from <a href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;object-detection&quot;</code>.`,sh,Gr,pb='See the list of available models on <a href="https://huggingface.co/models?filter=object-detection" rel="nofollow">huggingface.co/models</a>.',ah,ut,Ls,oh,Zr,cb="Detect objects (bounding boxes & classes) in the image(s) passed as inputs.",Cc,Ss,Ic,je,Os,rh,Fr,db=`Video classification pipeline using any <code>AutoModelForVideoClassification</code>. This pipeline predicts the class of a
video.`,ih,Rr,mb=`This video classification pipeline can currently be loaded from <a href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;video-classification&quot;</code>.`,lh,Dr,hb=`See the list of available models on
<a href="https://huggingface.co/models?filter=video-classification" rel="nofollow">huggingface.co/models</a>.`,ph,Tt,Hs,ch,Nr,fb="Assign labels to the video(s) passed as inputs.",zc,Ys,qc,Y,Es,dh,Br,gb=`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>.`,mh,bt,hh,Vr,ub='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',fh,Ar,Tb=`This image classification pipeline can currently be loaded from <a href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;zero-shot-image-classification&quot;</code>.`,gh,Wr,bb=`See the list of available models on
<a href="https://huggingface.co/models?filter=zero-shot-image-classification" rel="nofollow">huggingface.co/models</a>.`,uh,yt,Qs,Th,Lr,yb="Assign labels to the image(s) passed as inputs.",Gc,Xs,Zc,E,Ks,bh,Sr,wb=`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>.`,yh,wt,wh,Or,xb='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',xh,Hr,Mb=`This object detection pipeline can currently be loaded from <a href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;zero-shot-object-detection&quot;</code>.`,Mh,Yr,_b=`See the list of available models on
<a href="https://huggingface.co/models?filter=zero-shot-object-detection" rel="nofollow">huggingface.co/models</a>.`,_h,xt,ea,vh,Er,vb="Detect objects (bounding boxes & classes) in the image(s) passed as inputs.",Fc,ta,Rc,na,kb="可用于自然语言处理任务的pipeline包括以下几种。",Dc,sa,Nc,me,aa,kh,Qr,jb=`Utility class containing a conversation and its history. This class is meant to be used as an input to the
<a href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.ConversationalPipeline">ConversationalPipeline</a>. The conversation contains several utility functions to manage the addition of new user
inputs and generated model responses.`,jh,Mt,Uh,_t,oa,$h,Xr,Ub=`Add a user input to the conversation for the next round. This is a legacy method that assumes that inputs must
alternate user/assistant/user/assistant, and so will not add multiple user messages in succession. We recommend
just using <code>add_message</code> with role “user” instead.`,Jh,vt,ra,Ph,Kr,$b="This is a legacy method. We recommend just using <code>add_message</code> with an appropriate role instead.",Ch,kt,ia,Ih,ei,Jb=`This is a legacy method, as the Conversation no longer distinguishes between processed and unprocessed user
input. We set a counter here to keep behaviour mostly backward-compatible, but in general you should just read
the messages directly when writing new code.`,Bc,Q,la,zh,ti,Pb="Multi-turn conversational pipeline.",qh,jt,Gh,ni,Cb='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Zh,si,Ib=`This conversational pipeline can currently be loaded from <a href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;conversational&quot;</code>.`,Fh,ai,zb=`This pipeline can be used with any model that has a <a href="https://huggingface.co/docs/transformers/chat_templating" rel="nofollow">chat
template</a> set.`,Rh,Ut,pa,Dh,oi,qb="Generate responses for the conversation(s) given as inputs.",Vc,ca,Ac,G,da,Nh,ri,Gb=`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,$t,Vh,ii,Zb='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Ah,li,Fb=`This mask filling pipeline can currently be loaded from <a href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;fill-mask&quot;</code>.`,Wh,pi,Rb=`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>.`,Lh,Jt,Sh,Pt,Oh,Ct,ma,Hh,ci,Db="Fill the masked token in the text(s) given as inputs.",Wc,ha,Lc,q,fa,Yh,di,Nb=`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.`,Eh,It,Qh,mi,Bb='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Xh,hi,Vb=`This token recognition pipeline can currently be loaded from <a href="/docs/transformers/v4.36.0/zh/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).`,Kh,fi,Ab=`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>.`,ef,We,ga,tf,gi,Wb="Override tokens from a given word that disagree to force agreement on word boundaries.",nf,ui,Lb=`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`,sf,zt,ua,af,Ti,Sb="Fuse various numpy arrays into dicts with all the information needed for aggregation",of,qt,Ta,rf,bi,Ob="Find and group together the adjacent tokens with the same entity predicted.",lf,Gt,ba,pf,yi,Hb="Group together the adjacent tokens with the same entity predicted.",Sc,ya,Yb='See <a href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.TokenClassificationPipeline">TokenClassificationPipeline</a> for all details.',Oc,wa,Hc,Z,xa,cf,wi,Eb=`Question Answering pipeline using any <code>ModelForQuestionAnswering</code>. See the <a href="../task_summary#question-answering">question answering
examples</a> for more information.`,df,Zt,mf,xi,Qb='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',hf,Mi,Xb=`This question answering pipeline can currently be loaded from <a href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;question-answering&quot;</code>.`,ff,_i,Kb=`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>.`,gf,Ft,Ma,uf,vi,ey="Answer the question(s) given as inputs by using the context(s).",Tf,Le,_a,bf,ki,ty=`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>.`,yf,ji,ny="We currently support extractive question answering.",wf,Rt,va,xf,Ui,sy="When decoding from token probabilities, this method maps token indexes to actual word in the initial context.",Yc,ka,Ec,he,ja,Mf,$i,ay="Summarize news articles and other documents.",_f,Ji,oy=`This summarizing pipeline can currently be loaded from <a href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;summarization&quot;</code>.`,vf,Pi,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>t5-small</em>’, ’<em>t5-base</em>’, ’<em>t5-large</em>’, ’<em>t5-3b</em>’, ’<em>t5-11b</em>’. See the up-to-date
list of available models on <a href="https://huggingface.co/models?filter=summarization" rel="nofollow">huggingface.co/models</a>. For a list
of available parameters, see the <a href="https://huggingface.co/docs/transformers/en/main_classes/text_generation#transformers.generation.GenerationMixin.generate" rel="nofollow">following
documentation</a>`,kf,Dt,jf,Nt,Ua,Uf,Ci,iy="Summarize the text(s) given as inputs.",Qc,$a,Xc,X,Ja,$f,Ii,ly=`Table Question Answering pipeline using a <code>ModelForTableQuestionAnswering</code>. This pipeline is only available in
PyTorch.`,Jf,Bt,Pf,zi,py='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Cf,qi,cy=`This tabular question answering pipeline can currently be loaded from <a href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task
identifier: <code>&quot;table-question-answering&quot;</code>.`,If,Gi,dy=`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>.`,zf,oe,Pa,qf,Zi,my="Answers queries according to a table. The pipeline accepts several types of inputs which are detailed below:",Gf,Fi,hy="<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>",Zf,Ri,fy="The <code>table</code> argument should be a dict or a DataFrame built from that dict, containing the whole table:",Ff,Vt,Rf,Di,gy="This dictionary can be passed in as such, or can be converted to a pandas DataFrame:",Df,At,Kc,Ca,ed,V,Ia,Nf,Ni,uy=`Text classification pipeline using any <code>ModelForSequenceClassification</code>. See the <a href="../task_summary#sequence-classification">sequence classification
examples</a> for more information.`,Bf,Wt,Vf,Bi,Ty='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Af,Vi,by=`This text classification pipeline can currently be loaded from <a href="/docs/transformers/v4.36.0/zh/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).`,Wf,Ai,yy=`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.`,Lf,Wi,wy=`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>.`,Sf,Lt,za,Of,Li,xy="Classify the text(s) given as inputs.",td,qa,nd,K,Ga,Hf,Si,My=`Language generation pipeline using any <code>ModelWithLMHead</code>. This pipeline predicts the words that will follow a
specified text prompt.`,Yf,St,Ef,Oi,_y=`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>.`,Qf,Hi,vy=`This language generation pipeline can currently be loaded from <a href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;text-generation&quot;</code>.`,Xf,Yi,ky=`The models that this pipeline can use are models that have been trained with an autoregressive language modeling
objective, which includes the uni-directional models in the library (e.g. gpt2). See the list of available models
on <a href="https://huggingface.co/models?filter=text-generation" rel="nofollow">huggingface.co/models</a>.`,Kf,Ot,Za,eg,Ei,jy="Complete the prompt(s) given as inputs.",sd,Fa,ad,F,Ra,tg,Qi,Uy="Pipeline for text to text generation using seq2seq models.",ng,Ht,sg,Xi,$y=`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>.`,ag,Ki,Jy=`This Text2TextGenerationPipeline pipeline can currently be loaded from <a href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task
identifier: <code>&quot;text2text-generation&quot;</code>.`,og,el,Py=`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>`,rg,Yt,ig,Et,Da,lg,tl,Cy="Generate the output text(s) using text(s) given as inputs.",pg,Qt,Na,cg,nl,Iy="Checks whether there might be something wrong with given input with regard to the model.",od,Ba,rd,z,Va,dg,sl,zy=`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.`,mg,Xt,hg,al,qy='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',fg,ol,Gy=`This token recognition pipeline can currently be loaded from <a href="/docs/transformers/v4.36.0/zh/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).`,gg,rl,Zy=`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>.`,ug,Kt,Aa,Tg,il,Fy="Classify each token of the text(s) given as inputs.",bg,Se,Wa,yg,ll,Ry="Override tokens from a given word that disagree to force agreement on word boundaries.",wg,pl,Dy=`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`,xg,en,La,Mg,cl,Ny="Fuse various numpy arrays into dicts with all the information needed for aggregation",_g,tn,Sa,vg,dl,By="Find and group together the adjacent tokens with the same entity predicted.",kg,nn,Oa,jg,ml,Vy="Group together the adjacent tokens with the same entity predicted.",id,Ha,ld,fe,Ya,Ug,hl,Ay="Translates from one language to another.",$g,fl,Wy=`This translation pipeline can currently be loaded from <a href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;translation_xx_to_yy&quot;</code>.`,Jg,gl,Ly=`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>`,Pg,sn,Cg,an,Ea,Ig,ul,Sy="Translate the text(s) given as inputs.",pd,Qa,cd,A,Xa,zg,Tl,Oy=`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.`,qg,bl,Hy=`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>.`,Gg,on,Zg,yl,Yy='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Fg,wl,Ey=`This NLI pipeline can currently be loaded from <a href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;zero-shot-classification&quot;</code>.`,Rg,xl,Qy=`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>.`,Dg,rn,Ka,Ng,Ml,Xy=`Classify the sequence(s) given as inputs. See the <a href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.ZeroShotClassificationPipeline">ZeroShotClassificationPipeline</a> documentation for more
information.`,dd,eo,md,to,Ky="可用于多模态任务的pipeline包括以下几种。",hd,no,fd,ee,so,Bg,_l,ew=`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.`,Vg,ln,Ag,vl,tw='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Wg,kl,nw=`This document question answering pipeline can currently be loaded from <a href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task
identifier: <code>&quot;document-question-answering&quot;</code>.`,Lg,jl,sw=`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>.`,Sg,Be,ao,Og,Ul,aw=`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.`,Hg,$l,ow="You can invoke the pipeline several ways:",Yg,Jl,rw="<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>",gd,oo,ud,te,ro,Eg,Pl,iw=`Feature extraction pipeline using no model head. This pipeline extracts the hidden states from the base
transformer, which can be used as features in downstream tasks.`,Qg,pn,Xg,Cl,lw='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Kg,Il,pw=`This feature extraction pipeline can currently be loaded from <a href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the task identifier:
<code>&quot;feature-extraction&quot;</code>.`,eu,zl,cw=`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>.`,tu,cn,io,nu,ql,dw="Extract the features of the input(s).",Td,lo,bd,ne,po,su,Gl,mw="Image To Text pipeline using a <code>AutoModelForVision2Seq</code>. This pipeline predicts a caption for a given image.",au,dn,ou,Zl,hw='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',ru,Fl,fw=`This image to text pipeline can currently be loaded from pipeline() using the following task identifier:
“image-to-text”.`,iu,Rl,gw=`See the list of available models on
<a href="https://huggingface.co/models?pipeline_tag=image-to-text" rel="nofollow">huggingface.co/models</a>.`,lu,mn,co,pu,Dl,uw="Assign labels to the image(s) passed as inputs.",yd,mo,wd,R,ho,cu,Nl,Tw=`Automatic mask generation for images using <code>SamForMaskGeneration</code>. This pipeline predicts binary masks for an
image, given an image. It is a <code>ChunkPipeline</code> because you can seperate the points in a mini-batch in order to
avoid OOM issues. Use the <code>points_per_batch</code> argument to control the number of points that will be processed at the
same time. Default is <code>64</code>.`,du,Bl,bw="The pipeline works in 3 steps:",mu,Vl,yw=`<li><p><code>preprocess</code>: A grid of 1024 points evenly separated is generated along with bounding boxes and point
labels.
For more details on how the points and bounding boxes are created, check the <code>_generate_crop_boxes</code>
function. The image is also preprocessed using the <code>image_processor</code>. This function <code>yields</code> a minibatch of
<code>points_per_batch</code>.</p></li> <li><p><code>forward</code>: feeds the outputs of <code>preprocess</code> to the model. The image embedding is computed only once.
Calls both <code>self.model.get_image_embeddings</code> and makes sure that the gradients are not computed, and the
tensors and models are on the same device.</p></li> <li><p><code>postprocess</code>: The most important part of the automatic mask generation happens here. Three steps
are induced:</p> <ul><li>image_processor.postprocess_masks (run on each minibatch loop): takes in the raw output masks,
resizes them according
to the image size, and transforms there to binary masks.</li> <li>image_processor.filter_masks (on each minibatch loop): uses both <code>pred_iou_thresh</code> and
<code>stability_scores</code>. Also
applies a variety of filters based on non maximum suppression to remove bad masks.</li> <li>image_processor.postprocess_masks_for_amg applies the NSM on the mask to only keep relevant ones.</li></ul></li>`,hu,hn,fu,Al,ww='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',gu,Wl,xw=`This segmentation pipeline can currently be loaded from <a href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task identifier:
<code>&quot;mask-generation&quot;</code>.`,uu,Ll,Mw='See the list of available models on <a href="https://huggingface.co/models?filter=mask-generation" rel="nofollow">huggingface.co/models</a>.',Tu,fn,fo,bu,Sl,_w="Generates binary segmentation masks",xd,go,Md,se,uo,yu,Ol,vw=`Visual Question Answering pipeline using a <code>AutoModelForVisualQuestionAnswering</code>. This pipeline is currently only
available in PyTorch.`,wu,gn,xu,Hl,kw='Learn more about the basics of using a pipeline in the <a href="../pipeline_tutorial">pipeline tutorial</a>',Mu,Yl,jw=`This visual question answering pipeline can currently be loaded from <a href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.pipeline">pipeline()</a> using the following task
identifiers: <code>&quot;visual-question-answering&quot;, &quot;vqa&quot;</code>.`,_u,El,Uw=`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>.`,vu,Oe,To,ku,Ql,$w=`Answers open-ended questions about images. The pipeline accepts several types of inputs which are detailed
below:`,ju,Xl,Jw="<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>",_d,bo,vd,C,yo,Uu,Kl,Pw=`The Pipeline class is the class from which all pipelines inherit. Refer to this class for methods shared across
different pipelines.`,$u,ep,Cw=`Base class implementing pipelined operations. Pipeline workflow is defined as a sequence of the following
operations:`,Ju,tp,Iw="Input -> Tokenization -> Model Inference -> Post-Processing (task dependent) -> Output",Pu,np,zw="Pipeline supports running on CPU or GPU through the device argument (see below).",Cu,sp,qw=`Some pipeline, like for instance <a href="/docs/transformers/v4.36.0/zh/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.`,Iu,un,wo,zu,ap,Gw="Check if the model class is in supported by the pipeline.",qu,He,xo,Gu,op,Zw="Context Manager allowing tensor allocation on the user-specified device in framework agnostic way.",Zu,Tn,Fu,bn,Mo,Ru,rp,Fw="Ensure PyTorch tensors are on the specified device.",Du,yn,_o,Nu,ip,Rw=`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).`,Bu,wn,vo,Vu,lp,Dw="Scikit / Keras interface to transformers’ pipelines. This method will forward to <strong>call</strong>().",Au,xn,ko,Wu,pp,Nw=`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.`,Lu,Mn,jo,Su,cp,Bw="Save the pipeline’s model and tokenizer.",Ou,_n,Uo,Hu,dp,Vw="Scikit / Keras interface to transformers’ pipelines. This method will forward to <strong>call</strong>().",kd,Tp,jd;return w=new $({props:{title:"Pipelines",local:"pipelines",headingTag:"h1"}}),Un=new $({props:{title:"pipeline抽象类",local:"transformers.pipeline",headingTag:"h2"}}),Pn=new U({props:{code:"cGlwZSUyMCUzRCUyMHBpcGVsaW5lKCUyMnRleHQtY2xhc3NpZmljYXRpb24lMjIpJTBBcGlwZSglMjJUaGlzJTIwcmVzdGF1cmFudCUyMGlzJTIwYXdlc29tZSUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = pipeline(<span class="hljs-string">&quot;text-classification&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe(<span class="hljs-string">&quot;This restaurant is awesome&quot;</span>)
[{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;POSITIVE&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.9998743534088135</span>}]`,wrap:!1}}),In=new U({props:{code:"cGlwZSUyMCUzRCUyMHBpcGVsaW5lKG1vZGVsJTNEJTIycm9iZXJ0YS1sYXJnZS1tbmxpJTIyKSUwQXBpcGUoJTIyVGhpcyUyMHJlc3RhdXJhbnQlMjBpcyUyMGF3ZXNvbWUlMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = pipeline(model=<span class="hljs-string">&quot;roberta-large-mnli&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe(<span class="hljs-string">&quot;This restaurant is awesome&quot;</span>)
[{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;NEUTRAL&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.7313136458396912</span>}]`,wrap:!1}}),qn=new U({props:{code:"cGlwZSUyMCUzRCUyMHBpcGVsaW5lKCUyMnRleHQtY2xhc3NpZmljYXRpb24lMjIpJTBBcGlwZSglNUIlMjJUaGlzJTIwcmVzdGF1cmFudCUyMGlzJTIwYXdlc29tZSUyMiUyQyUyMCUyMlRoaXMlMjByZXN0YXVyYW50JTIwaXMlMjBhd2Z1bCUyMiU1RCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = pipeline(<span class="hljs-string">&quot;text-classification&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe([<span class="hljs-string">&quot;This restaurant is awesome&quot;</span>, <span class="hljs-string">&quot;This restaurant is awful&quot;</span>])
[{<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;POSITIVE&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.9998743534088135</span>},
 {<span class="hljs-string">&#x27;label&#x27;</span>: <span class="hljs-string">&#x27;NEGATIVE&#x27;</span>, <span class="hljs-string">&#x27;score&#x27;</span>: <span class="hljs-number">0.9996669292449951</span>}]`,wrap:!1}}),Zn=new U({props:{code:"aW1wb3J0JTIwZGF0YXNldHMlMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwcGlwZWxpbmUlMEFmcm9tJTIwdHJhbnNmb3JtZXJzLnBpcGVsaW5lcy5wdF91dGlscyUyMGltcG9ydCUyMEtleURhdGFzZXQlMEFmcm9tJTIwdHFkbS5hdXRvJTIwaW1wb3J0JTIwdHFkbSUwQSUwQXBpcGUlMjAlM0QlMjBwaXBlbGluZSglMjJhdXRvbWF0aWMtc3BlZWNoLXJlY29nbml0aW9uJTIyJTJDJTIwbW9kZWwlM0QlMjJmYWNlYm9vayUyRndhdjJ2ZWMyLWJhc2UtOTYwaCUyMiUyQyUyMGRldmljZSUzRDApJTBBZGF0YXNldCUyMCUzRCUyMGRhdGFzZXRzLmxvYWRfZGF0YXNldCglMjJzdXBlcmIlMjIlMkMlMjBuYW1lJTNEJTIyYXNyJTIyJTJDJTIwc3BsaXQlM0QlMjJ0ZXN0JTIyKSUwQSUwQSUyMyUyMEtleURhdGFzZXQlMjAob25seSUyMCpwdCopJTIwd2lsbCUyMHNpbXBseSUyMHJldHVybiUyMHRoZSUyMGl0ZW0lMjBpbiUyMHRoZSUyMGRpY3QlMjByZXR1cm5lZCUyMGJ5JTIwdGhlJTIwZGF0YXNldCUyMGl0ZW0lMEElMjMlMjBhcyUyMHdlJ3JlJTIwbm90JTIwaW50ZXJlc3RlZCUyMGluJTIwdGhlJTIwKnRhcmdldColMjBwYXJ0JTIwb2YlMjB0aGUlMjBkYXRhc2V0LiUyMEZvciUyMHNlbnRlbmNlJTIwcGFpciUyMHVzZSUyMEtleVBhaXJEYXRhc2V0JTBBZm9yJTIwb3V0JTIwaW4lMjB0cWRtKHBpcGUoS2V5RGF0YXNldChkYXRhc2V0JTJDJTIwJTIyZmlsZSUyMikpKSUzQSUwQSUyMCUyMCUyMCUyMHByaW50KG91dCklMEElMjAlMjAlMjAlMjAlMjMlMjAlN0IlMjJ0ZXh0JTIyJTNBJTIwJTIyTlVNQkVSJTIwVEVOJTIwRlJFU0glMjBORUxMWSUyMElTJTIwV0FJVElORyUyME9OJTIwWU9VJTIwR09PRCUyME5JR0hUJTIwSFVTQkFORCUyMiU3RCUwQSUyMCUyMCUyMCUyMCUyMyUyMCU3QiUyMnRleHQlMjIlM0ElMjAuLi4uJTdEJTBBJTIwJTIwJTIwJTIwJTIzJTIwLi4uLg==",highlighted:`<span class="hljs-keyword">import</span> datasets
<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline
<span class="hljs-keyword">from</span> transformers.pipelines.pt_utils <span class="hljs-keyword">import</span> KeyDataset
<span class="hljs-keyword">from</span> tqdm.auto <span class="hljs-keyword">import</span> tqdm

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

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

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


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


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

					</div>`,name:"device_map"},{anchor:"transformers.pipeline.torch_dtype",description:`<strong>torch_dtype</strong> (<code>str</code> or <code>torch.dtype</code>, <em>optional</em>) &#x2014;
Sent directly as <code>model_kwargs</code> (just a simpler shortcut) to use the available precision for this model
(<code>torch.float16</code>, <code>torch.bfloat16</code>, &#x2026; or <code>&quot;auto&quot;</code>).`,name:"torch_dtype"},{anchor:"transformers.pipeline.trust_remote_code",description:`<strong>trust_remote_code</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to allow for custom code defined on the Hub in their own modeling, configuration,
tokenization or even pipeline files. This option should only be set to <code>True</code> for repositories you trust
and in which you have read the code, as it will execute code present on the Hub on your local machine.`,name:"trust_remote_code"},{anchor:"transformers.pipeline.model_kwargs",description:`<strong>model_kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional dictionary of keyword arguments passed along to the model&#x2019;s <code>from_pretrained(..., **model_kwargs)</code> function.`,name:"model_kwargs"},{anchor:"transformers.pipeline.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional keyword arguments passed along to the specific pipeline init (see the documentation for the
corresponding pipeline class for possible values).`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/__init__.py#L531",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.Pipeline"
>Pipeline</a></p>
`}}),Ee=new P({props:{anchor:"transformers.pipeline.example",$$slots:{default:[Hw]},$$scope:{ctx:k}}}),Nn=new $({props:{title:"Pipeline batching",local:"pipeline-batching",headingTag:"h2"}}),Vn=new U({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMHBpcGVsaW5lJTBBZnJvbSUyMHRyYW5zZm9ybWVycy5waXBlbGluZXMucHRfdXRpbHMlMjBpbXBvcnQlMjBLZXlEYXRhc2V0JTBBaW1wb3J0JTIwZGF0YXNldHMlMEElMEFkYXRhc2V0JTIwJTNEJTIwZGF0YXNldHMubG9hZF9kYXRhc2V0KCUyMmltZGIlMjIlMkMlMjBuYW1lJTNEJTIycGxhaW5fdGV4dCUyMiUyQyUyMHNwbGl0JTNEJTIydW5zdXBlcnZpc2VkJTIyKSUwQXBpcGUlMjAlM0QlMjBwaXBlbGluZSglMjJ0ZXh0LWNsYXNzaWZpY2F0aW9uJTIyJTJDJTIwZGV2aWNlJTNEMCklMEFmb3IlMjBvdXQlMjBpbiUyMHBpcGUoS2V5RGF0YXNldChkYXRhc2V0JTJDJTIwJTIydGV4dCUyMiklMkMlMjBiYXRjaF9zaXplJTNEOCUyQyUyMHRydW5jYXRpb24lM0QlMjJvbmx5X2ZpcnN0JTIyKSUzQSUwQSUyMCUyMCUyMCUyMHByaW50KG91dCklMEElMjAlMjAlMjAlMjAlMjMlMjAlNUIlN0InbGFiZWwnJTNBJTIwJ1BPU0lUSVZFJyUyQyUyMCdzY29yZSclM0ElMjAwLjk5OTg3NDM1MzQwODgxMzUlN0QlNUQlMEElMjAlMjAlMjAlMjAlMjMlMjBFeGFjdGx5JTIwdGhlJTIwc2FtZSUyMG91dHB1dCUyMGFzJTIwYmVmb3JlJTJDJTIwYnV0JTIwdGhlJTIwY29udGVudCUyMGFyZSUyMHBhc3NlZCUwQSUyMCUyMCUyMCUyMCUyMyUyMGFzJTIwYmF0Y2hlcyUyMHRvJTIwdGhlJTIwbW9kZWw=",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> pipeline
<span class="hljs-keyword">from</span> transformers.pipelines.pt_utils <span class="hljs-keyword">import</span> KeyDataset
<span class="hljs-keyword">import</span> datasets

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

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


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

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


dataset = MyDataset()

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

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


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

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

					</div>`,name:"stride_length_s"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed. If no framework is specified, will default to the one currently installed. If no framework is
specified and both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if
no model is provided.`,name:"framework"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.device",description:`<strong>device</strong> (Union[<code>int</code>, <code>torch.device</code>], <em>optional</em>) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to <code>None</code> will leverage CPU, a positive will run the
model on the associated CUDA device id.`,name:"device"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.decoder",description:`<strong>decoder</strong> (<code>pyctcdecode.BeamSearchDecoderCTC</code>, <em>optional</em>) &#x2014;
<a href="https://github.com/kensho-technologies/pyctcdecode/blob/2fd33dc37c4111417e08d89ccd23d28e9b308d19/pyctcdecode/decoder.py#L180" rel="nofollow">PyCTCDecode&#x2019;s
BeamSearchDecoderCTC</a>
can be passed for language model boosted decoding. See <code>Wav2Vec2ProcessorWithLM</code> for more information.`,name:"decoder"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/automatic_speech_recognition.py#L135"}}),et=new P({props:{anchor:"transformers.AutomaticSpeechRecognitionPipeline.example",$$slots:{default:[Qw]},$$scope:{ctx:k}}}),Ms=new j({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"},{anchor:"transformers.AutomaticSpeechRecognitionPipeline.__call__.max_new_tokens",description:`<strong>max_new_tokens</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The maximum numbers of tokens to generate, ignoring the number of tokens in the prompt.`,name:"max_new_tokens"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/automatic_speech_recognition.py#L294",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>
`}}),_s=new $({props:{title:"TextToAudioPipeline",local:"transformers.TextToAudioPipeline",headingTag:"h3"}}),vs=new j({props:{name:"class transformers.TextToAudioPipeline",anchor:"transformers.TextToAudioPipeline",parameters:[{name:"*args",val:""},{name:"vocoder",val:" = None"},{name:"sampling_rate",val:" = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/text_to_audio.py#L27"}}),nt=new P({props:{anchor:"transformers.TextToAudioPipeline.example",$$slots:{default:[Xw]},$$scope:{ctx:k}}}),st=new Ed({props:{$$slots:{default:[ex]},$$scope:{ctx:k}}}),ks=new j({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/v4.36.0/src/transformers/pipelines/text_to_audio.py#L160",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The dictionaries have two keys:</p>
<ul>
<li><strong>audio</strong> (<code>np.ndarray</code> of shape <code>(nb_channels, audio_length)</code>) — The generated audio waveform.</li>
<li><strong>sampling_rate</strong> (<code>int</code>) — The sampling rate of the generated audio waveform.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>dict</code> or a list of <code>dict</code></p>
`}}),js=new $({props:{title:"ZeroShotAudioClassificationPipeline",local:"transformers.ZeroShotAudioClassificationPipeline",headingTag:"h3"}}),Us=new j({props:{name:"class transformers.ZeroShotAudioClassificationPipeline",anchor:"transformers.ZeroShotAudioClassificationPipeline",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotAudioClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.36.0/zh/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/zero_shot_audio_classification.py#L33"}}),ot=new P({props:{anchor:"transformers.ZeroShotAudioClassificationPipeline.example",$$slots:{default:[tx]},$$scope:{ctx:k}}}),$s=new j({props:{name:"__call__",anchor:"transformers.ZeroShotAudioClassificationPipeline.__call__",parameters:[{name:"audios",val:": typing.Union[numpy.ndarray, bytes, str]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotAudioClassificationPipeline.__call__.audios",description:`<strong>audios</strong> (<code>str</code>, <code>List[str]</code>, <code>np.array</code> or <code>List[np.array]</code>) &#x2014;
The pipeline handles three types of inputs:<ul>
<li>A string containing a http link pointing to an audio</li>
<li>A string containing a local path to an audio</li>
<li>An audio loaded in numpy</li>
</ul>`,name:"audios"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.__call__.candidate_labels",description:`<strong>candidate_labels</strong> (<code>List[str]</code>) &#x2014;
The candidate labels for this audio`,name:"candidate_labels"},{anchor:"transformers.ZeroShotAudioClassificationPipeline.__call__.hypothesis_template",description:`<strong>hypothesis_template</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;This is a sound of {}&quot;</code>) &#x2014;
The sentence used in cunjunction with <em>candidate_labels</em> to attempt the audio classification by
replacing the placeholder with the candidate_labels. Then likelihood is estimated by using
logits_per_audio`,name:"hypothesis_template"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/zero_shot_audio_classification.py#L64",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of dictionaries containing result, one dictionary per proposed label. The dictionaries contain the
following keys:</p>
<ul>
<li><strong>label</strong> (<code>str</code>) — The label identified by the model. It is one of the suggested <code>candidate_label</code>.</li>
<li><strong>score</strong> (<code>float</code>) — The score attributed by the model for that label (between 0 and 1).</li>
</ul>
`}}),Js=new $({props:{title:"计算机视觉",local:"计算机视觉",headingTag:"h2"}}),Cs=new $({props:{title:"DepthEstimationPipeline",local:"transformers.DepthEstimationPipeline",headingTag:"h3"}}),Is=new j({props:{name:"class transformers.DepthEstimationPipeline",anchor:"transformers.DepthEstimationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.DepthEstimationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.DepthEstimationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.DepthEstimationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.DepthEstimationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.DepthEstimationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.DepthEstimationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.DepthEstimationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.DepthEstimationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.36.0/zh/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.DepthEstimationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.DepthEstimationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/depth_estimation.py#L23"}}),it=new P({props:{anchor:"transformers.DepthEstimationPipeline.example",$$slots:{default:[nx]},$$scope:{ctx:k}}}),zs=new j({props:{name:"__call__",anchor:"transformers.DepthEstimationPipeline.__call__",parameters:[{name:"images",val:": typing.Union[str, typing.List[str], ForwardRef('Image.Image'), typing.List[ForwardRef('Image.Image')]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.DepthEstimationPipeline.__call__.images",description:`<strong>images</strong> (<code>str</code>, <code>List[str]</code>, <code>PIL.Image</code> or <code>List[PIL.Image]</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing a http link pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>
<p>The pipeline accepts either a single image or a batch of images, which must then be passed as a string.
Images in a batch must all be in the same format: all as http links, all as local paths, or all as PIL
images.`,name:"images"},{anchor:"transformers.DepthEstimationPipeline.__call__.top_k",description:`<strong>top_k</strong> (<code>int</code>, <em>optional</em>, defaults to 5) &#x2014;
The number of top labels that will be returned by the pipeline. If the provided number is higher than
the number of labels available in the model configuration, it will default to the number of labels.`,name:"top_k"},{anchor:"transformers.DepthEstimationPipeline.__call__.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to None) &#x2014;
The maximum time in seconds to wait for fetching images from the web. If None, no timeout is set and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/depth_estimation.py#L53",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A dictionary or a list of dictionaries containing result. If the input is a single image, will return a
dictionary, if the input is a list of several images, will return a list of dictionaries corresponding to
the images.</p>
<p>The dictionaries contain the following keys:</p>
<ul>
<li><strong>label</strong> (<code>str</code>) — The label identified by the model.</li>
<li><strong>score</strong> (<code>int</code>) — The score attributed by the model for that label.</li>
</ul>
`}}),qs=new $({props:{title:"ImageClassificationPipeline",local:"transformers.ImageClassificationPipeline",headingTag:"h3"}}),Gs=new j({props:{name:"class transformers.ImageClassificationPipeline",anchor:"transformers.ImageClassificationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ImageClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.ImageClassificationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.ImageClassificationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.ImageClassificationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.ImageClassificationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.ImageClassificationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.ImageClassificationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.36.0/zh/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.ImageClassificationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.ImageClassificationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/image_classification.py#L32"}}),pt=new P({props:{anchor:"transformers.ImageClassificationPipeline.example",$$slots:{default:[sx]},$$scope:{ctx:k}}}),Zs=new j({props:{name:"__call__",anchor:"transformers.ImageClassificationPipeline.__call__",parameters:[{name:"images",val:": typing.Union[str, typing.List[str], ForwardRef('Image.Image'), typing.List[ForwardRef('Image.Image')]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageClassificationPipeline.__call__.images",description:`<strong>images</strong> (<code>str</code>, <code>List[str]</code>, <code>PIL.Image</code> or <code>List[PIL.Image]</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing a http link pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>
<p>The pipeline accepts either a single image or a batch of images, which must then be passed as a string.
Images in a batch must all be in the same format: all as http links, all as local paths, or all as PIL
images.`,name:"images"},{anchor:"transformers.ImageClassificationPipeline.__call__.top_k",description:`<strong>top_k</strong> (<code>int</code>, <em>optional</em>, defaults to 5) &#x2014;
The number of top labels that will be returned by the pipeline. If the provided number is higher than
the number of labels available in the model configuration, it will default to the number of labels.`,name:"top_k"},{anchor:"transformers.ImageClassificationPipeline.__call__.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to None) &#x2014;
The maximum time in seconds to wait for fetching images from the web. If None, no timeout is set and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/image_classification.py#L74",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>
`}}),Fs=new $({props:{title:"ImageSegmentationPipeline",local:"transformers.ImageSegmentationPipeline",headingTag:"h3"}}),Rs=new j({props:{name:"class transformers.ImageSegmentationPipeline",anchor:"transformers.ImageSegmentationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageSegmentationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ImageSegmentationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.ImageSegmentationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.ImageSegmentationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.ImageSegmentationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.ImageSegmentationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.ImageSegmentationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.ImageSegmentationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.36.0/zh/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.ImageSegmentationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.ImageSegmentationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/image_segmentation.py#L31"}}),dt=new P({props:{anchor:"transformers.ImageSegmentationPipeline.example",$$slots:{default:[ax]},$$scope:{ctx:k}}}),Ds=new j({props:{name:"__call__",anchor:"transformers.ImageSegmentationPipeline.__call__",parameters:[{name:"images",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageSegmentationPipeline.__call__.images",description:`<strong>images</strong> (<code>str</code>, <code>List[str]</code>, <code>PIL.Image</code> or <code>List[PIL.Image]</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing an HTTP(S) link pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>
<p>The pipeline accepts either a single image or a batch of images. Images in a batch must all be in the
same format: all as HTTP(S) links, all as local paths, or all as PIL images.`,name:"images"},{anchor:"transformers.ImageSegmentationPipeline.__call__.subtask",description:`<strong>subtask</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Segmentation task to be performed, choose [<code>semantic</code>, <code>instance</code> and <code>panoptic</code>] depending on model
capabilities. If not set, the pipeline will attempt tp resolve in the following order:
<code>panoptic</code>, <code>instance</code>, <code>semantic</code>.`,name:"subtask"},{anchor:"transformers.ImageSegmentationPipeline.__call__.threshold",description:`<strong>threshold</strong> (<code>float</code>, <em>optional</em>, defaults to 0.9) &#x2014;
Probability threshold to filter out predicted masks.`,name:"threshold"},{anchor:"transformers.ImageSegmentationPipeline.__call__.mask_threshold",description:`<strong>mask_threshold</strong> (<code>float</code>, <em>optional</em>, defaults to 0.5) &#x2014;
Threshold to use when turning the predicted masks into binary values.`,name:"mask_threshold"},{anchor:"transformers.ImageSegmentationPipeline.__call__.overlap_mask_area_threshold",description:`<strong>overlap_mask_area_threshold</strong> (<code>float</code>, <em>optional</em>, defaults to 0.5) &#x2014;
Mask overlap threshold to eliminate small, disconnected segments.`,name:"overlap_mask_area_threshold"},{anchor:"transformers.ImageSegmentationPipeline.__call__.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to None) &#x2014;
The maximum time in seconds to wait for fetching images from the web. If None, no timeout is set and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/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>
`}}),Ns=new $({props:{title:"ImageToImagePipeline",local:"transformers.ImageToImagePipeline",headingTag:"h3"}}),Bs=new j({props:{name:"class transformers.ImageToImagePipeline",anchor:"transformers.ImageToImagePipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageToImagePipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ImageToImagePipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.ImageToImagePipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.ImageToImagePipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.ImageToImagePipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.ImageToImagePipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.ImageToImagePipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.ImageToImagePipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.36.0/zh/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.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/image_to_image.py#L40"}}),ht=new P({props:{anchor:"transformers.ImageToImagePipeline.example",$$slots:{default:[ox]},$$scope:{ctx:k}}}),Vs=new j({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/v4.36.0/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>
`}}),As=new $({props:{title:"ObjectDetectionPipeline",local:"transformers.ObjectDetectionPipeline",headingTag:"h3"}}),Ws=new j({props:{name:"class transformers.ObjectDetectionPipeline",anchor:"transformers.ObjectDetectionPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ObjectDetectionPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ObjectDetectionPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.ObjectDetectionPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.ObjectDetectionPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.ObjectDetectionPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.ObjectDetectionPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.ObjectDetectionPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.ObjectDetectionPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.36.0/zh/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.ObjectDetectionPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.ObjectDetectionPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/object_detection.py#L27"}}),gt=new P({props:{anchor:"transformers.ObjectDetectionPipeline.example",$$slots:{default:[rx]},$$scope:{ctx:k}}}),Ls=new j({props:{name:"__call__",anchor:"transformers.ObjectDetectionPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ObjectDetectionPipeline.__call__.images",description:`<strong>images</strong> (<code>str</code>, <code>List[str]</code>, <code>PIL.Image</code> or <code>List[PIL.Image]</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing an HTTP(S) link pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>
<p>The pipeline accepts either a single image or a batch of images. Images in a batch must all be in the
same format: all as HTTP(S) links, all as local paths, or all as PIL images.`,name:"images"},{anchor:"transformers.ObjectDetectionPipeline.__call__.threshold",description:`<strong>threshold</strong> (<code>float</code>, <em>optional</em>, defaults to 0.9) &#x2014;
The probability necessary to make a prediction.`,name:"threshold"},{anchor:"transformers.ObjectDetectionPipeline.__call__.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to None) &#x2014;
The maximum time in seconds to wait for fetching images from the web. If None, no timeout is set and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/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>
`}}),Ss=new $({props:{title:"VideoClassificationPipeline",local:"transformers.VideoClassificationPipeline",headingTag:"h3"}}),Os=new j({props:{name:"class transformers.VideoClassificationPipeline",anchor:"transformers.VideoClassificationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.VideoClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.VideoClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.VideoClassificationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.VideoClassificationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.VideoClassificationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.VideoClassificationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.VideoClassificationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.VideoClassificationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.36.0/zh/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.VideoClassificationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.VideoClassificationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/video_classification.py#L22"}}),Hs=new j({props:{name:"__call__",anchor:"transformers.VideoClassificationPipeline.__call__",parameters:[{name:"videos",val:": typing.Union[str, typing.List[str]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.VideoClassificationPipeline.__call__.videos",description:`<strong>videos</strong> (<code>str</code>, <code>List[str]</code>) &#x2014;
The pipeline handles three types of videos:</p>
<ul>
<li>A string containing a http link pointing to a video</li>
<li>A string containing a local path to a video</li>
</ul>
<p>The pipeline accepts either a single video or a batch of videos, which must then be passed as a string.
Videos in a batch must all be in the same format: all as http links or all as local paths.`,name:"videos"},{anchor:"transformers.VideoClassificationPipeline.__call__.top_k",description:`<strong>top_k</strong> (<code>int</code>, <em>optional</em>, defaults to 5) &#x2014;
The number of top labels that will be returned by the pipeline. If the provided number is higher than
the number of labels available in the model configuration, it will default to the number of labels.`,name:"top_k"},{anchor:"transformers.VideoClassificationPipeline.__call__.num_frames",description:`<strong>num_frames</strong> (<code>int</code>, <em>optional</em>, defaults to <code>self.model.config.num_frames</code>) &#x2014;
The number of frames sampled from the video to run the classification on. If not provided, will default
to the number of frames specified in the model configuration.`,name:"num_frames"},{anchor:"transformers.VideoClassificationPipeline.__call__.frame_sampling_rate",description:`<strong>frame_sampling_rate</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The sampling rate used to select frames from the video. If not provided, will default to 1, i.e. every
frame will be used.`,name:"frame_sampling_rate"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/video_classification.py#L51",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>
`}}),Ys=new $({props:{title:"ZeroShotImageClassificationPipeline",local:"transformers.ZeroShotImageClassificationPipeline",headingTag:"h3"}}),Es=new j({props:{name:"class transformers.ZeroShotImageClassificationPipeline",anchor:"transformers.ZeroShotImageClassificationPipeline",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotImageClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ZeroShotImageClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.ZeroShotImageClassificationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.ZeroShotImageClassificationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.ZeroShotImageClassificationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.ZeroShotImageClassificationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.ZeroShotImageClassificationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.ZeroShotImageClassificationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.36.0/zh/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.ZeroShotImageClassificationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.ZeroShotImageClassificationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/zero_shot_image_classification.py#L31"}}),bt=new P({props:{anchor:"transformers.ZeroShotImageClassificationPipeline.example",$$slots:{default:[ix]},$$scope:{ctx:k}}}),Qs=new j({props:{name:"__call__",anchor:"transformers.ZeroShotImageClassificationPipeline.__call__",parameters:[{name:"images",val:": typing.Union[str, typing.List[str], ForwardRef('Image'), typing.List[ForwardRef('Image')]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotImageClassificationPipeline.__call__.images",description:`<strong>images</strong> (<code>str</code>, <code>List[str]</code>, <code>PIL.Image</code> or <code>List[PIL.Image]</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing a http link pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>`,name:"images"},{anchor:"transformers.ZeroShotImageClassificationPipeline.__call__.candidate_labels",description:`<strong>candidate_labels</strong> (<code>List[str]</code>) &#x2014;
The candidate labels for this image`,name:"candidate_labels"},{anchor:"transformers.ZeroShotImageClassificationPipeline.__call__.hypothesis_template",description:`<strong>hypothesis_template</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;This is a photo of {}&quot;</code>) &#x2014;
The sentence used in cunjunction with <em>candidate_labels</em> to attempt the image classification by
replacing the placeholder with the candidate_labels. Then likelihood is estimated by using
logits_per_image`,name:"hypothesis_template"},{anchor:"transformers.ZeroShotImageClassificationPipeline.__call__.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to None) &#x2014;
The maximum time in seconds to wait for fetching images from the web. If None, no timeout is set and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/zero_shot_image_classification.py#L74",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of dictionaries containing result, one dictionary per proposed label. The dictionaries contain the
following keys:</p>
<ul>
<li><strong>label</strong> (<code>str</code>) — The label identified by the model. It is one of the suggested <code>candidate_label</code>.</li>
<li><strong>score</strong> (<code>float</code>) — The score attributed by the model for that label (between 0 and 1).</li>
</ul>
`}}),Xs=new $({props:{title:"ZeroShotObjectDetectionPipeline",local:"transformers.ZeroShotObjectDetectionPipeline",headingTag:"h3"}}),Ks=new j({props:{name:"class transformers.ZeroShotObjectDetectionPipeline",anchor:"transformers.ZeroShotObjectDetectionPipeline",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotObjectDetectionPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ZeroShotObjectDetectionPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.ZeroShotObjectDetectionPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.ZeroShotObjectDetectionPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.ZeroShotObjectDetectionPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.ZeroShotObjectDetectionPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.ZeroShotObjectDetectionPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.ZeroShotObjectDetectionPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.36.0/zh/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.ZeroShotObjectDetectionPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.ZeroShotObjectDetectionPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/zero_shot_object_detection.py#L23"}}),wt=new P({props:{anchor:"transformers.ZeroShotObjectDetectionPipeline.example",$$slots:{default:[lx]},$$scope:{ctx:k}}}),ea=new j({props:{name:"__call__",anchor:"transformers.ZeroShotObjectDetectionPipeline.__call__",parameters:[{name:"image",val:": typing.Union[str, ForwardRef('Image.Image'), typing.List[typing.Dict[str, typing.Any]]]"},{name:"candidate_labels",val:": typing.Union[str, typing.List[str]] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotObjectDetectionPipeline.__call__.image",description:`<strong>image</strong> (<code>str</code>, <code>PIL.Image</code> or <code>List[Dict[str, Any]]</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing an http url pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>
<p>You can use this parameter to send directly a list of images, or a dataset or a generator like so:`,name:"image"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/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>
`}}),ta=new $({props:{title:"自然语言处理",local:"自然语言处理",headingTag:"h2"}}),sa=new $({props:{title:"ConversationalPipeline",local:"transformers.Conversation",headingTag:"h3"}}),aa=new j({props:{name:"class transformers.Conversation",anchor:"transformers.Conversation",parameters:[{name:"messages",val:": typing.Union[str, typing.List[typing.Dict[str, str]]] = None"},{name:"conversation_id",val:": UUID = None"},{name:"**deprecated_kwargs",val:""}],parametersDescription:[{anchor:"transformers.Conversation.messages",description:`<strong>messages</strong> (Union[str, List[Dict[str, str]]], <em>optional</em>) &#x2014;
The initial messages to start the conversation, either a string, or a list of dicts containing &#x201C;role&#x201D; and
&#x201C;content&#x201D; keys. If a string is passed, it is interpreted as a single message with the &#x201C;user&#x201D; role.`,name:"messages"},{anchor:"transformers.Conversation.conversation_id",description:`<strong>conversation_id</strong> (<code>uuid.UUID</code>, <em>optional</em>) &#x2014;
Unique identifier for the conversation. If not provided, a random UUID4 id will be assigned to the
conversation.`,name:"conversation_id"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/conversational.py#L18"}}),Mt=new P({props:{anchor:"transformers.Conversation.example",$$slots:{default:[px]},$$scope:{ctx:k}}}),oa=new j({props:{name:"add_user_input",anchor:"transformers.Conversation.add_user_input",parameters:[{name:"text",val:": str"},{name:"overwrite",val:": bool = False"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/conversational.py#L89"}}),ra=new j({props:{name:"append_response",anchor:"transformers.Conversation.append_response",parameters:[{name:"response",val:": str"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/conversational.py#L110"}}),ia=new j({props:{name:"mark_processed",anchor:"transformers.Conversation.mark_processed",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/conversational.py#L116"}}),la=new j({props:{name:"class transformers.ConversationalPipeline",anchor:"transformers.ConversationalPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ConversationalPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ConversationalPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.ConversationalPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.ConversationalPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.ConversationalPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.ConversationalPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.ConversationalPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.ConversationalPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.36.0/zh/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.ConversationalPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.ConversationalPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"},{anchor:"transformers.ConversationalPipeline.min_length_for_response",description:`<strong>min_length_for_response</strong> (<code>int</code>, <em>optional</em>, defaults to 32) &#x2014;
The minimum length (in number of tokens) for a response.`,name:"min_length_for_response"},{anchor:"transformers.ConversationalPipeline.minimum_tokens",description:`<strong>minimum_tokens</strong> (<code>int</code>, <em>optional</em>, defaults to 10) &#x2014;
The minimum length of tokens to leave for a response.`,name:"minimum_tokens"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/conversational.py#L203"}}),jt=new P({props:{anchor:"transformers.ConversationalPipeline.example",$$slots:{default:[cx]},$$scope:{ctx:k}}}),pa=new j({props:{name:"__call__",anchor:"transformers.ConversationalPipeline.__call__",parameters:[{name:"conversations",val:": typing.Union[typing.List[typing.Dict], transformers.pipelines.conversational.Conversation, typing.List[transformers.pipelines.conversational.Conversation]]"},{name:"num_workers",val:" = 0"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ConversationalPipeline.__call__.conversations",description:`<strong>conversations</strong> (a <a href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.Conversation">Conversation</a> or a list of <a href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.Conversation">Conversation</a>) &#x2014;
Conversation to generate responses for. Inputs can also be passed as a list of dictionaries with <code>role</code>
and <code>content</code> keys - in this case, they will be converted to <code>Conversation</code> objects automatically.
Multiple conversations in either format may be passed as a list.`,name:"conversations"},{anchor:"transformers.ConversationalPipeline.__call__.clean_up_tokenization_spaces",description:`<strong>clean_up_tokenization_spaces</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to clean up the potential extra spaces in the text output.
generate_kwargs &#x2014;
Additional keyword arguments to pass along to the generate method of the model (see the generate method
corresponding to your framework <a href="./model#generative-models">here</a>).`,name:"clean_up_tokenization_spaces"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/conversational.py#L262",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><a
  href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.Conversation"
>Conversation</a> or a list of <a
  href="/docs/transformers/v4.36.0/zh/main_classes/pipelines#transformers.Conversation"
>Conversation</a></p>
`}}),ca=new $({props:{title:"FillMaskPipeline",local:"transformers.FillMaskPipeline",headingTag:"h3"}}),da=new j({props:{name:"class transformers.FillMaskPipeline",anchor:"transformers.FillMaskPipeline",parameters:[{name:"model",val:": typing.Union[ForwardRef('PreTrainedModel'), ForwardRef('TFPreTrainedModel')]"},{name:"tokenizer",val:": typing.Optional[transformers.tokenization_utils.PreTrainedTokenizer] = None"},{name:"feature_extractor",val:": typing.Optional[ForwardRef('SequenceFeatureExtractor')] = None"},{name:"image_processor",val:": typing.Optional[transformers.image_processing_utils.BaseImageProcessor] = None"},{name:"modelcard",val:": typing.Optional[transformers.modelcard.ModelCard] = None"},{name:"framework",val:": typing.Optional[str] = None"},{name:"task",val:": str = ''"},{name:"args_parser",val:": ArgumentHandler = None"},{name:"device",val:": typing.Union[int, ForwardRef('torch.device')] = None"},{name:"torch_dtype",val:": typing.Union[str, ForwardRef('torch.dtype'), NoneType] = None"},{name:"binary_output",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FillMaskPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.FillMaskPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.FillMaskPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.FillMaskPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.FillMaskPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.FillMaskPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.FillMaskPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.FillMaskPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.36.0/zh/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.FillMaskPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.FillMaskPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"},{anchor:"transformers.FillMaskPipeline.top_k",description:`<strong>top_k</strong> (<code>int</code>, defaults to 5) &#x2014;
The number of predictions to return.`,name:"top_k"},{anchor:"transformers.FillMaskPipeline.targets",description:`<strong>targets</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
When passed, the model will limit the scores to the passed targets instead of looking up in the whole
vocab. If the provided targets are not in the model vocab, they will be tokenized and the first resulting
token will be used (with a warning, and that might be slower).`,name:"targets"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/fill_mask.py#L34"}}),$t=new P({props:{anchor:"transformers.FillMaskPipeline.example",$$slots:{default:[dx]},$$scope:{ctx:k}}}),Jt=new Ed({props:{$$slots:{default:[mx]},$$scope:{ctx:k}}}),Pt=new Ed({props:{$$slots:{default:[fx]},$$scope:{ctx:k}}}),ma=new j({props:{name:"__call__",anchor:"transformers.FillMaskPipeline.__call__",parameters:[{name:"inputs",val:""},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FillMaskPipeline.__call__.args",description:`<strong>args</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
One or several texts (or one list of prompts) with masked tokens.`,name:"args"},{anchor:"transformers.FillMaskPipeline.__call__.targets",description:`<strong>targets</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
When passed, the model will limit the scores to the passed targets instead of looking up in the whole
vocab. If the provided targets are not in the model vocab, they will be tokenized and the first
resulting token will be used (with a warning, and that might be slower).`,name:"targets"},{anchor:"transformers.FillMaskPipeline.__call__.top_k",description:`<strong>top_k</strong> (<code>int</code>, <em>optional</em>) &#x2014;
When passed, overrides the number of predictions to return.`,name:"top_k"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/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>
`}}),ha=new $({props:{title:"NerPipeline",local:"transformers.TokenClassificationPipeline",headingTag:"h3"}}),fa=new j({props:{name:"class transformers.TokenClassificationPipeline",anchor:"transformers.TokenClassificationPipeline",parameters:[{name:"args_parser",val:" = <transformers.pipelines.token_classification.TokenClassificationArgumentHandler object at 0x7fee39a8a520>"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TokenClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.TokenClassificationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.TokenClassificationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.TokenClassificationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.TokenClassificationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.TokenClassificationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.TokenClassificationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.36.0/zh/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.TokenClassificationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.TokenClassificationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"},{anchor:"transformers.TokenClassificationPipeline.ignore_labels",description:`<strong>ignore_labels</strong> (<code>List[str]</code>, defaults to <code>[&quot;O&quot;]</code>) &#x2014;
A list of labels to ignore.`,name:"ignore_labels"},{anchor:"transformers.TokenClassificationPipeline.grouped_entities",description:`<strong>grouped_entities</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
DEPRECATED, use <code>aggregation_strategy</code> instead. Whether or not to group the tokens corresponding to the
same entity together in the predictions or not.`,name:"grouped_entities"},{anchor:"transformers.TokenClassificationPipeline.stride",description:`<strong>stride</strong> (<code>int</code>, <em>optional</em>) &#x2014;
If stride is provided, the pipeline is applied on all the text. The text is split into chunks of size
model_max_length. Works only with fast tokenizers and <code>aggregation_strategy</code> different from <code>NONE</code>. The
value of this argument defines the number of overlapping tokens between chunks. In other words, the model
will shift forward by <code>tokenizer.model_max_length - stride</code> tokens each step.`,name:"stride"},{anchor:"transformers.TokenClassificationPipeline.aggregation_strategy",description:`<strong>aggregation_strategy</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;none&quot;</code>) &#x2014;
The strategy to fuse (or not) tokens based on the model prediction.</p>
<ul>
<li>&#x201C;none&#x201D; : Will simply not do any aggregation and simply return raw results from the model</li>
<li>&#x201C;simple&#x201D; : Will attempt to group entities following the default schema. (A, B-TAG), (B, I-TAG), (C,
I-TAG), (D, B-TAG2) (E, B-TAG2) will end up being [{&#x201C;word&#x201D;: ABC, &#x201C;entity&#x201D;: &#x201C;TAG&#x201D;}, {&#x201C;word&#x201D;: &#x201C;D&#x201D;,
&#x201C;entity&#x201D;: &#x201C;TAG2&#x201D;}, {&#x201C;word&#x201D;: &#x201C;E&#x201D;, &#x201C;entity&#x201D;: &#x201C;TAG2&#x201D;}] Notice that two consecutive B tags will end up as
different entities. On word based languages, we might end up splitting words undesirably : Imagine
Microsoft being tagged as [{&#x201C;word&#x201D;: &#x201C;Micro&#x201D;, &#x201C;entity&#x201D;: &#x201C;ENTERPRISE&#x201D;}, {&#x201C;word&#x201D;: &#x201C;soft&#x201D;, &#x201C;entity&#x201D;:
&#x201C;NAME&#x201D;}]. Look for FIRST, MAX, AVERAGE for ways to mitigate that and disambiguate words (on languages
that support that meaning, which is basically tokens separated by a space). These mitigations will
only work on real words, &#x201C;New york&#x201D; might still be tagged with two different entities.</li>
<li>&#x201C;first&#x201D; : (works only on word based models) Will use the <code>SIMPLE</code> strategy except that words, cannot
end up with different tags. Words will simply use the tag of the first token of the word when there
is ambiguity.</li>
<li>&#x201C;average&#x201D; : (works only on word based models) Will use the <code>SIMPLE</code> strategy except that words,
cannot end up with different tags. scores will be averaged first across tokens, and then the maximum
label is applied.</li>
<li>&#x201C;max&#x201D; : (works only on word based models) Will use the <code>SIMPLE</code> strategy except that words, cannot
end up with different tags. Word entity will simply be the token with the maximum score.</li>
</ul>`,name:"aggregation_strategy"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/token_classification.py#L96"}}),It=new P({props:{anchor:"transformers.TokenClassificationPipeline.example",$$slots:{default:[gx]},$$scope:{ctx:k}}}),ga=new j({props:{name:"aggregate_words",anchor:"transformers.TokenClassificationPipeline.aggregate_words",parameters:[{name:"entities",val:": typing.List[dict]"},{name:"aggregation_strategy",val:": AggregationStrategy"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/token_classification.py#L470"}}),ua=new j({props:{name:"gather_pre_entities",anchor:"transformers.TokenClassificationPipeline.gather_pre_entities",parameters:[{name:"sentence",val:": str"},{name:"input_ids",val:": ndarray"},{name:"scores",val:": ndarray"},{name:"offset_mapping",val:": typing.Union[typing.List[typing.Tuple[int, int]], NoneType]"},{name:"special_tokens_mask",val:": ndarray"},{name:"aggregation_strategy",val:": AggregationStrategy"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/token_classification.py#L356"}}),Ta=new j({props:{name:"group_entities",anchor:"transformers.TokenClassificationPipeline.group_entities",parameters:[{name:"entities",val:": typing.List[dict]"}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.group_entities.entities",description:"<strong>entities</strong> (<code>dict</code>) &#x2014; The entities predicted by the pipeline.",name:"entities"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/token_classification.py#L533"}}),ba=new j({props:{name:"group_sub_entities",anchor:"transformers.TokenClassificationPipeline.group_sub_entities",parameters:[{name:"entities",val:": typing.List[dict]"}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.group_sub_entities.entities",description:"<strong>entities</strong> (<code>dict</code>) &#x2014; The entities predicted by the pipeline.",name:"entities"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/token_classification.py#L498"}}),wa=new $({props:{title:"QuestionAnsweringPipeline",local:"transformers.QuestionAnsweringPipeline",headingTag:"h3"}}),xa=new j({props:{name:"class transformers.QuestionAnsweringPipeline",anchor:"transformers.QuestionAnsweringPipeline",parameters:[{name:"model",val:": typing.Union[ForwardRef('PreTrainedModel'), ForwardRef('TFPreTrainedModel')]"},{name:"tokenizer",val:": PreTrainedTokenizer"},{name:"modelcard",val:": typing.Optional[transformers.modelcard.ModelCard] = None"},{name:"framework",val:": typing.Optional[str] = None"},{name:"task",val:": str = ''"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.QuestionAnsweringPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.QuestionAnsweringPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.QuestionAnsweringPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.QuestionAnsweringPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.QuestionAnsweringPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.QuestionAnsweringPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.QuestionAnsweringPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.QuestionAnsweringPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.36.0/zh/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.QuestionAnsweringPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.QuestionAnsweringPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/question_answering.py#L225"}}),Zt=new P({props:{anchor:"transformers.QuestionAnsweringPipeline.example",$$slots:{default:[ux]},$$scope:{ctx:k}}}),Ma=new j({props:{name:"__call__",anchor:"transformers.QuestionAnsweringPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.QuestionAnsweringPipeline.__call__.args",description:`<strong>args</strong> (<code>SquadExample</code> or a list of <code>SquadExample</code>) &#x2014;
One or several <code>SquadExample</code> containing the question and context.`,name:"args"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.X",description:`<strong>X</strong> (<code>SquadExample</code> or a list of <code>SquadExample</code>, <em>optional</em>) &#x2014;
One or several <code>SquadExample</code> containing the question and context (will be treated the same way as if
passed as the first positional argument).`,name:"X"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.data",description:`<strong>data</strong> (<code>SquadExample</code> or a list of <code>SquadExample</code>, <em>optional</em>) &#x2014;
One or several <code>SquadExample</code> containing the question and context (will be treated the same way as if
passed as the first positional argument).`,name:"data"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.question",description:`<strong>question</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
One or several question(s) (must be used in conjunction with the <code>context</code> argument).`,name:"question"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.context",description:`<strong>context</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
One or several context(s) associated with the question(s) (must be used in conjunction with the
<code>question</code> argument).`,name:"context"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.topk",description:`<strong>topk</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The number of answers to return (will be chosen by order of likelihood). Note that we return less than
topk answers if there are not enough options available within the context.`,name:"topk"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.doc_stride",description:`<strong>doc_stride</strong> (<code>int</code>, <em>optional</em>, defaults to 128) &#x2014;
If the context is too long to fit with the question for the model, it will be split in several chunks
with some overlap. This argument controls the size of that overlap.`,name:"doc_stride"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.max_answer_len",description:`<strong>max_answer_len</strong> (<code>int</code>, <em>optional</em>, defaults to 15) &#x2014;
The maximum length of predicted answers (e.g., only answers with a shorter length are considered).`,name:"max_answer_len"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.max_seq_len",description:`<strong>max_seq_len</strong> (<code>int</code>, <em>optional</em>, defaults to 384) &#x2014;
The maximum length of the total sentence (context + question) in tokens of each chunk passed to the
model. The context will be split in several chunks (using <code>doc_stride</code> as overlap) if needed.`,name:"max_seq_len"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.max_question_len",description:`<strong>max_question_len</strong> (<code>int</code>, <em>optional</em>, defaults to 64) &#x2014;
The maximum length of the question after tokenization. It will be truncated if needed.`,name:"max_question_len"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.handle_impossible_answer",description:`<strong>handle_impossible_answer</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not we accept impossible as an answer.`,name:"handle_impossible_answer"},{anchor:"transformers.QuestionAnsweringPipeline.__call__.align_to_words",description:`<strong>align_to_words</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Attempts to align the answer to real words. Improves quality on space separated langages. Might hurt on
non-space-separated languages (like Japanese or Chinese)`,name:"align_to_words"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/question_answering.py#L343",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Each result comes as a dictionary with the following keys:</p>
<ul>
<li><strong>score</strong> (<code>float</code>) — The probability associated to the answer.</li>
<li><strong>start</strong> (<code>int</code>) — The character start index of the answer (in the tokenized version of the input).</li>
<li><strong>end</strong> (<code>int</code>) — The character end index of the answer (in the tokenized version of the input).</li>
<li><strong>answer</strong> (<code>str</code>) — The answer to the question.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>dict</code> or a list of <code>dict</code></p>
`}}),_a=new j({props:{name:"create_sample",anchor:"transformers.QuestionAnsweringPipeline.create_sample",parameters:[{name:"question",val:": typing.Union[str, typing.List[str]]"},{name:"context",val:": typing.Union[str, typing.List[str]]"}],parametersDescription:[{anchor:"transformers.QuestionAnsweringPipeline.create_sample.question",description:"<strong>question</strong> (<code>str</code> or <code>List[str]</code>) &#x2014; The question(s) asked.",name:"question"},{anchor:"transformers.QuestionAnsweringPipeline.create_sample.context",description:"<strong>context</strong> (<code>str</code> or <code>List[str]</code>) &#x2014; The context(s) in which we will look for the answer.",name:"context"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/question_answering.py#L278",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p>One or a list of <code>SquadExample</code></p>
`}}),va=new j({props:{name:"span_to_answer",anchor:"transformers.QuestionAnsweringPipeline.span_to_answer",parameters:[{name:"text",val:": str"},{name:"start",val:": int"},{name:"end",val:": int"}],parametersDescription:[{anchor:"transformers.QuestionAnsweringPipeline.span_to_answer.text",description:"<strong>text</strong> (<code>str</code>) &#x2014; The actual context to extract the answer from.",name:"text"},{anchor:"transformers.QuestionAnsweringPipeline.span_to_answer.start",description:"<strong>start</strong> (<code>int</code>) &#x2014; The answer starting token index.",name:"start"},{anchor:"transformers.QuestionAnsweringPipeline.span_to_answer.end",description:"<strong>end</strong> (<code>int</code>) &#x2014; The answer end token index.",name:"end"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/question_answering.py#L630",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p>Dictionary like \`{‘answer’</p>
`}}),ka=new $({props:{title:"SummarizationPipeline",local:"transformers.SummarizationPipeline",headingTag:"h3"}}),ja=new j({props:{name:"class transformers.SummarizationPipeline",anchor:"transformers.SummarizationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.SummarizationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.SummarizationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.SummarizationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.SummarizationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.SummarizationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.SummarizationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.SummarizationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.SummarizationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.36.0/zh/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.SummarizationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.SummarizationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/text2text_generation.py#L217"}}),Dt=new P({props:{anchor:"transformers.SummarizationPipeline.example",$$slots:{default:[Tx]},$$scope:{ctx:k}}}),Ua=new j({props:{name:"__call__",anchor:"transformers.SummarizationPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.SummarizationPipeline.__call__.documents",description:`<strong>documents</strong> (<em>str</em> or <code>List[str]</code>) &#x2014;
One or several articles (or one list of articles) to summarize.`,name:"documents"},{anchor:"transformers.SummarizationPipeline.__call__.return_text",description:`<strong>return_text</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to include the decoded texts in the outputs`,name:"return_text"},{anchor:"transformers.SummarizationPipeline.__call__.return_tensors",description:`<strong>return_tensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to include the tensors of predictions (as token indices) in the outputs.`,name:"return_tensors"},{anchor:"transformers.SummarizationPipeline.__call__.clean_up_tokenization_spaces",description:`<strong>clean_up_tokenization_spaces</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to clean up the potential extra spaces in the text output.
generate_kwargs &#x2014;
Additional keyword arguments to pass along to the generate method of the model (see the generate method
corresponding to your framework <a href="./model#generative-models">here</a>).`,name:"clean_up_tokenization_spaces"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/text2text_generation.py#L245",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Each result comes as a dictionary with the following keys:</p>
<ul>
<li><strong>summary_text</strong> (<code>str</code>, present when <code>return_text=True</code>) — The summary of the corresponding input.</li>
<li><strong>summary_token_ids</strong> (<code>torch.Tensor</code> or <code>tf.Tensor</code>, present when <code>return_tensors=True</code>) — The token
ids of the summary.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list or a list of list of <code>dict</code></p>
`}}),$a=new $({props:{title:"TableQuestionAnsweringPipeline",local:"transformers.TableQuestionAnsweringPipeline",headingTag:"h3"}}),Ja=new j({props:{name:"class transformers.TableQuestionAnsweringPipeline",anchor:"transformers.TableQuestionAnsweringPipeline",parameters:[{name:"args_parser",val:" = <transformers.pipelines.table_question_answering.TableQuestionAnsweringArgumentHandler object at 0x7fee39b47550>"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TableQuestionAnsweringPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TableQuestionAnsweringPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.TableQuestionAnsweringPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.TableQuestionAnsweringPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.TableQuestionAnsweringPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.TableQuestionAnsweringPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.TableQuestionAnsweringPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.TableQuestionAnsweringPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.36.0/zh/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.TableQuestionAnsweringPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.TableQuestionAnsweringPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/table_question_answering.py#L88"}}),Bt=new P({props:{anchor:"transformers.TableQuestionAnsweringPipeline.example",$$slots:{default:[bx]},$$scope:{ctx:k}}}),Pa=new j({props:{name:"__call__",anchor:"transformers.TableQuestionAnsweringPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TableQuestionAnsweringPipeline.__call__.table",description:`<strong>table</strong> (<code>pd.DataFrame</code> or <code>Dict</code>) &#x2014;
Pandas DataFrame or dictionary that will be converted to a DataFrame containing all the table values.
See above for an example of dictionary.`,name:"table"},{anchor:"transformers.TableQuestionAnsweringPipeline.__call__.query",description:`<strong>query</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
Query or list of queries that will be sent to the model alongside the table.`,name:"query"},{anchor:"transformers.TableQuestionAnsweringPipeline.__call__.sequential",description:`<strong>sequential</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to do inference sequentially or as a batch. Batching is faster, but models like SQA require the
inference to be done sequentially to extract relations within sequences, given their conversational
nature.`,name:"sequential"},{anchor:"transformers.TableQuestionAnsweringPipeline.__call__.padding",description:`<strong>padding</strong> (<code>bool</code>, <code>str</code> or <a href="/docs/transformers/v4.36.0/zh/internal/file_utils#transformers.utils.PaddingStrategy">PaddingStrategy</a>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Activates and controls padding. Accepts the following values:</p>
<ul>
<li><code>True</code> or <code>&apos;longest&apos;</code>: Pad to the longest sequence in the batch (or no padding if only a single
sequence if provided).</li>
<li><code>&apos;max_length&apos;</code>: Pad to a maximum length specified with the argument <code>max_length</code> or to the maximum
acceptable input length for the model if that argument is not provided.</li>
<li><code>False</code> or <code>&apos;do_not_pad&apos;</code> (default): No padding (i.e., can output a batch with sequences of different
lengths).</li>
</ul>`,name:"padding"},{anchor:"transformers.TableQuestionAnsweringPipeline.__call__.truncation",description:`<strong>truncation</strong> (<code>bool</code>, <code>str</code> or <code>TapasTruncationStrategy</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Activates and controls truncation. Accepts the following values:</p>
<ul>
<li><code>True</code> or <code>&apos;drop_rows_to_fit&apos;</code>: Truncate to a maximum length specified with the argument <code>max_length</code>
or to the maximum acceptable input length for the model if that argument is not provided. This will
truncate row by row, removing rows from the table.</li>
<li><code>False</code> or <code>&apos;do_not_truncate&apos;</code> (default): No truncation (i.e., can output batch with sequence lengths
greater than the model maximum admissible input size).</li>
</ul>`,name:"truncation"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/table_question_answering.py#L270",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>
`}}),Vt=new P({props:{anchor:"transformers.TableQuestionAnsweringPipeline.__call__.example",$$slots:{default:[yx]},$$scope:{ctx:k}}}),At=new P({props:{anchor:"transformers.TableQuestionAnsweringPipeline.__call__.example-2",$$slots:{default:[wx]},$$scope:{ctx:k}}}),Ca=new $({props:{title:"TextClassificationPipeline",local:"transformers.TextClassificationPipeline",headingTag:"h3"}}),Ia=new j({props:{name:"class transformers.TextClassificationPipeline",anchor:"transformers.TextClassificationPipeline",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TextClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TextClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.TextClassificationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.TextClassificationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.TextClassificationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.TextClassificationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.TextClassificationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.TextClassificationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.36.0/zh/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.TextClassificationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.TextClassificationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"},{anchor:"transformers.TextClassificationPipeline.return_all_scores",description:`<strong>return_all_scores</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to return all prediction scores or just the one of the predicted class.`,name:"return_all_scores"},{anchor:"transformers.TextClassificationPipeline.function_to_apply",description:`<strong>function_to_apply</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;default&quot;</code>) &#x2014;
The function to apply to the model outputs in order to retrieve the scores. Accepts four different values:</p>
<ul>
<li><code>&quot;default&quot;</code>: if the model has a single label, will apply the sigmoid function on the output. If the model
has several labels, will apply the softmax function on the output.</li>
<li><code>&quot;sigmoid&quot;</code>: Applies the sigmoid function on the output.</li>
<li><code>&quot;softmax&quot;</code>: Applies the softmax function on the output.</li>
<li><code>&quot;none&quot;</code>: Does not apply any function on the output.</li>
</ul>`,name:"function_to_apply"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/text_classification.py#L49"}}),Wt=new P({props:{anchor:"transformers.TextClassificationPipeline.example",$$slots:{default:[xx]},$$scope:{ctx:k}}}),za=new j({props:{name:"__call__",anchor:"transformers.TextClassificationPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TextClassificationPipeline.__call__.args",description:`<strong>args</strong> (<code>str</code> or <code>List[str]</code> or <code>Dict[str]</code>, or <code>List[Dict[str]]</code>) &#x2014;
One or several texts to classify. In order to use text pairs for your classification, you can send a
dictionary containing <code>{&quot;text&quot;, &quot;text_pair&quot;}</code> keys, or a list of those.`,name:"args"},{anchor:"transformers.TextClassificationPipeline.__call__.top_k",description:`<strong>top_k</strong> (<code>int</code>, <em>optional</em>, defaults to <code>1</code>) &#x2014;
How many results to return.`,name:"top_k"},{anchor:"transformers.TextClassificationPipeline.__call__.function_to_apply",description:`<strong>function_to_apply</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;default&quot;</code>) &#x2014;
The function to apply to the model outputs in order to retrieve the scores. Accepts four different
values:</p>
<p>If this argument is not specified, then it will apply the following functions according to the number
of labels:</p>
<ul>
<li>If the model has a single label, will apply the sigmoid function on the output.</li>
<li>If the model has several labels, will apply the softmax function on the output.</li>
</ul>
<p>Possible values are:</p>
<ul>
<li><code>&quot;sigmoid&quot;</code>: Applies the sigmoid function on the output.</li>
<li><code>&quot;softmax&quot;</code>: Applies the softmax function on the output.</li>
<li><code>&quot;none&quot;</code>: Does not apply any function on the output.</li>
</ul>`,name:"function_to_apply"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/text_classification.py#L122",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>
`}}),qa=new $({props:{title:"TextGenerationPipeline",local:"transformers.TextGenerationPipeline",headingTag:"h3"}}),Ga=new j({props:{name:"class transformers.TextGenerationPipeline",anchor:"transformers.TextGenerationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TextGenerationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TextGenerationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.TextGenerationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.TextGenerationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.TextGenerationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.TextGenerationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.TextGenerationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.TextGenerationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.36.0/zh/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.TextGenerationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.TextGenerationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/text_generation.py#L24"}}),St=new P({props:{anchor:"transformers.TextGenerationPipeline.example",$$slots:{default:[Mx]},$$scope:{ctx:k}}}),Za=new j({props:{name:"__call__",anchor:"transformers.TextGenerationPipeline.__call__",parameters:[{name:"text_inputs",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TextGenerationPipeline.__call__.args",description:`<strong>args</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
One or several prompts (or one list of prompts) to complete.`,name:"args"},{anchor:"transformers.TextGenerationPipeline.__call__.return_tensors",description:`<strong>return_tensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to return the tensors of predictions (as token indices) in the outputs. If set to
<code>True</code>, the decoded text is not returned.`,name:"return_tensors"},{anchor:"transformers.TextGenerationPipeline.__call__.return_text",description:`<strong>return_text</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to return the decoded texts in the outputs.`,name:"return_text"},{anchor:"transformers.TextGenerationPipeline.__call__.return_full_text",description:`<strong>return_full_text</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
If set to <code>False</code> only added text is returned, otherwise the full text is returned. Only meaningful if
<em>return_text</em> is set to True.`,name:"return_full_text"},{anchor:"transformers.TextGenerationPipeline.__call__.clean_up_tokenization_spaces",description:`<strong>clean_up_tokenization_spaces</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to clean up the potential extra spaces in the text output.`,name:"clean_up_tokenization_spaces"},{anchor:"transformers.TextGenerationPipeline.__call__.prefix",description:`<strong>prefix</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Prefix added to prompt.`,name:"prefix"},{anchor:"transformers.TextGenerationPipeline.__call__.handle_long_generation",description:`<strong>handle_long_generation</strong> (<code>str</code>, <em>optional</em>) &#x2014;
By default, this pipelines does not handle long generation (ones that exceed in one form or the other
the model maximum length). There is no perfect way to adress this (more info
:<a href="https://github.com/huggingface/transformers/issues/14033#issuecomment-948385227" rel="nofollow">https://github.com/huggingface/transformers/issues/14033#issuecomment-948385227</a>). This provides common
strategies to work around that problem depending on your use case.</p>
<ul>
<li><code>None</code> : default strategy where nothing in particular happens</li>
<li><code>&quot;hole&quot;</code>: Truncates left of input, and leaves a gap wide enough to let generation happen (might
truncate a lot of the prompt and not suitable when generation exceed the model capacity)</li>
</ul>
<p>generate_kwargs &#x2014;
Additional keyword arguments to pass along to the generate method of the model (see the generate method
corresponding to your framework <a href="./model#generative-models">here</a>).`,name:"handle_long_generation"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/text_generation.py#L167",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Returns one of the following dictionaries (cannot return a combination
of both <code>generated_text</code> and <code>generated_token_ids</code>):</p>
<ul>
<li><strong>generated_text</strong> (<code>str</code>, present when <code>return_text=True</code>) — The generated text.</li>
<li><strong>generated_token_ids</strong> (<code>torch.Tensor</code> or <code>tf.Tensor</code>, present when <code>return_tensors=True</code>) — The token
ids of the generated text.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list or a list of list of <code>dict</code></p>
`}}),Fa=new $({props:{title:"Text2TextGenerationPipeline",local:"transformers.Text2TextGenerationPipeline",headingTag:"h3"}}),Ra=new j({props:{name:"class transformers.Text2TextGenerationPipeline",anchor:"transformers.Text2TextGenerationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.Text2TextGenerationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.Text2TextGenerationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.Text2TextGenerationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.Text2TextGenerationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.Text2TextGenerationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.Text2TextGenerationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.Text2TextGenerationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.Text2TextGenerationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.36.0/zh/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.Text2TextGenerationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.Text2TextGenerationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/text2text_generation.py#L26"}}),Ht=new P({props:{anchor:"transformers.Text2TextGenerationPipeline.example",$$slots:{default:[_x]},$$scope:{ctx:k}}}),Yt=new P({props:{anchor:"transformers.Text2TextGenerationPipeline.example-2",$$slots:{default:[vx]},$$scope:{ctx:k}}}),Da=new j({props:{name:"__call__",anchor:"transformers.Text2TextGenerationPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.Text2TextGenerationPipeline.__call__.args",description:`<strong>args</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
Input text for the encoder.`,name:"args"},{anchor:"transformers.Text2TextGenerationPipeline.__call__.return_tensors",description:`<strong>return_tensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to include the tensors of predictions (as token indices) in the outputs.`,name:"return_tensors"},{anchor:"transformers.Text2TextGenerationPipeline.__call__.return_text",description:`<strong>return_text</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to include the decoded texts in the outputs.`,name:"return_text"},{anchor:"transformers.Text2TextGenerationPipeline.__call__.clean_up_tokenization_spaces",description:`<strong>clean_up_tokenization_spaces</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to clean up the potential extra spaces in the text output.`,name:"clean_up_tokenization_spaces"},{anchor:"transformers.Text2TextGenerationPipeline.__call__.truncation",description:`<strong>truncation</strong> (<code>TruncationStrategy</code>, <em>optional</em>, defaults to <code>TruncationStrategy.DO_NOT_TRUNCATE</code>) &#x2014;
The truncation strategy for the tokenization within the pipeline. <code>TruncationStrategy.DO_NOT_TRUNCATE</code>
(default) will never truncate, but it is sometimes desirable to truncate the input to fit the model&#x2019;s
max_length instead of throwing an error down the line.
generate_kwargs &#x2014;
Additional keyword arguments to pass along to the generate method of the model (see the generate method
corresponding to your framework <a href="./model#generative-models">here</a>).`,name:"truncation"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/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>
`}}),Na=new j({props:{name:"check_inputs",anchor:"transformers.Text2TextGenerationPipeline.check_inputs",parameters:[{name:"input_length",val:": int"},{name:"min_length",val:": int"},{name:"max_length",val:": int"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/text2text_generation.py#L111"}}),Ba=new $({props:{title:"TokenClassificationPipeline",local:"transformers.TokenClassificationPipeline",headingTag:"h3"}}),Va=new j({props:{name:"class transformers.TokenClassificationPipeline",anchor:"transformers.TokenClassificationPipeline",parameters:[{name:"args_parser",val:" = <transformers.pipelines.token_classification.TokenClassificationArgumentHandler object at 0x7fee39a8a520>"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TokenClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.TokenClassificationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.TokenClassificationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.TokenClassificationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.TokenClassificationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.TokenClassificationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.TokenClassificationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.36.0/zh/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.TokenClassificationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.TokenClassificationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"},{anchor:"transformers.TokenClassificationPipeline.ignore_labels",description:`<strong>ignore_labels</strong> (<code>List[str]</code>, defaults to <code>[&quot;O&quot;]</code>) &#x2014;
A list of labels to ignore.`,name:"ignore_labels"},{anchor:"transformers.TokenClassificationPipeline.grouped_entities",description:`<strong>grouped_entities</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
DEPRECATED, use <code>aggregation_strategy</code> instead. Whether or not to group the tokens corresponding to the
same entity together in the predictions or not.`,name:"grouped_entities"},{anchor:"transformers.TokenClassificationPipeline.stride",description:`<strong>stride</strong> (<code>int</code>, <em>optional</em>) &#x2014;
If stride is provided, the pipeline is applied on all the text. The text is split into chunks of size
model_max_length. Works only with fast tokenizers and <code>aggregation_strategy</code> different from <code>NONE</code>. The
value of this argument defines the number of overlapping tokens between chunks. In other words, the model
will shift forward by <code>tokenizer.model_max_length - stride</code> tokens each step.`,name:"stride"},{anchor:"transformers.TokenClassificationPipeline.aggregation_strategy",description:`<strong>aggregation_strategy</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;none&quot;</code>) &#x2014;
The strategy to fuse (or not) tokens based on the model prediction.</p>
<ul>
<li>&#x201C;none&#x201D; : Will simply not do any aggregation and simply return raw results from the model</li>
<li>&#x201C;simple&#x201D; : Will attempt to group entities following the default schema. (A, B-TAG), (B, I-TAG), (C,
I-TAG), (D, B-TAG2) (E, B-TAG2) will end up being [{&#x201C;word&#x201D;: ABC, &#x201C;entity&#x201D;: &#x201C;TAG&#x201D;}, {&#x201C;word&#x201D;: &#x201C;D&#x201D;,
&#x201C;entity&#x201D;: &#x201C;TAG2&#x201D;}, {&#x201C;word&#x201D;: &#x201C;E&#x201D;, &#x201C;entity&#x201D;: &#x201C;TAG2&#x201D;}] Notice that two consecutive B tags will end up as
different entities. On word based languages, we might end up splitting words undesirably : Imagine
Microsoft being tagged as [{&#x201C;word&#x201D;: &#x201C;Micro&#x201D;, &#x201C;entity&#x201D;: &#x201C;ENTERPRISE&#x201D;}, {&#x201C;word&#x201D;: &#x201C;soft&#x201D;, &#x201C;entity&#x201D;:
&#x201C;NAME&#x201D;}]. Look for FIRST, MAX, AVERAGE for ways to mitigate that and disambiguate words (on languages
that support that meaning, which is basically tokens separated by a space). These mitigations will
only work on real words, &#x201C;New york&#x201D; might still be tagged with two different entities.</li>
<li>&#x201C;first&#x201D; : (works only on word based models) Will use the <code>SIMPLE</code> strategy except that words, cannot
end up with different tags. Words will simply use the tag of the first token of the word when there
is ambiguity.</li>
<li>&#x201C;average&#x201D; : (works only on word based models) Will use the <code>SIMPLE</code> strategy except that words,
cannot end up with different tags. scores will be averaged first across tokens, and then the maximum
label is applied.</li>
<li>&#x201C;max&#x201D; : (works only on word based models) Will use the <code>SIMPLE</code> strategy except that words, cannot
end up with different tags. Word entity will simply be the token with the maximum score.</li>
</ul>`,name:"aggregation_strategy"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/token_classification.py#L96"}}),Xt=new P({props:{anchor:"transformers.TokenClassificationPipeline.example",$$slots:{default:[kx]},$$scope:{ctx:k}}}),Aa=new j({props:{name:"__call__",anchor:"transformers.TokenClassificationPipeline.__call__",parameters:[{name:"inputs",val:": typing.Union[str, typing.List[str]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.__call__.inputs",description:`<strong>inputs</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
One or several texts (or one list of texts) for token classification.`,name:"inputs"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/token_classification.py#L219",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>
`}}),Wa=new j({props:{name:"aggregate_words",anchor:"transformers.TokenClassificationPipeline.aggregate_words",parameters:[{name:"entities",val:": typing.List[dict]"},{name:"aggregation_strategy",val:": AggregationStrategy"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/token_classification.py#L470"}}),La=new j({props:{name:"gather_pre_entities",anchor:"transformers.TokenClassificationPipeline.gather_pre_entities",parameters:[{name:"sentence",val:": str"},{name:"input_ids",val:": ndarray"},{name:"scores",val:": ndarray"},{name:"offset_mapping",val:": typing.Union[typing.List[typing.Tuple[int, int]], NoneType]"},{name:"special_tokens_mask",val:": ndarray"},{name:"aggregation_strategy",val:": AggregationStrategy"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/token_classification.py#L356"}}),Sa=new j({props:{name:"group_entities",anchor:"transformers.TokenClassificationPipeline.group_entities",parameters:[{name:"entities",val:": typing.List[dict]"}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.group_entities.entities",description:"<strong>entities</strong> (<code>dict</code>) &#x2014; The entities predicted by the pipeline.",name:"entities"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/token_classification.py#L533"}}),Oa=new j({props:{name:"group_sub_entities",anchor:"transformers.TokenClassificationPipeline.group_sub_entities",parameters:[{name:"entities",val:": typing.List[dict]"}],parametersDescription:[{anchor:"transformers.TokenClassificationPipeline.group_sub_entities.entities",description:"<strong>entities</strong> (<code>dict</code>) &#x2014; The entities predicted by the pipeline.",name:"entities"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/token_classification.py#L498"}}),Ha=new $({props:{title:"TranslationPipeline",local:"transformers.TranslationPipeline",headingTag:"h3"}}),Ya=new j({props:{name:"class transformers.TranslationPipeline",anchor:"transformers.TranslationPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TranslationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.TranslationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.TranslationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.TranslationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.TranslationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.TranslationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.TranslationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.TranslationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.36.0/zh/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.TranslationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.TranslationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/text2text_generation.py#L287"}}),sn=new P({props:{anchor:"transformers.TranslationPipeline.example",$$slots:{default:[jx]},$$scope:{ctx:k}}}),Ea=new j({props:{name:"__call__",anchor:"transformers.TranslationPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TranslationPipeline.__call__.args",description:`<strong>args</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
Texts to be translated.`,name:"args"},{anchor:"transformers.TranslationPipeline.__call__.return_tensors",description:`<strong>return_tensors</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to include the tensors of predictions (as token indices) in the outputs.`,name:"return_tensors"},{anchor:"transformers.TranslationPipeline.__call__.return_text",description:`<strong>return_text</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to include the decoded texts in the outputs.`,name:"return_text"},{anchor:"transformers.TranslationPipeline.__call__.clean_up_tokenization_spaces",description:`<strong>clean_up_tokenization_spaces</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to clean up the potential extra spaces in the text output.`,name:"clean_up_tokenization_spaces"},{anchor:"transformers.TranslationPipeline.__call__.src_lang",description:`<strong>src_lang</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The language of the input. Might be required for multilingual models. Will not have any effect for
single pair translation models`,name:"src_lang"},{anchor:"transformers.TranslationPipeline.__call__.tgt_lang",description:`<strong>tgt_lang</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The language of the desired output. Might be required for multilingual models. Will not have any effect
for single pair translation models
generate_kwargs &#x2014;
Additional keyword arguments to pass along to the generate method of the model (see the generate method
corresponding to your framework <a href="./model#generative-models">here</a>).`,name:"tgt_lang"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/text2text_generation.py#L341",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Each result comes as a dictionary with the following keys:</p>
<ul>
<li><strong>translation_text</strong> (<code>str</code>, present when <code>return_text=True</code>) — The translation.</li>
<li><strong>translation_token_ids</strong> (<code>torch.Tensor</code> or <code>tf.Tensor</code>, present when <code>return_tensors=True</code>) — The
token ids of the translation.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list or a list of list of <code>dict</code></p>
`}}),Qa=new $({props:{title:"ZeroShotClassificationPipeline",local:"transformers.ZeroShotClassificationPipeline",headingTag:"h3"}}),Xa=new j({props:{name:"class transformers.ZeroShotClassificationPipeline",anchor:"transformers.ZeroShotClassificationPipeline",parameters:[{name:"args_parser",val:" = <transformers.pipelines.zero_shot_classification.ZeroShotClassificationArgumentHandler object at 0x7fee39a57160>"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotClassificationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ZeroShotClassificationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.ZeroShotClassificationPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.ZeroShotClassificationPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.ZeroShotClassificationPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.ZeroShotClassificationPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.ZeroShotClassificationPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.ZeroShotClassificationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.36.0/zh/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.ZeroShotClassificationPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.ZeroShotClassificationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/zero_shot_classification.py#L47"}}),on=new P({props:{anchor:"transformers.ZeroShotClassificationPipeline.example",$$slots:{default:[Ux]},$$scope:{ctx:k}}}),Ka=new j({props:{name:"__call__",anchor:"transformers.ZeroShotClassificationPipeline.__call__",parameters:[{name:"sequences",val:": typing.Union[str, typing.List[str]]"},{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ZeroShotClassificationPipeline.__call__.sequences",description:`<strong>sequences</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
The sequence(s) to classify, will be truncated if the model input is too large.`,name:"sequences"},{anchor:"transformers.ZeroShotClassificationPipeline.__call__.candidate_labels",description:`<strong>candidate_labels</strong> (<code>str</code> or <code>List[str]</code>) &#x2014;
The set of possible class labels to classify each sequence into. Can be a single label, a string of
comma-separated labels, or a list of labels.`,name:"candidate_labels"},{anchor:"transformers.ZeroShotClassificationPipeline.__call__.hypothesis_template",description:`<strong>hypothesis_template</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;This example is {}.&quot;</code>) &#x2014;
The template used to turn each label into an NLI-style hypothesis. This template must include a {} or
similar syntax for the candidate label to be inserted into the template. For example, the default
template is <code>&quot;This example is {}.&quot;</code> With the candidate label <code>&quot;sports&quot;</code>, this would be fed into the
model like <code>&quot;&lt;cls&gt; sequence to classify &lt;sep&gt; This example is sports . &lt;sep&gt;&quot;</code>. The default template
works well in many cases, but it may be worthwhile to experiment with different templates depending on
the task setting.`,name:"hypothesis_template"},{anchor:"transformers.ZeroShotClassificationPipeline.__call__.multi_label",description:`<strong>multi_label</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not multiple candidate labels can be true. If <code>False</code>, the scores are normalized such that
the sum of the label likelihoods for each sequence is 1. If <code>True</code>, the labels are considered
independent and probabilities are normalized for each candidate by doing a softmax of the entailment
score vs. the contradiction score.`,name:"multi_label"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/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>
`}}),eo=new $({props:{title:"多模态",local:"多模态",headingTag:"h2"}}),no=new $({props:{title:"DocumentQuestionAnsweringPipeline",local:"transformers.DocumentQuestionAnsweringPipeline",headingTag:"h3"}}),so=new j({props:{name:"class transformers.DocumentQuestionAnsweringPipeline",anchor:"transformers.DocumentQuestionAnsweringPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.DocumentQuestionAnsweringPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.36.0/zh/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/document_question_answering.py#L102"}}),ln=new P({props:{anchor:"transformers.DocumentQuestionAnsweringPipeline.example",$$slots:{default:[$x]},$$scope:{ctx:k}}}),ao=new j({props:{name:"__call__",anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__",parameters:[{name:"image",val:": typing.Union[ForwardRef('Image.Image'), str]"},{name:"question",val:": typing.Optional[str] = None"},{name:"word_boxes",val:": typing.Tuple[str, typing.List[float]] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.image",description:`<strong>image</strong> (<code>str</code> or <code>PIL.Image</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing a http link pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>
<p>The pipeline accepts either a single image or a batch of images. If given a single image, it can be
broadcasted to multiple questions.`,name:"image"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.question",description:`<strong>question</strong> (<code>str</code>) &#x2014;
A question to ask of the document.`,name:"question"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.word_boxes",description:`<strong>word_boxes</strong> (<code>List[str, Tuple[float, float, float, float]]</code>, <em>optional</em>) &#x2014;
A list of words and bounding boxes (normalized 0-&gt;1000). If you provide this optional input, then the
pipeline will use these words and boxes instead of running OCR on the image to derive them for models
that need them (e.g. LayoutLM). This allows you to reuse OCR&#x2019;d results across many invocations of the
pipeline without having to re-run it each time.`,name:"word_boxes"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.top_k",description:`<strong>top_k</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The number of answers to return (will be chosen by order of likelihood). Note that we return less than
top_k answers if there are not enough options available within the context.`,name:"top_k"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.doc_stride",description:`<strong>doc_stride</strong> (<code>int</code>, <em>optional</em>, defaults to 128) &#x2014;
If the words in the document are too long to fit with the question for the model, it will be split in
several chunks with some overlap. This argument controls the size of that overlap.`,name:"doc_stride"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.max_answer_len",description:`<strong>max_answer_len</strong> (<code>int</code>, <em>optional</em>, defaults to 15) &#x2014;
The maximum length of predicted answers (e.g., only answers with a shorter length are considered).`,name:"max_answer_len"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.max_seq_len",description:`<strong>max_seq_len</strong> (<code>int</code>, <em>optional</em>, defaults to 384) &#x2014;
The maximum length of the total sentence (context + question) in tokens of each chunk passed to the
model. The context will be split in several chunks (using <code>doc_stride</code> as overlap) if needed.`,name:"max_seq_len"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.max_question_len",description:`<strong>max_question_len</strong> (<code>int</code>, <em>optional</em>, defaults to 64) &#x2014;
The maximum length of the question after tokenization. It will be truncated if needed.`,name:"max_question_len"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.handle_impossible_answer",description:`<strong>handle_impossible_answer</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not we accept impossible as an answer.`,name:"handle_impossible_answer"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.lang",description:`<strong>lang</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Language to use while running OCR. Defaults to english.`,name:"lang"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.tesseract_config",description:`<strong>tesseract_config</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Additional flags to pass to tesseract while running OCR.`,name:"tesseract_config"},{anchor:"transformers.DocumentQuestionAnsweringPipeline.__call__.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to None) &#x2014;
The maximum time in seconds to wait for fetching images from the web. If None, no timeout is set and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/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>
`}}),oo=new $({props:{title:"FeatureExtractionPipeline",local:"transformers.FeatureExtractionPipeline",headingTag:"h3"}}),ro=new j({props:{name:"class transformers.FeatureExtractionPipeline",anchor:"transformers.FeatureExtractionPipeline",parameters:[{name:"model",val:": typing.Union[ForwardRef('PreTrainedModel'), ForwardRef('TFPreTrainedModel')]"},{name:"tokenizer",val:": typing.Optional[transformers.tokenization_utils.PreTrainedTokenizer] = None"},{name:"feature_extractor",val:": typing.Optional[ForwardRef('SequenceFeatureExtractor')] = None"},{name:"image_processor",val:": typing.Optional[transformers.image_processing_utils.BaseImageProcessor] = None"},{name:"modelcard",val:": typing.Optional[transformers.modelcard.ModelCard] = None"},{name:"framework",val:": typing.Optional[str] = None"},{name:"task",val:": str = ''"},{name:"args_parser",val:": ArgumentHandler = None"},{name:"device",val:": typing.Union[int, ForwardRef('torch.device')] = None"},{name:"torch_dtype",val:": typing.Union[str, ForwardRef('torch.dtype'), NoneType] = None"},{name:"binary_output",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FeatureExtractionPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.FeatureExtractionPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.FeatureExtractionPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.FeatureExtractionPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.FeatureExtractionPipeline.return_tensors",description:`<strong>return_tensors</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
If <code>True</code>, returns a tensor according to the specified framework, otherwise returns a list.`,name:"return_tensors"},{anchor:"transformers.FeatureExtractionPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.FeatureExtractionPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.36.0/zh/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.FeatureExtractionPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id.`,name:"device"},{anchor:"transformers.FeatureExtractionPipeline.tokenize_kwargs",description:`<strong>tokenize_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Additional dictionary of keyword arguments passed along to the tokenizer.`,name:"tokenize_kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/feature_extraction.py#L7"}}),pn=new P({props:{anchor:"transformers.FeatureExtractionPipeline.example",$$slots:{default:[Jx]},$$scope:{ctx:k}}}),io=new j({props:{name:"__call__",anchor:"transformers.FeatureExtractionPipeline.__call__",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FeatureExtractionPipeline.__call__.args",description:"<strong>args</strong> (<code>str</code> or <code>List[str]</code>) &#x2014; One or several texts (or one list of texts) to get the features of.",name:"args"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/feature_extraction.py#L96",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>
`}}),lo=new $({props:{title:"ImageToTextPipeline",local:"transformers.ImageToTextPipeline",headingTag:"h3"}}),po=new j({props:{name:"class transformers.ImageToTextPipeline",anchor:"transformers.ImageToTextPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageToTextPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.ImageToTextPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.ImageToTextPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.ImageToTextPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.ImageToTextPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.ImageToTextPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.ImageToTextPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.ImageToTextPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.36.0/zh/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.ImageToTextPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.ImageToTextPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/image_to_text.py#L31"}}),dn=new P({props:{anchor:"transformers.ImageToTextPipeline.example",$$slots:{default:[Px]},$$scope:{ctx:k}}}),co=new j({props:{name:"__call__",anchor:"transformers.ImageToTextPipeline.__call__",parameters:[{name:"images",val:": typing.Union[str, typing.List[str], ForwardRef('Image.Image'), typing.List[ForwardRef('Image.Image')]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageToTextPipeline.__call__.images",description:`<strong>images</strong> (<code>str</code>, <code>List[str]</code>, <code>PIL.Image</code> or <code>List[PIL.Image]</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing a HTTP(s) link pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>
<p>The pipeline accepts either a single image or a batch of images.`,name:"images"},{anchor:"transformers.ImageToTextPipeline.__call__.max_new_tokens",description:`<strong>max_new_tokens</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The amount of maximum tokens to generate. By default it will use <code>generate</code> default.`,name:"max_new_tokens"},{anchor:"transformers.ImageToTextPipeline.__call__.generate_kwargs",description:`<strong>generate_kwargs</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
Pass it to send all of these arguments directly to <code>generate</code> allowing full control of this function.`,name:"generate_kwargs"},{anchor:"transformers.ImageToTextPipeline.__call__.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to None) &#x2014;
The maximum time in seconds to wait for fetching images from the web. If None, no timeout is set and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/image_to_text.py#L83",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>
`}}),mo=new $({props:{title:"MaskGenerationPipeline",local:"transformers.MaskGenerationPipeline",headingTag:"h3"}}),ho=new j({props:{name:"class transformers.MaskGenerationPipeline",anchor:"transformers.MaskGenerationPipeline",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.MaskGenerationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.MaskGenerationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.MaskGenerationPipeline.feature_extractor",description:`<strong>feature_extractor</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/feature_extractor#transformers.SequenceFeatureExtractor">SequenceFeatureExtractor</a>) &#x2014;
The feature extractor that will be used by the pipeline to encode the input.`,name:"feature_extractor"},{anchor:"transformers.MaskGenerationPipeline.points_per_batch",description:`<strong>points_per_batch</strong> (<em>optional</em>, int, default to 64) &#x2014;
Sets the number of points run simultaneously by the model. Higher numbers may be faster but use more GPU
memory.`,name:"points_per_batch"},{anchor:"transformers.MaskGenerationPipeline.output_bboxes_mask",description:`<strong>output_bboxes_mask</strong> (<code>bool</code>, <em>optional</em>, default to <code>False</code>) &#x2014;
Whether or not to output the bounding box predictions.`,name:"output_bboxes_mask"},{anchor:"transformers.MaskGenerationPipeline.output_rle_masks",description:`<strong>output_rle_masks</strong> (<code>bool</code>, <em>optional</em>, default to <code>False</code>) &#x2014;
Whether or not to output the masks in <code>RLE</code> format`,name:"output_rle_masks"},{anchor:"transformers.MaskGenerationPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.MaskGenerationPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.MaskGenerationPipeline.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.MaskGenerationPipeline.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.MaskGenerationPipeline.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.MaskGenerationPipeline.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.MaskGenerationPipeline.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.MaskGenerationPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.36.0/zh/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.MaskGenerationPipeline.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.MaskGenerationPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/mask_generation.py#L23"}}),hn=new P({props:{anchor:"transformers.MaskGenerationPipeline.example",$$slots:{default:[Cx]},$$scope:{ctx:k}}}),fo=new j({props:{name:"__call__",anchor:"transformers.MaskGenerationPipeline.__call__",parameters:[{name:"image",val:""},{name:"*args",val:""},{name:"num_workers",val:" = None"},{name:"batch_size",val:" = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.MaskGenerationPipeline.__call__.inputs",description:`<strong>inputs</strong> (<code>np.ndarray</code> or <code>bytes</code> or <code>str</code> or <code>dict</code>) &#x2014;
Image or list of images.`,name:"inputs"},{anchor:"transformers.MaskGenerationPipeline.__call__.mask_threshold",description:`<strong>mask_threshold</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
Threshold to use when turning the predicted masks into binary values.`,name:"mask_threshold"},{anchor:"transformers.MaskGenerationPipeline.__call__.pred_iou_thresh",description:`<strong>pred_iou_thresh</strong> (<code>float</code>, <em>optional</em>, defaults to 0.88) &#x2014;
A filtering threshold in <code>[0,1]</code> applied on the model&#x2019;s predicted mask quality.`,name:"pred_iou_thresh"},{anchor:"transformers.MaskGenerationPipeline.__call__.stability_score_thresh",description:`<strong>stability_score_thresh</strong> (<code>float</code>, <em>optional</em>, defaults to 0.95) &#x2014;
A filtering threshold in <code>[0,1]</code>, using the stability of the mask under changes to the cutoff used to
binarize the model&#x2019;s mask predictions.`,name:"stability_score_thresh"},{anchor:"transformers.MaskGenerationPipeline.__call__.stability_score_offset",description:`<strong>stability_score_offset</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The amount to shift the cutoff when calculated the stability score.`,name:"stability_score_offset"},{anchor:"transformers.MaskGenerationPipeline.__call__.crops_nms_thresh",description:`<strong>crops_nms_thresh</strong> (<code>float</code>, <em>optional</em>, defaults to 0.7) &#x2014;
The box IoU cutoff used by non-maximal suppression to filter duplicate masks.`,name:"crops_nms_thresh"},{anchor:"transformers.MaskGenerationPipeline.__call__.crops_n_layers",description:`<strong>crops_n_layers</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
If <code>crops_n_layers&gt;0</code>, mask prediction will be run again on crops of the image. Sets the number of
layers to run, where each layer has 2**i_layer number of image crops.`,name:"crops_n_layers"},{anchor:"transformers.MaskGenerationPipeline.__call__.crop_overlap_ratio",description:`<strong>crop_overlap_ratio</strong> (<code>float</code>, <em>optional</em>, defaults to <code>512 / 1500</code>) &#x2014;
Sets the degree to which crops overlap. In the first crop layer, crops will overlap by this fraction of
the image length. Later layers with more crops scale down this overlap.`,name:"crop_overlap_ratio"},{anchor:"transformers.MaskGenerationPipeline.__call__.crop_n_points_downscale_factor",description:`<strong>crop_n_points_downscale_factor</strong> (<code>int</code>, <em>optional</em>, defaults to <code>1</code>) &#x2014;
The number of points-per-side sampled in layer n is scaled down by crop_n_points_downscale_factor**n.`,name:"crop_n_points_downscale_factor"},{anchor:"transformers.MaskGenerationPipeline.__call__.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to None) &#x2014;
The maximum time in seconds to wait for fetching images from the web. If None, no timeout is set and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/mask_generation.py#L135",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A dictionary with the following keys:</p>
<ul>
<li><strong>mask</strong> (<code>PIL.Image</code>) — A binary mask of the detected object as a PIL Image of shape <code>(width, height)</code> 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>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>Dict</code></p>
`}}),go=new $({props:{title:"VisualQuestionAnsweringPipeline",local:"transformers.VisualQuestionAnsweringPipeline",headingTag:"h3"}}),uo=new j({props:{name:"class transformers.VisualQuestionAnsweringPipeline",anchor:"transformers.VisualQuestionAnsweringPipeline",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.VisualQuestionAnsweringPipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.VisualQuestionAnsweringPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.VisualQuestionAnsweringPipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.VisualQuestionAnsweringPipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.VisualQuestionAnsweringPipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.VisualQuestionAnsweringPipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.VisualQuestionAnsweringPipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.VisualQuestionAnsweringPipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.36.0/zh/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.VisualQuestionAnsweringPipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.VisualQuestionAnsweringPipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/visual_question_answering.py#L19"}}),gn=new P({props:{anchor:"transformers.VisualQuestionAnsweringPipeline.example",$$slots:{default:[Ix]},$$scope:{ctx:k}}}),To=new j({props:{name:"__call__",anchor:"transformers.VisualQuestionAnsweringPipeline.__call__",parameters:[{name:"image",val:": typing.Union[ForwardRef('Image.Image'), str]"},{name:"question",val:": str = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.VisualQuestionAnsweringPipeline.__call__.image",description:`<strong>image</strong> (<code>str</code>, <code>List[str]</code>, <code>PIL.Image</code> or <code>List[PIL.Image]</code>) &#x2014;
The pipeline handles three types of images:</p>
<ul>
<li>A string containing a http link pointing to an image</li>
<li>A string containing a local path to an image</li>
<li>An image loaded in PIL directly</li>
</ul>
<p>The pipeline accepts either a single image or a batch of images. If given a single image, it can be
broadcasted to multiple questions.`,name:"image"},{anchor:"transformers.VisualQuestionAnsweringPipeline.__call__.question",description:`<strong>question</strong> (<code>str</code>, <code>List[str]</code>) &#x2014;
The question(s) asked. If given a single question, it can be broadcasted to multiple images.`,name:"question"},{anchor:"transformers.VisualQuestionAnsweringPipeline.__call__.top_k",description:`<strong>top_k</strong> (<code>int</code>, <em>optional</em>, defaults to 5) &#x2014;
The number of top labels that will be returned by the pipeline. If the provided number is higher than
the number of labels available in the model configuration, it will default to the number of labels.`,name:"top_k"},{anchor:"transformers.VisualQuestionAnsweringPipeline.__call__.timeout",description:`<strong>timeout</strong> (<code>float</code>, <em>optional</em>, defaults to None) &#x2014;
The maximum time in seconds to wait for fetching images from the web. If None, no timeout is set and
the call may block forever.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/visual_question_answering.py#L70",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><strong>label</strong> (<code>str</code>) — The label identified by the model.</li>
<li><strong>score</strong> (<code>int</code>) — The score attributed by the model for that label.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A dictionary or a list of dictionaries containing the result. The dictionaries contain the following keys</p>
`}}),bo=new $({props:{title:"Parent class: Pipeline",local:"transformers.Pipeline",headingTag:"h2"}}),yo=new j({props:{name:"class transformers.Pipeline",anchor:"transformers.Pipeline",parameters:[{name:"model",val:": typing.Union[ForwardRef('PreTrainedModel'), ForwardRef('TFPreTrainedModel')]"},{name:"tokenizer",val:": typing.Optional[transformers.tokenization_utils.PreTrainedTokenizer] = None"},{name:"feature_extractor",val:": typing.Optional[ForwardRef('SequenceFeatureExtractor')] = None"},{name:"image_processor",val:": typing.Optional[transformers.image_processing_utils.BaseImageProcessor] = None"},{name:"modelcard",val:": typing.Optional[transformers.modelcard.ModelCard] = None"},{name:"framework",val:": typing.Optional[str] = None"},{name:"task",val:": str = ''"},{name:"args_parser",val:": ArgumentHandler = None"},{name:"device",val:": typing.Union[int, ForwardRef('torch.device')] = None"},{name:"torch_dtype",val:": typing.Union[str, ForwardRef('torch.dtype'), NoneType] = None"},{name:"binary_output",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.Pipeline.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> or <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a>) &#x2014;
The model that will be used by the pipeline to make predictions. This needs to be a model inheriting from
<a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a> for PyTorch and <a href="/docs/transformers/v4.36.0/zh/main_classes/model#transformers.TFPreTrainedModel">TFPreTrainedModel</a> for TensorFlow.`,name:"model"},{anchor:"transformers.Pipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer that will be used by the pipeline to encode data for the model. This object inherits from
<a href="/docs/transformers/v4.36.0/zh/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>.`,name:"tokenizer"},{anchor:"transformers.Pipeline.modelcard",description:`<strong>modelcard</strong> (<code>str</code> or <code>ModelCard</code>, <em>optional</em>) &#x2014;
Model card attributed to the model for this pipeline.`,name:"modelcard"},{anchor:"transformers.Pipeline.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The framework to use, either <code>&quot;pt&quot;</code> for PyTorch or <code>&quot;tf&quot;</code> for TensorFlow. The specified framework must be
installed.</p>
<p>If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the <code>model</code>, or to PyTorch if no model is
provided.`,name:"framework"},{anchor:"transformers.Pipeline.task",description:`<strong>task</strong> (<code>str</code>, defaults to <code>&quot;&quot;</code>) &#x2014;
A task-identifier for the pipeline.`,name:"task"},{anchor:"transformers.Pipeline.num_workers",description:`<strong>num_workers</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the number of
workers to be used.`,name:"num_workers"},{anchor:"transformers.Pipeline.batch_size",description:`<strong>batch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
When the pipeline will use <em>DataLoader</em> (when passing a dataset, on GPU for a Pytorch model), the size of
the batch to use, for inference this is not always beneficial, please read <a href="https://huggingface.co/transformers/main_classes/pipelines.html#pipeline-batching" rel="nofollow">Batching with
pipelines</a> .`,name:"batch_size"},{anchor:"transformers.Pipeline.args_parser",description:`<strong>args_parser</strong> (<a href="/docs/transformers/v4.36.0/zh/internal/pipelines_utils#transformers.pipelines.ArgumentHandler">ArgumentHandler</a>, <em>optional</em>) &#x2014;
Reference to the object in charge of parsing supplied pipeline parameters.`,name:"args_parser"},{anchor:"transformers.Pipeline.device",description:`<strong>device</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Device ordinal for CPU/GPU supports. Setting this to -1 will leverage CPU, a positive will run the model on
the associated CUDA device id. You can pass native <code>torch.device</code> or a <code>str</code> too.`,name:"device"},{anchor:"transformers.Pipeline.binary_output",description:`<strong>binary_output</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Flag indicating if the output the pipeline should happen in a binary format (i.e., pickle) or as raw text.`,name:"binary_output"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/base.py#L741"}}),wo=new j({props:{name:"check_model_type",anchor:"transformers.Pipeline.check_model_type",parameters:[{name:"supported_models",val:": typing.Union[typing.List[str], dict]"}],parametersDescription:[{anchor:"transformers.Pipeline.check_model_type.supported_models",description:`<strong>supported_models</strong> (<code>List[str]</code> or <code>dict</code>) &#x2014;
The list of models supported by the pipeline, or a dictionary with model class values.`,name:"supported_models"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/base.py#L962"}}),xo=new j({props:{name:"device_placement",anchor:"transformers.Pipeline.device_placement",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/base.py#L901",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Context manager</p>
`}}),Tn=new P({props:{anchor:"transformers.Pipeline.device_placement.example",$$slots:{default:[zx]},$$scope:{ctx:k}}}),Mo=new j({props:{name:"ensure_tensor_on_device",anchor:"transformers.Pipeline.ensure_tensor_on_device",parameters:[{name:"**inputs",val:""}],parametersDescription:[{anchor:"transformers.Pipeline.ensure_tensor_on_device.inputs",description:`<strong>inputs</strong> (keyword arguments that should be <code>torch.Tensor</code>, the rest is ignored) &#x2014;
The tensors to place on <code>self.device</code>.`,name:"inputs"},{anchor:"transformers.Pipeline.ensure_tensor_on_device.Recursive",description:"<strong>Recursive</strong> on lists <strong>only</strong>. &#x2014;",name:"Recursive"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/base.py#L928",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 j({props:{name:"postprocess",anchor:"transformers.Pipeline.postprocess",parameters:[{name:"model_outputs",val:": ModelOutput"},{name:"**postprocess_parameters",val:": typing.Dict"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/base.py#L1025"}}),vo=new j({props:{name:"predict",anchor:"transformers.Pipeline.predict",parameters:[{name:"X",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/base.py#L895"}}),ko=new j({props:{name:"preprocess",anchor:"transformers.Pipeline.preprocess",parameters:[{name:"input_",val:": typing.Any"},{name:"**preprocess_parameters",val:": typing.Dict"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/base.py#L1004"}}),jo=new j({props:{name:"save_pretrained",anchor:"transformers.Pipeline.save_pretrained",parameters:[{name:"save_directory",val:": str"},{name:"safe_serialization",val:": bool = True"}],parametersDescription:[{anchor:"transformers.Pipeline.save_pretrained.save_directory",description:`<strong>save_directory</strong> (<code>str</code>) &#x2014;
A path to the directory where to saved. It will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"transformers.Pipeline.save_pretrained.safe_serialization",description:`<strong>safe_serialization</strong> (<code>str</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or the traditional way for PyTorch or Tensorflow.`,name:"safe_serialization"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/base.py#L839"}}),Uo=new j({props:{name:"transform",anchor:"transformers.Pipeline.transform",parameters:[{name:"X",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/pipelines/base.py#L889"}}),{c(){l=r("meta"),M=s(),h=r("p"),c=s(),f(w.$$.fragment),t=s(),x=r("p"),x.innerHTML=up,bp=s(),kn=r("p"),kn.textContent=Yu,yp=s(),jn=r("ul"),jn.innerHTML=Eu,wp=s(),f(Un.$$.fragment),xp=s(),$n=r("p"),$n.innerHTML=Qu,Mp=s(),Jn=r("p"),Jn.textContent=Xu,_p=s(),f(Pn.$$.fragment),vp=s(),Cn=r("p"),Cn.innerHTML=Ku,kp=s(),f(In.$$.fragment),jp=s(),zn=r("p"),zn.innerHTML=eT,Up=s(),f(qn.$$.fragment),$p=s(),Gn=r("p"),Gn.innerHTML=tT,Jp=s(),f(Zn.$$.fragment),Pp=s(),Fn=r("p"),Fn.textContent=nT,Cp=s(),f(Rn.$$.fragment),Ip=s(),ve=r("div"),f(Dn.$$.fragment),Qd=s(),Ho=r("p"),Ho.innerHTML=sT,Xd=s(),Yo=r("p"),Yo.textContent=aT,Kd=s(),Eo=r("ul"),Eo.innerHTML=oT,em=s(),f(Ee.$$.fragment),zp=s(),f(Nn.$$.fragment),qp=s(),Bn=r("p"),Bn.innerHTML=rT,Gp=s(),f(Vn.$$.fragment),Zp=s(),f(Qe.$$.fragment),Fp=s(),f(An.$$.fragment),Rp=s(),f(Wn.$$.fragment),Dp=s(),Ln=r("p"),Ln.textContent=iT,Np=s(),f(Sn.$$.fragment),Bp=s(),On=r("p"),On.innerHTML=lT,Vp=s(),f(Hn.$$.fragment),Ap=s(),Yn=r("p"),Yn.textContent=pT,Wp=s(),En=r("p"),En.textContent=cT,Lp=s(),Qn=r("ul"),Qn.innerHTML=dT,Sp=s(),f(Xn.$$.fragment),Op=s(),Kn=r("p"),Kn.innerHTML=mT,Hp=s(),es=r("p"),es.innerHTML=hT,Yp=s(),f(ts.$$.fragment),Ep=s(),ns=r("p"),ns.textContent=fT,Qp=s(),f(ss.$$.fragment),Xp=s(),as=r("p"),as.textContent=gT,Kp=s(),os=r("p"),os.innerHTML=uT,ec=s(),f(rs.$$.fragment),tc=s(),is=r("p"),is.textContent=TT,nc=s(),ls=r("p"),ls.innerHTML=bT,sc=s(),ps=r("p"),ps.textContent=yT,ac=s(),cs=r("ul"),cs.innerHTML=wT,oc=s(),f(ds.$$.fragment),rc=s(),ms=r("p"),ms.textContent=xT,ic=s(),f(hs.$$.fragment),lc=s(),fs=r("p"),fs.innerHTML=MT,pc=s(),f(gs.$$.fragment),cc=s(),us=r("p"),us.textContent=_T,dc=s(),f(Ts.$$.fragment),mc=s(),L=r("div"),f(bs.$$.fragment),tm=s(),Qo=r("p"),Qo.innerHTML=vT,nm=s(),f(Xe.$$.fragment),sm=s(),Xo=r("p"),Xo.innerHTML=kT,am=s(),Ko=r("p"),Ko.innerHTML=jT,om=s(),er=r("p"),er.innerHTML=UT,rm=s(),Ke=r("div"),f(ys.$$.fragment),im=s(),tr=r("p"),tr.innerHTML=$T,hc=s(),f(ws.$$.fragment),fc=s(),pe=r("div"),f(xs.$$.fragment),lm=s(),nr=r("p"),nr.textContent=JT,pm=s(),sr=r("p"),sr.textContent=PT,cm=s(),f(et.$$.fragment),dm=s(),ar=r("p"),ar.innerHTML=CT,mm=s(),tt=r("div"),f(Ms.$$.fragment),hm=s(),or=r("p"),or.innerHTML=IT,gc=s(),f(_s.$$.fragment),uc=s(),B=r("div"),f(vs.$$.fragment),fm=s(),rr=r("p"),rr.innerHTML=zT,gm=s(),f(nt.$$.fragment),um=s(),ir=r("p"),ir.innerHTML=qT,Tm=s(),f(st.$$.fragment),bm=s(),lr=r("p"),lr.innerHTML=GT,ym=s(),pr=r("p"),pr.innerHTML=ZT,wm=s(),at=r("div"),f(ks.$$.fragment),xm=s(),cr=r("p"),cr.innerHTML=FT,Tc=s(),f(js.$$.fragment),bc=s(),ke=r("div"),f(Us.$$.fragment),Mm=s(),dr=r("p"),dr.innerHTML=RT,_m=s(),f(ot.$$.fragment),vm=s(),mr=r("p"),mr.innerHTML=DT,km=s(),rt=r("div"),f($s.$$.fragment),jm=s(),hr=r("p"),hr.textContent=NT,yc=s(),f(Js.$$.fragment),wc=s(),Ps=r("p"),Ps.textContent=BT,xc=s(),f(Cs.$$.fragment),Mc=s(),S=r("div"),f(Is.$$.fragment),Um=s(),fr=r("p"),fr.innerHTML=VT,$m=s(),f(it.$$.fragment),Jm=s(),gr=r("p"),gr.innerHTML=AT,Pm=s(),ur=r("p"),ur.innerHTML=WT,Cm=s(),Tr=r("p"),Tr.innerHTML=LT,Im=s(),lt=r("div"),f(zs.$$.fragment),zm=s(),br=r("p"),br.textContent=ST,_c=s(),f(qs.$$.fragment),vc=s(),O=r("div"),f(Gs.$$.fragment),qm=s(),yr=r("p"),yr.innerHTML=OT,Gm=s(),f(pt.$$.fragment),Zm=s(),wr=r("p"),wr.innerHTML=HT,Fm=s(),xr=r("p"),xr.innerHTML=YT,Rm=s(),Mr=r("p"),Mr.innerHTML=ET,Dm=s(),ct=r("div"),f(Zs.$$.fragment),Nm=s(),_r=r("p"),_r.textContent=QT,kc=s(),f(Fs.$$.fragment),jc=s(),ce=r("div"),f(Rs.$$.fragment),Bm=s(),vr=r("p"),vr.innerHTML=XT,Vm=s(),f(dt.$$.fragment),Am=s(),kr=r("p"),kr.innerHTML=KT,Wm=s(),jr=r("p"),jr.innerHTML=eb,Lm=s(),mt=r("div"),f(Ds.$$.fragment),Sm=s(),Ur=r("p"),Ur.textContent=tb,Uc=s(),f(Ns.$$.fragment),$c=s(),de=r("div"),f(Bs.$$.fragment),Om=s(),$r=r("p"),$r.innerHTML=nb,Hm=s(),f(ht.$$.fragment),Ym=s(),Jr=r("p"),Jr.innerHTML=sb,Em=s(),Pr=r("p"),Pr.innerHTML=ab,Qm=s(),ft=r("div"),f(Vs.$$.fragment),Xm=s(),Cr=r("p"),Cr.textContent=ob,Jc=s(),f(As.$$.fragment),Pc=s(),H=r("div"),f(Ws.$$.fragment),Km=s(),Ir=r("p"),Ir.innerHTML=rb,eh=s(),f(gt.$$.fragment),th=s(),zr=r("p"),zr.innerHTML=ib,nh=s(),qr=r("p"),qr.innerHTML=lb,sh=s(),Gr=r("p"),Gr.innerHTML=pb,ah=s(),ut=r("div"),f(Ls.$$.fragment),oh=s(),Zr=r("p"),Zr.textContent=cb,Cc=s(),f(Ss.$$.fragment),Ic=s(),je=r("div"),f(Os.$$.fragment),rh=s(),Fr=r("p"),Fr.innerHTML=db,ih=s(),Rr=r("p"),Rr.innerHTML=mb,lh=s(),Dr=r("p"),Dr.innerHTML=hb,ph=s(),Tt=r("div"),f(Hs.$$.fragment),ch=s(),Nr=r("p"),Nr.textContent=fb,zc=s(),f(Ys.$$.fragment),qc=s(),Y=r("div"),f(Es.$$.fragment),dh=s(),Br=r("p"),Br.innerHTML=gb,mh=s(),f(bt.$$.fragment),hh=s(),Vr=r("p"),Vr.innerHTML=ub,fh=s(),Ar=r("p"),Ar.innerHTML=Tb,gh=s(),Wr=r("p"),Wr.innerHTML=bb,uh=s(),yt=r("div"),f(Qs.$$.fragment),Th=s(),Lr=r("p"),Lr.textContent=yb,Gc=s(),f(Xs.$$.fragment),Zc=s(),E=r("div"),f(Ks.$$.fragment),bh=s(),Sr=r("p"),Sr.innerHTML=wb,yh=s(),f(wt.$$.fragment),wh=s(),Or=r("p"),Or.innerHTML=xb,xh=s(),Hr=r("p"),Hr.innerHTML=Mb,Mh=s(),Yr=r("p"),Yr.innerHTML=_b,_h=s(),xt=r("div"),f(ea.$$.fragment),vh=s(),Er=r("p"),Er.textContent=vb,Fc=s(),f(ta.$$.fragment),Rc=s(),na=r("p"),na.textContent=kb,Dc=s(),f(sa.$$.fragment),Nc=s(),me=r("div"),f(aa.$$.fragment),kh=s(),Qr=r("p"),Qr.innerHTML=jb,jh=s(),f(Mt.$$.fragment),Uh=s(),_t=r("div"),f(oa.$$.fragment),$h=s(),Xr=r("p"),Xr.innerHTML=Ub,Jh=s(),vt=r("div"),f(ra.$$.fragment),Ph=s(),Kr=r("p"),Kr.innerHTML=$b,Ch=s(),kt=r("div"),f(ia.$$.fragment),Ih=s(),ei=r("p"),ei.textContent=Jb,Bc=s(),Q=r("div"),f(la.$$.fragment),zh=s(),ti=r("p"),ti.textContent=Pb,qh=s(),f(jt.$$.fragment),Gh=s(),ni=r("p"),ni.innerHTML=Cb,Zh=s(),si=r("p"),si.innerHTML=Ib,Fh=s(),ai=r("p"),ai.innerHTML=zb,Rh=s(),Ut=r("div"),f(pa.$$.fragment),Dh=s(),oi=r("p"),oi.textContent=qb,Vc=s(),f(ca.$$.fragment),Ac=s(),G=r("div"),f(da.$$.fragment),Nh=s(),ri=r("p"),ri.innerHTML=Gb,Bh=s(),f($t.$$.fragment),Vh=s(),ii=r("p"),ii.innerHTML=Zb,Ah=s(),li=r("p"),li.innerHTML=Fb,Wh=s(),pi=r("p"),pi.innerHTML=Rb,Lh=s(),f(Jt.$$.fragment),Sh=s(),f(Pt.$$.fragment),Oh=s(),Ct=r("div"),f(ma.$$.fragment),Hh=s(),ci=r("p"),ci.textContent=Db,Wc=s(),f(ha.$$.fragment),Lc=s(),q=r("div"),f(fa.$$.fragment),Yh=s(),di=r("p"),di.innerHTML=Nb,Eh=s(),f(It.$$.fragment),Qh=s(),mi=r("p"),mi.innerHTML=Bb,Xh=s(),hi=r("p"),hi.innerHTML=Vb,Kh=s(),fi=r("p"),fi.innerHTML=Ab,ef=s(),We=r("div"),f(ga.$$.fragment),tf=s(),gi=r("p"),gi.textContent=Wb,nf=s(),ui=r("p"),ui.textContent=Lb,sf=s(),zt=r("div"),f(ua.$$.fragment),af=s(),Ti=r("p"),Ti.textContent=Sb,of=s(),qt=r("div"),f(Ta.$$.fragment),rf=s(),bi=r("p"),bi.textContent=Ob,lf=s(),Gt=r("div"),f(ba.$$.fragment),pf=s(),yi=r("p"),yi.textContent=Hb,Sc=s(),ya=r("p"),ya.innerHTML=Yb,Oc=s(),f(wa.$$.fragment),Hc=s(),Z=r("div"),f(xa.$$.fragment),cf=s(),wi=r("p"),wi.innerHTML=Eb,df=s(),f(Zt.$$.fragment),mf=s(),xi=r("p"),xi.innerHTML=Qb,hf=s(),Mi=r("p"),Mi.innerHTML=Xb,ff=s(),_i=r("p"),_i.innerHTML=Kb,gf=s(),Ft=r("div"),f(Ma.$$.fragment),uf=s(),vi=r("p"),vi.textContent=ey,Tf=s(),Le=r("div"),f(_a.$$.fragment),bf=s(),ki=r("p"),ki.innerHTML=ty,yf=s(),ji=r("p"),ji.textContent=ny,wf=s(),Rt=r("div"),f(va.$$.fragment),xf=s(),Ui=r("p"),Ui.textContent=sy,Yc=s(),f(ka.$$.fragment),Ec=s(),he=r("div"),f(ja.$$.fragment),Mf=s(),$i=r("p"),$i.textContent=ay,_f=s(),Ji=r("p"),Ji.innerHTML=oy,vf=s(),Pi=r("p"),Pi.innerHTML=ry,kf=s(),f(Dt.$$.fragment),jf=s(),Nt=r("div"),f(Ua.$$.fragment),Uf=s(),Ci=r("p"),Ci.textContent=iy,Qc=s(),f($a.$$.fragment),Xc=s(),X=r("div"),f(Ja.$$.fragment),$f=s(),Ii=r("p"),Ii.innerHTML=ly,Jf=s(),f(Bt.$$.fragment),Pf=s(),zi=r("p"),zi.innerHTML=py,Cf=s(),qi=r("p"),qi.innerHTML=cy,If=s(),Gi=r("p"),Gi.innerHTML=dy,zf=s(),oe=r("div"),f(Pa.$$.fragment),qf=s(),Zi=r("p"),Zi.textContent=my,Gf=s(),Fi=r("ul"),Fi.innerHTML=hy,Zf=s(),Ri=r("p"),Ri.innerHTML=fy,Ff=s(),f(Vt.$$.fragment),Rf=s(),Di=r("p"),Di.textContent=gy,Df=s(),f(At.$$.fragment),Kc=s(),f(Ca.$$.fragment),ed=s(),V=r("div"),f(Ia.$$.fragment),Nf=s(),Ni=r("p"),Ni.innerHTML=uy,Bf=s(),f(Wt.$$.fragment),Vf=s(),Bi=r("p"),Bi.innerHTML=Ty,Af=s(),Vi=r("p"),Vi.innerHTML=by,Wf=s(),Ai=r("p"),Ai.innerHTML=yy,Lf=s(),Wi=r("p"),Wi.innerHTML=wy,Sf=s(),Lt=r("div"),f(za.$$.fragment),Of=s(),Li=r("p"),Li.textContent=xy,td=s(),f(qa.$$.fragment),nd=s(),K=r("div"),f(Ga.$$.fragment),Hf=s(),Si=r("p"),Si.innerHTML=My,Yf=s(),f(St.$$.fragment),Ef=s(),Oi=r("p"),Oi.innerHTML=_y,Qf=s(),Hi=r("p"),Hi.innerHTML=vy,Xf=s(),Yi=r("p"),Yi.innerHTML=ky,Kf=s(),Ot=r("div"),f(Za.$$.fragment),eg=s(),Ei=r("p"),Ei.textContent=jy,sd=s(),f(Fa.$$.fragment),ad=s(),F=r("div"),f(Ra.$$.fragment),tg=s(),Qi=r("p"),Qi.textContent=Uy,ng=s(),f(Ht.$$.fragment),sg=s(),Xi=r("p"),Xi.innerHTML=$y,ag=s(),Ki=r("p"),Ki.innerHTML=Jy,og=s(),el=r("p"),el.innerHTML=Py,rg=s(),f(Yt.$$.fragment),ig=s(),Et=r("div"),f(Da.$$.fragment),lg=s(),tl=r("p"),tl.textContent=Cy,pg=s(),Qt=r("div"),f(Na.$$.fragment),cg=s(),nl=r("p"),nl.textContent=Iy,od=s(),f(Ba.$$.fragment),rd=s(),z=r("div"),f(Va.$$.fragment),dg=s(),sl=r("p"),sl.innerHTML=zy,mg=s(),f(Xt.$$.fragment),hg=s(),al=r("p"),al.innerHTML=qy,fg=s(),ol=r("p"),ol.innerHTML=Gy,gg=s(),rl=r("p"),rl.innerHTML=Zy,ug=s(),Kt=r("div"),f(Aa.$$.fragment),Tg=s(),il=r("p"),il.textContent=Fy,bg=s(),Se=r("div"),f(Wa.$$.fragment),yg=s(),ll=r("p"),ll.textContent=Ry,wg=s(),pl=r("p"),pl.textContent=Dy,xg=s(),en=r("div"),f(La.$$.fragment),Mg=s(),cl=r("p"),cl.textContent=Ny,_g=s(),tn=r("div"),f(Sa.$$.fragment),vg=s(),dl=r("p"),dl.textContent=By,kg=s(),nn=r("div"),f(Oa.$$.fragment),jg=s(),ml=r("p"),ml.textContent=Vy,id=s(),f(Ha.$$.fragment),ld=s(),fe=r("div"),f(Ya.$$.fragment),Ug=s(),hl=r("p"),hl.textContent=Ay,$g=s(),fl=r("p"),fl.innerHTML=Wy,Jg=s(),gl=r("p"),gl.innerHTML=Ly,Pg=s(),f(sn.$$.fragment),Cg=s(),an=r("div"),f(Ea.$$.fragment),Ig=s(),ul=r("p"),ul.textContent=Sy,pd=s(),f(Qa.$$.fragment),cd=s(),A=r("div"),f(Xa.$$.fragment),zg=s(),Tl=r("p"),Tl.innerHTML=Oy,qg=s(),bl=r("p"),bl.innerHTML=Hy,Gg=s(),f(on.$$.fragment),Zg=s(),yl=r("p"),yl.innerHTML=Yy,Fg=s(),wl=r("p"),wl.innerHTML=Ey,Rg=s(),xl=r("p"),xl.innerHTML=Qy,Dg=s(),rn=r("div"),f(Ka.$$.fragment),Ng=s(),Ml=r("p"),Ml.innerHTML=Xy,dd=s(),f(eo.$$.fragment),md=s(),to=r("p"),to.textContent=Ky,hd=s(),f(no.$$.fragment),fd=s(),ee=r("div"),f(so.$$.fragment),Bg=s(),_l=r("p"),_l.innerHTML=ew,Vg=s(),f(ln.$$.fragment),Ag=s(),vl=r("p"),vl.innerHTML=tw,Wg=s(),kl=r("p"),kl.innerHTML=nw,Lg=s(),jl=r("p"),jl.innerHTML=sw,Sg=s(),Be=r("div"),f(ao.$$.fragment),Og=s(),Ul=r("p"),Ul.innerHTML=aw,Hg=s(),$l=r("p"),$l.textContent=ow,Yg=s(),Jl=r("ul"),Jl.innerHTML=rw,gd=s(),f(oo.$$.fragment),ud=s(),te=r("div"),f(ro.$$.fragment),Eg=s(),Pl=r("p"),Pl.textContent=iw,Qg=s(),f(pn.$$.fragment),Xg=s(),Cl=r("p"),Cl.innerHTML=lw,Kg=s(),Il=r("p"),Il.innerHTML=pw,eu=s(),zl=r("p"),zl.innerHTML=cw,tu=s(),cn=r("div"),f(io.$$.fragment),nu=s(),ql=r("p"),ql.textContent=dw,Td=s(),f(lo.$$.fragment),bd=s(),ne=r("div"),f(po.$$.fragment),su=s(),Gl=r("p"),Gl.innerHTML=mw,au=s(),f(dn.$$.fragment),ou=s(),Zl=r("p"),Zl.innerHTML=hw,ru=s(),Fl=r("p"),Fl.textContent=fw,iu=s(),Rl=r("p"),Rl.innerHTML=gw,lu=s(),mn=r("div"),f(co.$$.fragment),pu=s(),Dl=r("p"),Dl.textContent=uw,yd=s(),f(mo.$$.fragment),wd=s(),R=r("div"),f(ho.$$.fragment),cu=s(),Nl=r("p"),Nl.innerHTML=Tw,du=s(),Bl=r("p"),Bl.textContent=bw,mu=s(),Vl=r("ol"),Vl.innerHTML=yw,hu=s(),f(hn.$$.fragment),fu=s(),Al=r("p"),Al.innerHTML=ww,gu=s(),Wl=r("p"),Wl.innerHTML=xw,uu=s(),Ll=r("p"),Ll.innerHTML=Mw,Tu=s(),fn=r("div"),f(fo.$$.fragment),bu=s(),Sl=r("p"),Sl.textContent=_w,xd=s(),f(go.$$.fragment),Md=s(),se=r("div"),f(uo.$$.fragment),yu=s(),Ol=r("p"),Ol.innerHTML=vw,wu=s(),f(gn.$$.fragment),xu=s(),Hl=r("p"),Hl.innerHTML=kw,Mu=s(),Yl=r("p"),Yl.innerHTML=jw,_u=s(),El=r("p"),El.innerHTML=Uw,vu=s(),Oe=r("div"),f(To.$$.fragment),ku=s(),Ql=r("p"),Ql.textContent=$w,ju=s(),Xl=r("ul"),Xl.innerHTML=Jw,_d=s(),f(bo.$$.fragment),vd=s(),C=r("div"),f(yo.$$.fragment),Uu=s(),Kl=r("p"),Kl.textContent=Pw,$u=s(),ep=r("p"),ep.textContent=Cw,Ju=s(),tp=r("p"),tp.textContent=Iw,Pu=s(),np=r("p"),np.textContent=zw,Cu=s(),sp=r("p"),sp.innerHTML=qw,Iu=s(),un=r("div"),f(wo.$$.fragment),zu=s(),ap=r("p"),ap.textContent=Gw,qu=s(),He=r("div"),f(xo.$$.fragment),Gu=s(),op=r("p"),op.textContent=Zw,Zu=s(),f(Tn.$$.fragment),Fu=s(),bn=r("div"),f(Mo.$$.fragment),Ru=s(),rp=r("p"),rp.textContent=Fw,Du=s(),yn=r("div"),f(_o.$$.fragment),Nu=s(),ip=r("p"),ip.innerHTML=Rw,Bu=s(),wn=r("div"),f(vo.$$.fragment),Vu=s(),lp=r("p"),lp.innerHTML=Dw,Au=s(),xn=r("div"),f(ko.$$.fragment),Wu=s(),pp=r("p"),pp.innerHTML=Nw,Lu=s(),Mn=r("div"),f(jo.$$.fragment),Su=s(),cp=r("p"),cp.textContent=Bw,Ou=s(),_n=r("div"),f(Uo.$$.fragment),Hu=s(),dp=r("p"),dp.innerHTML=Vw,kd=s(),Tp=r("p"),this.h()},l(e){const p=Ow("svelte-u9bgzb",document.head);l=i(p,"META",{name:!0,content:!0}),p.forEach(o),M=a(e),h=i(e,"P",{}),_(h).forEach(o),c=a(e),g(w.$$.fragment,e),t=a(e),x=i(e,"P",{"data-svelte-h":!0}),m(x)!=="svelte-gqgo8q"&&(x.innerHTML=up),bp=a(e),kn=i(e,"P",{"data-svelte-h":!0}),m(kn)!=="svelte-17orrwm"&&(kn.textContent=Yu),yp=a(e),jn=i(e,"UL",{"data-svelte-h":!0}),m(jn)!=="svelte-1d7dvo2"&&(jn.innerHTML=Eu),wp=a(e),g(Un.$$.fragment,e),xp=a(e),$n=i(e,"P",{"data-svelte-h":!0}),m($n)!=="svelte-746ti5"&&($n.innerHTML=Qu),Mp=a(e),Jn=i(e,"P",{"data-svelte-h":!0}),m(Jn)!=="svelte-zrudxx"&&(Jn.textContent=Xu),_p=a(e),g(Pn.$$.fragment,e),vp=a(e),Cn=i(e,"P",{"data-svelte-h":!0}),m(Cn)!=="svelte-1n5prhc"&&(Cn.innerHTML=Ku),kp=a(e),g(In.$$.fragment,e),jp=a(e),zn=i(e,"P",{"data-svelte-h":!0}),m(zn)!=="svelte-qi7qyk"&&(zn.innerHTML=eT),Up=a(e),g(qn.$$.fragment,e),$p=a(e),Gn=i(e,"P",{"data-svelte-h":!0}),m(Gn)!=="svelte-n7de29"&&(Gn.innerHTML=tT),Jp=a(e),g(Zn.$$.fragment,e),Pp=a(e),Fn=i(e,"P",{"data-svelte-h":!0}),m(Fn)!=="svelte-11chlj4"&&(Fn.textContent=nT),Cp=a(e),g(Rn.$$.fragment,e),Ip=a(e),ve=i(e,"DIV",{class:!0});var Re=_(ve);g(Dn.$$.fragment,Re),Qd=a(Re),Ho=i(Re,"P",{"data-svelte-h":!0}),m(Ho)!=="svelte-a6qfjg"&&(Ho.innerHTML=sT),Xd=a(Re),Yo=i(Re,"P",{"data-svelte-h":!0}),m(Yo)!=="svelte-1lntif9"&&(Yo.textContent=aT),Kd=a(Re),Eo=i(Re,"UL",{"data-svelte-h":!0}),m(Eo)!=="svelte-18neydl"&&(Eo.innerHTML=oT),em=a(Re),g(Ee.$$.fragment,Re),Re.forEach(o),zp=a(e),g(Nn.$$.fragment,e),qp=a(e),Bn=i(e,"P",{"data-svelte-h":!0}),m(Bn)!=="svelte-v5xc82"&&(Bn.innerHTML=rT),Gp=a(e),g(Vn.$$.fragment,e),Zp=a(e),g(Qe.$$.fragment,e),Fp=a(e),g(An.$$.fragment,e),Rp=a(e),g(Wn.$$.fragment,e),Dp=a(e),Ln=i(e,"P",{"data-svelte-h":!0}),m(Ln)!=="svelte-pccs60"&&(Ln.textContent=iT),Np=a(e),g(Sn.$$.fragment,e),Bp=a(e),On=i(e,"P",{"data-svelte-h":!0}),m(On)!=="svelte-1nxx4l6"&&(On.innerHTML=lT),Vp=a(e),g(Hn.$$.fragment,e),Ap=a(e),Yn=i(e,"P",{"data-svelte-h":!0}),m(Yn)!=="svelte-wxes32"&&(Yn.textContent=pT),Wp=a(e),En=i(e,"P",{"data-svelte-h":!0}),m(En)!=="svelte-i0f5f4"&&(En.textContent=cT),Lp=a(e),Qn=i(e,"UL",{"data-svelte-h":!0}),m(Qn)!=="svelte-h590re"&&(Qn.innerHTML=dT),Sp=a(e),g(Xn.$$.fragment,e),Op=a(e),Kn=i(e,"P",{"data-svelte-h":!0}),m(Kn)!=="svelte-qmvd7m"&&(Kn.innerHTML=mT),Hp=a(e),es=i(e,"P",{"data-svelte-h":!0}),m(es)!=="svelte-1rszvwl"&&(es.innerHTML=hT),Yp=a(e),g(ts.$$.fragment,e),Ep=a(e),ns=i(e,"P",{"data-svelte-h":!0}),m(ns)!=="svelte-1seu35y"&&(ns.textContent=fT),Qp=a(e),g(ss.$$.fragment,e),Xp=a(e),as=i(e,"P",{"data-svelte-h":!0}),m(as)!=="svelte-6rhsm0"&&(as.textContent=gT),Kp=a(e),os=i(e,"P",{"data-svelte-h":!0}),m(os)!=="svelte-1586eur"&&(os.innerHTML=uT),ec=a(e),g(rs.$$.fragment,e),tc=a(e),is=i(e,"P",{"data-svelte-h":!0}),m(is)!=="svelte-1c2jxl3"&&(is.textContent=TT),nc=a(e),ls=i(e,"P",{"data-svelte-h":!0}),m(ls)!=="svelte-xhq1b2"&&(ls.innerHTML=bT),sc=a(e),ps=i(e,"P",{"data-svelte-h":!0}),m(ps)!=="svelte-14y1xl"&&(ps.textContent=yT),ac=a(e),cs=i(e,"UL",{"data-svelte-h":!0}),m(cs)!=="svelte-1ducd9d"&&(cs.innerHTML=wT),oc=a(e),g(ds.$$.fragment,e),rc=a(e),ms=i(e,"P",{"data-svelte-h":!0}),m(ms)!=="svelte-as5dux"&&(ms.textContent=xT),ic=a(e),g(hs.$$.fragment,e),lc=a(e),fs=i(e,"P",{"data-svelte-h":!0}),m(fs)!=="svelte-12n9b6f"&&(fs.innerHTML=MT),pc=a(e),g(gs.$$.fragment,e),cc=a(e),us=i(e,"P",{"data-svelte-h":!0}),m(us)!=="svelte-vn3gp9"&&(us.textContent=_T),dc=a(e),g(Ts.$$.fragment,e),mc=a(e),L=i(e,"DIV",{class:!0});var ge=_(L);g(bs.$$.fragment,ge),tm=a(ge),Qo=i(ge,"P",{"data-svelte-h":!0}),m(Qo)!=="svelte-1wmh7ni"&&(Qo.innerHTML=vT),nm=a(ge),g(Xe.$$.fragment,ge),sm=a(ge),Xo=i(ge,"P",{"data-svelte-h":!0}),m(Xo)!=="svelte-13rexfx"&&(Xo.innerHTML=kT),am=a(ge),Ko=i(ge,"P",{"data-svelte-h":!0}),m(Ko)!=="svelte-syio4y"&&(Ko.innerHTML=jT),om=a(ge),er=i(ge,"P",{"data-svelte-h":!0}),m(er)!=="svelte-1pv1mxa"&&(er.innerHTML=UT),rm=a(ge),Ke=i(ge,"DIV",{class:!0});var $o=_(Ke);g(ys.$$.fragment,$o),im=a($o),tr=i($o,"P",{"data-svelte-h":!0}),m(tr)!=="svelte-1x6px9t"&&(tr.innerHTML=$T),$o.forEach(o),ge.forEach(o),hc=a(e),g(ws.$$.fragment,e),fc=a(e),pe=i(e,"DIV",{class:!0});var Ue=_(pe);g(xs.$$.fragment,Ue),lm=a(Ue),nr=i(Ue,"P",{"data-svelte-h":!0}),m(nr)!=="svelte-vm8asa"&&(nr.textContent=JT),pm=a(Ue),sr=i(Ue,"P",{"data-svelte-h":!0}),m(sr)!=="svelte-1l0gjoy"&&(sr.textContent=PT),cm=a(Ue),g(et.$$.fragment,Ue),dm=a(Ue),ar=i(Ue,"P",{"data-svelte-h":!0}),m(ar)!=="svelte-13rexfx"&&(ar.innerHTML=CT),mm=a(Ue),tt=i(Ue,"DIV",{class:!0});var Jo=_(tt);g(Ms.$$.fragment,Jo),hm=a(Jo),or=i(Jo,"P",{"data-svelte-h":!0}),m(or)!=="svelte-95cz7s"&&(or.innerHTML=IT),Jo.forEach(o),Ue.forEach(o),gc=a(e),g(_s.$$.fragment,e),uc=a(e),B=i(e,"DIV",{class:!0});var ae=_(B);g(vs.$$.fragment,ae),fm=a(ae),rr=i(ae,"P",{"data-svelte-h":!0}),m(rr)!=="svelte-y1s454"&&(rr.innerHTML=zT),gm=a(ae),g(nt.$$.fragment,ae),um=a(ae),ir=i(ae,"P",{"data-svelte-h":!0}),m(ir)!=="svelte-13rexfx"&&(ir.innerHTML=qT),Tm=a(ae),g(st.$$.fragment,ae),bm=a(ae),lr=i(ae,"P",{"data-svelte-h":!0}),m(lr)!=="svelte-1ytzgws"&&(lr.innerHTML=GT),ym=a(ae),pr=i(ae,"P",{"data-svelte-h":!0}),m(pr)!=="svelte-1g4o6wf"&&(pr.innerHTML=ZT),wm=a(ae),at=i(ae,"DIV",{class:!0});var Po=_(at);g(ks.$$.fragment,Po),xm=a(Po),cr=i(Po,"P",{"data-svelte-h":!0}),m(cr)!=="svelte-1dz7qtg"&&(cr.innerHTML=FT),Po.forEach(o),ae.forEach(o),Tc=a(e),g(js.$$.fragment,e),bc=a(e),ke=i(e,"DIV",{class:!0});var De=_(ke);g(Us.$$.fragment,De),Mm=a(De),dr=i(De,"P",{"data-svelte-h":!0}),m(dr)!=="svelte-tmg4zt"&&(dr.innerHTML=RT),_m=a(De),g(ot.$$.fragment,De),vm=a(De),mr=i(De,"P",{"data-svelte-h":!0}),m(mr)!=="svelte-142fxu9"&&(mr.innerHTML=DT),km=a(De),rt=i(De,"DIV",{class:!0});var Co=_(rt);g($s.$$.fragment,Co),jm=a(Co),hr=i(Co,"P",{"data-svelte-h":!0}),m(hr)!=="svelte-kd58rd"&&(hr.textContent=NT),Co.forEach(o),De.forEach(o),yc=a(e),g(Js.$$.fragment,e),wc=a(e),Ps=i(e,"P",{"data-svelte-h":!0}),m(Ps)!=="svelte-666kgg"&&(Ps.textContent=BT),xc=a(e),g(Cs.$$.fragment,e),Mc=a(e),S=i(e,"DIV",{class:!0});var ue=_(S);g(Is.$$.fragment,ue),Um=a(ue),fr=i(ue,"P",{"data-svelte-h":!0}),m(fr)!=="svelte-cmozej"&&(fr.innerHTML=VT),$m=a(ue),g(it.$$.fragment,ue),Jm=a(ue),gr=i(ue,"P",{"data-svelte-h":!0}),m(gr)!=="svelte-13rexfx"&&(gr.innerHTML=AT),Pm=a(ue),ur=i(ue,"P",{"data-svelte-h":!0}),m(ur)!=="svelte-1nir76o"&&(ur.innerHTML=WT),Cm=a(ue),Tr=i(ue,"P",{"data-svelte-h":!0}),m(Tr)!=="svelte-6trb8y"&&(Tr.innerHTML=LT),Im=a(ue),lt=i(ue,"DIV",{class:!0});var Io=_(lt);g(zs.$$.fragment,Io),zm=a(Io),br=i(Io,"P",{"data-svelte-h":!0}),m(br)!=="svelte-ypfmt8"&&(br.textContent=ST),Io.forEach(o),ue.forEach(o),_c=a(e),g(qs.$$.fragment,e),vc=a(e),O=i(e,"DIV",{class:!0});var Te=_(O);g(Gs.$$.fragment,Te),qm=a(Te),yr=i(Te,"P",{"data-svelte-h":!0}),m(yr)!=="svelte-rlbi70"&&(yr.innerHTML=OT),Gm=a(Te),g(pt.$$.fragment,Te),Zm=a(Te),wr=i(Te,"P",{"data-svelte-h":!0}),m(wr)!=="svelte-13rexfx"&&(wr.innerHTML=HT),Fm=a(Te),xr=i(Te,"P",{"data-svelte-h":!0}),m(xr)!=="svelte-lsbjq8"&&(xr.innerHTML=YT),Rm=a(Te),Mr=i(Te,"P",{"data-svelte-h":!0}),m(Mr)!=="svelte-cqpf5t"&&(Mr.innerHTML=ET),Dm=a(Te),ct=i(Te,"DIV",{class:!0});var zo=_(ct);g(Zs.$$.fragment,zo),Nm=a(zo),_r=i(zo,"P",{"data-svelte-h":!0}),m(_r)!=="svelte-ypfmt8"&&(_r.textContent=QT),zo.forEach(o),Te.forEach(o),kc=a(e),g(Fs.$$.fragment,e),jc=a(e),ce=i(e,"DIV",{class:!0});var $e=_(ce);g(Rs.$$.fragment,$e),Bm=a($e),vr=i($e,"P",{"data-svelte-h":!0}),m(vr)!=="svelte-1y2a978"&&(vr.innerHTML=XT),Vm=a($e),g(dt.$$.fragment,$e),Am=a($e),kr=i($e,"P",{"data-svelte-h":!0}),m(kr)!=="svelte-7qaqj4"&&(kr.innerHTML=KT),Wm=a($e),jr=i($e,"P",{"data-svelte-h":!0}),m(jr)!=="svelte-151zbn3"&&(jr.innerHTML=eb),Lm=a($e),mt=i($e,"DIV",{class:!0});var qo=_(mt);g(Ds.$$.fragment,qo),Sm=a(qo),Ur=i(qo,"P",{"data-svelte-h":!0}),m(Ur)!=="svelte-1qn9qfa"&&(Ur.textContent=tb),qo.forEach(o),$e.forEach(o),Uc=a(e),g(Ns.$$.fragment,e),$c=a(e),de=i(e,"DIV",{class:!0});var Je=_(de);g(Bs.$$.fragment,Je),Om=a(Je),$r=i(Je,"P",{"data-svelte-h":!0}),m($r)!=="svelte-5hn3v1"&&($r.innerHTML=nb),Hm=a(Je),g(ht.$$.fragment,Je),Ym=a(Je),Jr=i(Je,"P",{"data-svelte-h":!0}),m(Jr)!=="svelte-iytds9"&&(Jr.innerHTML=sb),Em=a(Je),Pr=i(Je,"P",{"data-svelte-h":!0}),m(Pr)!=="svelte-1pm9980"&&(Pr.innerHTML=ab),Qm=a(Je),ft=i(Je,"DIV",{class:!0});var Go=_(ft);g(Vs.$$.fragment,Go),Xm=a(Go),Cr=i(Go,"P",{"data-svelte-h":!0}),m(Cr)!=="svelte-1ega32d"&&(Cr.textContent=ob),Go.forEach(o),Je.forEach(o),Jc=a(e),g(As.$$.fragment,e),Pc=a(e),H=i(e,"DIV",{class:!0});var be=_(H);g(Ws.$$.fragment,be),Km=a(be),Ir=i(be,"P",{"data-svelte-h":!0}),m(Ir)!=="svelte-1c7y9od"&&(Ir.innerHTML=rb),eh=a(be),g(gt.$$.fragment,be),th=a(be),zr=i(be,"P",{"data-svelte-h":!0}),m(zr)!=="svelte-13rexfx"&&(zr.innerHTML=ib),nh=a(be),qr=i(be,"P",{"data-svelte-h":!0}),m(qr)!=="svelte-ooh3di"&&(qr.innerHTML=lb),sh=a(be),Gr=i(be,"P",{"data-svelte-h":!0}),m(Gr)!=="svelte-1ea8edc"&&(Gr.innerHTML=pb),ah=a(be),ut=i(be,"DIV",{class:!0});var Zo=_(ut);g(Ls.$$.fragment,Zo),oh=a(Zo),Zr=i(Zo,"P",{"data-svelte-h":!0}),m(Zr)!=="svelte-1ws18e1"&&(Zr.textContent=cb),Zo.forEach(o),be.forEach(o),Cc=a(e),g(Ss.$$.fragment,e),Ic=a(e),je=i(e,"DIV",{class:!0});var Ne=_(je);g(Os.$$.fragment,Ne),rh=a(Ne),Fr=i(Ne,"P",{"data-svelte-h":!0}),m(Fr)!=="svelte-115eloe"&&(Fr.innerHTML=db),ih=a(Ne),Rr=i(Ne,"P",{"data-svelte-h":!0}),m(Rr)!=="svelte-83uax8"&&(Rr.innerHTML=mb),lh=a(Ne),Dr=i(Ne,"P",{"data-svelte-h":!0}),m(Dr)!=="svelte-38n9pn"&&(Dr.innerHTML=hb),ph=a(Ne),Tt=i(Ne,"DIV",{class:!0});var Fo=_(Tt);g(Hs.$$.fragment,Fo),ch=a(Fo),Nr=i(Fo,"P",{"data-svelte-h":!0}),m(Nr)!=="svelte-1wpkis2"&&(Nr.textContent=fb),Fo.forEach(o),Ne.forEach(o),zc=a(e),g(Ys.$$.fragment,e),qc=a(e),Y=i(e,"DIV",{class:!0});var ye=_(Y);g(Es.$$.fragment,ye),dh=a(ye),Br=i(ye,"P",{"data-svelte-h":!0}),m(Br)!=="svelte-1lqk35m"&&(Br.innerHTML=gb),mh=a(ye),g(bt.$$.fragment,ye),hh=a(ye),Vr=i(ye,"P",{"data-svelte-h":!0}),m(Vr)!=="svelte-13rexfx"&&(Vr.innerHTML=ub),fh=a(ye),Ar=i(ye,"P",{"data-svelte-h":!0}),m(Ar)!=="svelte-gqcl2k"&&(Ar.innerHTML=Tb),gh=a(ye),Wr=i(ye,"P",{"data-svelte-h":!0}),m(Wr)!=="svelte-ab0ict"&&(Wr.innerHTML=bb),uh=a(ye),yt=i(ye,"DIV",{class:!0});var Ro=_(yt);g(Qs.$$.fragment,Ro),Th=a(Ro),Lr=i(Ro,"P",{"data-svelte-h":!0}),m(Lr)!=="svelte-ypfmt8"&&(Lr.textContent=yb),Ro.forEach(o),ye.forEach(o),Gc=a(e),g(Xs.$$.fragment,e),Zc=a(e),E=i(e,"DIV",{class:!0});var we=_(E);g(Ks.$$.fragment,we),bh=a(we),Sr=i(we,"P",{"data-svelte-h":!0}),m(Sr)!=="svelte-zegbdg"&&(Sr.innerHTML=wb),yh=a(we),g(wt.$$.fragment,we),wh=a(we),Or=i(we,"P",{"data-svelte-h":!0}),m(Or)!=="svelte-13rexfx"&&(Or.innerHTML=xb),xh=a(we),Hr=i(we,"P",{"data-svelte-h":!0}),m(Hr)!=="svelte-bss5ga"&&(Hr.innerHTML=Mb),Mh=a(we),Yr=i(we,"P",{"data-svelte-h":!0}),m(Yr)!=="svelte-1lmpzxi"&&(Yr.innerHTML=_b),_h=a(we),xt=i(we,"DIV",{class:!0});var Do=_(xt);g(ea.$$.fragment,Do),vh=a(Do),Er=i(Do,"P",{"data-svelte-h":!0}),m(Er)!=="svelte-1ws18e1"&&(Er.textContent=vb),Do.forEach(o),we.forEach(o),Fc=a(e),g(ta.$$.fragment,e),Rc=a(e),na=i(e,"P",{"data-svelte-h":!0}),m(na)!=="svelte-7gccxi"&&(na.textContent=kb),Dc=a(e),g(sa.$$.fragment,e),Nc=a(e),me=i(e,"DIV",{class:!0});var Pe=_(me);g(aa.$$.fragment,Pe),kh=a(Pe),Qr=i(Pe,"P",{"data-svelte-h":!0}),m(Qr)!=="svelte-g2z9vi"&&(Qr.innerHTML=jb),jh=a(Pe),g(Mt.$$.fragment,Pe),Uh=a(Pe),_t=i(Pe,"DIV",{class:!0});var No=_(_t);g(oa.$$.fragment,No),$h=a(No),Xr=i(No,"P",{"data-svelte-h":!0}),m(Xr)!=="svelte-dgjtw0"&&(Xr.innerHTML=Ub),No.forEach(o),Jh=a(Pe),vt=i(Pe,"DIV",{class:!0});var Bo=_(vt);g(ra.$$.fragment,Bo),Ph=a(Bo),Kr=i(Bo,"P",{"data-svelte-h":!0}),m(Kr)!=="svelte-4if1o7"&&(Kr.innerHTML=$b),Bo.forEach(o),Ch=a(Pe),kt=i(Pe,"DIV",{class:!0});var Vo=_(kt);g(ia.$$.fragment,Vo),Ih=a(Vo),ei=i(Vo,"P",{"data-svelte-h":!0}),m(ei)!=="svelte-1atfogl"&&(ei.textContent=Jb),Vo.forEach(o),Pe.forEach(o),Bc=a(e),Q=i(e,"DIV",{class:!0});var xe=_(Q);g(la.$$.fragment,xe),zh=a(xe),ti=i(xe,"P",{"data-svelte-h":!0}),m(ti)!=="svelte-1aof0an"&&(ti.textContent=Pb),qh=a(xe),g(jt.$$.fragment,xe),Gh=a(xe),ni=i(xe,"P",{"data-svelte-h":!0}),m(ni)!=="svelte-13rexfx"&&(ni.innerHTML=Cb),Zh=a(xe),si=i(xe,"P",{"data-svelte-h":!0}),m(si)!=="svelte-sg8i5r"&&(si.innerHTML=Ib),Fh=a(xe),ai=i(xe,"P",{"data-svelte-h":!0}),m(ai)!=="svelte-11boun1"&&(ai.innerHTML=zb),Rh=a(xe),Ut=i(xe,"DIV",{class:!0});var Ao=_(Ut);g(pa.$$.fragment,Ao),Dh=a(Ao),oi=i(Ao,"P",{"data-svelte-h":!0}),m(oi)!=="svelte-71qq28"&&(oi.textContent=qb),Ao.forEach(o),xe.forEach(o),Vc=a(e),g(ca.$$.fragment,e),Ac=a(e),G=i(e,"DIV",{class:!0});var W=_(G);g(da.$$.fragment,W),Nh=a(W),ri=i(W,"P",{"data-svelte-h":!0}),m(ri)!=="svelte-1y2vlya"&&(ri.innerHTML=Gb),Bh=a(W),g($t.$$.fragment,W),Vh=a(W),ii=i(W,"P",{"data-svelte-h":!0}),m(ii)!=="svelte-13rexfx"&&(ii.innerHTML=Zb),Ah=a(W),li=i(W,"P",{"data-svelte-h":!0}),m(li)!=="svelte-km3vow"&&(li.innerHTML=Fb),Wh=a(W),pi=i(W,"P",{"data-svelte-h":!0}),m(pi)!=="svelte-6ieg"&&(pi.innerHTML=Rb),Lh=a(W),g(Jt.$$.fragment,W),Sh=a(W),g(Pt.$$.fragment,W),Oh=a(W),Ct=i(W,"DIV",{class:!0});var Wo=_(Ct);g(ma.$$.fragment,Wo),Hh=a(Wo),ci=i(Wo,"P",{"data-svelte-h":!0}),m(ci)!=="svelte-1dgb1r"&&(ci.textContent=Db),Wo.forEach(o),W.forEach(o),Wc=a(e),g(ha.$$.fragment,e),Lc=a(e),q=i(e,"DIV",{class:!0});var D=_(q);g(fa.$$.fragment,D),Yh=a(D),di=i(D,"P",{"data-svelte-h":!0}),m(di)!=="svelte-15adoar"&&(di.innerHTML=Nb),Eh=a(D),g(It.$$.fragment,D),Qh=a(D),mi=i(D,"P",{"data-svelte-h":!0}),m(mi)!=="svelte-13rexfx"&&(mi.innerHTML=Bb),Xh=a(D),hi=i(D,"P",{"data-svelte-h":!0}),m(hi)!=="svelte-14p6555"&&(hi.innerHTML=Vb),Kh=a(D),fi=i(D,"P",{"data-svelte-h":!0}),m(fi)!=="svelte-jwg5m8"&&(fi.innerHTML=Ab),ef=a(D),We=i(D,"DIV",{class:!0});var Ye=_(We);g(ga.$$.fragment,Ye),tf=a(Ye),gi=i(Ye,"P",{"data-svelte-h":!0}),m(gi)!=="svelte-1qebl0w"&&(gi.textContent=Wb),nf=a(Ye),ui=i(Ye,"P",{"data-svelte-h":!0}),m(ui)!=="svelte-m7pmui"&&(ui.textContent=Lb),Ye.forEach(o),sf=a(D),zt=i(D,"DIV",{class:!0});var Lo=_(zt);g(ua.$$.fragment,Lo),af=a(Lo),Ti=i(Lo,"P",{"data-svelte-h":!0}),m(Ti)!=="svelte-lj4b08"&&(Ti.textContent=Sb),Lo.forEach(o),of=a(D),qt=i(D,"DIV",{class:!0});var So=_(qt);g(Ta.$$.fragment,So),rf=a(So),bi=i(So,"P",{"data-svelte-h":!0}),m(bi)!=="svelte-226no6"&&(bi.textContent=Ob),So.forEach(o),lf=a(D),Gt=i(D,"DIV",{class:!0});var Oo=_(Gt);g(ba.$$.fragment,Oo),pf=a(Oo),yi=i(Oo,"P",{"data-svelte-h":!0}),m(yi)!=="svelte-vx34uc"&&(yi.textContent=Hb),Oo.forEach(o),D.forEach(o),Sc=a(e),ya=i(e,"P",{"data-svelte-h":!0}),m(ya)!=="svelte-1ble9nm"&&(ya.innerHTML=Yb),Oc=a(e),g(wa.$$.fragment,e),Hc=a(e),Z=i(e,"DIV",{class:!0});var re=_(Z);g(xa.$$.fragment,re),cf=a(re),wi=i(re,"P",{"data-svelte-h":!0}),m(wi)!=="svelte-81lrkw"&&(wi.innerHTML=Eb),df=a(re),g(Zt.$$.fragment,re),mf=a(re),xi=i(re,"P",{"data-svelte-h":!0}),m(xi)!=="svelte-13rexfx"&&(xi.innerHTML=Qb),hf=a(re),Mi=i(re,"P",{"data-svelte-h":!0}),m(Mi)!=="svelte-awwk5e"&&(Mi.innerHTML=Xb),ff=a(re),_i=i(re,"P",{"data-svelte-h":!0}),m(_i)!=="svelte-13vdwbu"&&(_i.innerHTML=Kb),gf=a(re),Ft=i(re,"DIV",{class:!0});var Ud=_(Ft);g(Ma.$$.fragment,Ud),uf=a(Ud),vi=i(Ud,"P",{"data-svelte-h":!0}),m(vi)!=="svelte-2lj46g"&&(vi.textContent=ey),Ud.forEach(o),Tf=a(re),Le=i(re,"DIV",{class:!0});var mp=_(Le);g(_a.$$.fragment,mp),bf=a(mp),ki=i(mp,"P",{"data-svelte-h":!0}),m(ki)!=="svelte-1iglp3e"&&(ki.innerHTML=ty),yf=a(mp),ji=i(mp,"P",{"data-svelte-h":!0}),m(ji)!=="svelte-tiqx9u"&&(ji.textContent=ny),mp.forEach(o),wf=a(re),Rt=i(re,"DIV",{class:!0});var $d=_(Rt);g(va.$$.fragment,$d),xf=a($d),Ui=i($d,"P",{"data-svelte-h":!0}),m(Ui)!=="svelte-d6foro"&&(Ui.textContent=sy),$d.forEach(o),re.forEach(o),Yc=a(e),g(ka.$$.fragment,e),Ec=a(e),he=i(e,"DIV",{class:!0});var Ve=_(he);g(ja.$$.fragment,Ve),Mf=a(Ve),$i=i(Ve,"P",{"data-svelte-h":!0}),m($i)!=="svelte-4fy8a0"&&($i.textContent=ay),_f=a(Ve),Ji=i(Ve,"P",{"data-svelte-h":!0}),m(Ji)!=="svelte-ubeb1k"&&(Ji.innerHTML=oy),vf=a(Ve),Pi=i(Ve,"P",{"data-svelte-h":!0}),m(Pi)!=="svelte-3gfnx6"&&(Pi.innerHTML=ry),kf=a(Ve),g(Dt.$$.fragment,Ve),jf=a(Ve),Nt=i(Ve,"DIV",{class:!0});var Jd=_(Nt);g(Ua.$$.fragment,Jd),Uf=a(Jd),Ci=i(Jd,"P",{"data-svelte-h":!0}),m(Ci)!=="svelte-myfdp"&&(Ci.textContent=iy),Jd.forEach(o),Ve.forEach(o),Qc=a(e),g($a.$$.fragment,e),Xc=a(e),X=i(e,"DIV",{class:!0});var Ce=_(X);g(Ja.$$.fragment,Ce),$f=a(Ce),Ii=i(Ce,"P",{"data-svelte-h":!0}),m(Ii)!=="svelte-1j45sfj"&&(Ii.innerHTML=ly),Jf=a(Ce),g(Bt.$$.fragment,Ce),Pf=a(Ce),zi=i(Ce,"P",{"data-svelte-h":!0}),m(zi)!=="svelte-13rexfx"&&(zi.innerHTML=py),Cf=a(Ce),qi=i(Ce,"P",{"data-svelte-h":!0}),m(qi)!=="svelte-1wuasgu"&&(qi.innerHTML=cy),If=a(Ce),Gi=i(Ce,"P",{"data-svelte-h":!0}),m(Gi)!=="svelte-1jig9aq"&&(Gi.innerHTML=dy),zf=a(Ce),oe=i(Ce,"DIV",{class:!0});var Ie=_(oe);g(Pa.$$.fragment,Ie),qf=a(Ie),Zi=i(Ie,"P",{"data-svelte-h":!0}),m(Zi)!=="svelte-1pyysfu"&&(Zi.textContent=my),Gf=a(Ie),Fi=i(Ie,"UL",{"data-svelte-h":!0}),m(Fi)!=="svelte-1ny9a5f"&&(Fi.innerHTML=hy),Zf=a(Ie),Ri=i(Ie,"P",{"data-svelte-h":!0}),m(Ri)!=="svelte-11u3uey"&&(Ri.innerHTML=fy),Ff=a(Ie),g(Vt.$$.fragment,Ie),Rf=a(Ie),Di=i(Ie,"P",{"data-svelte-h":!0}),m(Di)!=="svelte-madj2v"&&(Di.textContent=gy),Df=a(Ie),g(At.$$.fragment,Ie),Ie.forEach(o),Ce.forEach(o),Kc=a(e),g(Ca.$$.fragment,e),ed=a(e),V=i(e,"DIV",{class:!0});var Me=_(V);g(Ia.$$.fragment,Me),Nf=a(Me),Ni=i(Me,"P",{"data-svelte-h":!0}),m(Ni)!=="svelte-n7evf0"&&(Ni.innerHTML=uy),Bf=a(Me),g(Wt.$$.fragment,Me),Vf=a(Me),Bi=i(Me,"P",{"data-svelte-h":!0}),m(Bi)!=="svelte-13rexfx"&&(Bi.innerHTML=Ty),Af=a(Me),Vi=i(Me,"P",{"data-svelte-h":!0}),m(Vi)!=="svelte-19k6g5i"&&(Vi.innerHTML=by),Wf=a(Me),Ai=i(Me,"P",{"data-svelte-h":!0}),m(Ai)!=="svelte-me3s3q"&&(Ai.innerHTML=yy),Lf=a(Me),Wi=i(Me,"P",{"data-svelte-h":!0}),m(Wi)!=="svelte-1qrdw9i"&&(Wi.innerHTML=wy),Sf=a(Me),Lt=i(Me,"DIV",{class:!0});var Pd=_(Lt);g(za.$$.fragment,Pd),Of=a(Pd),Li=i(Pd,"P",{"data-svelte-h":!0}),m(Li)!=="svelte-14zfmze"&&(Li.textContent=xy),Pd.forEach(o),Me.forEach(o),td=a(e),g(qa.$$.fragment,e),nd=a(e),K=i(e,"DIV",{class:!0});var ze=_(K);g(Ga.$$.fragment,ze),Hf=a(ze),Si=i(ze,"P",{"data-svelte-h":!0}),m(Si)!=="svelte-16fty2d"&&(Si.innerHTML=My),Yf=a(ze),g(St.$$.fragment,ze),Ef=a(ze),Oi=i(ze,"P",{"data-svelte-h":!0}),m(Oi)!=="svelte-26qptp"&&(Oi.innerHTML=_y),Qf=a(ze),Hi=i(ze,"P",{"data-svelte-h":!0}),m(Hi)!=="svelte-qvdl99"&&(Hi.innerHTML=vy),Xf=a(ze),Yi=i(ze,"P",{"data-svelte-h":!0}),m(Yi)!=="svelte-u1i8ee"&&(Yi.innerHTML=ky),Kf=a(ze),Ot=i(ze,"DIV",{class:!0});var Cd=_(Ot);g(Za.$$.fragment,Cd),eg=a(Cd),Ei=i(Cd,"P",{"data-svelte-h":!0}),m(Ei)!=="svelte-1ql86ls"&&(Ei.textContent=jy),Cd.forEach(o),ze.forEach(o),sd=a(e),g(Fa.$$.fragment,e),ad=a(e),F=i(e,"DIV",{class:!0});var ie=_(F);g(Ra.$$.fragment,ie),tg=a(ie),Qi=i(ie,"P",{"data-svelte-h":!0}),m(Qi)!=="svelte-xbi6mw"&&(Qi.textContent=Uy),ng=a(ie),g(Ht.$$.fragment,ie),sg=a(ie),Xi=i(ie,"P",{"data-svelte-h":!0}),m(Xi)!=="svelte-26qptp"&&(Xi.innerHTML=$y),ag=a(ie),Ki=i(ie,"P",{"data-svelte-h":!0}),m(Ki)!=="svelte-2lyhwi"&&(Ki.innerHTML=Jy),og=a(ie),el=i(ie,"P",{"data-svelte-h":!0}),m(el)!=="svelte-1iyxmj8"&&(el.innerHTML=Py),rg=a(ie),g(Yt.$$.fragment,ie),ig=a(ie),Et=i(ie,"DIV",{class:!0});var Id=_(Et);g(Da.$$.fragment,Id),lg=a(Id),tl=i(Id,"P",{"data-svelte-h":!0}),m(tl)!=="svelte-48qsnz"&&(tl.textContent=Cy),Id.forEach(o),pg=a(ie),Qt=i(ie,"DIV",{class:!0});var zd=_(Qt);g(Na.$$.fragment,zd),cg=a(zd),nl=i(zd,"P",{"data-svelte-h":!0}),m(nl)!=="svelte-uzfqtg"&&(nl.textContent=Iy),zd.forEach(o),ie.forEach(o),od=a(e),g(Ba.$$.fragment,e),rd=a(e),z=i(e,"DIV",{class:!0});var N=_(z);g(Va.$$.fragment,N),dg=a(N),sl=i(N,"P",{"data-svelte-h":!0}),m(sl)!=="svelte-15adoar"&&(sl.innerHTML=zy),mg=a(N),g(Xt.$$.fragment,N),hg=a(N),al=i(N,"P",{"data-svelte-h":!0}),m(al)!=="svelte-13rexfx"&&(al.innerHTML=qy),fg=a(N),ol=i(N,"P",{"data-svelte-h":!0}),m(ol)!=="svelte-14p6555"&&(ol.innerHTML=Gy),gg=a(N),rl=i(N,"P",{"data-svelte-h":!0}),m(rl)!=="svelte-jwg5m8"&&(rl.innerHTML=Zy),ug=a(N),Kt=i(N,"DIV",{class:!0});var qd=_(Kt);g(Aa.$$.fragment,qd),Tg=a(qd),il=i(qd,"P",{"data-svelte-h":!0}),m(il)!=="svelte-1fmsbp5"&&(il.textContent=Fy),qd.forEach(o),bg=a(N),Se=i(N,"DIV",{class:!0});var hp=_(Se);g(Wa.$$.fragment,hp),yg=a(hp),ll=i(hp,"P",{"data-svelte-h":!0}),m(ll)!=="svelte-1qebl0w"&&(ll.textContent=Ry),wg=a(hp),pl=i(hp,"P",{"data-svelte-h":!0}),m(pl)!=="svelte-m7pmui"&&(pl.textContent=Dy),hp.forEach(o),xg=a(N),en=i(N,"DIV",{class:!0});var Gd=_(en);g(La.$$.fragment,Gd),Mg=a(Gd),cl=i(Gd,"P",{"data-svelte-h":!0}),m(cl)!=="svelte-lj4b08"&&(cl.textContent=Ny),Gd.forEach(o),_g=a(N),tn=i(N,"DIV",{class:!0});var Zd=_(tn);g(Sa.$$.fragment,Zd),vg=a(Zd),dl=i(Zd,"P",{"data-svelte-h":!0}),m(dl)!=="svelte-226no6"&&(dl.textContent=By),Zd.forEach(o),kg=a(N),nn=i(N,"DIV",{class:!0});var Fd=_(nn);g(Oa.$$.fragment,Fd),jg=a(Fd),ml=i(Fd,"P",{"data-svelte-h":!0}),m(ml)!=="svelte-vx34uc"&&(ml.textContent=Vy),Fd.forEach(o),N.forEach(o),id=a(e),g(Ha.$$.fragment,e),ld=a(e),fe=i(e,"DIV",{class:!0});var Ae=_(fe);g(Ya.$$.fragment,Ae),Ug=a(Ae),hl=i(Ae,"P",{"data-svelte-h":!0}),m(hl)!=="svelte-1ufl6u7"&&(hl.textContent=Ay),$g=a(Ae),fl=i(Ae,"P",{"data-svelte-h":!0}),m(fl)!=="svelte-o45ebx"&&(fl.innerHTML=Wy),Jg=a(Ae),gl=i(Ae,"P",{"data-svelte-h":!0}),m(gl)!=="svelte-175zgvy"&&(gl.innerHTML=Ly),Pg=a(Ae),g(sn.$$.fragment,Ae),Cg=a(Ae),an=i(Ae,"DIV",{class:!0});var Rd=_(an);g(Ea.$$.fragment,Rd),Ig=a(Rd),ul=i(Rd,"P",{"data-svelte-h":!0}),m(ul)!=="svelte-1q7dj96"&&(ul.textContent=Sy),Rd.forEach(o),Ae.forEach(o),pd=a(e),g(Qa.$$.fragment,e),cd=a(e),A=i(e,"DIV",{class:!0});var _e=_(A);g(Xa.$$.fragment,_e),zg=a(_e),Tl=i(_e,"P",{"data-svelte-h":!0}),m(Tl)!=="svelte-gusdnf"&&(Tl.innerHTML=Oy),qg=a(_e),bl=i(_e,"P",{"data-svelte-h":!0}),m(bl)!=="svelte-1hjzyz9"&&(bl.innerHTML=Hy),Gg=a(_e),g(on.$$.fragment,_e),Zg=a(_e),yl=i(_e,"P",{"data-svelte-h":!0}),m(yl)!=="svelte-13rexfx"&&(yl.innerHTML=Yy),Fg=a(_e),wl=i(_e,"P",{"data-svelte-h":!0}),m(wl)!=="svelte-ukpdoe"&&(wl.innerHTML=Ey),Rg=a(_e),xl=i(_e,"P",{"data-svelte-h":!0}),m(xl)!=="svelte-17eq97f"&&(xl.innerHTML=Qy),Dg=a(_e),rn=i(_e,"DIV",{class:!0});var Dd=_(rn);g(Ka.$$.fragment,Dd),Ng=a(Dd),Ml=i(Dd,"P",{"data-svelte-h":!0}),m(Ml)!=="svelte-1ty3z15"&&(Ml.innerHTML=Xy),Dd.forEach(o),_e.forEach(o),dd=a(e),g(eo.$$.fragment,e),md=a(e),to=i(e,"P",{"data-svelte-h":!0}),m(to)!=="svelte-11o5ko1"&&(to.textContent=Ky),hd=a(e),g(no.$$.fragment,e),fd=a(e),ee=i(e,"DIV",{class:!0});var qe=_(ee);g(so.$$.fragment,qe),Bg=a(qe),_l=i(qe,"P",{"data-svelte-h":!0}),m(_l)!=="svelte-40flx9"&&(_l.innerHTML=ew),Vg=a(qe),g(ln.$$.fragment,qe),Ag=a(qe),vl=i(qe,"P",{"data-svelte-h":!0}),m(vl)!=="svelte-13rexfx"&&(vl.innerHTML=tw),Wg=a(qe),kl=i(qe,"P",{"data-svelte-h":!0}),m(kl)!=="svelte-1wrn4d"&&(kl.innerHTML=nw),Lg=a(qe),jl=i(qe,"P",{"data-svelte-h":!0}),m(jl)!=="svelte-1akhzjj"&&(jl.innerHTML=sw),Sg=a(qe),Be=i(qe,"DIV",{class:!0});var vn=_(Be);g(ao.$$.fragment,vn),Og=a(vn),Ul=i(vn,"P",{"data-svelte-h":!0}),m(Ul)!=="svelte-1211nrg"&&(Ul.innerHTML=aw),Hg=a(vn),$l=i(vn,"P",{"data-svelte-h":!0}),m($l)!=="svelte-1njhmhw"&&($l.textContent=ow),Yg=a(vn),Jl=i(vn,"UL",{"data-svelte-h":!0}),m(Jl)!=="svelte-gfpbs1"&&(Jl.innerHTML=rw),vn.forEach(o),qe.forEach(o),gd=a(e),g(oo.$$.fragment,e),ud=a(e),te=i(e,"DIV",{class:!0});var Ge=_(te);g(ro.$$.fragment,Ge),Eg=a(Ge),Pl=i(Ge,"P",{"data-svelte-h":!0}),m(Pl)!=="svelte-aunxv4"&&(Pl.textContent=iw),Qg=a(Ge),g(pn.$$.fragment,Ge),Xg=a(Ge),Cl=i(Ge,"P",{"data-svelte-h":!0}),m(Cl)!=="svelte-13rexfx"&&(Cl.innerHTML=lw),Kg=a(Ge),Il=i(Ge,"P",{"data-svelte-h":!0}),m(Il)!=="svelte-1qzle2d"&&(Il.innerHTML=pw),eu=a(Ge),zl=i(Ge,"P",{"data-svelte-h":!0}),m(zl)!=="svelte-85c9z6"&&(zl.innerHTML=cw),tu=a(Ge),cn=i(Ge,"DIV",{class:!0});var Nd=_(cn);g(io.$$.fragment,Nd),nu=a(Nd),ql=i(Nd,"P",{"data-svelte-h":!0}),m(ql)!=="svelte-11eoigb"&&(ql.textContent=dw),Nd.forEach(o),Ge.forEach(o),Td=a(e),g(lo.$$.fragment,e),bd=a(e),ne=i(e,"DIV",{class:!0});var Ze=_(ne);g(po.$$.fragment,Ze),su=a(Ze),Gl=i(Ze,"P",{"data-svelte-h":!0}),m(Gl)!=="svelte-yuzbfo"&&(Gl.innerHTML=mw),au=a(Ze),g(dn.$$.fragment,Ze),ou=a(Ze),Zl=i(Ze,"P",{"data-svelte-h":!0}),m(Zl)!=="svelte-13rexfx"&&(Zl.innerHTML=hw),ru=a(Ze),Fl=i(Ze,"P",{"data-svelte-h":!0}),m(Fl)!=="svelte-172bsdq"&&(Fl.textContent=fw),iu=a(Ze),Rl=i(Ze,"P",{"data-svelte-h":!0}),m(Rl)!=="svelte-6aba0z"&&(Rl.innerHTML=gw),lu=a(Ze),mn=i(Ze,"DIV",{class:!0});var Bd=_(mn);g(co.$$.fragment,Bd),pu=a(Bd),Dl=i(Bd,"P",{"data-svelte-h":!0}),m(Dl)!=="svelte-ypfmt8"&&(Dl.textContent=uw),Bd.forEach(o),Ze.forEach(o),yd=a(e),g(mo.$$.fragment,e),wd=a(e),R=i(e,"DIV",{class:!0});var le=_(R);g(ho.$$.fragment,le),cu=a(le),Nl=i(le,"P",{"data-svelte-h":!0}),m(Nl)!=="svelte-yb5i9k"&&(Nl.innerHTML=Tw),du=a(le),Bl=i(le,"P",{"data-svelte-h":!0}),m(Bl)!=="svelte-1fqmqrc"&&(Bl.textContent=bw),mu=a(le),Vl=i(le,"OL",{"data-svelte-h":!0}),m(Vl)!=="svelte-jptyar"&&(Vl.innerHTML=yw),hu=a(le),g(hn.$$.fragment,le),fu=a(le),Al=i(le,"P",{"data-svelte-h":!0}),m(Al)!=="svelte-13rexfx"&&(Al.innerHTML=ww),gu=a(le),Wl=i(le,"P",{"data-svelte-h":!0}),m(Wl)!=="svelte-1fzb8i2"&&(Wl.innerHTML=xw),uu=a(le),Ll=i(le,"P",{"data-svelte-h":!0}),m(Ll)!=="svelte-1oqqq9o"&&(Ll.innerHTML=Mw),Tu=a(le),fn=i(le,"DIV",{class:!0});var Vd=_(fn);g(fo.$$.fragment,Vd),bu=a(Vd),Sl=i(Vd,"P",{"data-svelte-h":!0}),m(Sl)!=="svelte-qnrg8s"&&(Sl.textContent=_w),Vd.forEach(o),le.forEach(o),xd=a(e),g(go.$$.fragment,e),Md=a(e),se=i(e,"DIV",{class:!0});var Fe=_(se);g(uo.$$.fragment,Fe),yu=a(Fe),Ol=i(Fe,"P",{"data-svelte-h":!0}),m(Ol)!=="svelte-1lg1j1m"&&(Ol.innerHTML=vw),wu=a(Fe),g(gn.$$.fragment,Fe),xu=a(Fe),Hl=i(Fe,"P",{"data-svelte-h":!0}),m(Hl)!=="svelte-13rexfx"&&(Hl.innerHTML=kw),Mu=a(Fe),Yl=i(Fe,"P",{"data-svelte-h":!0}),m(Yl)!=="svelte-1x1rvym"&&(Yl.innerHTML=jw),_u=a(Fe),El=i(Fe,"P",{"data-svelte-h":!0}),m(El)!=="svelte-lcegcp"&&(El.innerHTML=Uw),vu=a(Fe),Oe=i(Fe,"DIV",{class:!0});var fp=_(Oe);g(To.$$.fragment,fp),ku=a(fp),Ql=i(fp,"P",{"data-svelte-h":!0}),m(Ql)!=="svelte-10yp62t"&&(Ql.textContent=$w),ju=a(fp),Xl=i(fp,"UL",{"data-svelte-h":!0}),m(Xl)!=="svelte-15cnno4"&&(Xl.innerHTML=Jw),fp.forEach(o),Fe.forEach(o),_d=a(e),g(bo.$$.fragment,e),vd=a(e),C=i(e,"DIV",{class:!0});var I=_(C);g(yo.$$.fragment,I),Uu=a(I),Kl=i(I,"P",{"data-svelte-h":!0}),m(Kl)!=="svelte-k7p6k2"&&(Kl.textContent=Pw),$u=a(I),ep=i(I,"P",{"data-svelte-h":!0}),m(ep)!=="svelte-3qu5a5"&&(ep.textContent=Cw),Ju=a(I),tp=i(I,"P",{"data-svelte-h":!0}),m(tp)!=="svelte-1mj6jcv"&&(tp.textContent=Iw),Pu=a(I),np=i(I,"P",{"data-svelte-h":!0}),m(np)!=="svelte-pcl79b"&&(np.textContent=zw),Cu=a(I),sp=i(I,"P",{"data-svelte-h":!0}),m(sp)!=="svelte-gigomn"&&(sp.innerHTML=qw),Iu=a(I),un=i(I,"DIV",{class:!0});var Ad=_(un);g(wo.$$.fragment,Ad),zu=a(Ad),ap=i(Ad,"P",{"data-svelte-h":!0}),m(ap)!=="svelte-exnhmi"&&(ap.textContent=Gw),Ad.forEach(o),qu=a(I),He=i(I,"DIV",{class:!0});var gp=_(He);g(xo.$$.fragment,gp),Gu=a(gp),op=i(gp,"P",{"data-svelte-h":!0}),m(op)!=="svelte-1piccye"&&(op.textContent=Zw),Zu=a(gp),g(Tn.$$.fragment,gp),gp.forEach(o),Fu=a(I),bn=i(I,"DIV",{class:!0});var Wd=_(bn);g(Mo.$$.fragment,Wd),Ru=a(Wd),rp=i(Wd,"P",{"data-svelte-h":!0}),m(rp)!=="svelte-p1t4ev"&&(rp.textContent=Fw),Wd.forEach(o),Du=a(I),yn=i(I,"DIV",{class:!0});var Ld=_(yn);g(_o.$$.fragment,Ld),Nu=a(Ld),ip=i(Ld,"P",{"data-svelte-h":!0}),m(ip)!=="svelte-2wm42a"&&(ip.innerHTML=Rw),Ld.forEach(o),Bu=a(I),wn=i(I,"DIV",{class:!0});var Sd=_(wn);g(vo.$$.fragment,Sd),Vu=a(Sd),lp=i(Sd,"P",{"data-svelte-h":!0}),m(lp)!=="svelte-10cd17f"&&(lp.innerHTML=Dw),Sd.forEach(o),Au=a(I),xn=i(I,"DIV",{class:!0});var Od=_(xn);g(ko.$$.fragment,Od),Wu=a(Od),pp=i(Od,"P",{"data-svelte-h":!0}),m(pp)!=="svelte-12sv4vl"&&(pp.innerHTML=Nw),Od.forEach(o),Lu=a(I),Mn=i(I,"DIV",{class:!0});var Hd=_(Mn);g(jo.$$.fragment,Hd),Su=a(Hd),cp=i(Hd,"P",{"data-svelte-h":!0}),m(cp)!=="svelte-kp2v8j"&&(cp.textContent=Bw),Hd.forEach(o),Ou=a(I),_n=i(I,"DIV",{class:!0});var Yd=_(_n);g(Uo.$$.fragment,Yd),Hu=a(Yd),dp=i(Yd,"P",{"data-svelte-h":!0}),m(dp)!=="svelte-10cd17f"&&(dp.innerHTML=Vw),Yd.forEach(o),I.forEach(o),kd=a(e),Tp=i(e,"P",{}),_(Tp).forEach(o),this.h()},h(){v(l,"name","hf:doc:metadata"),v(l,"content",Gx),v(ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(tt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(at,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(rt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(lt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ct,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(mt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ft,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ut,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Tt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(yt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(xt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(_t,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(vt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(kt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Ut,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Ct,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(We,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(zt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(qt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Gt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Ft,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Rt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Nt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(he,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Lt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Ot,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Et,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Qt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Kt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(en,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(tn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(nn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(an,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(rn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(cn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(mn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(fn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(un,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(He,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(bn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(yn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(wn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(xn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Mn,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(_n,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,p){n(document.head,l),d(e,M,p),d(e,h,p),d(e,c,p),u(w,e,p),d(e,t,p),d(e,x,p),d(e,bp,p),d(e,kn,p),d(e,yp,p),d(e,jn,p),d(e,wp,p),u(Un,e,p),d(e,xp,p),d(e,$n,p),d(e,Mp,p),d(e,Jn,p),d(e,_p,p),u(Pn,e,p),d(e,vp,p),d(e,Cn,p),d(e,kp,p),u(In,e,p),d(e,jp,p),d(e,zn,p),d(e,Up,p),u(qn,e,p),d(e,$p,p),d(e,Gn,p),d(e,Jp,p),u(Zn,e,p),d(e,Pp,p),d(e,Fn,p),d(e,Cp,p),u(Rn,e,p),d(e,Ip,p),d(e,ve,p),u(Dn,ve,null),n(ve,Qd),n(ve,Ho),n(ve,Xd),n(ve,Yo),n(ve,Kd),n(ve,Eo),n(ve,em),u(Ee,ve,null),d(e,zp,p),u(Nn,e,p),d(e,qp,p),d(e,Bn,p),d(e,Gp,p),u(Vn,e,p),d(e,Zp,p),u(Qe,e,p),d(e,Fp,p),u(An,e,p),d(e,Rp,p),u(Wn,e,p),d(e,Dp,p),d(e,Ln,p),d(e,Np,p),u(Sn,e,p),d(e,Bp,p),d(e,On,p),d(e,Vp,p),u(Hn,e,p),d(e,Ap,p),d(e,Yn,p),d(e,Wp,p),d(e,En,p),d(e,Lp,p),d(e,Qn,p),d(e,Sp,p),u(Xn,e,p),d(e,Op,p),d(e,Kn,p),d(e,Hp,p),d(e,es,p),d(e,Yp,p),u(ts,e,p),d(e,Ep,p),d(e,ns,p),d(e,Qp,p),u(ss,e,p),d(e,Xp,p),d(e,as,p),d(e,Kp,p),d(e,os,p),d(e,ec,p),u(rs,e,p),d(e,tc,p),d(e,is,p),d(e,nc,p),d(e,ls,p),d(e,sc,p),d(e,ps,p),d(e,ac,p),d(e,cs,p),d(e,oc,p),u(ds,e,p),d(e,rc,p),d(e,ms,p),d(e,ic,p),u(hs,e,p),d(e,lc,p),d(e,fs,p),d(e,pc,p),u(gs,e,p),d(e,cc,p),d(e,us,p),d(e,dc,p),u(Ts,e,p),d(e,mc,p),d(e,L,p),u(bs,L,null),n(L,tm),n(L,Qo),n(L,nm),u(Xe,L,null),n(L,sm),n(L,Xo),n(L,am),n(L,Ko),n(L,om),n(L,er),n(L,rm),n(L,Ke),u(ys,Ke,null),n(Ke,im),n(Ke,tr),d(e,hc,p),u(ws,e,p),d(e,fc,p),d(e,pe,p),u(xs,pe,null),n(pe,lm),n(pe,nr),n(pe,pm),n(pe,sr),n(pe,cm),u(et,pe,null),n(pe,dm),n(pe,ar),n(pe,mm),n(pe,tt),u(Ms,tt,null),n(tt,hm),n(tt,or),d(e,gc,p),u(_s,e,p),d(e,uc,p),d(e,B,p),u(vs,B,null),n(B,fm),n(B,rr),n(B,gm),u(nt,B,null),n(B,um),n(B,ir),n(B,Tm),u(st,B,null),n(B,bm),n(B,lr),n(B,ym),n(B,pr),n(B,wm),n(B,at),u(ks,at,null),n(at,xm),n(at,cr),d(e,Tc,p),u(js,e,p),d(e,bc,p),d(e,ke,p),u(Us,ke,null),n(ke,Mm),n(ke,dr),n(ke,_m),u(ot,ke,null),n(ke,vm),n(ke,mr),n(ke,km),n(ke,rt),u($s,rt,null),n(rt,jm),n(rt,hr),d(e,yc,p),u(Js,e,p),d(e,wc,p),d(e,Ps,p),d(e,xc,p),u(Cs,e,p),d(e,Mc,p),d(e,S,p),u(Is,S,null),n(S,Um),n(S,fr),n(S,$m),u(it,S,null),n(S,Jm),n(S,gr),n(S,Pm),n(S,ur),n(S,Cm),n(S,Tr),n(S,Im),n(S,lt),u(zs,lt,null),n(lt,zm),n(lt,br),d(e,_c,p),u(qs,e,p),d(e,vc,p),d(e,O,p),u(Gs,O,null),n(O,qm),n(O,yr),n(O,Gm),u(pt,O,null),n(O,Zm),n(O,wr),n(O,Fm),n(O,xr),n(O,Rm),n(O,Mr),n(O,Dm),n(O,ct),u(Zs,ct,null),n(ct,Nm),n(ct,_r),d(e,kc,p),u(Fs,e,p),d(e,jc,p),d(e,ce,p),u(Rs,ce,null),n(ce,Bm),n(ce,vr),n(ce,Vm),u(dt,ce,null),n(ce,Am),n(ce,kr),n(ce,Wm),n(ce,jr),n(ce,Lm),n(ce,mt),u(Ds,mt,null),n(mt,Sm),n(mt,Ur),d(e,Uc,p),u(Ns,e,p),d(e,$c,p),d(e,de,p),u(Bs,de,null),n(de,Om),n(de,$r),n(de,Hm),u(ht,de,null),n(de,Ym),n(de,Jr),n(de,Em),n(de,Pr),n(de,Qm),n(de,ft),u(Vs,ft,null),n(ft,Xm),n(ft,Cr),d(e,Jc,p),u(As,e,p),d(e,Pc,p),d(e,H,p),u(Ws,H,null),n(H,Km),n(H,Ir),n(H,eh),u(gt,H,null),n(H,th),n(H,zr),n(H,nh),n(H,qr),n(H,sh),n(H,Gr),n(H,ah),n(H,ut),u(Ls,ut,null),n(ut,oh),n(ut,Zr),d(e,Cc,p),u(Ss,e,p),d(e,Ic,p),d(e,je,p),u(Os,je,null),n(je,rh),n(je,Fr),n(je,ih),n(je,Rr),n(je,lh),n(je,Dr),n(je,ph),n(je,Tt),u(Hs,Tt,null),n(Tt,ch),n(Tt,Nr),d(e,zc,p),u(Ys,e,p),d(e,qc,p),d(e,Y,p),u(Es,Y,null),n(Y,dh),n(Y,Br),n(Y,mh),u(bt,Y,null),n(Y,hh),n(Y,Vr),n(Y,fh),n(Y,Ar),n(Y,gh),n(Y,Wr),n(Y,uh),n(Y,yt),u(Qs,yt,null),n(yt,Th),n(yt,Lr),d(e,Gc,p),u(Xs,e,p),d(e,Zc,p),d(e,E,p),u(Ks,E,null),n(E,bh),n(E,Sr),n(E,yh),u(wt,E,null),n(E,wh),n(E,Or),n(E,xh),n(E,Hr),n(E,Mh),n(E,Yr),n(E,_h),n(E,xt),u(ea,xt,null),n(xt,vh),n(xt,Er),d(e,Fc,p),u(ta,e,p),d(e,Rc,p),d(e,na,p),d(e,Dc,p),u(sa,e,p),d(e,Nc,p),d(e,me,p),u(aa,me,null),n(me,kh),n(me,Qr),n(me,jh),u(Mt,me,null),n(me,Uh),n(me,_t),u(oa,_t,null),n(_t,$h),n(_t,Xr),n(me,Jh),n(me,vt),u(ra,vt,null),n(vt,Ph),n(vt,Kr),n(me,Ch),n(me,kt),u(ia,kt,null),n(kt,Ih),n(kt,ei),d(e,Bc,p),d(e,Q,p),u(la,Q,null),n(Q,zh),n(Q,ti),n(Q,qh),u(jt,Q,null),n(Q,Gh),n(Q,ni),n(Q,Zh),n(Q,si),n(Q,Fh),n(Q,ai),n(Q,Rh),n(Q,Ut),u(pa,Ut,null),n(Ut,Dh),n(Ut,oi),d(e,Vc,p),u(ca,e,p),d(e,Ac,p),d(e,G,p),u(da,G,null),n(G,Nh),n(G,ri),n(G,Bh),u($t,G,null),n(G,Vh),n(G,ii),n(G,Ah),n(G,li),n(G,Wh),n(G,pi),n(G,Lh),u(Jt,G,null),n(G,Sh),u(Pt,G,null),n(G,Oh),n(G,Ct),u(ma,Ct,null),n(Ct,Hh),n(Ct,ci),d(e,Wc,p),u(ha,e,p),d(e,Lc,p),d(e,q,p),u(fa,q,null),n(q,Yh),n(q,di),n(q,Eh),u(It,q,null),n(q,Qh),n(q,mi),n(q,Xh),n(q,hi),n(q,Kh),n(q,fi),n(q,ef),n(q,We),u(ga,We,null),n(We,tf),n(We,gi),n(We,nf),n(We,ui),n(q,sf),n(q,zt),u(ua,zt,null),n(zt,af),n(zt,Ti),n(q,of),n(q,qt),u(Ta,qt,null),n(qt,rf),n(qt,bi),n(q,lf),n(q,Gt),u(ba,Gt,null),n(Gt,pf),n(Gt,yi),d(e,Sc,p),d(e,ya,p),d(e,Oc,p),u(wa,e,p),d(e,Hc,p),d(e,Z,p),u(xa,Z,null),n(Z,cf),n(Z,wi),n(Z,df),u(Zt,Z,null),n(Z,mf),n(Z,xi),n(Z,hf),n(Z,Mi),n(Z,ff),n(Z,_i),n(Z,gf),n(Z,Ft),u(Ma,Ft,null),n(Ft,uf),n(Ft,vi),n(Z,Tf),n(Z,Le),u(_a,Le,null),n(Le,bf),n(Le,ki),n(Le,yf),n(Le,ji),n(Z,wf),n(Z,Rt),u(va,Rt,null),n(Rt,xf),n(Rt,Ui),d(e,Yc,p),u(ka,e,p),d(e,Ec,p),d(e,he,p),u(ja,he,null),n(he,Mf),n(he,$i),n(he,_f),n(he,Ji),n(he,vf),n(he,Pi),n(he,kf),u(Dt,he,null),n(he,jf),n(he,Nt),u(Ua,Nt,null),n(Nt,Uf),n(Nt,Ci),d(e,Qc,p),u($a,e,p),d(e,Xc,p),d(e,X,p),u(Ja,X,null),n(X,$f),n(X,Ii),n(X,Jf),u(Bt,X,null),n(X,Pf),n(X,zi),n(X,Cf),n(X,qi),n(X,If),n(X,Gi),n(X,zf),n(X,oe),u(Pa,oe,null),n(oe,qf),n(oe,Zi),n(oe,Gf),n(oe,Fi),n(oe,Zf),n(oe,Ri),n(oe,Ff),u(Vt,oe,null),n(oe,Rf),n(oe,Di),n(oe,Df),u(At,oe,null),d(e,Kc,p),u(Ca,e,p),d(e,ed,p),d(e,V,p),u(Ia,V,null),n(V,Nf),n(V,Ni),n(V,Bf),u(Wt,V,null),n(V,Vf),n(V,Bi),n(V,Af),n(V,Vi),n(V,Wf),n(V,Ai),n(V,Lf),n(V,Wi),n(V,Sf),n(V,Lt),u(za,Lt,null),n(Lt,Of),n(Lt,Li),d(e,td,p),u(qa,e,p),d(e,nd,p),d(e,K,p),u(Ga,K,null),n(K,Hf),n(K,Si),n(K,Yf),u(St,K,null),n(K,Ef),n(K,Oi),n(K,Qf),n(K,Hi),n(K,Xf),n(K,Yi),n(K,Kf),n(K,Ot),u(Za,Ot,null),n(Ot,eg),n(Ot,Ei),d(e,sd,p),u(Fa,e,p),d(e,ad,p),d(e,F,p),u(Ra,F,null),n(F,tg),n(F,Qi),n(F,ng),u(Ht,F,null),n(F,sg),n(F,Xi),n(F,ag),n(F,Ki),n(F,og),n(F,el),n(F,rg),u(Yt,F,null),n(F,ig),n(F,Et),u(Da,Et,null),n(Et,lg),n(Et,tl),n(F,pg),n(F,Qt),u(Na,Qt,null),n(Qt,cg),n(Qt,nl),d(e,od,p),u(Ba,e,p),d(e,rd,p),d(e,z,p),u(Va,z,null),n(z,dg),n(z,sl),n(z,mg),u(Xt,z,null),n(z,hg),n(z,al),n(z,fg),n(z,ol),n(z,gg),n(z,rl),n(z,ug),n(z,Kt),u(Aa,Kt,null),n(Kt,Tg),n(Kt,il),n(z,bg),n(z,Se),u(Wa,Se,null),n(Se,yg),n(Se,ll),n(Se,wg),n(Se,pl),n(z,xg),n(z,en),u(La,en,null),n(en,Mg),n(en,cl),n(z,_g),n(z,tn),u(Sa,tn,null),n(tn,vg),n(tn,dl),n(z,kg),n(z,nn),u(Oa,nn,null),n(nn,jg),n(nn,ml),d(e,id,p),u(Ha,e,p),d(e,ld,p),d(e,fe,p),u(Ya,fe,null),n(fe,Ug),n(fe,hl),n(fe,$g),n(fe,fl),n(fe,Jg),n(fe,gl),n(fe,Pg),u(sn,fe,null),n(fe,Cg),n(fe,an),u(Ea,an,null),n(an,Ig),n(an,ul),d(e,pd,p),u(Qa,e,p),d(e,cd,p),d(e,A,p),u(Xa,A,null),n(A,zg),n(A,Tl),n(A,qg),n(A,bl),n(A,Gg),u(on,A,null),n(A,Zg),n(A,yl),n(A,Fg),n(A,wl),n(A,Rg),n(A,xl),n(A,Dg),n(A,rn),u(Ka,rn,null),n(rn,Ng),n(rn,Ml),d(e,dd,p),u(eo,e,p),d(e,md,p),d(e,to,p),d(e,hd,p),u(no,e,p),d(e,fd,p),d(e,ee,p),u(so,ee,null),n(ee,Bg),n(ee,_l),n(ee,Vg),u(ln,ee,null),n(ee,Ag),n(ee,vl),n(ee,Wg),n(ee,kl),n(ee,Lg),n(ee,jl),n(ee,Sg),n(ee,Be),u(ao,Be,null),n(Be,Og),n(Be,Ul),n(Be,Hg),n(Be,$l),n(Be,Yg),n(Be,Jl),d(e,gd,p),u(oo,e,p),d(e,ud,p),d(e,te,p),u(ro,te,null),n(te,Eg),n(te,Pl),n(te,Qg),u(pn,te,null),n(te,Xg),n(te,Cl),n(te,Kg),n(te,Il),n(te,eu),n(te,zl),n(te,tu),n(te,cn),u(io,cn,null),n(cn,nu),n(cn,ql),d(e,Td,p),u(lo,e,p),d(e,bd,p),d(e,ne,p),u(po,ne,null),n(ne,su),n(ne,Gl),n(ne,au),u(dn,ne,null),n(ne,ou),n(ne,Zl),n(ne,ru),n(ne,Fl),n(ne,iu),n(ne,Rl),n(ne,lu),n(ne,mn),u(co,mn,null),n(mn,pu),n(mn,Dl),d(e,yd,p),u(mo,e,p),d(e,wd,p),d(e,R,p),u(ho,R,null),n(R,cu),n(R,Nl),n(R,du),n(R,Bl),n(R,mu),n(R,Vl),n(R,hu),u(hn,R,null),n(R,fu),n(R,Al),n(R,gu),n(R,Wl),n(R,uu),n(R,Ll),n(R,Tu),n(R,fn),u(fo,fn,null),n(fn,bu),n(fn,Sl),d(e,xd,p),u(go,e,p),d(e,Md,p),d(e,se,p),u(uo,se,null),n(se,yu),n(se,Ol),n(se,wu),u(gn,se,null),n(se,xu),n(se,Hl),n(se,Mu),n(se,Yl),n(se,_u),n(se,El),n(se,vu),n(se,Oe),u(To,Oe,null),n(Oe,ku),n(Oe,Ql),n(Oe,ju),n(Oe,Xl),d(e,_d,p),u(bo,e,p),d(e,vd,p),d(e,C,p),u(yo,C,null),n(C,Uu),n(C,Kl),n(C,$u),n(C,ep),n(C,Ju),n(C,tp),n(C,Pu),n(C,np),n(C,Cu),n(C,sp),n(C,Iu),n(C,un),u(wo,un,null),n(un,zu),n(un,ap),n(C,qu),n(C,He),u(xo,He,null),n(He,Gu),n(He,op),n(He,Zu),u(Tn,He,null),n(C,Fu),n(C,bn),u(Mo,bn,null),n(bn,Ru),n(bn,rp),n(C,Du),n(C,yn),u(_o,yn,null),n(yn,Nu),n(yn,ip),n(C,Bu),n(C,wn),u(vo,wn,null),n(wn,Vu),n(wn,lp),n(C,Au),n(C,xn),u(ko,xn,null),n(xn,Wu),n(xn,pp),n(C,Lu),n(C,Mn),u(jo,Mn,null),n(Mn,Su),n(Mn,cp),n(C,Ou),n(C,_n),u(Uo,_n,null),n(_n,Hu),n(_n,dp),d(e,kd,p),d(e,Tp,p),jd=!0},p(e,[p]){const Re={};p&2&&(Re.$$scope={dirty:p,ctx:e}),Ee.$set(Re);const ge={};p&2&&(ge.$$scope={dirty:p,ctx:e}),Qe.$set(ge);const $o={};p&2&&($o.$$scope={dirty:p,ctx:e}),Xe.$set($o);const Ue={};p&2&&(Ue.$$scope={dirty:p,ctx:e}),et.$set(Ue);const Jo={};p&2&&(Jo.$$scope={dirty:p,ctx:e}),nt.$set(Jo);const ae={};p&2&&(ae.$$scope={dirty:p,ctx:e}),st.$set(ae);const Po={};p&2&&(Po.$$scope={dirty:p,ctx:e}),ot.$set(Po);const De={};p&2&&(De.$$scope={dirty:p,ctx:e}),it.$set(De);const Co={};p&2&&(Co.$$scope={dirty:p,ctx:e}),pt.$set(Co);const ue={};p&2&&(ue.$$scope={dirty:p,ctx:e}),dt.$set(ue);const Io={};p&2&&(Io.$$scope={dirty:p,ctx:e}),ht.$set(Io);const Te={};p&2&&(Te.$$scope={dirty:p,ctx:e}),gt.$set(Te);const zo={};p&2&&(zo.$$scope={dirty:p,ctx:e}),bt.$set(zo);const $e={};p&2&&($e.$$scope={dirty:p,ctx:e}),wt.$set($e);const qo={};p&2&&(qo.$$scope={dirty:p,ctx:e}),Mt.$set(qo);const Je={};p&2&&(Je.$$scope={dirty:p,ctx:e}),jt.$set(Je);const Go={};p&2&&(Go.$$scope={dirty:p,ctx:e}),$t.$set(Go);const be={};p&2&&(be.$$scope={dirty:p,ctx:e}),Jt.$set(be);const Zo={};p&2&&(Zo.$$scope={dirty:p,ctx:e}),Pt.$set(Zo);const Ne={};p&2&&(Ne.$$scope={dirty:p,ctx:e}),It.$set(Ne);const Fo={};p&2&&(Fo.$$scope={dirty:p,ctx:e}),Zt.$set(Fo);const ye={};p&2&&(ye.$$scope={dirty:p,ctx:e}),Dt.$set(ye);const Ro={};p&2&&(Ro.$$scope={dirty:p,ctx:e}),Bt.$set(Ro);const we={};p&2&&(we.$$scope={dirty:p,ctx:e}),Vt.$set(we);const Do={};p&2&&(Do.$$scope={dirty:p,ctx:e}),At.$set(Do);const Pe={};p&2&&(Pe.$$scope={dirty:p,ctx:e}),Wt.$set(Pe);const No={};p&2&&(No.$$scope={dirty:p,ctx:e}),St.$set(No);const Bo={};p&2&&(Bo.$$scope={dirty:p,ctx:e}),Ht.$set(Bo);const Vo={};p&2&&(Vo.$$scope={dirty:p,ctx:e}),Yt.$set(Vo);const xe={};p&2&&(xe.$$scope={dirty:p,ctx:e}),Xt.$set(xe);const Ao={};p&2&&(Ao.$$scope={dirty:p,ctx:e}),sn.$set(Ao);const W={};p&2&&(W.$$scope={dirty:p,ctx:e}),on.$set(W);const Wo={};p&2&&(Wo.$$scope={dirty:p,ctx:e}),ln.$set(Wo);const D={};p&2&&(D.$$scope={dirty:p,ctx:e}),pn.$set(D);const Ye={};p&2&&(Ye.$$scope={dirty:p,ctx:e}),dn.$set(Ye);const Lo={};p&2&&(Lo.$$scope={dirty:p,ctx:e}),hn.$set(Lo);const So={};p&2&&(So.$$scope={dirty:p,ctx:e}),gn.$set(So);const Oo={};p&2&&(Oo.$$scope={dirty:p,ctx:e}),Tn.$set(Oo)},i(e){jd||(T(w.$$.fragment,e),T(Un.$$.fragment,e),T(Pn.$$.fragment,e),T(In.$$.fragment,e),T(qn.$$.fragment,e),T(Zn.$$.fragment,e),T(Rn.$$.fragment,e),T(Dn.$$.fragment,e),T(Ee.$$.fragment,e),T(Nn.$$.fragment,e),T(Vn.$$.fragment,e),T(Qe.$$.fragment,e),T(An.$$.fragment,e),T(Wn.$$.fragment,e),T(Sn.$$.fragment,e),T(Hn.$$.fragment,e),T(Xn.$$.fragment,e),T(ts.$$.fragment,e),T(ss.$$.fragment,e),T(rs.$$.fragment,e),T(ds.$$.fragment,e),T(hs.$$.fragment,e),T(gs.$$.fragment,e),T(Ts.$$.fragment,e),T(bs.$$.fragment,e),T(Xe.$$.fragment,e),T(ys.$$.fragment,e),T(ws.$$.fragment,e),T(xs.$$.fragment,e),T(et.$$.fragment,e),T(Ms.$$.fragment,e),T(_s.$$.fragment,e),T(vs.$$.fragment,e),T(nt.$$.fragment,e),T(st.$$.fragment,e),T(ks.$$.fragment,e),T(js.$$.fragment,e),T(Us.$$.fragment,e),T(ot.$$.fragment,e),T($s.$$.fragment,e),T(Js.$$.fragment,e),T(Cs.$$.fragment,e),T(Is.$$.fragment,e),T(it.$$.fragment,e),T(zs.$$.fragment,e),T(qs.$$.fragment,e),T(Gs.$$.fragment,e),T(pt.$$.fragment,e),T(Zs.$$.fragment,e),T(Fs.$$.fragment,e),T(Rs.$$.fragment,e),T(dt.$$.fragment,e),T(Ds.$$.fragment,e),T(Ns.$$.fragment,e),T(Bs.$$.fragment,e),T(ht.$$.fragment,e),T(Vs.$$.fragment,e),T(As.$$.fragment,e),T(Ws.$$.fragment,e),T(gt.$$.fragment,e),T(Ls.$$.fragment,e),T(Ss.$$.fragment,e),T(Os.$$.fragment,e),T(Hs.$$.fragment,e),T(Ys.$$.fragment,e),T(Es.$$.fragment,e),T(bt.$$.fragment,e),T(Qs.$$.fragment,e),T(Xs.$$.fragment,e),T(Ks.$$.fragment,e),T(wt.$$.fragment,e),T(ea.$$.fragment,e),T(ta.$$.fragment,e),T(sa.$$.fragment,e),T(aa.$$.fragment,e),T(Mt.$$.fragment,e),T(oa.$$.fragment,e),T(ra.$$.fragment,e),T(ia.$$.fragment,e),T(la.$$.fragment,e),T(jt.$$.fragment,e),T(pa.$$.fragment,e),T(ca.$$.fragment,e),T(da.$$.fragment,e),T($t.$$.fragment,e),T(Jt.$$.fragment,e),T(Pt.$$.fragment,e),T(ma.$$.fragment,e),T(ha.$$.fragment,e),T(fa.$$.fragment,e),T(It.$$.fragment,e),T(ga.$$.fragment,e),T(ua.$$.fragment,e),T(Ta.$$.fragment,e),T(ba.$$.fragment,e),T(wa.$$.fragment,e),T(xa.$$.fragment,e),T(Zt.$$.fragment,e),T(Ma.$$.fragment,e),T(_a.$$.fragment,e),T(va.$$.fragment,e),T(ka.$$.fragment,e),T(ja.$$.fragment,e),T(Dt.$$.fragment,e),T(Ua.$$.fragment,e),T($a.$$.fragment,e),T(Ja.$$.fragment,e),T(Bt.$$.fragment,e),T(Pa.$$.fragment,e),T(Vt.$$.fragment,e),T(At.$$.fragment,e),T(Ca.$$.fragment,e),T(Ia.$$.fragment,e),T(Wt.$$.fragment,e),T(za.$$.fragment,e),T(qa.$$.fragment,e),T(Ga.$$.fragment,e),T(St.$$.fragment,e),T(Za.$$.fragment,e),T(Fa.$$.fragment,e),T(Ra.$$.fragment,e),T(Ht.$$.fragment,e),T(Yt.$$.fragment,e),T(Da.$$.fragment,e),T(Na.$$.fragment,e),T(Ba.$$.fragment,e),T(Va.$$.fragment,e),T(Xt.$$.fragment,e),T(Aa.$$.fragment,e),T(Wa.$$.fragment,e),T(La.$$.fragment,e),T(Sa.$$.fragment,e),T(Oa.$$.fragment,e),T(Ha.$$.fragment,e),T(Ya.$$.fragment,e),T(sn.$$.fragment,e),T(Ea.$$.fragment,e),T(Qa.$$.fragment,e),T(Xa.$$.fragment,e),T(on.$$.fragment,e),T(Ka.$$.fragment,e),T(eo.$$.fragment,e),T(no.$$.fragment,e),T(so.$$.fragment,e),T(ln.$$.fragment,e),T(ao.$$.fragment,e),T(oo.$$.fragment,e),T(ro.$$.fragment,e),T(pn.$$.fragment,e),T(io.$$.fragment,e),T(lo.$$.fragment,e),T(po.$$.fragment,e),T(dn.$$.fragment,e),T(co.$$.fragment,e),T(mo.$$.fragment,e),T(ho.$$.fragment,e),T(hn.$$.fragment,e),T(fo.$$.fragment,e),T(go.$$.fragment,e),T(uo.$$.fragment,e),T(gn.$$.fragment,e),T(To.$$.fragment,e),T(bo.$$.fragment,e),T(yo.$$.fragment,e),T(wo.$$.fragment,e),T(xo.$$.fragment,e),T(Tn.$$.fragment,e),T(Mo.$$.fragment,e),T(_o.$$.fragment,e),T(vo.$$.fragment,e),T(ko.$$.fragment,e),T(jo.$$.fragment,e),T(Uo.$$.fragment,e),jd=!0)},o(e){b(w.$$.fragment,e),b(Un.$$.fragment,e),b(Pn.$$.fragment,e),b(In.$$.fragment,e),b(qn.$$.fragment,e),b(Zn.$$.fragment,e),b(Rn.$$.fragment,e),b(Dn.$$.fragment,e),b(Ee.$$.fragment,e),b(Nn.$$.fragment,e),b(Vn.$$.fragment,e),b(Qe.$$.fragment,e),b(An.$$.fragment,e),b(Wn.$$.fragment,e),b(Sn.$$.fragment,e),b(Hn.$$.fragment,e),b(Xn.$$.fragment,e),b(ts.$$.fragment,e),b(ss.$$.fragment,e),b(rs.$$.fragment,e),b(ds.$$.fragment,e),b(hs.$$.fragment,e),b(gs.$$.fragment,e),b(Ts.$$.fragment,e),b(bs.$$.fragment,e),b(Xe.$$.fragment,e),b(ys.$$.fragment,e),b(ws.$$.fragment,e),b(xs.$$.fragment,e),b(et.$$.fragment,e),b(Ms.$$.fragment,e),b(_s.$$.fragment,e),b(vs.$$.fragment,e),b(nt.$$.fragment,e),b(st.$$.fragment,e),b(ks.$$.fragment,e),b(js.$$.fragment,e),b(Us.$$.fragment,e),b(ot.$$.fragment,e),b($s.$$.fragment,e),b(Js.$$.fragment,e),b(Cs.$$.fragment,e),b(Is.$$.fragment,e),b(it.$$.fragment,e),b(zs.$$.fragment,e),b(qs.$$.fragment,e),b(Gs.$$.fragment,e),b(pt.$$.fragment,e),b(Zs.$$.fragment,e),b(Fs.$$.fragment,e),b(Rs.$$.fragment,e),b(dt.$$.fragment,e),b(Ds.$$.fragment,e),b(Ns.$$.fragment,e),b(Bs.$$.fragment,e),b(ht.$$.fragment,e),b(Vs.$$.fragment,e),b(As.$$.fragment,e),b(Ws.$$.fragment,e),b(gt.$$.fragment,e),b(Ls.$$.fragment,e),b(Ss.$$.fragment,e),b(Os.$$.fragment,e),b(Hs.$$.fragment,e),b(Ys.$$.fragment,e),b(Es.$$.fragment,e),b(bt.$$.fragment,e),b(Qs.$$.fragment,e),b(Xs.$$.fragment,e),b(Ks.$$.fragment,e),b(wt.$$.fragment,e),b(ea.$$.fragment,e),b(ta.$$.fragment,e),b(sa.$$.fragment,e),b(aa.$$.fragment,e),b(Mt.$$.fragment,e),b(oa.$$.fragment,e),b(ra.$$.fragment,e),b(ia.$$.fragment,e),b(la.$$.fragment,e),b(jt.$$.fragment,e),b(pa.$$.fragment,e),b(ca.$$.fragment,e),b(da.$$.fragment,e),b($t.$$.fragment,e),b(Jt.$$.fragment,e),b(Pt.$$.fragment,e),b(ma.$$.fragment,e),b(ha.$$.fragment,e),b(fa.$$.fragment,e),b(It.$$.fragment,e),b(ga.$$.fragment,e),b(ua.$$.fragment,e),b(Ta.$$.fragment,e),b(ba.$$.fragment,e),b(wa.$$.fragment,e),b(xa.$$.fragment,e),b(Zt.$$.fragment,e),b(Ma.$$.fragment,e),b(_a.$$.fragment,e),b(va.$$.fragment,e),b(ka.$$.fragment,e),b(ja.$$.fragment,e),b(Dt.$$.fragment,e),b(Ua.$$.fragment,e),b($a.$$.fragment,e),b(Ja.$$.fragment,e),b(Bt.$$.fragment,e),b(Pa.$$.fragment,e),b(Vt.$$.fragment,e),b(At.$$.fragment,e),b(Ca.$$.fragment,e),b(Ia.$$.fragment,e),b(Wt.$$.fragment,e),b(za.$$.fragment,e),b(qa.$$.fragment,e),b(Ga.$$.fragment,e),b(St.$$.fragment,e),b(Za.$$.fragment,e),b(Fa.$$.fragment,e),b(Ra.$$.fragment,e),b(Ht.$$.fragment,e),b(Yt.$$.fragment,e),b(Da.$$.fragment,e),b(Na.$$.fragment,e),b(Ba.$$.fragment,e),b(Va.$$.fragment,e),b(Xt.$$.fragment,e),b(Aa.$$.fragment,e),b(Wa.$$.fragment,e),b(La.$$.fragment,e),b(Sa.$$.fragment,e),b(Oa.$$.fragment,e),b(Ha.$$.fragment,e),b(Ya.$$.fragment,e),b(sn.$$.fragment,e),b(Ea.$$.fragment,e),b(Qa.$$.fragment,e),b(Xa.$$.fragment,e),b(on.$$.fragment,e),b(Ka.$$.fragment,e),b(eo.$$.fragment,e),b(no.$$.fragment,e),b(so.$$.fragment,e),b(ln.$$.fragment,e),b(ao.$$.fragment,e),b(oo.$$.fragment,e),b(ro.$$.fragment,e),b(pn.$$.fragment,e),b(io.$$.fragment,e),b(lo.$$.fragment,e),b(po.$$.fragment,e),b(dn.$$.fragment,e),b(co.$$.fragment,e),b(mo.$$.fragment,e),b(ho.$$.fragment,e),b(hn.$$.fragment,e),b(fo.$$.fragment,e),b(go.$$.fragment,e),b(uo.$$.fragment,e),b(gn.$$.fragment,e),b(To.$$.fragment,e),b(bo.$$.fragment,e),b(yo.$$.fragment,e),b(wo.$$.fragment,e),b(xo.$$.fragment,e),b(Tn.$$.fragment,e),b(Mo.$$.fragment,e),b(_o.$$.fragment,e),b(vo.$$.fragment,e),b(ko.$$.fragment,e),b(jo.$$.fragment,e),b(Uo.$$.fragment,e),jd=!1},d(e){e&&(o(M),o(h),o(c),o(t),o(x),o(bp),o(kn),o(yp),o(jn),o(wp),o(xp),o($n),o(Mp),o(Jn),o(_p),o(vp),o(Cn),o(kp),o(jp),o(zn),o(Up),o($p),o(Gn),o(Jp),o(Pp),o(Fn),o(Cp),o(Ip),o(ve),o(zp),o(qp),o(Bn),o(Gp),o(Zp),o(Fp),o(Rp),o(Dp),o(Ln),o(Np),o(Bp),o(On),o(Vp),o(Ap),o(Yn),o(Wp),o(En),o(Lp),o(Qn),o(Sp),o(Op),o(Kn),o(Hp),o(es),o(Yp),o(Ep),o(ns),o(Qp),o(Xp),o(as),o(Kp),o(os),o(ec),o(tc),o(is),o(nc),o(ls),o(sc),o(ps),o(ac),o(cs),o(oc),o(rc),o(ms),o(ic),o(lc),o(fs),o(pc),o(cc),o(us),o(dc),o(mc),o(L),o(hc),o(fc),o(pe),o(gc),o(uc),o(B),o(Tc),o(bc),o(ke),o(yc),o(wc),o(Ps),o(xc),o(Mc),o(S),o(_c),o(vc),o(O),o(kc),o(jc),o(ce),o(Uc),o($c),o(de),o(Jc),o(Pc),o(H),o(Cc),o(Ic),o(je),o(zc),o(qc),o(Y),o(Gc),o(Zc),o(E),o(Fc),o(Rc),o(na),o(Dc),o(Nc),o(me),o(Bc),o(Q),o(Vc),o(Ac),o(G),o(Wc),o(Lc),o(q),o(Sc),o(ya),o(Oc),o(Hc),o(Z),o(Yc),o(Ec),o(he),o(Qc),o(Xc),o(X),o(Kc),o(ed),o(V),o(td),o(nd),o(K),o(sd),o(ad),o(F),o(od),o(rd),o(z),o(id),o(ld),o(fe),o(pd),o(cd),o(A),o(dd),o(md),o(to),o(hd),o(fd),o(ee),o(gd),o(ud),o(te),o(Td),o(bd),o(ne),o(yd),o(wd),o(R),o(xd),o(Md),o(se),o(_d),o(vd),o(C),o(kd),o(Tp)),o(l),y(w,e),y(Un,e),y(Pn,e),y(In,e),y(qn,e),y(Zn,e),y(Rn,e),y(Dn),y(Ee),y(Nn,e),y(Vn,e),y(Qe,e),y(An,e),y(Wn,e),y(Sn,e),y(Hn,e),y(Xn,e),y(ts,e),y(ss,e),y(rs,e),y(ds,e),y(hs,e),y(gs,e),y(Ts,e),y(bs),y(Xe),y(ys),y(ws,e),y(xs),y(et),y(Ms),y(_s,e),y(vs),y(nt),y(st),y(ks),y(js,e),y(Us),y(ot),y($s),y(Js,e),y(Cs,e),y(Is),y(it),y(zs),y(qs,e),y(Gs),y(pt),y(Zs),y(Fs,e),y(Rs),y(dt),y(Ds),y(Ns,e),y(Bs),y(ht),y(Vs),y(As,e),y(Ws),y(gt),y(Ls),y(Ss,e),y(Os),y(Hs),y(Ys,e),y(Es),y(bt),y(Qs),y(Xs,e),y(Ks),y(wt),y(ea),y(ta,e),y(sa,e),y(aa),y(Mt),y(oa),y(ra),y(ia),y(la),y(jt),y(pa),y(ca,e),y(da),y($t),y(Jt),y(Pt),y(ma),y(ha,e),y(fa),y(It),y(ga),y(ua),y(Ta),y(ba),y(wa,e),y(xa),y(Zt),y(Ma),y(_a),y(va),y(ka,e),y(ja),y(Dt),y(Ua),y($a,e),y(Ja),y(Bt),y(Pa),y(Vt),y(At),y(Ca,e),y(Ia),y(Wt),y(za),y(qa,e),y(Ga),y(St),y(Za),y(Fa,e),y(Ra),y(Ht),y(Yt),y(Da),y(Na),y(Ba,e),y(Va),y(Xt),y(Aa),y(Wa),y(La),y(Sa),y(Oa),y(Ha,e),y(Ya),y(sn),y(Ea),y(Qa,e),y(Xa),y(on),y(Ka),y(eo,e),y(no,e),y(so),y(ln),y(ao),y(oo,e),y(ro),y(pn),y(io),y(lo,e),y(po),y(dn),y(co),y(mo,e),y(ho),y(hn),y(fo),y(go,e),y(uo),y(gn),y(To),y(bo,e),y(yo),y(wo),y(xo),y(Tn),y(Mo),y(_o),y(vo),y(ko),y(jo),y(Uo)}}}const Gx='{"title":"Pipelines","local":"pipelines","sections":[{"title":"pipeline抽象类","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自定义","local":"pipeline自定义","sections":[],"depth":2},{"title":"实现一个pipeline","local":"实现一个pipeline","sections":[],"depth":2},{"title":"音频","local":"音频","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":"计算机视觉","local":"计算机视觉","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":"自然语言处理","local":"自然语言处理","sections":[{"title":"ConversationalPipeline","local":"transformers.Conversation","sections":[],"depth":3},{"title":"FillMaskPipeline","local":"transformers.FillMaskPipeline","sections":[],"depth":3},{"title":"NerPipeline","local":"transformers.TokenClassificationPipeline","sections":[],"depth":3},{"title":"QuestionAnsweringPipeline","local":"transformers.QuestionAnsweringPipeline","sections":[],"depth":3},{"title":"SummarizationPipeline","local":"transformers.SummarizationPipeline","sections":[],"depth":3},{"title":"TableQuestionAnsweringPipeline","local":"transformers.TableQuestionAnsweringPipeline","sections":[],"depth":3},{"title":"TextClassificationPipeline","local":"transformers.TextClassificationPipeline","sections":[],"depth":3},{"title":"TextGenerationPipeline","local":"transformers.TextGenerationPipeline","sections":[],"depth":3},{"title":"Text2TextGenerationPipeline","local":"transformers.Text2TextGenerationPipeline","sections":[],"depth":3},{"title":"TokenClassificationPipeline","local":"transformers.TokenClassificationPipeline","sections":[],"depth":3},{"title":"TranslationPipeline","local":"transformers.TranslationPipeline","sections":[],"depth":3},{"title":"ZeroShotClassificationPipeline","local":"transformers.ZeroShotClassificationPipeline","sections":[],"depth":3}],"depth":2},{"title":"多模态","local":"多模态","sections":[{"title":"DocumentQuestionAnsweringPipeline","local":"transformers.DocumentQuestionAnsweringPipeline","sections":[],"depth":3},{"title":"FeatureExtractionPipeline","local":"transformers.FeatureExtractionPipeline","sections":[],"depth":3},{"title":"ImageToTextPipeline","local":"transformers.ImageToTextPipeline","sections":[],"depth":3},{"title":"MaskGenerationPipeline","local":"transformers.MaskGenerationPipeline","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 Zx(k){return Ww(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Wx extends Lw{constructor(l){super(),Sw(this,l,Zx,qx,Aw,{})}}export{Wx as component};
