Pipeline with 2 NER: One trained, one from en_core_web_md #10340
Unanswered
oliviercwa
asked this question in
Help: Coding & Implementations
Replies: 1 comment 2 replies
-
You want to source the component (with no additional settings beyond changing its name) and initialize the vectors from the same model: [components.en-core-web-md-ner]
source = "en_core_web_md"
component = "ner"
[initialize]
vectors = "en_core_web_md" A pipeline can only contain one set of vectors, but it's no problem to have both a |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am creating a pipeline with 2 NER:
I am only training the first one but I want my final pipeline to have both: The trained transformer AND the en_core_web_md NER.
I don't have any problem with the first one, however for the second one, I need the model to be fully embedded as the en_core_web_md can't rely on the tensor created from the the first model.
Here is an excerpt from the config with the en-core-web-md-ner definition
However when I train my transformer, I am getting a UserWarning W113:
How can I tell the config to use en_core_web_md as source AND copy all embeddings (tok2vec) AND models from the source AND ignore the ones from the Transformer ?
Note #1 that I have also tried the following with the same outcome.
Note #2: I have also tried to train first my transformer, load the resulting pipeline (my_pipeline) and add the en-core-web-md via APIs
When I do this, I am getting the following warning
Beta Was this translation helpful? Give feedback.
All reactions