Wonder it's a regression.
Custom recipe doesn't work any more. The same recipe worked with 1.9.6. This is the error I got -
✘ Can't find recipe or command 'custom.textcat.teach'.
Here is command I used -
PRODIGY_PORT=8000 prodigy custom.textcat.teach dataset blank:en
data.jsonl –F custom_textcat.py
Here is the custom_textcat.py
import prodigy
from prodigy.recipes.textcat import teach
@prodigy.recipe('custom.textcat.teach',
dataset=prodigy.recipe_args['dataset'],
spacy_model=prodigy.recipe_args['spacy_model'],
source=prodigy.recipe_args['source'],
patterns=prodigy.recipe_args['patterns'],
label=prodigy.recipe_args['label_set'])
def custom_textcat_teach(dataset, spacy_model, source, patterns, label=None):
components = teach(dataset=dataset, spacy_model=spacy_model,
source=source, patterns=patterns, label=label)
with open('/home/ec2-user/anaconda3/lib/python3.7/site-packages/prodigy/extension/template.html', 'r') as f:
template = f.read()
components['config']['html_template'] = template
components['view_id'] = 'html'
return components