Files
INTUIA/Programa final/spacy/training/__pycache__/initialize.cpython-312.pyc
T

118 lines
19 KiB
Plaintext
Raw Normal View History

2026-03-15 13:27:50 +00:00
Ë
?û gª8ãóZddlZddlZddlZddlZddlmZddlmZddlm Z m
Z
m Z m Z m
Z
mZddlZddlZddlZddlmZmZmZmZddlmZmZddlmZdd lmZdd
lmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'dd l(m)Z*dd l(m+Z+d
dl,m-Z-e
rddl.m/Z/ddœdede0ddfdZ1ddddœddde
ede
ede
e2ddf
dZ3ddœdddee2efd e4ddfd!„Z5ddd"e e2e fd#e e2e fde4fd$„Z6de*jnd%d&œddd'e
ed(e0d)e0de
e2d*e2d+e2ddfd,„Z8e*jnd-œd'ed.e0d*e2fd/„Z9d0ee2efde fd1„Z:d2„Z;y)3éÚislice)ÚPath)ÚIOÚ
TYPE_CHECKINGÚAnyÚDictÚOptionalÚUnion)ÚConfigÚConfigValidationErrorÚfix_random_seedÚset_gpu_allocatoré)ÚErrorsÚWarnings)ÚLookups)ÚConfigSchemaTraining) ÚDEFAULT_OOV_PROBÚOOV_RANKÚ ensure_pathÚget_sourced_componentsÚ
load_modelÚload_model_from_configÚloggerÚregistryÚresolve_dot_names)ÚMode)ÚVectorsé)Úget_tok2vec_ref)ÚLanguageéÿÿÿÿ)Úuse_gpuÚconfigr$Úreturnr"c óh|}|j«}d|dvr)ttjj d¬««d|dvr)ttjj d¬««|ddt |dd«|dd}|dk\r
|r t
|«t|«}t|d¬ «Štjd
«jj«}tj|dt¬ «}|d |d
g}t|d t «s7t#tj$j dt'|d «¬«¬«t|d
t «s7t#tj$j dt'|d
«¬«¬«t)||«\Š}|d}|d} |D
cgc] }
|
| vsŒ|
Œ } }
tjdj*«| rC‰j-| ¬«5tjd| «j/|¬«ddd«j1«j-g| ¢| ¢¬«5|ddk(r1dŠtj2d«j5ˆˆˆfd|¬«nj5ˆˆfd|¬«tjdj*«ddd«j6D\} }
t9|
d g«D]“}|j*vrŒ|| vr8| | vr4tj:t<j>j | |¬!««|| vsŒS| | vsŒX| |d"vsŒ`tj:t<j@j | |¬!««Œ•ŒªScc}
w#1swYŒgxYw#1swYŒÔxYw)#NÚseedÚtrainingz[training] seed)ÚvalueÚ
gpu_allocatorz[training] gpu_allocatorrT)Ú auto_fillzSet up nlp object from config)ÚschemaÚ train_corpusÚ
dev_corpusztraining.train_corpus)ÚfieldÚtype)Údescztraining.dev_corpusÚ optimizerÚfrozen_componentsz Pipeline: %s)ÚenablezResuming training for: %s)Úsgd©ÚdisableÚ
max_epochsr#édz°Due to streamed train corpus, using only first %s examples for initialization. If necessary, provide all labels in [initialize]. More info: https://spacy.io/api/cli#init_labelscó(t««S©Nr)ÚnlpÚ sample_sizer.s€€€úZC:\Users\garci\AppData\Roaming\Python\Python312\site-packages\spacy/training/initialize.pyú<lambda>zinit_nlp.<locals>.<lambda>\sø€œ™|¨CÓ0°+Ôcó«Sr<©)r=r.s€€r?r@zinit_nlp.<locals>.<lambda>_s
ø€¡<°Ô#4rAz#Initialized pipeline components: %sÚlistening_components)ÚnameÚlistenerÚannotating_components)!Ú interpolateÚ
ValueErrorrÚE1015ÚformatrrrrrÚinfor%rÚresolverÚ
isinstanceÚstrr
ÚE897r1rÚ
pipe_namesÚ select_pipesÚresume_trainingÚ_link_componentsÚdebugÚ
initializeÚpipelineÚgetattrÚwarningrÚW087ÚW086)r%r$Ú
raw_configÚ allocatorÚsourcedÚTÚ dot_namesr/r3r4Úresume_componentsrEÚprocrFr=r>r.s @@@r?Úinit_nlprd$s‰ú€Ø€JØ
×
%€FØ
V˜œŸ×,Ð3DИf ZÑœŸ×,Ð3MÐ
ˆ˜&ј˜zÑ*¨6Ñ" 3€IØ!|™ ܘ$ VÓ,€GÜ
 °tÔ
<€CÜ
‡K
Z‰Z×
%€Fä×ј 
Ñ+Ô4HÔI€AØ" A l¡OÐ4€IÜ a˜ÑÔ ×-´D¸¸>Ñ9JÓ4Kðô
ð
ô
 ‘o¤sÔ ×+´$°q¸±Ó2Gðô
