Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Error when saving new untrained model: 'bool' object is not subscriptable #2482
Following the example in Updating the Named Entity Recognizer, I created a blank model and added an named entity recognizer to the pipeline.
I then tried to save the model and got an error.
If I run
(If I don't add the
Is this the correct behavior? I would expect that I would be able to save an empty model.
Info about spaCy
I don't understand why sometimes when i run train_ner.py under examples, the loss function minimizes, but then it reaches a point then the shell restarts. it is almost like a global minimum couldn't be reached and so the trainer gives up.
Some other details: