(self, path)
| 3 | |
| 4 | class Parser: |
| 5 | def __init__(self, path): |
| 6 | self.entity_mentions = [] |
| 7 | self.event_mentions = [] |
| 8 | self.relation_mentions = [] |
| 9 | self.parse_xml(path + '.apf.xml') |
| 10 | |
| 11 | def parse_xml(self, xml_path): |
| 12 | tree = ElementTree.parse(xml_path) |