Late to the party, but I've successfully changed labels just using sed
.
sed 's,"label":"OLD_LABEL","label":"NEW_LABEL",g' old_task.jsonl > new_task.jsonl
Late to the party, but I've successfully changed labels just using sed
.
sed 's,"label":"OLD_LABEL","label":"NEW_LABEL",g' old_task.jsonl > new_task.jsonl