Closed ghost closed 4 years ago
Hi, I think extra_labels
is an old setting that isn't used anymore.
spacy train
should automatically add any new labels it sees in the training data. If you load your trained model, you can see the labels with nlp.entity.labels
and you can also find a list in meta.json
in the saved model.
Hello, thanks for response.
I thought train problem for about that but ı little bit search more. Now ı use cli-train and it works! I think problem was my parameters.
When use manuel training, these labels doesnt show on meta.json but cli-train is okay.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
When adding label for existing custom trained named entity model, it doesnt add labels.
I trained model with spacy cli
python3 -m spacy train tr [output_path] [train_path] [dev_path] --n=200
After train, when ı looked to ner/cfg file
{ "beam_width":1, "beam_density":0.0, "cnn_maxout_pieces":3, "deprecation_fixes":{ "vectors_name":"spacy_pretrained_vectors" }, "beam_update_prob":1.0, "nr_class":17, "hidden_depth":1, "token_vector_width":96, "hidden_width":64, "maxout_pieces":2, "pretrained_vectors":null, "bilstm_depth":0 }
First model was 2.0.16 version of Spacy and its work well. When upgrade to 2.1.9, ı have problem about that.
{ "beam_width":1, "beam_density":0.0, "cnn_maxout_pieces":3, "deprecation_fixes":{ "vectors_name":"spacy_pretrained_vectors" }, "nr_class":1, "hidden_depth":1, "token_vector_width":128, "hidden_width":200, "maxout_pieces":2, "pretrained_vectors":null, "hist_size":0, "hist_width":0, "extra_labels":[ "PERSON", "LOCATION", "MISC", "ORGANIZATION" ] }
Thanks.