Improve the error message when loading a model with an incompatible pipeline #15

Open
opened 2025-10-14 16:19:09 -06:00 by navan · 0 comments
Owner

Originally created by @swfarnsworth on 12/12/2020

Currently, it is incumbent on the user to know which pipeline configuration they used when creating a model. If one loads a model that they had saved, and do not use exactly the same pipeline configuration, the program will most likely fail, though there might be a few coincidental cases where it works or silently performs unexpected behavior. One could currently get one of several uninformative errors.

We should seek to validate that the model and the pipeline are compatible when the model is loaded and raise an exception that conveys as much when this is not the case.

*Originally created by @swfarnsworth on 12/12/2020* Currently, it is incumbent on the user to know which pipeline configuration they used when creating a model. If one loads a model that they had saved, and do not use exactly the same pipeline configuration, the program will most likely fail, though there might be a few coincidental cases where it works or silently performs unexpected behavior. One could currently get one of several uninformative errors. We should seek to validate that the model and the pipeline are compatible when the model is loaded and raise an exception that conveys as much when this is not the case.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/medaCy#15
No description provided.