import json with open("data/labels.json", "r") as f: labels = json.load(f) for k, v in labels.items(): k = k.replace("__label__", "") print(f"'{v}': {k}")