No Vectors When Using en_core_web_trf? #9076
-
After running this:
...has_vector == True But after running this:
...has_vector == False What am I missing? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 12 replies
-
Nothing. The en_core_web_trf (transformer pipeline) does not include vectors. |
Beta Was this translation helpful? Give feedback.
-
What @felipefoschiera wrote is correct, |
Beta Was this translation helpful? Give feedback.
-
The sample code I have for spacy transformers is for spacy v2.3 and works with vectors. It fits a model like this:
I spent hours Friday searching for the equivalent code for spacy v3.1 and haven't yet found it. (Maybe it was in front of me and I didin't recognize it.) Could you please post sample code here, or post a link to sample code? |
Beta Was this translation helpful? Give feedback.
-
Hey @felipefoschiera I find myself working on a similar task and I'm using the spaCy CLI to train the model. I trained it using 2 different configs:
Is this what you've done as well? I cannot find an explanation for the bump in accuracy or what the model architecture even looks like with both vectors and a transformer. Do you have any experience with this? Adding a snippet from the 2nd config file.
|
Beta Was this translation helpful? Give feedback.
The sample code I have for spacy transformers is for spacy v2.3 and works with vectors. It fits a model like this:
I spent hours Friday searching for the equivalent code for spacy v3.1 and haven't yet found it. (Maybe it was in front of me and I didin't recognize it.) Could you please post sample code here, or post a link to sample code?