(xml_path)
| 83 | |
| 84 | |
| 85 | def parse_xml(xml_path): |
| 86 | parser = Parser(os.path.join(args.data, xml_path)) |
| 87 | return OrderedDict([ |
| 88 | ('entities', parser.entity_mentions), |
| 89 | ('events', parser.event_mentions), |
| 90 | ('relations', parser.relation_mentions) |
| 91 | ]) |
| 92 | |
| 93 | |
| 94 | def process_data(opt, model, filenames, split): |