JL i dZy)c ddddjdddd}|g}t||D]\}}t|D]\}\}}||d} || k7sd jd |d |D} d jd ||dzd D} |d | d|} |j | dd dd| jdd| d d|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 left contextz>25z | zword/test->goldz right contextzO --------------------------+------------------------+-------------------------- c3&K|] }d|z ywz%s/%sN.0ws \/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/nltk/tbl/erroranalysis.py zerror_list..!sJ! JNc3&K|] }d|z ywrrr s r r zerror_list.."s P1 Pr/z->i)centerzip enumeratejoinappend) train_sents test_sentshdrerrors train_sent test_sentwordnumword train_postest_posleftrightmids r error_listr$ s   $ C UF!$[*!=U I*3J*? U &G&dI )!,HH$xxJZ5IJJ Pj16O PPazI;7 cdC 0CJJrN3C3uSbzlST  UU MN)r$rr%r r&s r%