import{s as Qo,o as Yo,n as G}from"../chunks/scheduler.9bc65507.js";import{S as Ao,i as Oo,g as n,s,r as f,m as Ko,A as en,h as l,f as t,c as a,j as M,u,x as m,n as tn,k as y,y as r,a as i,v as h,d as g,t as _,w as $}from"../chunks/index.707bf1b6.js";import{T as Ba}from"../chunks/Tip.c2ecdbf4.js";import{D as P}from"../chunks/Docstring.570ddb64.js";import{C as be}from"../chunks/CodeBlock.54a9f38d.js";import{E as Mr}from"../chunks/ExampleCodeBlock.bc2be6bc.js";import{H as xe,E as rn}from"../chunks/EditOnGithub.922df6ba.js";function sn(U){let d,w=`This class method is simply calling the feature extractor
<a href="/docs/transformers/main/ja/main_classes/feature_extractor#transformers.FeatureExtractionMixin.from_pretrained">from_pretrained()</a>, image processor
<a href="/docs/transformers/main/ja/internal/image_processing_utils#transformers.ImageProcessingMixin">ImageProcessingMixin</a> and the tokenizer
<code>~tokenization_utils_base.PreTrainedTokenizer.from_pretrained</code> methods. Please refer to the docstrings of the
methods above for more information.`;return{c(){d=n("p"),d.innerHTML=w},l(v){d=l(v,"P",{"data-svelte-h":!0}),m(d)!=="svelte-p7kr8l"&&(d.innerHTML=w)},m(v,p){i(v,d,p)},p:G,d(v){v&&t(d)}}}function an(U){let d,w="And we define the call method as:",v,p,x;return p=new be({props:{code:"ZGVmJTIwX19jYWxsX18oJTBBJTIwJTIwJTIwJTIwc2VsZiUyQyUwQSUyMCUyMCUyMCUyMHRleHQlM0ElMjBzdHIlMkMlMEElMjAlMjAlMjAlMjBpbWFnZXMlM0ElMjBPcHRpb25hbCU1QkltYWdlSW5wdXQlNUQlMjAlM0QlMjBOb25lJTJDJTBBJTIwJTIwJTIwJTIwKmFyZyUyQyUwQSUyMCUyMCUyMCUyMGF1ZGlvJTNETm9uZSUyQyUwQSUyMCUyMCUyMCUyMHZpZGVvcyUzRE5vbmUlMkMlMEEp",highlighted:`<span class="hljs-keyword">def</span> <span class="hljs-title function_">__call__</span>(<span class="hljs-params">
    self,
    text: <span class="hljs-built_in">str</span>,
    images: <span class="hljs-type">Optional</span>[ImageInput] = <span class="hljs-literal">None</span>,
    *arg,
    audio=<span class="hljs-literal">None</span>,
    videos=<span class="hljs-literal">None</span>,
</span>)`,wrap:!1}}),{c(){d=n("p"),d.textContent=w,v=s(),f(p.$$.fragment)},l(c){d=l(c,"P",{"data-svelte-h":!0}),m(d)!=="svelte-ft0bna"&&(d.textContent=w),v=a(c),u(p.$$.fragment,c)},m(c,T){i(c,d,T),i(c,v,T),h(p,c,T),x=!0},p:G,i(c){x||(g(p.$$.fragment,c),x=!0)},o(c){_(p.$$.fragment,c),x=!1},d(c){c&&(t(d),t(v)),$(p,c)}}}function on(U){let d,w="Then, if we call the processor as:",v,p,x;return p=new be({props:{code:"aW1hZ2VzJTIwJTNEJTIwJTVCLi4uJTVEJTBBcHJvY2Vzc29yKCUyMldoYXQlMjBpcyUyMGNvbW1vbiUyMGluJTIwdGhlc2UlMjBpbWFnZXMlM0YlMjIlMkMlMjBpbWFnZXMlMkMlMjBhcmdfdmFsdWVfMSUyQyUyMGFyZ192YWx1ZV8yKQ==",highlighted:`images = [...]
processor(<span class="hljs-string">&quot;What is common in these images?&quot;</span>, images, arg_value_1, arg_value_2)`,wrap:!1}}),{c(){d=n("p"),d.textContent=w,v=s(),f(p.$$.fragment)},l(c){d=l(c,"P",{"data-svelte-h":!0}),m(d)!=="svelte-k5ldhr"&&(d.textContent=w),v=a(c),u(p.$$.fragment,c)},m(c,T){i(c,d,T),i(c,v,T),h(p,c,T),x=!0},p:G,i(c){x||(g(p.$$.fragment,c),x=!0)},o(c){_(p.$$.fragment,c),x=!1},d(c){c&&(t(d),t(v)),$(p,c)}}}function nn(U){let d,w="Then, this method will return:",v,p,x;return p=new be({props:{code:"JTdCJTBBJTIwJTIwJTIwJTIwJTIyYXJnX25hbWVfMSUyMiUzQSUyMGFyZ192YWx1ZV8xJTJDJTBBJTIwJTIwJTIwJTIwJTIyYXJnX25hbWVfMiUyMiUzQSUyMGFyZ192YWx1ZV8yJTJDJTBBJTdE",highlighted:`{
    <span class="hljs-string">&quot;arg_name_1&quot;</span>: arg_value_1,
    <span class="hljs-string">&quot;arg_name_2&quot;</span>: arg_value_2,
}`,wrap:!1}}),{c(){d=n("p"),d.textContent=w,v=s(),f(p.$$.fragment)},l(c){d=l(c,"P",{"data-svelte-h":!0}),m(d)!=="svelte-wadzyw"&&(d.textContent=w),v=a(c),u(p.$$.fragment,c)},m(c,T){i(c,d,T),i(c,v,T),h(p,c,T),x=!0},p:G,i(c){x||(g(p.$$.fragment,c),x=!0)},o(c){_(p.$$.fragment,c),x=!1},d(c){c&&(t(d),t(v)),$(p,c)}}}function ln(U){let d,w="Examples:",v,p,x;return p=new be({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Qcm9jZXNzb3IlMEElMEFwcm9jZXNzb3IlMjAlM0QlMjBBdXRvUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJnb29nbGUtYmVydCUyRmJlcnQtYmFzZS1jYXNlZCUyMiklMEElMEElMjMlMjBQdXNoJTIwdGhlJTIwcHJvY2Vzc29yJTIwdG8lMjB5b3VyJTIwbmFtZXNwYWNlJTIwd2l0aCUyMHRoZSUyMG5hbWUlMjAlMjJteS1maW5ldHVuZWQtYmVydCUyMi4lMEFwcm9jZXNzb3IucHVzaF90b19odWIoJTIybXktZmluZXR1bmVkLWJlcnQlMjIpJTBBJTBBJTIzJTIwUHVzaCUyMHRoZSUyMHByb2Nlc3NvciUyMHRvJTIwYW4lMjBvcmdhbml6YXRpb24lMjB3aXRoJTIwdGhlJTIwbmFtZSUyMCUyMm15LWZpbmV0dW5lZC1iZXJ0JTIyLiUwQXByb2Nlc3Nvci5wdXNoX3RvX2h1YiglMjJodWdnaW5nZmFjZSUyRm15LWZpbmV0dW5lZC1iZXJ0JTIyKQ==",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoProcessor

processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;google-bert/bert-base-cased&quot;</span>)

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

<span class="hljs-comment"># Push the processor to an organization with the name &quot;my-finetuned-bert&quot;.</span>
processor.push_to_hub(<span class="hljs-string">&quot;huggingface/my-finetuned-bert&quot;</span>)`,wrap:!1}}),{c(){d=n("p"),d.textContent=w,v=s(),f(p.$$.fragment)},l(c){d=l(c,"P",{"data-svelte-h":!0}),m(d)!=="svelte-kvfsh7"&&(d.textContent=w),v=a(c),u(p.$$.fragment,c)},m(c,T){i(c,d,T),i(c,v,T),h(p,c,T),x=!0},p:G,i(c){x||(g(p.$$.fragment,c),x=!0)},o(c){_(p.$$.fragment,c),x=!1},d(c){c&&(t(d),t(v)),$(p,c)}}}function cn(U){let d,w="This API is experimental and may have some slight breaking changes in the next releases.";return{c(){d=n("p"),d.textContent=w},l(v){d=l(v,"P",{"data-svelte-h":!0}),m(d)!=="svelte-15rpg4"&&(d.textContent=w)},m(v,p){i(v,d,p)},p:G,d(v){v&&t(d)}}}function dn(U){let d,w=`This class method is simply calling <a href="/docs/transformers/main/ja/main_classes/feature_extractor#transformers.FeatureExtractionMixin.save_pretrained">save_pretrained()</a> and
<a href="/docs/transformers/main/ja/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.save_pretrained">save_pretrained()</a>. Please refer to the docstrings of the
methods above for more information.`;return{c(){d=n("p"),d.innerHTML=w},l(v){d=l(v,"P",{"data-svelte-h":!0}),m(d)!=="svelte-3qu6we"&&(d.innerHTML=w)},m(v,p){i(v,d,p)},p:G,d(v){v&&t(d)}}}function mn(U){let d,w="Examples:",v,p,x;return p=new be({props:{code:"aW1wb3J0JTIwdGVuc29yZmxvd19kYXRhc2V0cyUyMGFzJTIwdGZkcyUwQSUwQWRhdGFzZXQlMjAlM0QlMjB0ZmRzLmxvYWQoJTIyc3F1YWQlMjIpJTBBJTBBdHJhaW5pbmdfZXhhbXBsZXMlMjAlM0QlMjBnZXRfZXhhbXBsZXNfZnJvbV9kYXRhc2V0KGRhdGFzZXQlMkMlMjBldmFsdWF0ZSUzREZhbHNlKSUwQWV2YWx1YXRpb25fZXhhbXBsZXMlMjAlM0QlMjBnZXRfZXhhbXBsZXNfZnJvbV9kYXRhc2V0KGRhdGFzZXQlMkMlMjBldmFsdWF0ZSUzRFRydWUp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> tensorflow_datasets <span class="hljs-keyword">as</span> tfds

<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = tfds.load(<span class="hljs-string">&quot;squad&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>training_examples = get_examples_from_dataset(dataset, evaluate=<span class="hljs-literal">False</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>evaluation_examples = get_examples_from_dataset(dataset, evaluate=<span class="hljs-literal">True</span>)`,wrap:!1}}),{c(){d=n("p"),d.textContent=w,v=s(),f(p.$$.fragment)},l(c){d=l(c,"P",{"data-svelte-h":!0}),m(d)!=="svelte-kvfsh7"&&(d.textContent=w),v=a(c),u(p.$$.fragment,c)},m(c,T){i(c,d,T),i(c,v,T),h(p,c,T),x=!0},p:G,i(c){x||(g(p.$$.fragment,c),x=!0)},o(c){_(p.$$.fragment,c),x=!1},d(c){c&&(t(d),t(v)),$(p,c)}}}function pn(U){let d,w="Example:",v,p,x;return p=new be({props:{code:"cHJvY2Vzc29yJTIwJTNEJTIwU3F1YWRWMlByb2Nlc3NvcigpJTBBZXhhbXBsZXMlMjAlM0QlMjBwcm9jZXNzb3IuZ2V0X2Rldl9leGFtcGxlcyhkYXRhX2RpciklMEElMEFmZWF0dXJlcyUyMCUzRCUyMHNxdWFkX2NvbnZlcnRfZXhhbXBsZXNfdG9fZmVhdHVyZXMoJTBBJTIwJTIwJTIwJTIwZXhhbXBsZXMlM0RleGFtcGxlcyUyQyUwQSUyMCUyMCUyMCUyMHRva2VuaXplciUzRHRva2VuaXplciUyQyUwQSUyMCUyMCUyMCUyMG1heF9zZXFfbGVuZ3RoJTNEYXJncy5tYXhfc2VxX2xlbmd0aCUyQyUwQSUyMCUyMCUyMCUyMGRvY19zdHJpZGUlM0RhcmdzLmRvY19zdHJpZGUlMkMlMEElMjAlMjAlMjAlMjBtYXhfcXVlcnlfbGVuZ3RoJTNEYXJncy5tYXhfcXVlcnlfbGVuZ3RoJTJDJTBBJTIwJTIwJTIwJTIwaXNfdHJhaW5pbmclM0Rub3QlMjBldmFsdWF0ZSUyQyUwQSk=",highlighted:`processor = SquadV2Processor()
examples = processor.get_dev_examples(data_dir)

features = squad_convert_examples_to_features(
    examples=examples,
    tokenizer=tokenizer,
    max_seq_length=args.max_seq_length,
    doc_stride=args.doc_stride,
    max_query_length=args.max_query_length,
    is_training=<span class="hljs-keyword">not</span> evaluate,
)`,wrap:!1}}),{c(){d=n("p"),d.textContent=w,v=s(),f(p.$$.fragment)},l(c){d=l(c,"P",{"data-svelte-h":!0}),m(d)!=="svelte-11lpom8"&&(d.textContent=w),v=a(c),u(p.$$.fragment,c)},m(c,T){i(c,d,T),i(c,v,T),h(p,c,T),x=!0},p:G,i(c){x||(g(p.$$.fragment,c),x=!0)},o(c){_(p.$$.fragment,c),x=!1},d(c){c&&(t(d),t(v)),$(p,c)}}}function fn(U){let d,w,v,p,x,c,T,Na="Transformers ライブラリでは、プロセッサは 2 つの異なる意味を持ちます。",wr,Me,Sa=`<li><a href="../model_doc/wav2vec2">Wav2Vec2</a> などのマルチモーダル モデルの入力を前処理するオブジェクト (音声とテキスト)
または <a href="../model_doc/clip">CLIP</a> (テキストとビジョン)</li> <li>古いバージョンのライブラリで GLUE または SQUAD のデータを前処理するために使用されていたオブジェクトは非推奨になりました。</li>`,Tr,ye,Cr,we,Fa=`マルチモーダル モデルでは、オブジェクトが複数のモダリティ (テキスト、
視覚と音声）。これは、2 つ以上の処理オブジェクトをグループ化するプロセッサーと呼ばれるオブジェクトによって処理されます。
トークナイザー (テキスト モダリティ用)、画像プロセッサー (視覚用)、特徴抽出器 (オーディオ用) など。`,Pr,Te,Da="これらのプロセッサは、保存およびロード機能を実装する次の基本クラスを継承します。",Jr,b,Ce,Js,qt,Wa="This is a mixin used to provide saving/loading functionality for all processor classes.",Is,R,Pe,js,Et,Ga=`Similar to the <code>apply_chat_template</code> method on tokenizers, this method applies a Jinja template to input
conversations to turn them into a single tokenizable string.`,Us,Q,Je,ks,zt,Ra="Instantiates a type of <code>~processing_utils.ProcessingMixin</code> from a Python dictionary of parameters.",Xs,q,Ie,Ls,Ht,Qa="Instantiate a processor associated with a pretrained model.",Zs,Y,Vs,A,je,qs,Bt,Ya=`From a <code>pretrained_model_name_or_path</code>, resolve to a dictionary of parameters, to be used for instantiating a
processor of type <code>~processing_utils.ProcessingMixin</code> using <code>from_args_and_dict</code>.`,Es,O,Ue,zs,Nt,Aa="Post-process the output of a vlm to decode the text.",Hs,J,ke,Bs,St,Oa=`Matches optional positional arguments to their corresponding names in <code>optional_call_args</code>
in the processor class in the order they are passed to the processor call.`,Ns,Ft,Ka=`Note that this should only be used in the <code>__call__</code> method of the processors with special
arguments. Special arguments are arguments that aren’t <code>text</code>, <code>images</code>, <code>audio</code>, nor <code>videos</code>
but also aren’t passed to the tokenizer, image processor, etc. Examples of such processors are:`,Ss,Dt,eo="<li><code>CLIPSegProcessor</code></li> <li><code>LayoutLMv2Processor</code></li> <li><code>OwlViTProcessor</code></li>",Fs,Wt,to=`Also note that passing by position to the processor call is now deprecated and will be disallowed
in future versions. We only have this for backward compatibility.`,Ds,Gt,ro=`Example:
Suppose that the processor class has <code>optional_call_args = [&quot;arg_name_1&quot;, &quot;arg_name_2&quot;]</code>.`,Ws,K,Gs,ee,Rs,te,Qs,Ys,E,Xe,As,Rt,so="Upload the processor files to the 🤗 Model Hub.",Os,re,Ks,z,Le,ea,Qt,ao=`Register this class with a given auto class. This should only be used for custom feature extractors as the ones
in the library are already mapped with <code>AutoProcessor</code>.`,ta,se,ra,H,Ze,sa,Yt,oo=`Saves the attributes of this processor (feature extractor, tokenizer…) in the specified directory so that it
can be reloaded using the <a href="/docs/transformers/main/ja/main_classes/processors#transformers.ProcessorMixin.from_pretrained">from_pretrained()</a> method.`,aa,ae,oa,oe,Ve,na,At,no="Serializes this instance to a Python dictionary.",la,ne,qe,ia,Ot,lo="Save this instance to a JSON file.",ca,le,Ee,da,Kt,io="Serializes this instance to a JSON string.",Ir,ze,jr,He,co=`すべてのプロセッサは、同じアーキテクチャに従っています。
<a href="/docs/transformers/main/ja/main_classes/processors#transformers.DataProcessor">DataProcessor</a>。プロセッサは次のリストを返します。
<a href="/docs/transformers/main/ja/main_classes/processors#transformers.InputExample">InputExample</a>。これら
<a href="/docs/transformers/main/ja/main_classes/processors#transformers.InputExample">InputExample</a> は次のように変換できます。
<code>~data.processors.utils.Input features</code> をモデルにフィードします。`,Ur,j,Be,ma,er,mo="Base class for data converters for sequence classification data sets.",pa,ie,Ne,fa,tr,po='Gets a collection of <a href="/docs/transformers/main/ja/main_classes/processors#transformers.InputExample">InputExample</a> for the dev set.',ua,ce,Se,ha,rr,fo="Gets an example from a dict with tensorflow tensors.",ga,de,Fe,_a,sr,uo="Gets the list of labels for this data set.",$a,me,De,va,ar,ho='Gets a collection of <a href="/docs/transformers/main/ja/main_classes/processors#transformers.InputExample">InputExample</a> for the test set.',xa,pe,We,ba,or,go='Gets a collection of <a href="/docs/transformers/main/ja/main_classes/processors#transformers.InputExample">InputExample</a> for the train set.',Ma,fe,Ge,ya,nr,_o=`Some tensorflow_datasets datasets are not formatted the same way the GLUE datasets are. This method converts
examples to the correct format.`,kr,L,Re,wa,lr,$o="A single training/test example for simple sequence classification.",Ta,ue,Qe,Ca,ir,vo="Serializes this instance to a JSON string.",Xr,Z,Ye,Pa,cr,xo="A single set of features of data. Property names are the same names as the corresponding inputs to a model.",Ja,he,Ae,Ia,dr,bo="Serializes this instance to a JSON string.",Lr,Oe,Zr,Ke,Mo=`<a href="https://gluebenchmark.com/" rel="nofollow">一般言語理解評価 (GLUE)</a> は、
既存の NLU タスクの多様なセットにわたるモデルのパフォーマンス。紙と同時発売された <a href="https://openreview.net/pdf?id=rJ4km2R5t7" rel="nofollow">GLUE: A
自然言語理解のためのマルチタスクベンチマークおよび分析プラットフォーム</a>`,Vr,et,yo=`このライブラリは、MRPC、MNLI、MNLI (不一致)、CoLA、SST2、STSB、
QQP、QNLI、RTE、WNLI。`,qr,tt,wo="それらのプロセッサは次のとおりです。",Er,rt,To="<li><code>~data.processors.utils.MrpcProcessor</code></li> <li><code>~data.processors.utils.MnliProcessor</code></li> <li><code>~data.processors.utils.MnliMismatchedProcessor</code></li> <li><code>~data.processors.utils.Sst2Processor</code></li> <li><code>~data.processors.utils.StsbProcessor</code></li> <li><code>~data.processors.utils.QqpProcessor</code></li> <li><code>~data.processors.utils.QnliProcessor</code></li> <li><code>~data.processors.utils.RteProcessor</code></li> <li><code>~data.processors.utils.WnliProcessor</code></li>",zr,st,Co=`さらに、次のメソッドを使用して、データ ファイルから値をロードし、それらをリストに変換することができます。
<a href="/docs/transformers/main/ja/main_classes/processors#transformers.InputExample">InputExample</a>。`,Hr,S,at,ja,mr,Po="Loads a data file into a list of <code>InputFeatures</code>",Br,ot,Nr,nt,Jo=`<a href="https://www.nyu.edu/projects/bowman/xnli/" rel="nofollow">クロスリンガル NLI コーパス (XNLI)</a> は、
言語を超えたテキスト表現の品質。 XNLI は、<a href="http://www.nyu.edu/projects/bowman/multinli/" rel="nofollow"><em>MultiNLI</em></a> に基づくクラウドソースのデータセットです。テキストのペアには、15 個のテキスト含意アノテーションがラベル付けされています。
さまざまな言語 (英語などの高リソース言語とスワヒリ語などの低リソース言語の両方を含む)。`,Sr,lt,Io='論文 <a href="https://arxiv.org/abs/1809.05053" rel="nofollow">XNLI: Evaluating Cross-lingual Sentence Representations</a> と同時にリリースされました。',Fr,it,jo="このライブラリは、XNLI データをロードするプロセッサをホストします。",Dr,ct,Uo="<li><code>~data.processors.utils.XnliProcessor</code></li>",Wr,dt,ko="テストセットにはゴールドラベルが付いているため、評価はテストセットで行われますのでご了承ください。",Gr,mt,Xo='これらのプロセッサを使用する例は、<a href="https://github.com/huggingface/transformers/tree/main/examples/pytorch/text-classification/run_xnli.py" rel="nofollow">run_xnli.py</a> スクリプトに示されています。',Rr,pt,Qr,ft,Lo=`<a href="https://rajpurkar.github.io/SQuAD-explorer//" rel="nofollow">The Stanford Question Answering Dataset (SQuAD)</a> は、次のベンチマークです。
質問応答に関するモデルのパフォーマンスを評価します。 v1.1 と v2.0 の 2 つのバージョンが利用可能です。最初のバージョン
(v1.1) は、論文 <a href="https://arxiv.org/abs/1606.05250" rel="nofollow">SQuAD: 100,000+ question for Machine Comprehension of Text</a> とともにリリースされました。 2 番目のバージョン (v2.0) は、論文 <a href="https://arxiv.org/abs/1806.03822" rel="nofollow">Know What You Don’t と同時にリリースされました。
知っておくべき: SQuAD の答えられない質問</a>。`,Yr,ut,Zo="このライブラリは、次の 2 つのバージョンのそれぞれのプロセッサをホストします。",Ar,ht,Or,gt,Vo="それらのプロセッサは次のとおりです。",Kr,_t,qo="<li><code>~data.processors.utils.SquadV1Processor</code></li> <li><code>~data.processors.utils.SquadV2Processor</code></li>",es,$t,Eo="どちらも抽象クラス <code>~data.processors.utils.SquadProcessor</code> を継承しています。",ts,X,vt,Ua,pr,zo=`Processor for the SQuAD data set. overridden by SquadV1Processor and SquadV2Processor, used by the version 1.1 and
version 2.0 of SQuAD, respectively.`,ka,ge,xt,Xa,fr,Ho="Returns the evaluation example from the data directory.",La,B,bt,Za,ur,Bo="Creates a list of <code>SquadExample</code> using a TFDS dataset.",Va,_e,qa,$e,Mt,Ea,hr,No="Returns the training examples from the data directory.",rs,yt,So=`さらに、次のメソッドを使用して、SQuAD の例を次の形式に変換できます。
モデルの入力として使用できる <code>~data.processors.utils.SquadFeatures</code>。`,ss,V,wt,za,gr,Fo=`Converts a list of examples into a list of features that can be directly given as input to a model. It is
model-dependant and takes advantage of many of the tokenizer’s features to create the model’s inputs.`,Ha,ve,as,Tt,Do=`これらのプロセッサと前述の方法は、データを含むファイルだけでなく、
<em>tensorflow_datasets</em> パッケージ。以下に例を示します。`,os,Ct,ns,Pt,Wo="以下にプロセッサを使用した例と、データ ファイルを使用した変換方法を示します。",ls,Jt,is,It,Go="<em>tensorflow_datasets</em> の使用は、データ ファイルを使用するのと同じくらい簡単です。",cs,jt,ds,Ut,Ro='これらのプロセッサを使用する別の例は、<a href="https://github.com/huggingface/transformers/tree/main/examples/legacy/question-answering/run_squad.py" rel="nofollow">run_squad.py</a> スクリプトに示されています。',ms,kt,ps,yr,fs;return x=new xe({props:{title:"Processors",local:"processors",headingTag:"h1"}}),ye=new xe({props:{title:"Multi-modal processors",local:"transformers.ProcessorMixin",headingTag:"h2"}}),Ce=new P({props:{name:"class transformers.ProcessorMixin",anchor:"transformers.ProcessorMixin",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/processing_utils.py#L340"}}),Pe=new P({props:{name:"apply_chat_template",anchor:"transformers.ProcessorMixin.apply_chat_template",parameters:[{name:"conversation",val:": List"},{name:"chat_template",val:": Optional = None"},{name:"tokenize",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ProcessorMixin.apply_chat_template.conversation",description:`<strong>conversation</strong> (<code>List[Dict, str, str]</code>) &#x2014;
The conversation to format.`,name:"conversation"},{anchor:"transformers.ProcessorMixin.apply_chat_template.chat_template",description:`<strong>chat_template</strong> (<code>Optional[str]</code>, <em>optional</em>) &#x2014;
The Jinja template to use for formatting the conversation. If not provided, the tokenizer&#x2019;s
chat template is used.`,name:"chat_template"},{anchor:"transformers.ProcessorMixin.apply_chat_template.tokenize",description:`<strong>tokenize</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to tokenize the output or not.
**kwargs &#x2014;
Additional keyword arguments`,name:"tokenize"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/processing_utils.py#L1074"}}),Je=new P({props:{name:"from_args_and_dict",anchor:"transformers.ProcessorMixin.from_args_and_dict",parameters:[{name:"args",val:""},{name:"processor_dict",val:": Dict"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ProcessorMixin.from_args_and_dict.processor_dict",description:`<strong>processor_dict</strong> (<code>Dict[str, Any]</code>) &#x2014;
Dictionary that will be used to instantiate the processor object. Such a dictionary can be
retrieved from a pretrained checkpoint by leveraging the
<code>~processing_utils.ProcessingMixin.to_dict</code> method.`,name:"processor_dict"},{anchor:"transformers.ProcessorMixin.from_args_and_dict.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>) &#x2014;
Additional parameters from which to initialize the processor object.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/processing_utils.py#L715",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The processor object instantiated from those
parameters.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>~processing_utils.ProcessingMixin</code></p>
`}}),Ie=new P({props:{name:"from_pretrained",anchor:"transformers.ProcessorMixin.from_pretrained",parameters:[{name:"pretrained_model_name_or_path",val:": Union"},{name:"cache_dir",val:": Union = None"},{name:"force_download",val:": bool = False"},{name:"local_files_only",val:": bool = False"},{name:"token",val:": Union = None"},{name:"revision",val:": str = 'main'"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ProcessorMixin.from_pretrained.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
This can be either:</p>
<ul>
<li>a string, the <em>model id</em> of a pretrained feature_extractor hosted inside a model repo on
huggingface.co.</li>
<li>a path to a <em>directory</em> containing a feature extractor file saved using the
<a href="/docs/transformers/main/ja/main_classes/feature_extractor#transformers.FeatureExtractionMixin.save_pretrained">save_pretrained()</a> method, e.g., <code>./my_model_directory/</code>.</li>
<li>a path or url to a saved feature extractor JSON <em>file</em>, e.g.,
<code>./my_model_directory/preprocessor_config.json</code>.
**kwargs &#x2014;
Additional keyword arguments passed along to both
<a href="/docs/transformers/main/ja/main_classes/feature_extractor#transformers.FeatureExtractionMixin.from_pretrained">from_pretrained()</a> and
<code>~tokenization_utils_base.PreTrainedTokenizer.from_pretrained</code>.</li>
</ul>`,name:"pretrained_model_name_or_path"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/processing_utils.py#L890"}}),Y=new Ba({props:{$$slots:{default:[sn]},$$scope:{ctx:U}}}),je=new P({props:{name:"get_processor_dict",anchor:"transformers.ProcessorMixin.get_processor_dict",parameters:[{name:"pretrained_model_name_or_path",val:": Union"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ProcessorMixin.get_processor_dict.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
The identifier of the pre-trained checkpoint from which we want the dictionary of parameters.`,name:"pretrained_model_name_or_path"},{anchor:"transformers.ProcessorMixin.get_processor_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
In case the relevant files are located inside a subfolder of the model repo on huggingface.co, you can
specify the folder name here.`,name:"subfolder"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/processing_utils.py#L562",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The dictionary(ies) that will be used to instantiate the processor object.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>Tuple[Dict, Dict]</code></p>
`}}),Ue=new P({props:{name:"post_process_image_text_to_text",anchor:"transformers.ProcessorMixin.post_process_image_text_to_text",parameters:[{name:"generated_outputs",val:""}],parametersDescription:[{anchor:"transformers.ProcessorMixin.post_process_image_text_to_text.generated_outputs",description:`<strong>generated_outputs</strong> (<code>torch.Tensor</code> or <code>np.ndarray</code>) &#x2014;
The output of the model <code>generate</code> function. The output is expected to be a tensor of shape <code>(batch_size, sequence_length)</code>
or <code>(sequence_length,)</code>.`,name:"generated_outputs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/processing_utils.py#L1110",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The decoded text.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>List[str]</code></p>
`}}),ke=new P({props:{name:"prepare_and_validate_optional_call_args",anchor:"transformers.ProcessorMixin.prepare_and_validate_optional_call_args",parameters:[{name:"*args",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/processing_utils.py#L1016"}}),K=new Mr({props:{anchor:"transformers.ProcessorMixin.prepare_and_validate_optional_call_args.example",$$slots:{default:[an]},$$scope:{ctx:U}}}),ee=new Mr({props:{anchor:"transformers.ProcessorMixin.prepare_and_validate_optional_call_args.example-2",$$slots:{default:[on]},$$scope:{ctx:U}}}),te=new Mr({props:{anchor:"transformers.ProcessorMixin.prepare_and_validate_optional_call_args.example-3",$$slots:{default:[nn]},$$scope:{ctx:U}}}),Xe=new P({props:{name:"push_to_hub",anchor:"transformers.ProcessorMixin.push_to_hub",parameters:[{name:"repo_id",val:": str"},{name:"use_temp_dir",val:": Optional = None"},{name:"commit_message",val:": Optional = None"},{name:"private",val:": Optional = None"},{name:"token",val:": Union = None"},{name:"max_shard_size",val:": Union = '5GB'"},{name:"create_pr",val:": bool = False"},{name:"safe_serialization",val:": bool = True"},{name:"revision",val:": str = None"},{name:"commit_description",val:": str = None"},{name:"tags",val:": Optional = None"},{name:"**deprecated_kwargs",val:""}],parametersDescription:[{anchor:"transformers.ProcessorMixin.push_to_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The name of the repository you want to push your processor to. It should contain your organization name
when pushing to a given organization.`,name:"repo_id"},{anchor:"transformers.ProcessorMixin.push_to_hub.use_temp_dir",description:`<strong>use_temp_dir</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to use a temporary directory to store the files saved before they are pushed to the Hub.
Will default to <code>True</code> if there is no directory named like <code>repo_id</code>, <code>False</code> otherwise.`,name:"use_temp_dir"},{anchor:"transformers.ProcessorMixin.push_to_hub.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Message to commit while pushing. Will default to <code>&quot;Upload processor&quot;</code>.`,name:"commit_message"},{anchor:"transformers.ProcessorMixin.push_to_hub.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not the repository created should be private.`,name:"private"},{anchor:"transformers.ProcessorMixin.push_to_hub.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, will use the token generated
when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>). Will default to <code>True</code> if <code>repo_url</code>
is not specified.`,name:"token"},{anchor:"transformers.ProcessorMixin.push_to_hub.max_shard_size",description:`<strong>max_shard_size</strong> (<code>int</code> or <code>str</code>, <em>optional</em>, defaults to <code>&quot;5GB&quot;</code>) &#x2014;
Only applicable for models. The maximum size for a checkpoint before being sharded. Checkpoints shard
will then be each of size lower than this size. If expressed as a string, needs to be digits followed
by a unit (like <code>&quot;5MB&quot;</code>). We default it to <code>&quot;5GB&quot;</code> so that users can easily load models on free-tier
Google Colab instances without any CPU OOM issues.`,name:"max_shard_size"},{anchor:"transformers.ProcessorMixin.push_to_hub.create_pr",description:`<strong>create_pr</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to create a PR with the uploaded files or directly commit.`,name:"create_pr"},{anchor:"transformers.ProcessorMixin.push_to_hub.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to convert the model weights in safetensors format for safer serialization.`,name:"safe_serialization"},{anchor:"transformers.ProcessorMixin.push_to_hub.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Branch to push the uploaded files to.`,name:"revision"},{anchor:"transformers.ProcessorMixin.push_to_hub.commit_description",description:`<strong>commit_description</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The description of the commit that will be created`,name:"commit_description"},{anchor:"transformers.ProcessorMixin.push_to_hub.tags",description:`<strong>tags</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
List of tags to push on the Hub.`,name:"tags"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/hub.py#L828"}}),re=new Mr({props:{anchor:"transformers.ProcessorMixin.push_to_hub.example",$$slots:{default:[ln]},$$scope:{ctx:U}}}),Le=new P({props:{name:"register_for_auto_class",anchor:"transformers.ProcessorMixin.register_for_auto_class",parameters:[{name:"auto_class",val:" = 'AutoProcessor'"}],parametersDescription:[{anchor:"transformers.ProcessorMixin.register_for_auto_class.auto_class",description:`<strong>auto_class</strong> (<code>str</code> or <code>type</code>, <em>optional</em>, defaults to <code>&quot;AutoProcessor&quot;</code>) &#x2014;
The auto class to register this new feature extractor with.`,name:"auto_class"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/processing_utils.py#L954"}}),se=new Ba({props:{warning:!0,$$slots:{default:[cn]},$$scope:{ctx:U}}}),Ze=new P({props:{name:"save_pretrained",anchor:"transformers.ProcessorMixin.save_pretrained",parameters:[{name:"save_directory",val:""},{name:"push_to_hub",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ProcessorMixin.save_pretrained.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory where the feature extractor JSON file and the tokenizer files will be saved (directory will
be created if it does not exist).`,name:"save_directory"},{anchor:"transformers.ProcessorMixin.save_pretrained.push_to_hub",description:`<strong>push_to_hub</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to push your model to the Hugging Face model hub after saving it. You can specify the
repository you want to push to with <code>repo_id</code> (will default to the name of <code>save_directory</code> in your
namespace).`,name:"push_to_hub"},{anchor:"transformers.ProcessorMixin.save_pretrained.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional key word arguments passed along to the <a href="/docs/transformers/main/ja/main_classes/model#transformers.utils.PushToHubMixin.push_to_hub">push_to_hub()</a> method.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/processing_utils.py#L460"}}),ae=new Ba({props:{$$slots:{default:[dn]},$$scope:{ctx:U}}}),Ve=new P({props:{name:"to_dict",anchor:"transformers.ProcessorMixin.to_dict",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/processing_utils.py#L393",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Dictionary of all the attributes that make up this processor instance.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>Dict[str, Any]</code></p>
`}}),qe=new P({props:{name:"to_json_file",anchor:"transformers.ProcessorMixin.to_json_file",parameters:[{name:"json_file_path",val:": Union"}],parametersDescription:[{anchor:"transformers.ProcessorMixin.to_json_file.json_file_path",description:`<strong>json_file_path</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Path to the JSON file in which this processor instance&#x2019;s parameters will be saved.`,name:"json_file_path"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/processing_utils.py#L444"}}),Ee=new P({props:{name:"to_json_string",anchor:"transformers.ProcessorMixin.to_json_string",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/processing_utils.py#L433",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>String containing all the attributes that make up this feature_extractor instance in JSON format.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>str</code></p>
`}}),ze=new xe({props:{title:"Deprecated processors",local:"transformers.DataProcessor",headingTag:"h2"}}),Be=new P({props:{name:"class transformers.DataProcessor",anchor:"transformers.DataProcessor",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/data/processors/utils.py#L80"}}),Ne=new P({props:{name:"get_dev_examples",anchor:"transformers.DataProcessor.get_dev_examples",parameters:[{name:"data_dir",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/data/processors/utils.py#L97"}}),Se=new P({props:{name:"get_example_from_tensor_dict",anchor:"transformers.DataProcessor.get_example_from_tensor_dict",parameters:[{name:"tensor_dict",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/data/processors/utils.py#L83"}}),Fe=new P({props:{name:"get_labels",anchor:"transformers.DataProcessor.get_labels",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/data/processors/utils.py#L105"}}),De=new P({props:{name:"get_test_examples",anchor:"transformers.DataProcessor.get_test_examples",parameters:[{name:"data_dir",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/data/processors/utils.py#L101"}}),We=new P({props:{name:"get_train_examples",anchor:"transformers.DataProcessor.get_train_examples",parameters:[{name:"data_dir",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/data/processors/utils.py#L93"}}),Ge=new P({props:{name:"tfds_map",anchor:"transformers.DataProcessor.tfds_map",parameters:[{name:"example",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/data/processors/utils.py#L109"}}),Re=new P({props:{name:"class transformers.InputExample",anchor:"transformers.InputExample",parameters:[{name:"guid",val:": str"},{name:"text_a",val:": str"},{name:"text_b",val:": Optional = None"},{name:"label",val:": Optional = None"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/data/processors/utils.py#L29"}}),Qe=new P({props:{name:"to_json_string",anchor:"transformers.InputExample.to_json_string",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/data/processors/utils.py#L49"}}),Ye=new P({props:{name:"class transformers.InputFeatures",anchor:"transformers.InputFeatures",parameters:[{name:"input_ids",val:": List"},{name:"attention_mask",val:": Optional = None"},{name:"token_type_ids",val:": Optional = None"},{name:"label",val:": Union = None"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/data/processors/utils.py#L54"}}),Ae=new P({props:{name:"to_json_string",anchor:"transformers.InputFeatures.to_json_string",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/data/processors/utils.py#L75"}}),Oe=new xe({props:{title:"GLUE",local:"transformers.glue_convert_examples_to_features",headingTag:"h2"}}),at=new P({props:{name:"transformers.glue_convert_examples_to_features",anchor:"transformers.glue_convert_examples_to_features",parameters:[{name:"examples",val:": Union"},{name:"tokenizer",val:": PreTrainedTokenizer"},{name:"max_length",val:": Optional = None"},{name:"task",val:" = None"},{name:"label_list",val:" = None"},{name:"output_mode",val:" = None"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/data/processors/glue.py#L41",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>If the <code>examples</code> input is a <code>tf.data.Dataset</code>, will return a <code>tf.data.Dataset</code> containing the task-specific
features. If the input is a list of <code>InputExamples</code>, will return a list of task-specific <code>InputFeatures</code> which
can be fed to the model.</p>
`}}),ot=new xe({props:{title:"XNLI",local:"xnli",headingTag:"h2"}}),pt=new xe({props:{title:"SQuAD",local:"squad",headingTag:"h2"}}),ht=new xe({props:{title:"Processors",local:"transformers.data.processors.squad.SquadProcessor",headingTag:"h3"}}),vt=new P({props:{name:"class transformers.data.processors.squad.SquadProcessor",anchor:"transformers.data.processors.squad.SquadProcessor",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/data/processors/squad.py#L541"}}),xt=new P({props:{name:"get_dev_examples",anchor:"transformers.data.processors.squad.SquadProcessor.get_dev_examples",parameters:[{name:"data_dir",val:""},{name:"filename",val:" = None"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/data/processors/squad.py#L629"}}),bt=new P({props:{name:"get_examples_from_dataset",anchor:"transformers.data.processors.squad.SquadProcessor.get_examples_from_dataset",parameters:[{name:"dataset",val:""},{name:"evaluate",val:" = False"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/data/processors/squad.py#L574",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>List of SquadExample</p>
`}}),_e=new Mr({props:{anchor:"transformers.data.processors.squad.SquadProcessor.get_examples_from_dataset.example",$$slots:{default:[mn]},$$scope:{ctx:U}}}),Mt=new P({props:{name:"get_train_examples",anchor:"transformers.data.processors.squad.SquadProcessor.get_train_examples",parameters:[{name:"data_dir",val:""},{name:"filename",val:" = None"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/data/processors/squad.py#L607"}}),wt=new P({props:{name:"transformers.squad_convert_examples_to_features",anchor:"transformers.squad_convert_examples_to_features",parameters:[{name:"examples",val:""},{name:"tokenizer",val:""},{name:"max_seq_length",val:""},{name:"doc_stride",val:""},{name:"max_query_length",val:""},{name:"is_training",val:""},{name:"padding_strategy",val:" = 'max_length'"},{name:"return_dataset",val:" = False"},{name:"threads",val:" = 1"},{name:"tqdm_enabled",val:" = True"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/data/processors/squad.py#L316",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>list of <code>SquadFeatures</code></p>
`}}),ve=new Mr({props:{anchor:"transformers.squad_convert_examples_to_features.example",$$slots:{default:[pn]},$$scope:{ctx:U}}}),Ct=new xe({props:{title:"Example usage",local:"example-usage",headingTag:"h3"}}),Jt=new be({props:{code:"JTIzJTIwTG9hZGluZyUyMGElMjBWMiUyMHByb2Nlc3NvciUwQXByb2Nlc3NvciUyMCUzRCUyMFNxdWFkVjJQcm9jZXNzb3IoKSUwQWV4YW1wbGVzJTIwJTNEJTIwcHJvY2Vzc29yLmdldF9kZXZfZXhhbXBsZXMoc3F1YWRfdjJfZGF0YV9kaXIpJTBBJTBBJTIzJTIwTG9hZGluZyUyMGElMjBWMSUyMHByb2Nlc3NvciUwQXByb2Nlc3NvciUyMCUzRCUyMFNxdWFkVjFQcm9jZXNzb3IoKSUwQWV4YW1wbGVzJTIwJTNEJTIwcHJvY2Vzc29yLmdldF9kZXZfZXhhbXBsZXMoc3F1YWRfdjFfZGF0YV9kaXIpJTBBJTBBZmVhdHVyZXMlMjAlM0QlMjBzcXVhZF9jb252ZXJ0X2V4YW1wbGVzX3RvX2ZlYXR1cmVzKCUwQSUyMCUyMCUyMCUyMGV4YW1wbGVzJTNEZXhhbXBsZXMlMkMlMEElMjAlMjAlMjAlMjB0b2tlbml6ZXIlM0R0b2tlbml6ZXIlMkMlMEElMjAlMjAlMjAlMjBtYXhfc2VxX2xlbmd0aCUzRG1heF9zZXFfbGVuZ3RoJTJDJTBBJTIwJTIwJTIwJTIwZG9jX3N0cmlkZSUzRGFyZ3MuZG9jX3N0cmlkZSUyQyUwQSUyMCUyMCUyMCUyMG1heF9xdWVyeV9sZW5ndGglM0RtYXhfcXVlcnlfbGVuZ3RoJTJDJTBBJTIwJTIwJTIwJTIwaXNfdHJhaW5pbmclM0Rub3QlMjBldmFsdWF0ZSUyQyUwQSk=",highlighted:`<span class="hljs-comment"># Loading a V2 processor</span>
processor = SquadV2Processor()
examples = processor.get_dev_examples(squad_v2_data_dir)

<span class="hljs-comment"># Loading a V1 processor</span>
processor = SquadV1Processor()
examples = processor.get_dev_examples(squad_v1_data_dir)

features = squad_convert_examples_to_features(
    examples=examples,
    tokenizer=tokenizer,
    max_seq_length=max_seq_length,
    doc_stride=args.doc_stride,
    max_query_length=max_query_length,
    is_training=<span class="hljs-keyword">not</span> evaluate,
)`,wrap:!1}}),jt=new be({props:{code:"JTIzJTIwdGVuc29yZmxvd19kYXRhc2V0cyUyMG9ubHklMjBoYW5kbGUlMjBTcXVhZCUyMFYxLiUwQXRmZHNfZXhhbXBsZXMlMjAlM0QlMjB0ZmRzLmxvYWQoJTIyc3F1YWQlMjIpJTBBZXhhbXBsZXMlMjAlM0QlMjBTcXVhZFYxUHJvY2Vzc29yKCkuZ2V0X2V4YW1wbGVzX2Zyb21fZGF0YXNldCh0ZmRzX2V4YW1wbGVzJTJDJTIwZXZhbHVhdGUlM0RldmFsdWF0ZSklMEElMEFmZWF0dXJlcyUyMCUzRCUyMHNxdWFkX2NvbnZlcnRfZXhhbXBsZXNfdG9fZmVhdHVyZXMoJTBBJTIwJTIwJTIwJTIwZXhhbXBsZXMlM0RleGFtcGxlcyUyQyUwQSUyMCUyMCUyMCUyMHRva2VuaXplciUzRHRva2VuaXplciUyQyUwQSUyMCUyMCUyMCUyMG1heF9zZXFfbGVuZ3RoJTNEbWF4X3NlcV9sZW5ndGglMkMlMEElMjAlMjAlMjAlMjBkb2Nfc3RyaWRlJTNEYXJncy5kb2Nfc3RyaWRlJTJDJTBBJTIwJTIwJTIwJTIwbWF4X3F1ZXJ5X2xlbmd0aCUzRG1heF9xdWVyeV9sZW5ndGglMkMlMEElMjAlMjAlMjAlMjBpc190cmFpbmluZyUzRG5vdCUyMGV2YWx1YXRlJTJDJTBBKQ==",highlighted:`<span class="hljs-comment"># tensorflow_datasets only handle Squad V1.</span>
tfds_examples = tfds.load(<span class="hljs-string">&quot;squad&quot;</span>)
examples = SquadV1Processor().get_examples_from_dataset(tfds_examples, evaluate=evaluate)

features = squad_convert_examples_to_features(
    examples=examples,
    tokenizer=tokenizer,
    max_seq_length=max_seq_length,
    doc_stride=args.doc_stride,
    max_query_length=max_query_length,
    is_training=<span class="hljs-keyword">not</span> evaluate,
)`,wrap:!1}}),kt=new rn({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/ja/main_classes/processors.md"}}),{c(){d=n("meta"),w=s(),v=n("p"),p=s(),f(x.$$.fragment),c=s(),T=n("p"),T.textContent=Na,wr=s(),Me=n("ul"),Me.innerHTML=Sa,Tr=s(),f(ye.$$.fragment),Cr=s(),we=n("p"),we.textContent=Fa,Pr=s(),Te=n("p"),Te.textContent=Da,Jr=s(),b=n("div"),f(Ce.$$.fragment),Js=s(),qt=n("p"),qt.textContent=Wa,Is=s(),R=n("div"),f(Pe.$$.fragment),js=s(),Et=n("p"),Et.innerHTML=Ga,Us=s(),Q=n("div"),f(Je.$$.fragment),ks=s(),zt=n("p"),zt.innerHTML=Ra,Xs=s(),q=n("div"),f(Ie.$$.fragment),Ls=s(),Ht=n("p"),Ht.textContent=Qa,Zs=s(),f(Y.$$.fragment),Vs=s(),A=n("div"),f(je.$$.fragment),qs=s(),Bt=n("p"),Bt.innerHTML=Ya,Es=s(),O=n("div"),f(Ue.$$.fragment),zs=s(),Nt=n("p"),Nt.textContent=Aa,Hs=s(),J=n("div"),f(ke.$$.fragment),Bs=s(),St=n("p"),St.innerHTML=Oa,Ns=s(),Ft=n("p"),Ft.innerHTML=Ka,Ss=s(),Dt=n("ul"),Dt.innerHTML=eo,Fs=s(),Wt=n("p"),Wt.textContent=to,Ds=s(),Gt=n("p"),Gt.innerHTML=ro,Ws=s(),f(K.$$.fragment),Gs=s(),f(ee.$$.fragment),Rs=s(),f(te.$$.fragment),Qs=Ko("\nwhich we could then pass as kwargs to `self._merge_kwargs`"),Ys=s(),E=n("div"),f(Xe.$$.fragment),As=s(),Rt=n("p"),Rt.textContent=so,Os=s(),f(re.$$.fragment),Ks=s(),z=n("div"),f(Le.$$.fragment),ea=s(),Qt=n("p"),Qt.innerHTML=ao,ta=s(),f(se.$$.fragment),ra=s(),H=n("div"),f(Ze.$$.fragment),sa=s(),Yt=n("p"),Yt.innerHTML=oo,aa=s(),f(ae.$$.fragment),oa=s(),oe=n("div"),f(Ve.$$.fragment),na=s(),At=n("p"),At.textContent=no,la=s(),ne=n("div"),f(qe.$$.fragment),ia=s(),Ot=n("p"),Ot.textContent=lo,ca=s(),le=n("div"),f(Ee.$$.fragment),da=s(),Kt=n("p"),Kt.textContent=io,Ir=s(),f(ze.$$.fragment),jr=s(),He=n("p"),He.innerHTML=co,Ur=s(),j=n("div"),f(Be.$$.fragment),ma=s(),er=n("p"),er.textContent=mo,pa=s(),ie=n("div"),f(Ne.$$.fragment),fa=s(),tr=n("p"),tr.innerHTML=po,ua=s(),ce=n("div"),f(Se.$$.fragment),ha=s(),rr=n("p"),rr.textContent=fo,ga=s(),de=n("div"),f(Fe.$$.fragment),_a=s(),sr=n("p"),sr.textContent=uo,$a=s(),me=n("div"),f(De.$$.fragment),va=s(),ar=n("p"),ar.innerHTML=ho,xa=s(),pe=n("div"),f(We.$$.fragment),ba=s(),or=n("p"),or.innerHTML=go,Ma=s(),fe=n("div"),f(Ge.$$.fragment),ya=s(),nr=n("p"),nr.textContent=_o,kr=s(),L=n("div"),f(Re.$$.fragment),wa=s(),lr=n("p"),lr.textContent=$o,Ta=s(),ue=n("div"),f(Qe.$$.fragment),Ca=s(),ir=n("p"),ir.textContent=vo,Xr=s(),Z=n("div"),f(Ye.$$.fragment),Pa=s(),cr=n("p"),cr.textContent=xo,Ja=s(),he=n("div"),f(Ae.$$.fragment),Ia=s(),dr=n("p"),dr.textContent=bo,Lr=s(),f(Oe.$$.fragment),Zr=s(),Ke=n("p"),Ke.innerHTML=Mo,Vr=s(),et=n("p"),et.textContent=yo,qr=s(),tt=n("p"),tt.textContent=wo,Er=s(),rt=n("ul"),rt.innerHTML=To,zr=s(),st=n("p"),st.innerHTML=Co,Hr=s(),S=n("div"),f(at.$$.fragment),ja=s(),mr=n("p"),mr.innerHTML=Po,Br=s(),f(ot.$$.fragment),Nr=s(),nt=n("p"),nt.innerHTML=Jo,Sr=s(),lt=n("p"),lt.innerHTML=Io,Fr=s(),it=n("p"),it.textContent=jo,Dr=s(),ct=n("ul"),ct.innerHTML=Uo,Wr=s(),dt=n("p"),dt.textContent=ko,Gr=s(),mt=n("p"),mt.innerHTML=Xo,Rr=s(),f(pt.$$.fragment),Qr=s(),ft=n("p"),ft.innerHTML=Lo,Yr=s(),ut=n("p"),ut.textContent=Zo,Ar=s(),f(ht.$$.fragment),Or=s(),gt=n("p"),gt.textContent=Vo,Kr=s(),_t=n("ul"),_t.innerHTML=qo,es=s(),$t=n("p"),$t.innerHTML=Eo,ts=s(),X=n("div"),f(vt.$$.fragment),Ua=s(),pr=n("p"),pr.textContent=zo,ka=s(),ge=n("div"),f(xt.$$.fragment),Xa=s(),fr=n("p"),fr.textContent=Ho,La=s(),B=n("div"),f(bt.$$.fragment),Za=s(),ur=n("p"),ur.innerHTML=Bo,Va=s(),f(_e.$$.fragment),qa=s(),$e=n("div"),f(Mt.$$.fragment),Ea=s(),hr=n("p"),hr.textContent=No,rs=s(),yt=n("p"),yt.innerHTML=So,ss=s(),V=n("div"),f(wt.$$.fragment),za=s(),gr=n("p"),gr.textContent=Fo,Ha=s(),f(ve.$$.fragment),as=s(),Tt=n("p"),Tt.innerHTML=Do,os=s(),f(Ct.$$.fragment),ns=s(),Pt=n("p"),Pt.textContent=Wo,ls=s(),f(Jt.$$.fragment),is=s(),It=n("p"),It.innerHTML=Go,cs=s(),f(jt.$$.fragment),ds=s(),Ut=n("p"),Ut.innerHTML=Ro,ms=s(),f(kt.$$.fragment),ps=s(),yr=n("p"),this.h()},l(e){const o=en("svelte-u9bgzb",document.head);d=l(o,"META",{name:!0,content:!0}),o.forEach(t),w=a(e),v=l(e,"P",{}),M(v).forEach(t),p=a(e),u(x.$$.fragment,e),c=a(e),T=l(e,"P",{"data-svelte-h":!0}),m(T)!=="svelte-4gs895"&&(T.textContent=Na),wr=a(e),Me=l(e,"UL",{"data-svelte-h":!0}),m(Me)!=="svelte-1h23xz2"&&(Me.innerHTML=Sa),Tr=a(e),u(ye.$$.fragment,e),Cr=a(e),we=l(e,"P",{"data-svelte-h":!0}),m(we)!=="svelte-hbbv64"&&(we.textContent=Fa),Pr=a(e),Te=l(e,"P",{"data-svelte-h":!0}),m(Te)!=="svelte-t565jj"&&(Te.textContent=Da),Jr=a(e),b=l(e,"DIV",{class:!0});var C=M(b);u(Ce.$$.fragment,C),Js=a(C),qt=l(C,"P",{"data-svelte-h":!0}),m(qt)!=="svelte-1s4wckx"&&(qt.textContent=Wa),Is=a(C),R=l(C,"DIV",{class:!0});var Xt=M(R);u(Pe.$$.fragment,Xt),js=a(Xt),Et=l(Xt,"P",{"data-svelte-h":!0}),m(Et)!=="svelte-10dqwuv"&&(Et.innerHTML=Ga),Xt.forEach(t),Us=a(C),Q=l(C,"DIV",{class:!0});var Lt=M(Q);u(Je.$$.fragment,Lt),ks=a(Lt),zt=l(Lt,"P",{"data-svelte-h":!0}),m(zt)!=="svelte-1i2d3vx"&&(zt.innerHTML=Ra),Lt.forEach(t),Xs=a(C),q=l(C,"DIV",{class:!0});var F=M(q);u(Ie.$$.fragment,F),Ls=a(F),Ht=l(F,"P",{"data-svelte-h":!0}),m(Ht)!=="svelte-1cj8dcb"&&(Ht.textContent=Qa),Zs=a(F),u(Y.$$.fragment,F),F.forEach(t),Vs=a(C),A=l(C,"DIV",{class:!0});var Zt=M(A);u(je.$$.fragment,Zt),qs=a(Zt),Bt=l(Zt,"P",{"data-svelte-h":!0}),m(Bt)!=="svelte-hsvutq"&&(Bt.innerHTML=Ya),Zt.forEach(t),Es=a(C),O=l(C,"DIV",{class:!0});var Vt=M(O);u(Ue.$$.fragment,Vt),zs=a(Vt),Nt=l(Vt,"P",{"data-svelte-h":!0}),m(Nt)!=="svelte-13etpi4"&&(Nt.textContent=Aa),Vt.forEach(t),Hs=a(C),J=l(C,"DIV",{class:!0});var I=M(J);u(ke.$$.fragment,I),Bs=a(I),St=l(I,"P",{"data-svelte-h":!0}),m(St)!=="svelte-1s01p9s"&&(St.innerHTML=Oa),Ns=a(I),Ft=l(I,"P",{"data-svelte-h":!0}),m(Ft)!=="svelte-14s9qj8"&&(Ft.innerHTML=Ka),Ss=a(I),Dt=l(I,"UL",{"data-svelte-h":!0}),m(Dt)!=="svelte-1wgd4o3"&&(Dt.innerHTML=eo),Fs=a(I),Wt=l(I,"P",{"data-svelte-h":!0}),m(Wt)!=="svelte-p5jl0d"&&(Wt.textContent=to),Ds=a(I),Gt=l(I,"P",{"data-svelte-h":!0}),m(Gt)!=="svelte-tdqt7p"&&(Gt.innerHTML=ro),Ws=a(I),u(K.$$.fragment,I),Gs=a(I),u(ee.$$.fragment,I),Rs=a(I),u(te.$$.fragment,I),Qs=tn(I,"\nwhich we could then pass as kwargs to `self._merge_kwargs`"),I.forEach(t),Ys=a(C),E=l(C,"DIV",{class:!0});var D=M(E);u(Xe.$$.fragment,D),As=a(D),Rt=l(D,"P",{"data-svelte-h":!0}),m(Rt)!=="svelte-1cwsjho"&&(Rt.textContent=so),Os=a(D),u(re.$$.fragment,D),D.forEach(t),Ks=a(C),z=l(C,"DIV",{class:!0});var W=M(z);u(Le.$$.fragment,W),ea=a(W),Qt=l(W,"P",{"data-svelte-h":!0}),m(Qt)!=="svelte-hhsvto"&&(Qt.innerHTML=ao),ta=a(W),u(se.$$.fragment,W),W.forEach(t),ra=a(C),H=l(C,"DIV",{class:!0});var _r=M(H);u(Ze.$$.fragment,_r),sa=a(_r),Yt=l(_r,"P",{"data-svelte-h":!0}),m(Yt)!=="svelte-1yuddp1"&&(Yt.innerHTML=oo),aa=a(_r),u(ae.$$.fragment,_r),_r.forEach(t),oa=a(C),oe=l(C,"DIV",{class:!0});var us=M(oe);u(Ve.$$.fragment,us),na=a(us),At=l(us,"P",{"data-svelte-h":!0}),m(At)!=="svelte-1ww3wqq"&&(At.textContent=no),us.forEach(t),la=a(C),ne=l(C,"DIV",{class:!0});var hs=M(ne);u(qe.$$.fragment,hs),ia=a(hs),Ot=l(hs,"P",{"data-svelte-h":!0}),m(Ot)!=="svelte-1g70y32"&&(Ot.textContent=lo),hs.forEach(t),ca=a(C),le=l(C,"DIV",{class:!0});var gs=M(le);u(Ee.$$.fragment,gs),da=a(gs),Kt=l(gs,"P",{"data-svelte-h":!0}),m(Kt)!=="svelte-5ayq1f"&&(Kt.textContent=io),gs.forEach(t),C.forEach(t),Ir=a(e),u(ze.$$.fragment,e),jr=a(e),He=l(e,"P",{"data-svelte-h":!0}),m(He)!=="svelte-g98oo1"&&(He.innerHTML=co),Ur=a(e),j=l(e,"DIV",{class:!0});var k=M(j);u(Be.$$.fragment,k),ma=a(k),er=l(k,"P",{"data-svelte-h":!0}),m(er)!=="svelte-1bsw04k"&&(er.textContent=mo),pa=a(k),ie=l(k,"DIV",{class:!0});var _s=M(ie);u(Ne.$$.fragment,_s),fa=a(_s),tr=l(_s,"P",{"data-svelte-h":!0}),m(tr)!=="svelte-1szdena"&&(tr.innerHTML=po),_s.forEach(t),ua=a(k),ce=l(k,"DIV",{class:!0});var $s=M(ce);u(Se.$$.fragment,$s),ha=a($s),rr=l($s,"P",{"data-svelte-h":!0}),m(rr)!=="svelte-pplryq"&&(rr.textContent=fo),$s.forEach(t),ga=a(k),de=l(k,"DIV",{class:!0});var vs=M(de);u(Fe.$$.fragment,vs),_a=a(vs),sr=l(vs,"P",{"data-svelte-h":!0}),m(sr)!=="svelte-3oqyjr"&&(sr.textContent=uo),vs.forEach(t),$a=a(k),me=l(k,"DIV",{class:!0});var xs=M(me);u(De.$$.fragment,xs),va=a(xs),ar=l(xs,"P",{"data-svelte-h":!0}),m(ar)!=="svelte-6j503t"&&(ar.innerHTML=ho),xs.forEach(t),xa=a(k),pe=l(k,"DIV",{class:!0});var bs=M(pe);u(We.$$.fragment,bs),ba=a(bs),or=l(bs,"P",{"data-svelte-h":!0}),m(or)!=="svelte-w0fgcv"&&(or.innerHTML=go),bs.forEach(t),Ma=a(k),fe=l(k,"DIV",{class:!0});var Ms=M(fe);u(Ge.$$.fragment,Ms),ya=a(Ms),nr=l(Ms,"P",{"data-svelte-h":!0}),m(nr)!=="svelte-1jevh15"&&(nr.textContent=_o),Ms.forEach(t),k.forEach(t),kr=a(e),L=l(e,"DIV",{class:!0});var $r=M(L);u(Re.$$.fragment,$r),wa=a($r),lr=l($r,"P",{"data-svelte-h":!0}),m(lr)!=="svelte-vkt0pi"&&(lr.textContent=$o),Ta=a($r),ue=l($r,"DIV",{class:!0});var ys=M(ue);u(Qe.$$.fragment,ys),Ca=a(ys),ir=l(ys,"P",{"data-svelte-h":!0}),m(ir)!=="svelte-5ayq1f"&&(ir.textContent=vo),ys.forEach(t),$r.forEach(t),Xr=a(e),Z=l(e,"DIV",{class:!0});var vr=M(Z);u(Ye.$$.fragment,vr),Pa=a(vr),cr=l(vr,"P",{"data-svelte-h":!0}),m(cr)!=="svelte-168wf64"&&(cr.textContent=xo),Ja=a(vr),he=l(vr,"DIV",{class:!0});var ws=M(he);u(Ae.$$.fragment,ws),Ia=a(ws),dr=l(ws,"P",{"data-svelte-h":!0}),m(dr)!=="svelte-5ayq1f"&&(dr.textContent=bo),ws.forEach(t),vr.forEach(t),Lr=a(e),u(Oe.$$.fragment,e),Zr=a(e),Ke=l(e,"P",{"data-svelte-h":!0}),m(Ke)!=="svelte-dz9ydi"&&(Ke.innerHTML=Mo),Vr=a(e),et=l(e,"P",{"data-svelte-h":!0}),m(et)!=="svelte-1lukeag"&&(et.textContent=yo),qr=a(e),tt=l(e,"P",{"data-svelte-h":!0}),m(tt)!=="svelte-w2nqkz"&&(tt.textContent=wo),Er=a(e),rt=l(e,"UL",{"data-svelte-h":!0}),m(rt)!=="svelte-my8qym"&&(rt.innerHTML=To),zr=a(e),st=l(e,"P",{"data-svelte-h":!0}),m(st)!=="svelte-1j6tfx9"&&(st.innerHTML=Co),Hr=a(e),S=l(e,"DIV",{class:!0});var Ts=M(S);u(at.$$.fragment,Ts),ja=a(Ts),mr=l(Ts,"P",{"data-svelte-h":!0}),m(mr)!=="svelte-5lvrve"&&(mr.innerHTML=Po),Ts.forEach(t),Br=a(e),u(ot.$$.fragment,e),Nr=a(e),nt=l(e,"P",{"data-svelte-h":!0}),m(nt)!=="svelte-1cfncyx"&&(nt.innerHTML=Jo),Sr=a(e),lt=l(e,"P",{"data-svelte-h":!0}),m(lt)!=="svelte-10048a6"&&(lt.innerHTML=Io),Fr=a(e),it=l(e,"P",{"data-svelte-h":!0}),m(it)!=="svelte-1z0bn35"&&(it.textContent=jo),Dr=a(e),ct=l(e,"UL",{"data-svelte-h":!0}),m(ct)!=="svelte-1e2xq99"&&(ct.innerHTML=Uo),Wr=a(e),dt=l(e,"P",{"data-svelte-h":!0}),m(dt)!=="svelte-1d3nf11"&&(dt.textContent=ko),Gr=a(e),mt=l(e,"P",{"data-svelte-h":!0}),m(mt)!=="svelte-7zvs7i"&&(mt.innerHTML=Xo),Rr=a(e),u(pt.$$.fragment,e),Qr=a(e),ft=l(e,"P",{"data-svelte-h":!0}),m(ft)!=="svelte-5cjvlv"&&(ft.innerHTML=Lo),Yr=a(e),ut=l(e,"P",{"data-svelte-h":!0}),m(ut)!=="svelte-10uynke"&&(ut.textContent=Zo),Ar=a(e),u(ht.$$.fragment,e),Or=a(e),gt=l(e,"P",{"data-svelte-h":!0}),m(gt)!=="svelte-w2nqkz"&&(gt.textContent=Vo),Kr=a(e),_t=l(e,"UL",{"data-svelte-h":!0}),m(_t)!=="svelte-1qiv3qf"&&(_t.innerHTML=qo),es=a(e),$t=l(e,"P",{"data-svelte-h":!0}),m($t)!=="svelte-ii491f"&&($t.innerHTML=Eo),ts=a(e),X=l(e,"DIV",{class:!0});var N=M(X);u(vt.$$.fragment,N),Ua=a(N),pr=l(N,"P",{"data-svelte-h":!0}),m(pr)!=="svelte-173gxyd"&&(pr.textContent=zo),ka=a(N),ge=l(N,"DIV",{class:!0});var Cs=M(ge);u(xt.$$.fragment,Cs),Xa=a(Cs),fr=l(Cs,"P",{"data-svelte-h":!0}),m(fr)!=="svelte-wmaktk"&&(fr.textContent=Ho),Cs.forEach(t),La=a(N),B=l(N,"DIV",{class:!0});var xr=M(B);u(bt.$$.fragment,xr),Za=a(xr),ur=l(xr,"P",{"data-svelte-h":!0}),m(ur)!=="svelte-11nqnea"&&(ur.innerHTML=Bo),Va=a(xr),u(_e.$$.fragment,xr),xr.forEach(t),qa=a(N),$e=l(N,"DIV",{class:!0});var Ps=M($e);u(Mt.$$.fragment,Ps),Ea=a(Ps),hr=l(Ps,"P",{"data-svelte-h":!0}),m(hr)!=="svelte-d5zv1x"&&(hr.textContent=No),Ps.forEach(t),N.forEach(t),rs=a(e),yt=l(e,"P",{"data-svelte-h":!0}),m(yt)!=="svelte-18mz77q"&&(yt.innerHTML=So),ss=a(e),V=l(e,"DIV",{class:!0});var br=M(V);u(wt.$$.fragment,br),za=a(br),gr=l(br,"P",{"data-svelte-h":!0}),m(gr)!=="svelte-169nh0g"&&(gr.textContent=Fo),Ha=a(br),u(ve.$$.fragment,br),br.forEach(t),as=a(e),Tt=l(e,"P",{"data-svelte-h":!0}),m(Tt)!=="svelte-1esudax"&&(Tt.innerHTML=Do),os=a(e),u(Ct.$$.fragment,e),ns=a(e),Pt=l(e,"P",{"data-svelte-h":!0}),m(Pt)!=="svelte-3glna9"&&(Pt.textContent=Wo),ls=a(e),u(Jt.$$.fragment,e),is=a(e),It=l(e,"P",{"data-svelte-h":!0}),m(It)!=="svelte-jzuhjq"&&(It.innerHTML=Go),cs=a(e),u(jt.$$.fragment,e),ds=a(e),Ut=l(e,"P",{"data-svelte-h":!0}),m(Ut)!=="svelte-fac3c8"&&(Ut.innerHTML=Ro),ms=a(e),u(kt.$$.fragment,e),ps=a(e),yr=l(e,"P",{}),M(yr).forEach(t),this.h()},h(){y(d,"name","hf:doc:metadata"),y(d,"content",un),y(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(b,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(he,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y($e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(V,"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,o){r(document.head,d),i(e,w,o),i(e,v,o),i(e,p,o),h(x,e,o),i(e,c,o),i(e,T,o),i(e,wr,o),i(e,Me,o),i(e,Tr,o),h(ye,e,o),i(e,Cr,o),i(e,we,o),i(e,Pr,o),i(e,Te,o),i(e,Jr,o),i(e,b,o),h(Ce,b,null),r(b,Js),r(b,qt),r(b,Is),r(b,R),h(Pe,R,null),r(R,js),r(R,Et),r(b,Us),r(b,Q),h(Je,Q,null),r(Q,ks),r(Q,zt),r(b,Xs),r(b,q),h(Ie,q,null),r(q,Ls),r(q,Ht),r(q,Zs),h(Y,q,null),r(b,Vs),r(b,A),h(je,A,null),r(A,qs),r(A,Bt),r(b,Es),r(b,O),h(Ue,O,null),r(O,zs),r(O,Nt),r(b,Hs),r(b,J),h(ke,J,null),r(J,Bs),r(J,St),r(J,Ns),r(J,Ft),r(J,Ss),r(J,Dt),r(J,Fs),r(J,Wt),r(J,Ds),r(J,Gt),r(J,Ws),h(K,J,null),r(J,Gs),h(ee,J,null),r(J,Rs),h(te,J,null),r(J,Qs),r(b,Ys),r(b,E),h(Xe,E,null),r(E,As),r(E,Rt),r(E,Os),h(re,E,null),r(b,Ks),r(b,z),h(Le,z,null),r(z,ea),r(z,Qt),r(z,ta),h(se,z,null),r(b,ra),r(b,H),h(Ze,H,null),r(H,sa),r(H,Yt),r(H,aa),h(ae,H,null),r(b,oa),r(b,oe),h(Ve,oe,null),r(oe,na),r(oe,At),r(b,la),r(b,ne),h(qe,ne,null),r(ne,ia),r(ne,Ot),r(b,ca),r(b,le),h(Ee,le,null),r(le,da),r(le,Kt),i(e,Ir,o),h(ze,e,o),i(e,jr,o),i(e,He,o),i(e,Ur,o),i(e,j,o),h(Be,j,null),r(j,ma),r(j,er),r(j,pa),r(j,ie),h(Ne,ie,null),r(ie,fa),r(ie,tr),r(j,ua),r(j,ce),h(Se,ce,null),r(ce,ha),r(ce,rr),r(j,ga),r(j,de),h(Fe,de,null),r(de,_a),r(de,sr),r(j,$a),r(j,me),h(De,me,null),r(me,va),r(me,ar),r(j,xa),r(j,pe),h(We,pe,null),r(pe,ba),r(pe,or),r(j,Ma),r(j,fe),h(Ge,fe,null),r(fe,ya),r(fe,nr),i(e,kr,o),i(e,L,o),h(Re,L,null),r(L,wa),r(L,lr),r(L,Ta),r(L,ue),h(Qe,ue,null),r(ue,Ca),r(ue,ir),i(e,Xr,o),i(e,Z,o),h(Ye,Z,null),r(Z,Pa),r(Z,cr),r(Z,Ja),r(Z,he),h(Ae,he,null),r(he,Ia),r(he,dr),i(e,Lr,o),h(Oe,e,o),i(e,Zr,o),i(e,Ke,o),i(e,Vr,o),i(e,et,o),i(e,qr,o),i(e,tt,o),i(e,Er,o),i(e,rt,o),i(e,zr,o),i(e,st,o),i(e,Hr,o),i(e,S,o),h(at,S,null),r(S,ja),r(S,mr),i(e,Br,o),h(ot,e,o),i(e,Nr,o),i(e,nt,o),i(e,Sr,o),i(e,lt,o),i(e,Fr,o),i(e,it,o),i(e,Dr,o),i(e,ct,o),i(e,Wr,o),i(e,dt,o),i(e,Gr,o),i(e,mt,o),i(e,Rr,o),h(pt,e,o),i(e,Qr,o),i(e,ft,o),i(e,Yr,o),i(e,ut,o),i(e,Ar,o),h(ht,e,o),i(e,Or,o),i(e,gt,o),i(e,Kr,o),i(e,_t,o),i(e,es,o),i(e,$t,o),i(e,ts,o),i(e,X,o),h(vt,X,null),r(X,Ua),r(X,pr),r(X,ka),r(X,ge),h(xt,ge,null),r(ge,Xa),r(ge,fr),r(X,La),r(X,B),h(bt,B,null),r(B,Za),r(B,ur),r(B,Va),h(_e,B,null),r(X,qa),r(X,$e),h(Mt,$e,null),r($e,Ea),r($e,hr),i(e,rs,o),i(e,yt,o),i(e,ss,o),i(e,V,o),h(wt,V,null),r(V,za),r(V,gr),r(V,Ha),h(ve,V,null),i(e,as,o),i(e,Tt,o),i(e,os,o),h(Ct,e,o),i(e,ns,o),i(e,Pt,o),i(e,ls,o),h(Jt,e,o),i(e,is,o),i(e,It,o),i(e,cs,o),h(jt,e,o),i(e,ds,o),i(e,Ut,o),i(e,ms,o),h(kt,e,o),i(e,ps,o),i(e,yr,o),fs=!0},p(e,[o]){const C={};o&2&&(C.$$scope={dirty:o,ctx:e}),Y.$set(C);const Xt={};o&2&&(Xt.$$scope={dirty:o,ctx:e}),K.$set(Xt);const Lt={};o&2&&(Lt.$$scope={dirty:o,ctx:e}),ee.$set(Lt);const F={};o&2&&(F.$$scope={dirty:o,ctx:e}),te.$set(F);const Zt={};o&2&&(Zt.$$scope={dirty:o,ctx:e}),re.$set(Zt);const Vt={};o&2&&(Vt.$$scope={dirty:o,ctx:e}),se.$set(Vt);const I={};o&2&&(I.$$scope={dirty:o,ctx:e}),ae.$set(I);const D={};o&2&&(D.$$scope={dirty:o,ctx:e}),_e.$set(D);const W={};o&2&&(W.$$scope={dirty:o,ctx:e}),ve.$set(W)},i(e){fs||(g(x.$$.fragment,e),g(ye.$$.fragment,e),g(Ce.$$.fragment,e),g(Pe.$$.fragment,e),g(Je.$$.fragment,e),g(Ie.$$.fragment,e),g(Y.$$.fragment,e),g(je.$$.fragment,e),g(Ue.$$.fragment,e),g(ke.$$.fragment,e),g(K.$$.fragment,e),g(ee.$$.fragment,e),g(te.$$.fragment,e),g(Xe.$$.fragment,e),g(re.$$.fragment,e),g(Le.$$.fragment,e),g(se.$$.fragment,e),g(Ze.$$.fragment,e),g(ae.$$.fragment,e),g(Ve.$$.fragment,e),g(qe.$$.fragment,e),g(Ee.$$.fragment,e),g(ze.$$.fragment,e),g(Be.$$.fragment,e),g(Ne.$$.fragment,e),g(Se.$$.fragment,e),g(Fe.$$.fragment,e),g(De.$$.fragment,e),g(We.$$.fragment,e),g(Ge.$$.fragment,e),g(Re.$$.fragment,e),g(Qe.$$.fragment,e),g(Ye.$$.fragment,e),g(Ae.$$.fragment,e),g(Oe.$$.fragment,e),g(at.$$.fragment,e),g(ot.$$.fragment,e),g(pt.$$.fragment,e),g(ht.$$.fragment,e),g(vt.$$.fragment,e),g(xt.$$.fragment,e),g(bt.$$.fragment,e),g(_e.$$.fragment,e),g(Mt.$$.fragment,e),g(wt.$$.fragment,e),g(ve.$$.fragment,e),g(Ct.$$.fragment,e),g(Jt.$$.fragment,e),g(jt.$$.fragment,e),g(kt.$$.fragment,e),fs=!0)},o(e){_(x.$$.fragment,e),_(ye.$$.fragment,e),_(Ce.$$.fragment,e),_(Pe.$$.fragment,e),_(Je.$$.fragment,e),_(Ie.$$.fragment,e),_(Y.$$.fragment,e),_(je.$$.fragment,e),_(Ue.$$.fragment,e),_(ke.$$.fragment,e),_(K.$$.fragment,e),_(ee.$$.fragment,e),_(te.$$.fragment,e),_(Xe.$$.fragment,e),_(re.$$.fragment,e),_(Le.$$.fragment,e),_(se.$$.fragment,e),_(Ze.$$.fragment,e),_(ae.$$.fragment,e),_(Ve.$$.fragment,e),_(qe.$$.fragment,e),_(Ee.$$.fragment,e),_(ze.$$.fragment,e),_(Be.$$.fragment,e),_(Ne.$$.fragment,e),_(Se.$$.fragment,e),_(Fe.$$.fragment,e),_(De.$$.fragment,e),_(We.$$.fragment,e),_(Ge.$$.fragment,e),_(Re.$$.fragment,e),_(Qe.$$.fragment,e),_(Ye.$$.fragment,e),_(Ae.$$.fragment,e),_(Oe.$$.fragment,e),_(at.$$.fragment,e),_(ot.$$.fragment,e),_(pt.$$.fragment,e),_(ht.$$.fragment,e),_(vt.$$.fragment,e),_(xt.$$.fragment,e),_(bt.$$.fragment,e),_(_e.$$.fragment,e),_(Mt.$$.fragment,e),_(wt.$$.fragment,e),_(ve.$$.fragment,e),_(Ct.$$.fragment,e),_(Jt.$$.fragment,e),_(jt.$$.fragment,e),_(kt.$$.fragment,e),fs=!1},d(e){e&&(t(w),t(v),t(p),t(c),t(T),t(wr),t(Me),t(Tr),t(Cr),t(we),t(Pr),t(Te),t(Jr),t(b),t(Ir),t(jr),t(He),t(Ur),t(j),t(kr),t(L),t(Xr),t(Z),t(Lr),t(Zr),t(Ke),t(Vr),t(et),t(qr),t(tt),t(Er),t(rt),t(zr),t(st),t(Hr),t(S),t(Br),t(Nr),t(nt),t(Sr),t(lt),t(Fr),t(it),t(Dr),t(ct),t(Wr),t(dt),t(Gr),t(mt),t(Rr),t(Qr),t(ft),t(Yr),t(ut),t(Ar),t(Or),t(gt),t(Kr),t(_t),t(es),t($t),t(ts),t(X),t(rs),t(yt),t(ss),t(V),t(as),t(Tt),t(os),t(ns),t(Pt),t(ls),t(is),t(It),t(cs),t(ds),t(Ut),t(ms),t(ps),t(yr)),t(d),$(x,e),$(ye,e),$(Ce),$(Pe),$(Je),$(Ie),$(Y),$(je),$(Ue),$(ke),$(K),$(ee),$(te),$(Xe),$(re),$(Le),$(se),$(Ze),$(ae),$(Ve),$(qe),$(Ee),$(ze,e),$(Be),$(Ne),$(Se),$(Fe),$(De),$(We),$(Ge),$(Re),$(Qe),$(Ye),$(Ae),$(Oe,e),$(at),$(ot,e),$(pt,e),$(ht,e),$(vt),$(xt),$(bt),$(_e),$(Mt),$(wt),$(ve),$(Ct,e),$(Jt,e),$(jt,e),$(kt,e)}}}const un='{"title":"Processors","local":"processors","sections":[{"title":"Multi-modal processors","local":"transformers.ProcessorMixin","sections":[],"depth":2},{"title":"Deprecated processors","local":"transformers.DataProcessor","sections":[],"depth":2},{"title":"GLUE","local":"transformers.glue_convert_examples_to_features","sections":[],"depth":2},{"title":"XNLI","local":"xnli","sections":[],"depth":2},{"title":"SQuAD","local":"squad","sections":[{"title":"Processors","local":"transformers.data.processors.squad.SquadProcessor","sections":[],"depth":3},{"title":"Example usage","local":"example-usage","sections":[],"depth":3}],"depth":2}],"depth":1}';function hn(U){return Yo(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class yn extends Ao{constructor(d){super(),Oo(this,d,hn,fn,Qo,{})}}export{yn as component};
