
    h                         S SK JrJrJrJr  S SKJrJr  S SKJ	r	  SSK
Jr  S\\\   \\   \\\\4      4   S\\\   \\	   4   4S jrS	\\\   \\	   4   S
\S\\\	   \4   4S jrg)    )CallableListTupleUnion)Modelregistry)Ints2d   )Doccolumnsreturnc                 $    [        S[        SU 0S9$ )Nextract_featuresr   )attrs)r   forward)r   s    S/home/james-whalen/.local/lib/python3.13/site-packages/spacy/ml/featureextractor.pyFeatureExtractorr   	   s     #WY4HII    modelis_trainc                    U R                   S   n/ nU H  n[        US5      (       a  UR                  U5      nO2UR                  R                  U5      UR                  UR
                   nUR                  S:X  a   UR                  UR                  S   S45      nUR                  U R                  R                  USS95        M     S nXG4$ )Nr   to_array   r   uint64)dtypec                     / $ )N )
d_featuress    r   <lambda>forward.<locals>.<lambda>   s    "r   )r   hasattrr   docstartendndimreshapeshapeappendops	asarray2i)r   docsr   r   featuresr"   r   backprops           r   r   r      s     kk)$GH3
##LL)EGG$$W-cii#''BE::?MM5;;q>1"56E		++E+BC  0EHr   N)typingr   r   r   r   	thinc.apir   r   thinc.typesr	   tokensr   strintr   boolr   r   r   r   <module>r5      s    / / %  J49d3ieCHo)>>?J
49d6l"#JcDL();?
4<!"r   