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

40 lines
6.5 KiB
Plaintext
Raw Normal View History

2026-03-15 13:27:50 +00:00
Ë
=û g?ã óàddlmZddlmZmZmZmZmZddlZddl m
Z
ddl m Z ddl
mZmZddlmZdd lmZmZdd
lmZd d lmZmZmZmZmZmZej:d
dddœ¬«edddd¬«eddddd¬«edddd¬«edddd¬«fd ej<d!ed"eed#ed$ef
d%„«Z iddd&œd!ed'ee!efd#ed$efd(„Z"d
e
d)eee!eee!e#fffd*„Z$d
e
d)ee!effd+„Z%y),é)ÚPath)ÚAnyÚDictÚListÚOptionalÚUnionN)ÚConfig)Ú VARIABLE_RE)ÚmsgÚtableé)Úutil)ÚConfigSchemaInitÚConfigSchemaTraining)Úregistryé)ÚArgÚOptÚ debug_cliÚ import_codeÚparse_config_overridesÚshow_validation_errorÚconfigT)Úallow_extra_argsÚignore_unknown_options)Úcontext_settings.zPath to config file)ÚhelpÚexistsÚ
allow_dashz --code-pathz--codez-czNPath to Python file with additional code (registered functions) to be imported)rFz--show-functionsz-FznShow an overview of all registered functions used in the config and where they come from (modules, files etc.)z--show-variablesz-Vz…Show an overview of all variables referenced in the config and their values. This will also reflect variables overwritten on the CLI.ÚctxÚ config_pathÚ code_pathÚ
show_funcsÚ show_varscóbt|j«}t|«t||||¬«y)aˆDebug a config file and show validation errors. The command will
create all objects in the tree and validate them. Note that some config
validation errors are blocking and will prevent the rest of the config from
being resolved. This means that you may not see all validation errors at
once and some issues are only shown once previous errors have been fixed.
Similar as with the 'train' command, you can override settings from the config
as command line options. For instance, --training.batch_size 128 overrides
the value of "batch_size" in the block "[training]".
DOCS: https://spacy.io/api/cli#debug-config
©Ú overridesr#r$N)rÚargsrÚ debug_config)r r!r"r#r$r's úWC:\Users\garci\AppData\Roaming\Python\Python312\site-packages\spacy/cli/debug_config.pyÚdebug_config_clir+s+ô0' s§x¡xÓ0€IÜ ÔÜØ˜y°ZÈ9öór&r'cóttjd«t|«5tj||¬«}tj
|«}|j j«}ddd«tjd«t|«5tjdt¬«}ddd«tjd«t|«5tjdt¬«}|d|d g}tj||«ddd«tjd
«|rIt«}tjd t|«d «d
} tj || ddd¬«|rt#«}
tjdt|
«d «|
D]_} d| d| d| d| dd| dd dœ} tj$d| dd«t't!| «j)««Œayy#1swYŒ­xYw#1swYŒsxYw#1swYŒxYw)NzConfig validation)r'z"Config validation for [initialize]Ú
initialize)Úschemaz Config validation for [training]ÚtrainingÚ train_corpusÚ
dev_corpuszConfig is validz Variables (ú))ÚVariableÚValueT)é)é"r
)ÚheaderÚdividerÚwidthsÚspacingzRegistered functions (ú@rÚnameÚmoduleÚfilez (line Úline_no)ÚRegistryÚNameÚModuleÚFileúpathú])r r9rrÚ load_configÚload_model_from_configrÚ interpolaterÚresolverrÚresolve_dot_namesÚgoodÚ
get_variablesÚlenr Úget_registered_funcsÚinfoÚprintÚstrip)
r!r'r#r$rÚnlpÚTÚ dot_namesÚ variablesÚheadÚfuncsÚfuncÚ func_datas
r*r)r)5ô‡K˜{Õ +Ü×! +¸ÔCˆÜ×)¨&Ó1ˆØ×)ˆ÷
‡K˜{Õ +Ü × Ñ ˜V LÑ1Ô:JÔ ÷
‡K˜{Õ +Ü × Ñ ˜V JÑ/Ô8LÔ MˆØ¨,©Ð8ˆ Ü ×јv yÔ
‡H
ÔÙÜ! )ˆ Ü k¤# i£.Ð!1°Ð$ˆÜ ) D°$¸xÐQRÕÜ$ VÓÜ Ð,¬S°«Z¨L¸ÐˆDà  ZÑ 0ИV™ ؘx™.Ø ™<˜.¨°°Y±Ð/@ÀЈIô