ð
ô
¸Ó€L+‘€IàÐá$+ÓJ¡G˜q¨qÐ8IÒ/Iš Ð
‡KK §¡ÔØ
×
Ñ
Ð%6Ð
Õ
K‰KÐ3Ð5FÔ × Ñ  IÐ Ô 
×ÑÔØ × Ñ Ð"JÐ$5Ð"JÐ8IÐ"JÐ Õ KØ ˆ\‰?˜ ؈KÜ L‰LðBðô 
ð
N‰NÝ>ÀIð
õ
ð
N‰NÔ4¸)ˆNÔ  Ð9¸3¿>¹>Ô
Lð —l”l‰
ˆˆdÜØ Ð(¨"ö
ˆHð˜sŸ~™~ÑØÐÐ=NÑ1NÜœxŸ}™}×ÈÐÐ0°TÐ=NÒ5NؘqÐ!8Ñ—NN¤8§=¡=×#7Ñ#7¸TÈHÐ#7Ó#UÕ
ð €JùòMK÷
7ú÷
LÐ Kús%Ç NÇNÈ
)NÉ$A1N(ÎN%Î(N1)ÚdataÚlookupsÚvectorsr=rerfrgcól|r@||j_tjddj |j
««t
|«}|ìtj|«}|jD]
}t|_
Œ|D]+}d|vrŒ|j|d}|jdi|¤ŽŒ-t|j«r td|jD««dz
}nt}|jjj!d|i«tjdt|j««tjd «|"t#||«tjd
|«|j$j'd i«} t| «d kDrt)|jj*j-d
g¬««}
| j/«D]>\} } |
| k7sŒ t1j2t4j6j9| ¬««Œ@tjd«y)NzAdded vocab lookups: %sz, ÚsettingsÚorthc3ó4K|]}|jŒy­wr<)Úprob)Ú.0Úlexs r?ú <genexpr>zinit_vocab.<locals>.<genexpr>‡sèø€Ð9©y¨˜3Ÿ88©yùsr Úoov_probz%Added %d lexical entries to the vocabzCreated vocabularyzAdded vectors: %sÚ_sourced_vectors_hashesrÚstrings)Úexclude©rEz Finished initializing nlp objectrC)ÚvocabrfrrLÚjoinÚtablesrÚsrslyÚ
read_jsonlrÚrankÚ set_attrsÚlenÚminrÚcfgÚupdateÚload_vectors_into_modelÚmetaÚpopÚhashrgÚto_bytesÚitemsÚwarningsÚwarnrÚW113rK)
r=rerfrgÚ data_pathÚ lex_attrsÚlexemeÚattrsrpÚsourced_vectors_hashesÚ vectors_hashÚsourced_componentÚsourced_vectors_hashs
r?Ú
init_vocabrrñØ ‰ ÔÜ Ð-¨t¯y©y¸¿¹Ó/HÔ˜DÓ!€IØÐÜ×$ YÓ/ˆ Ø—i”iˆ"ˆF ㈘ؗY‘Y˜u V™}Ñ-ˆFØ ˆF× Ñ Ñ %˜uÓ ô
ˆsy‰yŒ>ÜÑ9¨s¯yªyÓ9¸=‰Hä'ˆ
×јj¨(Ð Ð;¼SÀÇÁ»^Ô
‡KÐÜ   ÐÔ ŸX™XŸ\™\Ð*CÀRÓÜ
Ð " ˜CŸI™I×-×6À ¸{ÐLˆ Ø7M×7SÑ7SÖ7UÑ ÐÐ
œhŸm™m×2Ð8IÐ8Vô ‡K3rAT)Ú add_stringsrErcóF dg}|s|jd«t||j|¬«}t |jj j««dk(r1|jj jtjk7sW|jj jddk(rd|jj jtjk(r3tjtjj!|¬ ««|jD]E} |jj j"j%| j&t(«| _ŒGy#t$r'}d|}d}tj|||¬«}|dd}~wwxYw)
zHLoad word vectors from an installed model or path into a model instance.rfrr)rursz$Config validation error for vectors zÄThis typically means that there's a problem in the config.cfg included with the packaged vectors. Make sure that the vectors package you're loading is compatible with the current version of spaCy.)Útitler2Nrrt)Úappendrrur
Ú
from_errorr|rgÚkeysÚmodeÚ VectorsModeÚfloretÚshaperrYrÚW112rKÚkey2rowÚgetrjrrz)
r=rErrsÚ vectors_nlpÚer”r2Úerrrns
r?r€r€šsOððÙØ N‰N˜9Ô   ¨S¯Y©YÀÔ ô ˆK× Ñ × Ò × Ñ × *¬k×.@Ñ.@Ò ×Ñ×!×Ñ*¨aÒ × Ñ × *¬k×.@Ñ.@Ò ”x—}‘}×ÐyŒyˆØ—9‘9×·±¼8Óñøô' Ø6°t°fÐ=ˆð
Gð
ô
.¨q¸ÀDÔØûðús.E0Å0 F Å9"FÆF Úpretrain_configÚ init_configcóp|}|}d}t|d«}|^|j«s$d|}ddg|dœg}t|j|¬«|j d«5} | j «}ddd«|4t
||«}
|
j|«tjd|«yy #1swYŒ@xYw)
init_tok2veczcan't find pretrained tok2vec: rV)ÚlocÚmsg)r%ÚerrorsÚrbz!Loaded pretrained weights from %sTF)
rÚexistsr
r%ÚopenÚreadr!Ú
from_bytesrrL) r=Ú weights_datar¥Úfile_Úlayers r?¼ð €AØ€AØ€Lܘq Ñ1€LØÐØ×3°L°>ÐBˆ+¨^Ð<ÀSÑJˆ'¨s¯z©zÀ&Ô
×
Ñ
˜