-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v2: Take existing model and retrain NER #1130
Comments
Reminds me of #1052 in the v1.x, which is caused by a missing mapping in the tag_map. |
I think @twielfaert analysis sounds correct -- likely something missing from the tag map. By the way, the capability to add new entity labels to a pre-trained model is temporarily not working. We need to be able to resize the output weights, which isn't wired up yet. |
@abhishekgupta10 Just follow what it says here: https://alpha.spacy.io/docs/usage/training-ner |
@honnibal is there a specific issue tracking the capability to add new entity labels to pre-trained models for v2? |
Sorry about the messy training examples an docs! I spent the past few days going over all examples, cleaning them up and adding more documentation. Here's the new training examples directory: The current state only works with the spaCy version on (Unless there are serious bugs or problems, the upcoming alpha version will probably also be the version we'll promote to the release candidate 🎉 ) |
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. |
I've seen https://alpha.spacy.io/docs/usage/training-ner and I really like it.
I was going to try to take the existing alpha model (which already contains deps/NER), and I was hoping it is possible to train a few iterations over a small set of my data.
Like mentioned in the documentation, it is advised to annotate data it with one model, and then overwrite some things. (rather than really take a loaded model as a starting point, I tried that also, but it also does not train like that).
So, I made sure
tags
,heads
anddeps
are correct inreformat_train_data
, on a small data set, and tried to train a model from scratch, changing the code to:I expected that then everything should work automatically.
The error:
Am I trying something that has no chance to work?
The normal example works fine, it just seems that introducing tagger+parser in the pipeline does not work currently?
The text was updated successfully, but these errors were encountered: