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
Loading one of the packaged models using Classifier.load() will cause error messages that a model is not found, even if it is found and loaded.
The problem has become visible through the addition of the PrefixedSequenceTagger class. The loading mechansim in Classifier cycles through all inheriting subclasses (TextClassifier, TokenClassifier, SequenceTagger, etc.), attempts to load the model and if it fails, moves on to the next class. However, some classes output their own error messages, so these are seen by the user.
Describe the bug
Loading one of the packaged models using Classifier.load() will cause error messages that a model is not found, even if it is found and loaded.
The problem has become visible through the addition of the
PrefixedSequenceTagger
class. The loading mechansim inClassifier
cycles through all inheriting subclasses (TextClassifier
,TokenClassifier
,SequenceTagger
, etc.), attempts to load the model and if it fails, moves on to the next class. However, some classes output their own error messages, so these are seen by the user.To Reproduce
Expected behavior
An error message should only be shown if no model can be loaded.
Logs and Stack traces
No response
Screenshots
No response
Additional Context
No response
Environment
Python 3.9,
current master branch
The text was updated successfully, but these errors were encountered: