Training on part of the custom annotations

Hi! If you've annotated all labels in one dataset, one option would be to separate them into multiple sets (e.g. one per label, or one for the label you're most interested in) by connecting to the database in Python:

from prodigy.components.db import connect

db = connect()
examples = db.get_dataset("your_dataset_with_all_labels")
new_examples = []
for eg in examples:
    spans = [span for span in eg.get("spans", []) if span["label"] == "EDUCATION"]
    eg["spans"] = spans
    new_examples.append(eg)

db.add_dataset("your_dataset_education")
db.add_examples(new_examples, ["your_dataset_education"])

You now have one dataset with only the spans you labelled as EDUCATION and you'll be able to run experiments with it separately.