You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it just me or is it not possible anymore to load tagged Sentence objects that have been stored in pickle files? If I do so, there's an TypeError: Span.__new__() missing 1 required positional argument: 'tokens' thrown. This hasn't been an issue in older flair versions.
Any workarounds? Thank you all!
edit: pos-tagged sentences actually work, I just tried. It seems to be specifically NER that causes the problem - maybe other models I haven't tried as well.
The text was updated successfully, but these errors were encountered:
Hi @michaelgoeggelmann
I am sorry for responding so late.
I am not sure if the DataObjects were ever intendet to be saveable via pickle, but in generall I would recommend you to avoid pickle whenever possible.
Depending on your usecase, you could use sentence.to_dict() to get a json-serializable dict and save that one instead.
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.
Question
Is it just me or is it not possible anymore to load tagged Sentence objects that have been stored in pickle files? If I do so, there's an
TypeError: Span.__new__() missing 1 required positional argument: 'tokens'
thrown. This hasn't been an issue in older flair versions.Any workarounds? Thank you all!
edit: pos-tagged sentences actually work, I just tried. It seems to be specifically NER that causes the problem - maybe other models I haven't tried as well.
The text was updated successfully, but these errors were encountered: