
    h                        S SK r S SKJr  S SKJrJrJrJr  SSKJ	r	  \	" 5         S SK
JrJrJrJr  SSKJr  SSKJr  SS	KJr  SS
KJr  SSKJr  SSKJr  SSKJr  SSKJrJr  SSKJrJr  SSK J!r!  \ RD                  S:X  a  \#" \RH                  5      eS\RJ                  \RJ                  \RJ                  \RL                  " 5       S.S\\'\4   S\\!\(4   S\\'\\'   4   S\\'\\'   4   S\\'\\'   4   S\\\'\4   \4   S\4S jjr)S\RL                  " 5       \RL                  " 5       S.S\'S\\!\(4   S\\\'\4   \4   S\\'\4   S\4
S jjr*g)    N)Path)AnyDictIterableUnion   )setup_default_warnings)Config
prefer_gpurequire_cpurequire_gpu)pipeline)util)__version__)info)Errors)explain)Language)REGISTRY_POPULATEDpopulate_registry)loggerregistry)Vocabi  Tvocabdisableenableexcludeconfignamer   r   r   r   r   returnc          	      4    [         R                  " U UUUUUS9$ )a3  Load a spaCy model from an installed package or a local path.

name (str): Package name or model path.
vocab (Vocab): A Vocab object. If True, a vocab is created.
disable (Union[str, Iterable[str]]): Name(s) of pipeline component(s) to disable. Disabled
    pipes will be loaded but they won't be run unless you explicitly
    enable them by calling nlp.enable_pipe.
enable (Union[str, Iterable[str]]): Name(s) of pipeline component(s) to enable. All other
    pipes will be disabled (but can be enabled later using nlp.enable_pipe).
exclude (Union[str, Iterable[str]]): Name(s) of pipeline component(s) to exclude. Excluded
    components won't be loaded.
config (Dict[str, Any] / Config): Config overrides as nested dict or dict
    keyed by section values in dot notation.
RETURNS (Language): The loaded nlp object.
r   )r   
load_model)r    r   r   r   r   r   s         H/home/james-whalen/.local/lib/python3.13/site-packages/spacy/__init__.pyloadr%      s'    0 ??     )r   r   metar'   c                z    [         R                  " U 5      n[         R                  " U5      nUR                  X!US9$ )a,  Create a blank nlp object for a given language code.

name (str): The language code, e.g. "en".
vocab (Vocab): A Vocab object. If True, a vocab is created.
config (Dict[str, Any] / Config): Optional config overrides.
meta (Dict[str, Any]): Overrides for nlp.meta.
RETURNS (Language): The nlp object.
)r   r'   )r   get_lang_classdot_to_dictfrom_config)r    r   r   r'   	LangClasss        r$   blankr-   >   s:     ##D)If%F  4 @@r&   )+syspathlibr   typingr   r   r   r   errorsr	   	thinc.apir
   r   r   r    r   r   aboutr   cli.infor   r   glossaryr   languager   registrationsr   r   r   r   r   r   
maxunicodeSystemErrorE130_DEFAULT_EMPTY_PIPESSimpleFrozenDictstrboolr%   r-    r&   r$   <module>rA      s   
  - - +   C B        @ " >>U
fkk
"" !%)-)B)B(,(A(A)-)B)B,0,A,A,C
T	
  3%&	
 #x}$% 3%& $sCx.&() J !%,0,A,A,C002A
A A $sCx.&()	A
 sCx.A Ar&   