
    Ng6                     L    d dl Z d dlZd dlmZmZ  G d de j                  ZdS )    N)ConditionalFreqDisttokenizec                        e Zd Zd Zd Zd ZdS )TestEmptyCondFreqc                 P   t                      }|                     |                                g            t          j        t
                    5  |                    d           d d d            n# 1 swxY w Y   |                     |                                g            d S NBUG)
conditions)r   assertEqualr
   pytestraises
ValueErrortabulateselfemptys     \/var/www/html/ai-engine/env/lib/python3.11/site-packages/nltk/test/unit/test_cfd_mutation.pytest_tabulatezTestEmptyCondFreq.test_tabulate	   s    #%%))++R000]:&& 	- 	-NNeN,,,	- 	- 	- 	- 	- 	- 	- 	- 	- 	- 	- 	- 	- 	- 	-))++R00000s   A33A7:A7c                     t                      }|                     |                                g            |                    dg           |                     |                                g            d S r   )r   r   r
   plotr   s     r   	test_plotzTestEmptyCondFreq.test_plot   sm    #%%))++R000

ug
&&&))++R00000    c                    d}t                      }t          j        |          D ]'}t          |          }||         |xx         dz  cc<   (|                     |                                ddg           |d         dxx         dz  cc<   |                     |                                g d           |                     |d         d         d           d S )Nzcow cat mouse cat tiger            hi)r   r   r   )r   r   word_tokenizelenr   r
   assertCountEqual)r   textcfdword	conditions        r   test_incrementz TestEmptyCondFreq.test_increment   s    (!## *400 	& 	&DD		I	N4   A%    ))Aq6222 	Atcnn..			:::F4L!	
 	
 	
 	
 	
r   N)__name__
__module____qualname__r   r   r&    r   r   r   r      sA        1 1 11 1 1
 
 
 
 
r   r   )unittestr   nltkr   r   TestCaser   r*   r   r   <module>r.      sf      . . . . . . . .
 
 
 
 
) 
 
 
 
 
r   