import json v = json.load(open('vocab.json')) print(f'Current vocab size: {len(v["char_to_idx"])}')