Skip to content

data_structures

autocorpus.data_structures ¤

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
16
17
18
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.