Accessing fasttext vectors in spaCy #10034
-
I have converted the fasttext vectors into spacy format using Here it says that I have to set the path of vectors to E:\Spacy\output_dir in config.cfg file. Now there are two config.cfg files, one default file and the other one created in the E:\Spacy\output_dir . Which one to update? I have updated the default one and executed the following code; In this code, I am trying to access vectors in it but it is giving the following error; Where am I doing the mistake? When I am using the following code I am able to see the vectors; Can't I access the vectors without loading the model? What for is vectors inside the config.cfg then? Please explain. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Don't paste screenshots of code, copy and paste text as text.
When you create a config, you can specify the directory vectors in spaCy format are saved in to load, and that will be made available in your model. |
Beta Was this translation helpful? Give feedback.
Don't paste screenshots of code, copy and paste text as text.
spacy.blank
loads a blank model, it doesn't check any config anywhere. You need to load a model to get vectors.When you create a config, you can specify the directory vectors in spaCy format are saved in to load, and that will be made available in your model.