Hi,
I went ahead and used prodigy to train a text classification model and am now trying to test that on a sample phrase.
import spacy
from spacy.lang.en import English
from spacy.pipeline import TextCategorizer
nlp = English()
textcat = TextCategorizer(nlp.vocab)
textcat.from_disk("text_cat_model/textcat")
doc = nlp("I love cats")
processed = textcat(doc)
My problem is when I try to load the model output from prodigy I get the following error:
File "C:\Python37\lib\site-packages\srsly\util.py", line 21, in force_path
raise ValueError("Can't read file: {}".format(location))
ValueError: Can't read file: text_cat_model\textcat\vocab\strings.json
My file structure is as follows:
Wondering if someone could help me figure out what I am doing wrong?
Thanks.