
    h4                     ~    S SK JrJrJr  SSKJr  SSKJrJrJ	r	  SSK
JrJr  S\\\4   S\\\\\4      4S jrS	\0rg
)    )IteratorTupleUnion   )Errors)NOUNPRONPROPN)DocSpandoclikereturnc              #     #    / SQn/ SQnU R                   nUR                  S5      (       d  [        [        R                  5      eU Vs1 s H'  oCR
                  R                  R                  U5      iM)     nnU Vs1 s H'  ocR
                  R                  R                  U5      iM)     nnUR
                  R                  R                  S5      nUR
                  R                  R                  S5      n	UR
                  R                  R                  S5      n
UR
                  R                  R                  S5      nUR
                  R                  R                  S5      nUR
                  R                  R                  S	5      nUR
                  R                  R                  S
5      nSn[        U 5       GH9  u  nnUR                  [        [        [        4;  a  M(  UR                  R                  U::  a  MD  UR                  U;   a  [!        UR"                  5      nU(       a  US   OSnU(       a`  UR                  U	:X  a  UR$                  nOEUR                  U
:X  a  UR                  U:X  a  UnO"UR                  U;   a  UR$                  nOUnOUnUR                  nUR                  R                  nUR                  R                  U:X  a  US-   OUnUUR                  S-   U4v   GM:  UR                  U:X  d  GMM  UR&                  nUR                  U:X  af  UR&                  R                  UR                  :  aB  UR&                  nUR                  U:X  a&  UR&                  R                  UR                  :  a  MB  UR                  U;   d  GM  UR                  nUR                  R                  nUR                  R                  U:X  a  US-   OUnUUR                  S-   U4v   GM<     gs  snf s  snf 7f)zO
Detect base noun phrases from a dependency parse. Works on both Doc and Span.
)nsubjz
nsubj:passobjoblz	obl:agentzobl:argzobl:modnmodpcompapposROOT)flatz	flat:namezflat:foreignfixedcompoundDEPNPamoddetDETADPconjCCONJr   N   )dochas_annotation
ValueErrorr   E029vocabstringsadd	enumerateposr   r
   r	   	left_edgeideplistrights
right_edgehead)r   labelspost_modifiersr$   labelnp_depsmodifier	np_modifsnp_label	adj_label	det_labeldet_posadp_pos
conj_labelconj_posprev_endr.   wordright_childsright_child	right_end
left_indexr3   s                          X/home/james-whalen/.local/lib/python3.13/site-packages/spacy/lang/fr/syntax_iterators.pynoun_chunksrH      s    F PN
++Ce$$%%9?@yy  $$U+G@AOPX""&&x0IPyy  $$T*H		!!%%f-I		!!%%e,Iii##E*Gii##E*G""&&v.Jyy  $$W-HHW%488D%..>>x'88w,L-9,q/tKOOy0 + 6 6IOOy0[__5O +I __	1 $I $I 	 {{H))J+/>>+=+=+HajJikkAox77XX#99D((j(TYY[[466-Ayy ((j(TYY[[466-A xx7"66!^^--
&*nn&8&8H&DJN*  !$&&1*h66W & APs3   AP
.O=8P>.P,IPB PP A'PrH   N)typingr   r   r   errorsr   symbolsr   r	   r
   tokensr   r   intrH   SYNTAX_ITERATORS     rG   <module>rQ      sT    ) )  ( ( J7sDy) J7huS#s]7K.L J7Z ";/ rP   