import{s as Q,n as G,o as I}from"../chunks/scheduler.37c15a92.js";import{S as K,i as O,g as r,s as n,r as M,A as V,h as i,f as l,c as o,j as F,u as z,x,k as J,y as W,a,v as A,d as H,t as q,w as S}from"../chunks/index.2bf4358c.js";import{Y as X}from"../chunks/Youtube.1e50a667.js";import{C as Z}from"../chunks/CourseFloatingBanner.06521e8b.js";import{H as tt}from"../chunks/Heading.8ada512a.js";function et(U){let s,C,d,v,m,w,f,P,p,b,u,j="“编码器”模型指仅使用编码器的Transformer模型。在每个阶段，注意力层都可以获取初始句子中的所有单词。这些模型通常具有“双向”注意力，被称为自编码模型。",E,c,k="这些模型的预训练通常围绕着以某种方式破坏给定的句子（例如：通过随机遮盖其中的单词），并让模型寻找或重建给定的句子。",T,h,N="“编码器”模型最适合于需要理解完整句子的任务，例如：句子分类、命名实体识别（以及更普遍的单词分类）和阅读理解后回答问题。",R,_,Y="该系列模型的典型代表有：",y,$,D='<li><a href="https://huggingface.co/transformers/model_doc/albert.html" rel="nofollow">ALBERT</a></li> <li><a href="https://huggingface.co/transformers/model_doc/bert.html" rel="nofollow">BERT</a></li> <li><a href="https://huggingface.co/transformers/model_doc/distilbert.html" rel="nofollow">DistilBERT</a></li> <li><a href="https://huggingface.co/transformers/model_doc/electra.html" rel="nofollow">ELECTRA</a></li> <li><a href="https://huggingface.co/transformers/model_doc/roberta.html" rel="nofollow">RoBERTa</a></li>',L,g,B;return m=new tt({props:{title:"“编码器”模型",local:"“编码器”模型",headingTag:"h1"}}),f=new Z({props:{chapter:1,classNames:"absolute z-10 right-0 top-0"}}),p=new X({props:{id:"MUqNwgPjJvQ"}}),{c(){s=r("meta"),C=n(),d=r("p"),v=n(),M(m.$$.fragment),w=n(),M(f.$$.fragment),P=n(),M(p.$$.fragment),b=n(),u=r("p"),u.textContent=j,E=n(),c=r("p"),c.textContent=k,T=n(),h=r("p"),h.textContent=N,R=n(),_=r("p"),_.textContent=Y,y=n(),$=r("ul"),$.innerHTML=D,L=n(),g=r("p"),this.h()},l(t){const e=V("svelte-u9bgzb",document.head);s=i(e,"META",{name:!0,content:!0}),e.forEach(l),C=o(t),d=i(t,"P",{}),F(d).forEach(l),v=o(t),z(m.$$.fragment,t),w=o(t),z(f.$$.fragment,t),P=o(t),z(p.$$.fragment,t),b=o(t),u=i(t,"P",{"data-svelte-h":!0}),x(u)!=="svelte-19lexn2"&&(u.textContent=j),E=o(t),c=i(t,"P",{"data-svelte-h":!0}),x(c)!=="svelte-17pl5uc"&&(c.textContent=k),T=o(t),h=i(t,"P",{"data-svelte-h":!0}),x(h)!=="svelte-i2ws9u"&&(h.textContent=N),R=o(t),_=i(t,"P",{"data-svelte-h":!0}),x(_)!=="svelte-rgo3yq"&&(_.textContent=Y),y=o(t),$=i(t,"UL",{"data-svelte-h":!0}),x($)!=="svelte-18kzzol"&&($.innerHTML=D),L=o(t),g=i(t,"P",{}),F(g).forEach(l),this.h()},h(){J(s,"name","hf:doc:metadata"),J(s,"content",lt)},m(t,e){W(document.head,s),a(t,C,e),a(t,d,e),a(t,v,e),A(m,t,e),a(t,w,e),A(f,t,e),a(t,P,e),A(p,t,e),a(t,b,e),a(t,u,e),a(t,E,e),a(t,c,e),a(t,T,e),a(t,h,e),a(t,R,e),a(t,_,e),a(t,y,e),a(t,$,e),a(t,L,e),a(t,g,e),B=!0},p:G,i(t){B||(H(m.$$.fragment,t),H(f.$$.fragment,t),H(p.$$.fragment,t),B=!0)},o(t){q(m.$$.fragment,t),q(f.$$.fragment,t),q(p.$$.fragment,t),B=!1},d(t){t&&(l(C),l(d),l(v),l(w),l(P),l(b),l(u),l(E),l(c),l(T),l(h),l(R),l(_),l(y),l($),l(L),l(g)),l(s),S(m,t),S(f,t),S(p,t)}}}const lt='{"title":"“编码器”模型","local":"“编码器”模型","sections":[],"depth":1}';function at(U){return I(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class mt extends K{constructor(s){super(),O(this,s,at,et,Q,{})}}export{mt as component};
