Managing large number of models #11066
Replies: 1 comment
-
Projects are actually designed with this kind of abstraction in mind. There are two layers of abstraction it's helpful to know about:
These are quite similar, but they do technically happen in different places. For project file overrides, you can make a For the config file overrides, these are specified on the command line - in many of our tutorials we have arguments like So putting this all together you can have bits like this in
And then you can call It's easy to miss, but this is mentioned in the documentation in this section. |
Beta Was this translation helpful? Give feedback.
-
I'm working on a project where we are using Spacy to extract information from documents. We are looking for different kinds of information, so we are using several Spancat projects and several textcat projects. On top of this, we want to solve the problem for several languages. I expect that for most languages, the workflows for projects would be quite similar.
What is the best way to handle this using Spacy projects? Create m (number of models) x n (number of languages) projects? Is there a way to reuse similar code between projects? Or to somehow parametrize projects and do something like
spacy project run train_model_X english
and thenspacy project run train_model_X german
?Beta Was this translation helpful? Give feedback.
All reactions