o
    –hÄ  ã                   @   s”  d dl Z d dlZd dlmZ e jd Ze jd ZeeƒZeeƒZ	ej
Ze	j
Zdd„ eD ƒZedeeƒeeƒeeeƒef ƒ dZd	Zd Zg Zej ¡ D ]8\ZZeevrTqKeje Ze	je	j
e  Zej ee ¡Zeek rred7 ZqKee7 Zeeƒd
k rƒe de ¡ qKeeeƒk r¥eeeƒe  Zedeef ƒ edd e¡ ƒ dS ede ƒ ej ¡ D ]\ZZeevr¹q°e	j
e ekrÃ dS q°edƒ dS )é    N)ÚPretrainé   é   c                 C   s   g | ]}|t v r|‘qS © )Úvocab2)Ú.0Úxr   r   úb/var/www/html/env_mimamsha/lib/python3.10/site-packages/stanza/utils/pretrain/compare_pretrains.pyÚ
<listcomp>   s    r
   z-%d shared words, out of %d in %s and %d in %sg-Cëâ6?g        é
   z|%s|z<%d vectors were close.  Average difference of the others: %fz(The first few different words were:
  %sz
  zAll %d vectors were close!zAll indices are the same) ÚsysÚnumpyÚnpÚstanza.models.common.pretrainr   ÚargvÚpt1_filenameÚpt2_filenameÚpt1Úpt2ÚvocabÚvocab1r   Úcommon_wordsÚprintÚlenÚepsÚ
total_normÚtotal_closeÚwords_differentÚ_unit2idÚitemsÚwordÚidxÚembÚv1Úv2ÚlinalgÚnormÚappendÚavg_normÚjoinr   r   r   r	   Ú<module>   sN    

"

€ÿ