Module to define common data structures for autocorpus.
Classes
Paragraph(section_heading, subsection_heading, body, section_type)
dataclass
A paragraph for a section of the article.
Functions
as_dict()
Return the dictionary representation of the Paragraph.
Source code in autocorpus/data_structures.py
| def as_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the Paragraph."""
return asdict(self)
|
SectionChild(subheading, body)
dataclass
A child node in the section.