Spacy cli pretrain function #11007
Replies: 2 comments 2 replies
-
Hey, please do not past screenshots of code or errors, copy and paste them as text. |
Beta Was this translation helpful? Give feedback.
-
First, to be clear, you don't have to use pretraining, it's an optional feature. In some situations it can help, but not all, so it's fine not to use it. If you are just getting started I would suggest not using until you get your models working generally. The values for arguments for pretrain are covered in the docs. Also for pretraining, while you can use the same config file as for normal training, you need to add more fields to it. This is covered in the usage docs on pretraining. Normally you would not call pretrain from the function, you would instead call it from the command line. You can use the command line even in Google Colab. Is there a reason you are using the function instead? You didn't share any error, so I'm not sure what's not working. What is the error you got? Did you put the pretrain fields in your config? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Good morning,
I would like to understand how to correctly set the pretrain function offered by spacy v3.
I am using spacy on Google Colab, saving the various folders with the models on google drive (from which I extract the paths). I would like to retrain some costum models on new prepared datasaets, starting from the one already pre-trained in order to have an improvement of the model.
For the train I used the train cli function correctly, but I have difficulty in setting the pretrain parameters, first of all can my problem be solved with this function?
Could I know more fully what the fields to be entered refer to? (ex: the correct path of the resume-path)
The configuration file, from the documentation, is the same as the train, but it reports errors to me
Thank you so much
Martina
Beta Was this translation helpful? Give feedback.
All reactions