From 9c5f42153f836abc6e7331a04c47b7fbe4c6d9aa Mon Sep 17 00:00:00 2001 From: Christian Risi <75698846+CnF-Gris@users.noreply.github.com> Date: Fri, 3 Oct 2025 15:17:44 +0200 Subject: [PATCH] fixed typos --- Project_Model/Libs/BPE/Utils/json_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Project_Model/Libs/BPE/Utils/json_utils.py b/Project_Model/Libs/BPE/Utils/json_utils.py index 716e93a..b98ac2f 100644 --- a/Project_Model/Libs/BPE/Utils/json_utils.py +++ b/Project_Model/Libs/BPE/Utils/json_utils.py @@ -2,15 +2,15 @@ import json from pathlib import Path -def save_json(vocabulary: dict, path: Path): +def save_json(dictionary: dict, path: Path): - json_string = json.dumps(vocabulary) + json_string = json.dumps(dictionary) FILE = open(path, "w") FILE.write(json_string) FILE.close() -def load_json(path: Path) -> dict[tuple[int, int], int]: +def load_json(path: Path) -> dict: FILE = open(path, "r") json_string = FILE.read() FILE.close()