B
    .(b                 @   s,   d dl mZ d dlmZ dd Zdd ZdS )    )DependencyParser)Vocabc              C   sB   t t } | d d| jks"t| dd  d| jks>tdS )zBTest that the parser doesn't have subtok label if not learn_tokensnsubjsubtokc               S   s   g S )N r   r   r   T/home/dcms/DCMS/lib/python3.7/site-packages/spacy/tests/regression/test_issue3830.py<lambda>
       z*test_issue3830_no_subtok.<locals>.<lambda>N)r   r   	add_labellabelsAssertionErrorbegin_training)parserr   r   r   test_issue3830_no_subtok   s
    

r   c              C   sF   t t dd} | d d| jks&t| dd  d| jksBtdS )zATest that the parser does have subtok label if learn_tokens=True.T)Zlearn_tokensr   r   c               S   s   g S )Nr   r   r   r   r   r      r	   z,test_issue3830_with_subtok.<locals>.<lambda>N)r   r   r
   r   r   r   )r   r   r   r   test_issue3830_with_subtok   s
    
r   N)Zspacy.pipeline.pipesr   Zspacy.vocabr   r   r   r   r   r   r   <module>   s   	