ó
    — óhÎ  ã                   óÎ  • S SK Jr  S SKJrJrJrJrJr  S SKrS SK	J
r
  S SKJr  S SKJrJr  SSKJr  SS	KJrJr  SS
KJr  SSKJrJrJrJrJrJr  \R:                  " SSSS.S9\" SSSSS9\" SSSSSS9\" SSSSS9\" SSSSS94S \R<                  S!\S"\\   S#\S$\4
S% jj5       r 0 SSS&.S!\S'\\!\4   S#\S$\4S( jjr"S\
S)\\\!\\\!\#4      4      4S* jr$S\
S)\\!\4   4S+ jr%g),é    )Ú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                 óX   • [        U R                  5      n[        U5        [        XX4S9  g)ad  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         ÚP/home/james-whalen/.local/lib/python3.13/site-packages/spacy/cli/debug_config.pyÚdebug_config_clir+      s'   € ô0 ' s§x¡xÓ0€IÜ	ÔÜØ°Zóó    r&   r'   c                ó¦  • [         R                  " S5        [        U 5         [        R                  " XS9n[        R
                  " U5      nUR                  R                  5       nS S S 5        [         R                  " S5        [        U 5         [        R                  " WS   [        S9nS S S 5        [         R                  " S5        [        U 5         [        R                  " WS   [        S9nUS   US	   /n[        R                  " XG5        S S S 5        [         R                  " S
5        U(       aG  [        W5      n[         R                  " S[        U5       S35        Sn	[         R                   " X‰SSSS9  U(       a–  [#        W5      n
[         R                  " S[        U
5       S35        U
 Ha  nSUS    3US   US   US    SUS    S3S.n[         R$                  " SUS    S35        ['        [!        U5      R)                  5       5        Mc     g g ! , (       d  f       GN½= f! , (       d  f       GN‰= f! , (       d  f       GN5= f)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)   5   så  € ô ‡K‚KÐ#Ô$Ü	˜{Õ	+Ü×!Ò! +ÑCˆÜ×)Ò)¨&Ó1ˆØ—‘×'Ñ'Ó)ˆ÷ 
,ô ‡K‚KÐ4Ô5Ü	˜{Õ	+Ü×Ò˜V LÑ1Ô:JÑKˆ÷ 
,ä‡K‚KÐ2Ô3Ü	˜{Õ	+Ü×Ò˜V JÑ/Ô8LÑMˆØ~Ñ&¨¨,©Ð8ˆ	Ü×Ò˜vÔ1÷ 
,ô ‡H‚HÐÔÞÜ! &Ó)ˆ	ÜŠk¤# i£.Ð!1°Ð3Ô4Ø$ˆÜ	Š	)°$¸xÐQRÒSÞÜ$ VÓ,ˆÜŠÐ,¬S°«Z¨L¸Ð:Ô;ÛˆDà  ZÑ 0Ð1Ð2Ø˜V™Ø˜x™.Ø ™<˜.¨°°Y±Ð/@ÀÐBñ	ˆIô HŠHq˜˜f™˜ aÐ(Ô)Ü”%˜	Ó"×(Ñ(Ó*Ö+ò ð ÷% 
,Ö	+ú÷
 
,Ö	+ú÷ 
,Ö	+ús$   ¢AHÂH/Ã=IÈ
H,È/
H>É
IÚreturnc                 ó:  • / n[         R                  " U 5       H~  u  p#US   R                  S5      (       d  M   US   SS  n[        [         R                  U5      nSR                  US S 5      nUR                  " U5      nUR                  X4US.UE5        M€     U$ )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   ]   s’   € Ø€FÜ—n’n VÖ,‰
ˆØ2‰w×!Ñ! #×&Ñ&Ùàr‘7˜1˜2;ˆÜœ4Ÿ=™=¨(Ó3ˆØx‰x˜˜C˜R˜Ó!ˆØ}Š}˜UÓ#ˆØ‰˜uÀDÑQÈDÐQÖRñ -ð €Mr,   c                 óô   • 0 n[        [        [        R                  " U R	                  5       5      5      5       H;  nUSS R                  SS5      n[        R                  " X5      n[        U5      X'   M=     U$ )Nr   r^   Ú:r_   )	ÚsortedÚsetr
   ÚfindallÚto_strÚreplacer   Údot_to_objectÚrepr)r   rf   ÚvariablerF   rh   s        r*   rN   rN   k   sh   € Ø€FÜœ3œ{×2Ò2°6·=±=³?ÓCÓDÖEˆØ˜˜"ˆ~×%Ñ% c¨3Ó/ˆÜ×"Ò" 6Ó0ˆÜ ›;ˆÓñ Fð €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ƒ      sp  ðÝ ß 3Õ 3ã Ý Ý $ß å ß <Ý ÷÷ ð ×ÒØØ*.È$ÑOññ ˜CÐ&;ÀDÐUYÑZÙ # D¨-¸À4ð  O_ñ  !`Ù˜5Ð"4°dð  Brñ  sÙ˜%Ð!3°Tð  AHñ  Iñà	‰ðð ðð ˜‰~ð	ð
 ðð ôó	ðð< !#ØØò%,Øð%,ð C˜H‰~ð%,ð ð	%,ð
 õ%,ðP ð ¨D°°c¸8ÀEÈ#ÈsÈ(ÁOÑ;TÐ6TÑ1UÑ,Vô ð˜&ð  T¨#¨s¨(¡^õ r,   