I have been working with this parsed file on Universal Petrarch. When I run Petrarch on it, it fails on reading the file, and gives this error:
Traceback (most recent call last):
File "petrarch_ud.py", line 471, in <module>
main()
File "petrarch_ud.py", line 81, in main
run(paths, out , True) ## <===
File "petrarch_ud.py", line 423, in run
events = PETRreader.read_xml_input(filepaths, s_parsed)
File "...../UniversalPetrarch/PETRreader.py", line 2373, in read_xml_input
holding[entry_id]['sents'][sent_id] = sent_dict
UnboundLocalError: local variable 'sent_id' referenced before assignment
I am suspecting this issue has to do with duplicate sentence/story id's, but I am not 100% sure. What I am currently doing is skipping those which cause this issue and it seems to be working.
I have been working with this parsed file on Universal Petrarch. When I run Petrarch on it, it fails on reading the file, and gives this error:
I am suspecting this issue has to do with duplicate sentence/story id's, but I am not 100% sure. What I am currently doing is skipping those which cause this issue and it seems to be working.