Rename label_to_id to label_to_idx in label_mapping.json
#1
by fjvicens - opened
This PR fixes a key name mismatch in label_mapping.json. semantic-router expects the BIO label mapping under label_to_idx; when it is named label_to_id, no PII labels are detected and initialization fails. Using label_to_id causes semantic-router to fail at startup with:
not enough PII types for classification, need at least 2, got 0
HuaminChen changed pull request status to merged