Train NER with POS and DEP annotations – Error [E024] #9665
-
|
Hi, I am trying to add POS and DEP annotations as input to train a new NER model (and updating the tok2vec component from 'en_core_web_lg' vectors). I'm receiving an error when trying to train the pipeline after the first epoch: The curious thing is that if I comment out the The error dissappears and all I get is a warning Any ideas why this error occurs in the first scenario?
and I checked that Any pointers would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Before getting into the details: I wouldn't expect adding Since [components.tagger]
source = ${paths.source}
...
[components.tagger.model.tok2vec.embed]
@architectures = "spacy.MultiHashEmbed.v1"
attrs = ["NORM","DEP"]You can't change the Instead, for
With a |
Beta Was this translation helpful? Give feedback.
-
|
Hi @adrianeboyd, Thanks for your quick reply. I have adapted my training config according to your suggestions and it is working now. 👍 For background information, I am training an That said, I only see a 1-2% performance increase, which is well within the error marging of indiidual training runs so that's dissapointing. The reason for using a 'large' model rather than the |
Beta Was this translation helpful? Give feedback.
Before getting into the details: I wouldn't expect adding
TAGorDEPas features to help thenerperformance much, but there's obviously nothing preventing you from trying it out. We'd be curious about the results!Since
taggerandparserboth listen to the sametok2vec, replacing the listeners will make the model larger and slower without much other benefit. And you can eithersourcethe components or train them from scratch with different features, not both, so you can't do this:You can't change the
attrsfor a sourced component (i…