Hello,
I have trained the prodigy model. Now I want to test the output using test_data. Is there any way to get predictions for test_data (probably in JSON format)?
Thank You!
Aaina.
Hello,
I have trained the prodigy model. Now I want to test the output using test_data. Is there any way to get predictions for test_data (probably in JSON format)?
Thank You!
Aaina.
Hi! If you used the built-in workflows like the train
recipe to train your model, the model package you've exported is a regular spaCy model.
So you can run spacy.load()
with the path to your exported model to load it, and then run it over your data and access its predictions. You can find more details in the usage documentation:
If you want to run your own custom evaluation, you can also use the nlp.evaluate
method, or even pass in the test data as the evaluation set during training.