After creating my textcat-model, I go into the python interpereter and put the following code:
import spacy
nlp = spacy.load('textcat-model')
However, it doesn't work and all I get is:
Could not read meta.json from trait-model
Any ideas?
After creating my textcat-model, I go into the python interpereter and put the following code:
import spacy
nlp = spacy.load('textcat-model')
However, it doesn't work and all I get is:
Could not read meta.json from trait-model
Any ideas?
Are you sure you're loading the correct directory and the path exists? Maybe double-check that the folder textcat-model
is in the current working directory and that it's the path to the model directory. If textcat-model
is the top-level directory that you saved the output to after training, the actual model data might be in textcat-model/model-best
.