Using a customized NER model in the RE model #11205
Replies: 4 comments 14 replies
-
Perhaps there is something to do with freezing
|
Beta Was this translation helpful? Give feedback.
-
It makes sense to have your own NER model when creating a real relex pipeline. Sourcing the NER component is also fine. However, like the error says, the vectors need to match. The issue in this case is probably that you don't have the same word vectors in the NER pipeline and the pipeline you're sourcing them in. You can specify If that doesn't fix it, it would help to have the full config for both of your pipelines. |
Beta Was this translation helpful? Give feedback.
-
May I ask what "reallystic scenarious" refers to? Is there a typo in the video's subtitles? |
Beta Was this translation helpful? Give feedback.
-
@polm I am wrinting as a new topic because I have tried a new approach: merging all process in one projec (tokenizer, NER and RE).
Here is the entire trace back:
Here is the package's
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there!
First of all thanks for this amazing framework!!
I am woking on a project where we are training two pipelines: NER (actually, we are improving an already existing model adding new tags) and a Relation Extraction model, on different spaCy projects.
The first (NER improvement) project were built quite straight-forward, using the spaCy project quick start.
Looking on spaCy tutorial about RE, specially in this video version, Sophie makes it clear that the example is not considering the NER process in the pipeline, but only, tok2vec and the relation_extraction being created, suggesting that in a "reallystic scenarious" we should add NER.
So, as I have a customized NER trained specifically for my project I would like to ensure using it in the context of the RE model.
Considering that the
tok2vec
is essential to therelation_extraction
by its use in thecreate_instance_tensor
, I kept it as a component and just added a aner
to the pipeline with the above block:By the way, the
my_NER_enhacement
, is the already trained model on a different spacy project, intalled fromtar.gz
.So, my questions are:
Sourced component 'ner' may not work as expected: source vectors are not identical to current pipeline vectors. warnings.warn(Warnings.W113.format(name=sourced_component))
🚫
ValueError: Shape mismatch for blis.gemm: (15, 96), (256, 64)
See complete
trackback
:Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions