
    /h6                     N    S SK r S SKrS SKJrJr   " S S\ R
                  5      rg)    N)ConditionalFreqDisttokenizec                   &    \ rS rSrS rS rS rSrg)TestEmptyCondFreq   c                    [        5       nU R                  UR                  5       / 5        [        R                  " [
        5         UR                  SS9  S S S 5        U R                  UR                  5       / 5        g ! , (       d  f       N/= fNBUG)
conditions)r   assertEqualr   pytestraises
ValueErrortabulateselfemptys     X/var/www/auris/envauris/lib/python3.13/site-packages/nltk/test/unit/test_cfd_mutation.pytest_tabulateTestEmptyCondFreq.test_tabulate	   sd    #%))+R0]]:&NNeN, '))+R0 '&s   A>>
Bc                     [        5       nU R                  UR                  5       / 5        UR                  S/S9  U R                  UR                  5       / 5        g r	   )r   r   r   plotr   s     r   	test_plotTestEmptyCondFreq.test_plot   sL    #%))+R0

ug
&))+R0    c                 b   Sn[        5       n[        R                  " U5       H  n[        U5      nX$   U==   S-  ss'   M     U R	                  UR                  5       SS/5        US   S==   S-  ss'   U R                  UR                  5       / SQ5        U R	                  US   S   S5        g )Nzcow cat mouse cat tiger            hi)r   r   r    )r   r   word_tokenizelenr   r   assertCountEqual)r   textcfdword	conditions        r   test_increment TestEmptyCondFreq.test_increment   s    (!# **40DD	IN4 A%  1 	)Aq62 	Atcnn.	:F4L!	
r    N)__name__
__module____qualname____firstlineno__r   r   r)   __static_attributes__r+   r   r   r   r      s    11
r   r   )unittestr   nltkr   r   TestCaser   r+   r   r   <module>r4      s       .
)) 
r   