B
    .(b1                 @   s0   d dl mZ d dlmZ d dlmZ dd ZdS )    )unicode_literals)English)fix_random_seedc        
      C   s   g } xt dD ]}td t }ddddddif}|d}|| x"t|d	 d D ]}|| qZW | }|\}}|j|g|g|d
 |j	
||g}	| t|	d  qW t| dkst| d | d	 kst| d | d kstdS )zWTest that after fixing the random seed, the results of the pipeline are truly identical   r   zUOnce hot, form ping-pong-ball-sized balls of the mixture, each weighing roughly 25 g.Zcatsg      ?g        )ZLabe1ZLabel2ZLabel3textcat   )Zsgd   N)ranger   r   Zcreate_pipeZadd_pipesetZ	add_labelZbegin_trainingupdatemodelZpredictZmake_docappendlistlenAssertionError)
resultsiZnlpZexampler   labelZ	optimizertextZannotsresult r   T/home/dcms/DCMS/lib/python3.7/site-packages/spacy/tests/regression/test_issue6177.pytest_issue6177   s$    

r   N)
__future__r   Zspacy.lang.enr   Z
spacy.utilr   r   r   r   r   r   <module>   s   