Error on Trianing Custom NER on Spacy 3.0 #12483
-
I ran into this error:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
This example is an incompatible mix spacy v2 and v3 code and there are a lot of additional details that will be incorrect for working with v3 transformer pipelines like We strongly recommend using the pipeline demo projects as a starting point, see an intro here: https://github.com/explosion/spaCy/tree/v3.5.1/examples. For updating |
Beta Was this translation helpful? Give feedback.
-
I went through the documentation. Also I have got the training examples in the correct format but I am not sure about the training loop:
After training it on a large no of samples it is not able to generate the correct NER tags. |
Beta Was this translation helpful? Give feedback.
-
Hey vrunn, We recommend using the training loop from |
Beta Was this translation helpful? Give feedback.
This example is an incompatible mix spacy v2 and v3 code and there are a lot of additional details that will be incorrect for working with v3 transformer pipelines like
en_core_web_trf
.We strongly recommend using the pipeline demo projects as a starting point, see an intro here: https://github.com/explosion/spaCy/tree/v3.5.1/examples. For updating
en_core_web_trf
, refer to the project pipelines/ner_demo_update (there are a number of training details to get correct for effective transformer training).