ace2005-preprocessing icon indicating copy to clipboard operation
ace2005-preprocessing copied to clipboard

FileNotFoundError: [Errno 2] No such file or directory: '/ace_2005_td_v7/data/English/un/timex2norm/alt.vacation.las-vegas_20050109.0133.apf.xml'

Open Jiamengwei7 opened this issue 2 years ago • 0 comments
trafficstars

Thank you for your sharing. I have a issue. When I process ACE data by using this code, it occurs the following issue.

Traceback (most recent call last): File "main.py", line 229, in preprocessing('train', train_files) File "main.py", line 100, in preprocessing parser = Parser(path=file) File "Code/bert-event-extraction/ace2005-preprocessing/parser.py", line 16, in init self.entity_mentions, self.event_mentions = self.parse_xml(path + '.apf.xml') File "Code/bert-event-extraction/ace2005-preprocessing/parser.py", line 167, in parse_xml tree = ElementTree.parse(xml_path) File "anaconda3/envs/pytorch_38/lib/python3.8/xml/etree/ElementTree.py", line 1202, in parse tree.parse(source, parser) File "anaconda3/envs/pytorch_38/lib/python3.8/xml/etree/ElementTree.py", line 584, in parse source = open(source, "rb") FileNotFoundError: [Errno 2] No such file or directory: '/ace_2005_td_v7/data/English/un/timex2norm/alt.vacation.las-vegas_20050109.0133.apf.xml'

Jiamengwei7 avatar Nov 05 '23 12:11 Jiamengwei7