MCPcopy Create free account
hub / github.com/Clearailhc/ACE2005-toolkit / __init__

Method __init__

ace_parser.py:5–9  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

3
4class 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)

Callers

nothing calls this directly

Calls 1

parse_xmlMethod · 0.95

Tested by

no test coverage detected