Skip to content

Use the ac_bioc dataclasses in main AC code #275

@AdrianDAlessandro

Description

@AdrianDAlessandro

The autocorpus.py module returns data in dictionaries in BioC format, but a lot of that structure is replicating the dataclasses in the ac_bioc package. The code should be adapted to use these dataclasses instead of dictionaries.

This will have the benefit of improved consistency throughout the code as well and strengthening the type-security across the code.

An example:

  • The dictionary returned by get_formatted_bioc_document in bioc_documents.py serves the same purpose as the ac_bioc.BioCDocument dataclass. The function should be changed to return the BioCDocument type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions