
    h                        S SK Jr  S SKJr  S SKrS SKJr  S SKJrJ	r	J
r
  SSKJr  SS	KJrJrJrJrJr  SS
KJrJr  \R*                  " SSSS.S9\" SSSSS9\" SSSSS9\" \R,                  R.                  SSSS9\" SSSSS9\" SSSSS9\" SSSS S94S!\R0                  S"\S#\\   S$\S%\S&\S'\4S( jj5       rS"\S#\\   S%\S$\S&\S'\4S) jrg)*    )Path)OptionalN)Config)MarkdownRendererPrinterdiff_strings   )load_config   )ArgOpt	debug_cliparse_config_overridesshow_validation_error)Optimizationsinit_configzdiff-configT)allow_extra_argsignore_unknown_options)context_settings.zPath to config file)helpexists
allow_dashzTPath to a config file to diff against, or `None` to compare against default settingsz
--optimizez-ozzWhether the user config was optimized for efficiency or accuracy. Only relevant when comparing against the default config.)r   Fz--gpuz-GzfWhether the original config can run on a GPU. Only relevant when comparing against the default config.z--pretrainingz--ptzrWhether to compare on a config with pretraining involved. Only relevant when comparing against the default config.z
--markdownz-mdz#Generate Markdown for GitHub issuesctxconfig_path
compare_tooptimizegpupretrainingmarkdownc           	           [        UUUUUUS9  g)aH  Show a diff of a config file with respect to spaCy's defaults or another config file. If
additional settings were used in the creation of the config file, then you
must supply these as extra parameters to the command when comparing to the default settings. The generated diff
can also be used when posting to the discussion forum to provide more
information for the maintainers.

The `optimize`, `gpu`, and `pretraining` options are only relevant when
comparing against the default configuration (or specifically when `compare_to` is None).

DOCS: https://spacy.io/api/cli#debug-diff
)r   r   r   r   r   r   N)
debug_diff)r   r   r   r   r   r   r   s          N/home/james-whalen/.local/lib/python3.13/site-packages/spacy/cli/debug_diff.pydebug_diff_clir#      s    4     c           
      v   [        5       n[        SS9   [        U 5      nU(       a  [        U5      nOZUS   S   n	[        US   S   5      n
UR	                  SU	 S35        UR	                  SU
 35        [        U	U
UR                  UUS	S
9nS S S 5        WR                  5       nWR                  5       nX:X  a  UR                  S5        g [        XUS9nU(       aA  [        5       nUR                  UR                  US5      5        [        UR                  5        g [        U5        g ! , (       d  f       N= f)NF)	hint_fillnlplangpipelinezFound user-defined language: ''zFound user-defined pipelines: T)r(   r)   r   r   r   silentz&No diff to show: configs are identical)add_symbolsdiff)r   r   r
   listinfor   valueto_strwarnr   r   add
code_blockprinttext)r   r   r   r   r   r   msguser_configother_configr(   r)   userother	diff_textmds                  r"   r!   r!   1   s    )C		/!+.&z2L u%f-DK.z:;HHH5dV1=>HH5hZ@A&!!'L 
0& D!E}9: (C	!#BFF2==F34"''N)? 
0	/s   A9D**
D8)pathlibr   typingr   typer	thinc.apir   wasabir   r   r   utilr
   _utilr   r   r   r   r   r   r   command
efficiencyr0   Contextboolr#   r!    r$   r"   <module>rJ      si       : :  U U 3 *.$O C&;DUYZ!$T  1G  PT  ae  "f!-":":"@"@,PT  \X  YE7D  0X  YE?F  Bv  we:_`	  	
  
  	@((( 
( 	(
 ( (r$   