I’ve run into a weird issue where if I run ner.teach using prodigy.serve, the label filtering does not work and I see entities of all types. If I run it from the command like like normal, the filtering does work. Any idea what’s going on? I’m including the two commands below.
Ah, I think I know what the problem might be: Try setting all recipe arguments as positional arguments in the order of argument annotations, and use None for the ones you don’t want to set, e.g.:
The way this is currently handled is probably not ideal – the positional arguments are passed into the recipe, while the keyword arguments are used as the recipe config. Instead, prodigy.serve should probably allow specifying the recipe arguments as positional arguments and keyword arguments, and take an optional config keyword argument that’s not passed into the recipe.