
    /h                     
    S  r g)c                    S<S SSR                  S5      < SS< S3nU/n[        X5       H  u  pE[        U5       H  u  nu  pxXV   S   n	X:w  d  M  S	R                  S
 USU  5       5      n
S	R                  S XFS-   S  5       5      nU SU	 SU 3nUR	                  U
SS S SUR                  S5       SUSS  35        M     M     U$ )z
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left contextz>25z | zword/test->gold   zright contextzO
--------------------------+------------------------+--------------------------    c              3   ,   #    U  H
  nS U-  v   M     g7fz%s/%sN .0ws     N/var/www/auris/envauris/lib/python3.13/site-packages/nltk/tbl/erroranalysis.py	<genexpr>error_list.<locals>.<genexpr>!   s     J5I!5I   Nc              3   ,   #    U  H
  nS U-  v   M     g7fr   r   r	   s     r   r   r   "   s      P6O16Or   /z->i   )centerzip	enumeratejoinappend)train_sents
test_sentshdrerrors
train_sent	test_sentwordnumword	train_postest_posleftrightmids                r   
error_listr%      s     	  $C
 UF!$[!=
*3J*?&G&d )!,H$xxJZ5IJJ Pj16O PPazI;7cdC 0CJJrN3C3uSbzlST +@ "> M    N)r%   r   r&   r   <module>r'      s
   r&   