Traceback (most recent call last):


 "/Users/user/Documents/project/ner/custom-ner/src/handler2.py", line 138, in handler

losses =
nlp.rehearse(examples, sgd=optimizer, losses=losses) if is_model_exists else ner.update(examples, sgd=optimizer, losses=losses)


 "/Users/user/.local/share/virtualenvs/custom-ner-hlJnNjaT/lib/python3.7/site-packages/spacy/language.py", line 1174, in rehearse

examples, sgd=get_grads, losses=losses, **component_cfg.get(name, {})


 "spacy/pipeline/transition_parser.pyx", line 430, in spacy.pipeline.transition_parser.Parser.rehearse


 "spacy/pipeline/trainable_pipe.pyx", line 246, in spacy.pipeline.trainable_pipe.TrainablePipe.finish_update


 "/Users/user/.local/share/virtualenvs/custom-ner-hlJnNjaT/lib/python3.7/site-packages/thinc/model.py", line 325, in finish_update

(node.id, name), node.get_param(name), node.get_grad(name)


 "/Users/user/.local/share/virtualenvs/custom-ner-hlJnNjaT/lib/python3.7/site-packages/spacy/language.py", line 1164, in get_grads

grads[key] = (W, dW)
TypeError: unhashable

Traceback (most recent call last):


 "pysguiwx.py", line 105, in <module>

theme_browser()


 "pysguiwx.py", line 85, in theme_browser

[sg.Listbox(values=sg.theme_list(), size=(20, 12), key='-LIST-', enable_events=True)],
TypeError: __init__() got an unexpected keyword argument 'enable_events'
