Skip to content

Serializing user data in Doc objects #785

@mupavan

Description

@mupavan

I am using the spacy for doing some research on entity typing. Since, the doc object doesn't support addition of any new first class fields into it, I am using the suggested way of adding any new annotations/predictions into a custom datastructure in the user_data field of the doc object. The problem is that the default doc serializer - doc.to_bytes() doesn't seem to have support for user_data. I wanted to know if there is any suggested default way of doing it and if there are any plans to support user_data into doc serialization in the future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFeature requests and improvements🌙 nightlyDiscussion and contributions related to nightly builds

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions