using prodigy.serve for textcat.batch-train

Btw, no idea why I didn’t think of this earlier but… prodigy.serve is really mostly intended for serving the Prodigy application. The batch_train recipe is just a regular function, so the easiest way to use it is to import it and call it as a function.

from prodigy.recipes.textcat import batch_train

batch_train(...)  # etc.
2 Likes