Files
INTUIA/Programa final/spacy/cli/__pycache__/init_pipeline.cpython-312.pyc
T

43 lines
7.6 KiB
Plaintext
Raw Normal View History

2026-03-15 13:27:50 +00:00
Ë
=û gãóžddlZddlmZddlmZddlZddlZddlmZddl m
Z
ddl m Z ddl
mZmZd d
lmZmZmZmZmZmZmZej0d «ed d
¬«ed dd¬«ed d¬«edddd¬«edddd¬«edddd¬«edddd ¬«ed!d"d#d$d%¬«edd&d'd(d¬)«ed*d+d,d-¬«f
d.ed/ed0ed1ed2ed3ed4eed5ed6eed7efd8„«Zd9e d6ed:dfd;„Zej0d9ddd<œd¬=«ed d>dd¬?«ed d@¬«eddAdBdC¬«ed!d"d#d$d%¬«eddDdEdF¬«fdGej<dHedIedJeed5edKef dL„«Zej0dMddd<œ¬N«ed d>dd¬?«ed dO¬«eddAdBdC¬«ed!d"d#d$d%¬«eddDdEdF¬«fdGej<dHedIedJeed5edKef dP„«Z dQ„Z!y)RéN)ÚPath)ÚOptional)Úmsgé)Úutil)ÚLanguage)Úconvert_vectorsÚinit_nlpé)ÚArgÚOptÚ import_codeÚinit_cliÚparse_config_overridesÚ setup_gpuÚshow_validation_errorÚvectors.z(The language of the nlp object to create)ÚhelpzVectors file in Word2Vec formatT)rÚexistszPipeline output directoryéÿÿÿÿz--prunez-pz&Optional number of vectors to prune toz
--truncatez-tzFOptional number of vectors to truncate to when reading in vectors fileÚdefaultz--modez-mzVectors mode: default or floretz--namez-nz?Optional name for the word vectors, e.g. en_core_web_lg.vectorsFz --verbosez-Vz-VVz/Display more information for debugging purposesz--lexemes-jsonlz-jz+Location of JSONL-formatted attributes file)rÚhiddenÚORTHz--attrz-az?Optional token attribute to use for vectors, e.g. LOWER or NORMÚlangÚ vectors_locÚ
output_dirÚpruneÚtruncateÚmodeÚnameÚverboseÚ jsonl_locÚattrc
óÞ|r-tjjtj«t j d|d«tj|««}
| t|
|«t|
|||||| ¬«t jdt|
jj«d«|
j|«t jd|j««y)z­Convert word vectors for use with spaCy. Will export an nlp object that
you can use in the [initialize] block of your config to initialize
a model with vectors.
z(Creating blank nlp object for language 'ú'N)rrr rr#zSuccessfully converted z vectorszŠSaved nlp object with vectors to output directory. You can now use the path to it in your config as the 'vectors' setting in [initialize].)rÚloggerÚsetLevelÚloggingÚDEBUGrÚinfoÚget_lang_classÚupdate_lexemesr ÚgoodÚlenÚvocabrÚto_diskÚresolve) rrrrrrr r!r"r#Únlps úXC:\Users\garci\AppData\Roaming\Python\Python312\site-packages\spacy/cli/init_pipeline.pyÚinit_vectors_clir4ñ&Ü ×ÑœWŸ]™]Ô‡H°v¸QÐ

#Œ$×
Ñ
˜
%€CØÐÜs˜IÔØ ØØØØ
Ø
Ø
õô‡H&¤s¨3¯9©9×+<Ñ+<Ó'=Ð&>¸
‡KK
Ô܇H Nà×ÑÓõór2ÚreturncóŽtj|«}|D]+}d|vrŒ|j|d}|jdi|¤ŽŒ-y)settingsÚorth©)ÚsrslyÚ
read_jsonlr/Ú set_attrs)r2r"Ú lex_attrsÚattrsÚlexemes r3r,r,BsLä× Ñ  Ó+€IÛˆØ ˜Ñ Ø Ø˜5 ™=ÑØˆ×ÑÑ!˜5Ór5)Úallow_extra_argsÚignore_unknown_options)Úcontext_settingsrzPath to config file)rrÚ
allow_dashz&Output directory for the prepared dataz--codez-czNPath to Python file with additional code (registered functions) to be importedz--gpu-idz-gzGPU ID or -1 for CPUÚctxÚ config_pathÚ output_pathÚ code_pathÚuse_gpucóÔ|r-tjjtj«t |j «}t|«t|«t|«5tj||¬«}ddd«td¬«5t|¬«}ddd«j|«tjd|«y#1swYŒUxYw#1swYŒ?xYw)Ú overridesF©Ú hint_fill©rIzSaved initialized pipeline to )rr&r'r(r)rÚargsrrrÚ load_configr
r0rr-© rErFrGrHr!rIrLÚconfigr2s r3Úinit_pipeline_clirTLñÜ ×ÑœWŸ]™]Ô& s§x¡xÓ0€IÜ ÔÜ
ˆgÔÜ ˜{Õ +Ü×! +¸Ô÷
¨Ö /Üv /ˆ÷
‡KK Ô܇H-¨k¨]Ð

,Ð +úç /Ð /úsÁ&CÂCÃCÃC'Úlabels)rCzOutput directory for the labelscóÞ|r-tjjtj«|j «s|j
d¬«t|j«}t|«t|«t|«5tj||¬«}ddd«td¬«5t|¬«}ddd«t|«y#1swYŒ8xYw#1swYŒ"xYw)z¦Generate JSON files for the labels in the data. This helps speed up the
training process, since spaCy won't have to preprocess the data to
extract the labels.T)ÚparentsrKNFrMrO)rr&r'r(r)rÚmkdirrrPrrrrQr
Ú _init_labelsrRs r3Úinit_labels_clirZhñ"Ü ×ÑœWŸ]™]Ô × Ñ Ô Ø×Ñ Ô& s§x¡xÓ0€IÜ ÔÜ
ˆgÔÜ ˜{Õ +Ü×! +¸Ô÷