o
    i                     @   s   d d Z dS )c                 C   s   ddd ddf }|g}t| |D ]Z\}}t|D ]Q\}\}}|| d }	||	krkddd	 |d
| D }
ddd	 ||d d
 D }| d|	 d| }||
dd
 dd| d d|d
d   qq|S )a  
    Returns a list of human-readable strings indicating the errors in the
    given tagging of the corpus.

    :param train_sents: The correct tagging of the corpus
    :type train_sents: list(tuple)
    :param test_sents: The tagged corpus
    :type test_sents: list(tuple)
    z]%25s | %s | %s
--------------------------+------------------------+--------------------------zleft contextzword/test->gold   zright context    c                 s       | ]}d | V  qdS z%s/%sN .0wr   r   Q/var/www/edux/Edux_v2/venv/lib/python3.10/site-packages/nltk/tbl/erroranalysis.py	<genexpr>!       zerror_list.<locals>.<genexpr>Nc                 s   r   r   r   r   r   r   r
   r   "   r   /z->iz>25z |    )centerzip	enumeratejoinappend)train_sents
test_sentshdrerrors
train_sent	test_sentwordnumword	train_postest_posleftrightmidr   r   r
   
error_list   s"   
 2r!   N)r!   r   r   r   r
   <module>   s   