Spaces:
Sleeping
Sleeping
File size: 173 Bytes
ecd1842 |
1 2 3 4 5 6 |
import json
def load_index_to_word(path="index_to_word.json"):
with open(path, "r", encoding="utf-8") as f:
return {int(k): v for k, v in json.load(f).items()}
|