-
Notifications
You must be signed in to change notification settings - Fork 27
ExtractedReport Class
The ExtractedReport
class is used as a wrapper around reports found during article processing, and is implemented in extracted_report.py
.
ExtractedReport
initialization:
def __init__(self, locations, event_term, subject_term, quantity, story, tag_spans=[])
The argument locations
is a list of Facts with type=loc
.
self.locations
is a list of location names (i.e. Fact string representation)
The argument event_term
is a Fact with type=term
.
self.event_term
is the string representation of the Fact.
The argument subject_term
is a Fact with type=unit
.
self.subject_term
is the string representation of the Fact.
The argument quantity
is a Fact with type=quantity
.
self.quantity
is an integer (the underlying text converted to int
).
The article that has been processed.
An array containing the location in the article and type of each element found; stored as dictionaries. For example:
[{"type": "term", "start": 20, "end": 28}, {"type": "unit", "start": 47, "end": 56}]