Skip to content

Is it possible to generate a config.cfg for a spaCy v2 model? #7054

Discussion options

You must be logged in to vote

Hi! The problem here goes a bit deeper: the model implementations and various other aspects of the internals have changed between v2 and v3, in order to support more accurate pipelines, shared embeddings (including transformers) and so on. So even if you generated a config file, the weights trained with v2 wouldn't be compatible with the v3 components, so your pipeline wouldn't be able to make meaningful predictions.

So the best solution for your situation would be to retrain your models using spaCy v3. You can use spacy init config to auto-generate a config file for the components you're using, spacy convert to convert your data and spacy train to train your pipeline.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@CedricMingneau
Comment options

@ines
Comment options

@sudharsan2020
Comment options

@danieldk
Comment options

Answer selected by CedricMingneau
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / config Feature: Training config v2 spaCy v2.x
4 participants