Ë
    ¥ãiŽ  ã                   óà  — d dl mZ d dlmZmZmZmZmZ d dlZd dl	m
Z
 d dlmZ d dlmZmZ ddlmZ dd	lmZmZ dd
lmZ ddlmZmZmZmZmZmZ  ej:                  ddddœ¬«       edddd¬«       eddddd¬«       edddd¬«       edddd¬«      fd ej<                  d!ed"ee   d#ed$ef
d%„«       Z i ddd&œd!ed'ee!ef   d#ed$efd(„Z"de
d)eee!eee!e#f      f      fd*„Z$de
d)ee!ef   fd+„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.zPath to config file)ÚhelpÚexistsÚ
allow_dashz--code-pathz--codez-czNPath to Python file with additional code (registered functions) to be imported)r   Fz--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                 ób   — t        | 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         úg/var/www/vps2.regionflexible.com/Desarrollo/venv/lib/python3.12/site-packages/spacy/cli/debug_config.pyÚdebug_config_clir+      s,   € ôT ' s§x¡xÓ0€IÜ	ÔÜØ˜y°ZÈ9öó    r&   r'   c                ót  — t        j                  d«       t        | «      5  t        j                  | |¬«      }t        j
                  |«      }|j                  j                  «       }d d d «       t        j                  d«       t        | «      5  t        j                  d   t        ¬«      }d d d «       t        j                  d«       t        | «      5  t        j                  d   t        ¬«      }|d   |d	   g}t        j                  ||«       d d d «       t        j                  d
«       |rIt        «      }t        j                  dt        |«      › d«       d}	t        j                   ||	ddd¬«       |r’t#        «      }
t        j                  dt        |
«      › d«       |
D ]_  }d|d   › |d   |d   |d   › d|d   › ddœ}t        j$                  d|d   › d«       t'        t!        |«      j)                  «       «       Œa y y # 1 sw Y   Œ­xY w# 1 sw Y   ŒsxY w# 1 sw Y   ŒxY w)NzConfig validation)r'   z"Config validation for [initialize]Ú
initialize)Úschemaz Config validation for [training]ÚtrainingÚtrain_corpusÚ
dev_corpuszConfig is validzVariables (ú))ÚVariableÚValueT)é)   é"   r   )ÚheaderÚdividerÚwidthsÚspacingzRegistered functions (ú@r   ÚnameÚmoduleÚfilez (line Úline_no)ÚRegistryÚNameÚModuleÚFileú[Úpathú])r   r9   r   r   Úload_configÚload_model_from_configr   Úinterpolater   Úresolver   r   Ú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)   G   s	  € ô ‡KKÐ#Ô$Ü	˜{Ó	+ñ *Ü×!Ñ! +¸ÔCˆÜ×)Ñ)¨&Ó1ˆØ—‘×'Ñ'Ó)ˆ÷*ô ‡KKÐ4Ô5Ü	˜{Ó	+ñ LÜ×Ñ˜V LÑ1Ô:JÔKˆ÷Lä‡KKÐ2Ô3Ü	˜{Ó	+ñ 2Ü×Ñ˜V JÑ/Ô8LÔMˆØ~Ñ&¨¨,©Ð8ˆ	Ü×Ñ˜v yÔ1÷2ô ‡HHÐÔÙÜ! &Ó)ˆ	Ü‰k¤# i£.Ð!1°Ð3Ô4Ø$ˆÜ	‰	) D°$¸xÐQRÕSÙÜ$ VÓ,ˆÜ‰Ð,¬S°«Z¨L¸Ð:Ô;Øò 	,ˆDà  ZÑ 0Ð1Ð2Ø˜V™Ø˜x™.Ø ™<˜.¨°°Y±Ð/@ÀÐBñ	ˆIô H‰Hq˜˜f™˜ aÐ(Ô)Ü”%˜	Ó"×(Ñ(Ó*Õ+ñ	,ð ÷%*ñ *ú÷
Lñ Lú÷2ñ 2ús$   ¡AHÂH Ã?H-ÈHÈ H*È-H7Úreturnc                 ó,  — g }t        j                  | «      D ]y  \  }}|d   j                  d«      sŒ|d   dd  }t        t         j                  |«      }dj                  |d d «      } |j                  |«      }|j                  |||dœ|¥«       Œ{ |S )Néÿÿÿÿr<   r   ú.)r=   r   rF   )r   Ú	walk_dictÚ
startswithÚgetattrr   ÚjoinÚfindÚappend)r   ÚresultÚkeyÚvalueÚreg_namer   rF   rQ   s           r*   rP   rP   o   sœ   € Ø€FÜ—n‘n VÓ,ò S‰
ˆˆUØ2‰w×!Ñ! #Ô&Øàr‘7˜1˜2;ˆÜœ4Ÿ=™=¨(Ó3ˆØx‰x˜˜C˜R˜Ó!ˆØˆx}‰}˜UÓ#ˆØ‰˜u°(ÀDÑQÈDÐQÕRðSð €Mr,   c                 óð   — i }t        t        t        j                  | j	                  «       «      «      «      D ];  }|dd j                  dd«      }t        j                  | |«      }t        |«      ||<   Œ= |S )Nr   r^   ú:r_   )	ÚsortedÚsetr
   ÚfindallÚto_strÚreplacer   Údot_to_objectÚrepr)r   rf   ÚvariablerF   rh   s        r*   rN   rN   }   sp   € Ø€FÜœ3œ{×2Ñ2°6·=±=³?ÓCÓDÓEò 'ˆØ˜˜"ˆ~×%Ñ% c¨3Ó/ˆÜ×"Ñ" 6¨4Ó0ˆÜ ›;ˆˆxÒð'ð €Mr,   )&Úpathlibr   Útypingr   r   r   r   r   ÚtyperÚ	thinc.apir	   Úthinc.configr
   Úwasabir   r   Ú r   Úschemasr   r   r   Ú_utilr   r   r   r   r   r   ÚcommandÚContextÚboolr+   Ústrr)   ÚintrP   rN   © r,   r*   ú<module>rƒ      sw  ðÝ ß 3Õ 3ã Ý Ý $ß å ß <Ý ÷÷ ð €×ÑØØ*.È$ÑOôñ ØÐ'°Àôñ !$ØØØØØ]ô!ñ ØØØØ}ô	ñ ØØØð Uô	ñ'*à	‰ð*ð ð*ð ˜‰~ð*ð ð*ð& ò'*ó	ð*ð` !#ØØò%,Øð%,ð C˜H‰~ð%,ð ð	%,ð
 ó%,ðP ð ¨D°°c¸8ÀEÈ#ÈsÈ(ÁOÑ;TÐ6TÑ1UÑ,Vó ð˜&ð  T¨#¨s¨(¡^ô r,   