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

33 lines
4.7 KiB
Plaintext
Raw Normal View History

2026-03-15 13:27:50 +00:00
Ë
=û g¢
ãóâddlZddlZddlmZddlmZmZmZmZddl Z ddl
m Z ddl m
Z
ddlmZddlmZd d
lmZmZmZmZmZmZmZej6d d d d
œ¬«eddd d ¬«eddddd¬«edddd¬«eddddd¬«edd d!d"¬«fd#e j8d$ed%eed&eed'ed(ef d)„«Z d-de
j@«d*œd$ee!efd%eee!efd(ed+ee!effd,„Zy).éN)ÚPath)ÚAnyÚDictÚOptionalÚUnion)Úmsgé)Úutil)Úinit_nlp)Útrainé)ÚArgÚOptÚappÚ import_codeÚparse_config_overridesÚ setup_gpuÚshow_validation_errorr T)Úallow_extra_argsÚignore_unknown_options)Úcontext_settings.zPath to config file)ÚhelpÚexistsÚ
allow_dashz--outputz
--output-pathz-oz-Output directory to store trained pipeline in)rz--codez-czNPath to Python file with additional code (registered functions) to be importedFz --verbosez-Vz-VVz/Display more information for debugging purposeséÿÿÿÿz--gpu-idz-gzGPU ID or -1 for CPUÚctxÚ config_pathÚ output_pathÚ code_pathÚverboseÚuse_gpucóÀ|r-tjjtj«t |j «}t|«t||||¬«y)
Train or update a spaCy pipeline. Requires data in spaCy's binary format. To
convert data from other formats, use the `spacy convert` command. The
config file includes all settings and hyperparameters used during training.
To override settings in the config, e.g. settings that point to local
paths or that you want to experiment with, you can override them as
command line options. For instance, --training.batch_size 128 overrides
the value of "batch_size" in the block "[training]". The --code argument
lets you pass in a Python file that's imported before training. It can be
used to register custom functions and architectures that can then be
referenced in the config.
DOCS: https://spacy.io/api/cli#train
©r!Ú overridesN) r
ÚloggerÚsetLevelÚloggingÚDEBUGrÚargsrr )rrrrr r!r$s úPC:\Users\garci\AppData\Roaming\Python\Python312\site-packages\spacy/cli/train.pyÚ train_clir+sAñ6Ü ×ÑœWŸ]™]Ô& s§x¡xÓ0€IÜ ÔÜ ˆ+{¨G¸r#r$cóVtj|«}tj|«}|rt|«dk7r(|j«st j
d|d¬«|st j d«nR|j«s*|jd¬«t jd|«t j d |«t|«t|«5tj||d
¬ «}ddd«t jd «t|d
¬
«5t|¬«}ddd«t jd«t jd«t||tj tj"¬«y#1swYŒ˜xYw#1swYŒlxYw)-zConfig file not foundr
)ÚexitszNo output directory providedT)ÚparentszCreated output directory: zSaving to output directory: F)r$Ú interpolatezInitializing pipeline)Ú hint_fill)r!zInitialized pipelinezTraining pipeline)r!ÚstdoutÚstderr)r
Ú ensure_pathÚstrrrÚfailÚinfoÚmkdirÚgoodrrÚ load_configÚdividerr Ú train_nlpÚsysr3r4)rrr!r$ÚconfigÚnlps r*r r 9s:ô×" /€KÜ×" /€Ká œ3˜+¨sÒ2¸;×;MÑ;MÔ;OÜ Ð(¨+¸QÕ Ü Ð× × Ñ  dÐ Ô H‰HÐ1°+°Ð  Ð ¨}Ð
ˆgÔÜ ˜{Õ +Ü×! +¸ÐPUÔ÷
‡K˜{°eÖ <Üv /ˆ÷