Skip to content

Formalize schema of deserialized output with Pydantic #59

@JohnGiorgi

Description

@JohnGiorgi

Right now, we have a deserialized output format that looks like:

[
    {
        "ADE": [
            (("fenoprofen", "DRUG"), ("pure red cell aplasia", "EFFECT"))
        ]
    }
]

it would be nice to capture this schema with a Pydantic model. I think this would simplify some of the code that has to interact with this object, but it would also make it easier to save/load this from disk.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions