flair icon indicating copy to clipboard operation
flair copied to clipboard

gh-3243: support pickle & deepcopy

Open helpmefindaname opened this issue 1 year ago • 1 comments

Closes gh-3243

A suggestion how we could support pickle and deepcopy without having to create multiple spans etc.

The idea is to use __getitem__ to create spans and relations by indexing: sentence[0:5] to create a span, sentence[span_a, span_b] to create a relation.

Downside would be, that those who still instantiate Span or Relation manually, would receive unexpected results.

@dobbersc @alanakbik what do you think?

helpmefindaname avatar May 22 '23 15:05 helpmefindaname

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Mar 17 '24 11:03 stale[bot]