
    Mi                         S SK JrJrJrJrJrJrJrJr  S SK	J
r
Jr  SSKJrJr  \(       a  SSKJr  SSKJr  \ " S S\5      5       r\ " S	 S
\5      5       r\ " S S\5      5       rg)    )TYPE_CHECKINGAnyCallableDictIterableListOptionalSequence)Model	Optimizer   )Protocolruntime_checkable)Language)Examplec                       \ rS rSr% \\S'   \\S'   SSSS.S\S   S	\S
\	\
   S\	\\\4      S\\\4   4
S jjrS
\
SS4S jrSrg)TrainableComponent   modelis_trainableg        N)dropsgdlossesexamplesr   r   r   r   returnc                    g N )selfr   r   r   r   s        b/var/www/eduai.edurigo.com/storigo/production/storigo_env/lib/python3.13/site-packages/spacy/ty.pyupdateTrainableComponent.update   s         c                     g r   r   )r   r   s     r    finish_update TrainableComponent.finish_update#   s    Sr#   r   )__name__
__module____qualname____firstlineno__r   __annotations__boolr   floatr	   r   r   strr!   r%   __static_attributes__r   r#   r    r   r      s}    J #'-19% 	
 i  c5j)* 
c5j	 98t8r#   r   c                   :    \ rS rSrS\/ \S   4   SSS\4S jrSrg	)
InitializableComponent&   get_examplesr   nlpr   kwargsc                     g r   r   )r   r3   r4   r5   s       r    
initialize!InitializableComponent.initialize(   s    
 r#   r   N)	r'   r(   r)   r*   r   r   r   r7   r/   r   r#   r    r1   r1   &   s2    r8I#667  	r#   r1   c                       \ rS rSr% \\S'   \\   \S'   \\	\\   4   \S'   \
\	   \S'   S\S\	SS	4S
 jrS\S\	S\4S jrSS jrSrg	)ListenedToComponent0   r   	listenerslistener_maplistening_componentslistenercomponent_namer   Nc                     g r   r   r   r?   r@   s      r    add_listener ListenedToComponent.add_listener7   s    #r#   c                     g r   r   rB   s      r    remove_listener#ListenedToComponent.remove_listener9   s    Sr#   c                     g r   r   )r   	components     r    find_listeners"ListenedToComponent.find_listeners;   s    r#   r   )r   N)r'   r(   r)   r*   r   r+   r
   r   r   r.   r   rC   r,   rF   rJ   r/   r   r#   r    r:   r:   0   sV    JsHUO+,,s)#MUMCMDMPPsPtP4r#   r:   N)typingr   r   r   r   r   r   r	   r
   	thinc.apir   r   compatr   r   languager   trainingr   r   r1   r:   r   r#   r    <module>rQ      sv   	 	 	 ' /"! 9 9 9  X   
5( 
5 
5r#   