Skip to content

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

Open
@Jiamengwei7

Description

@Jiamengwei7

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions