Stable tested version
diff --git a/my_utils/file_utils.py b/my_utils/file_utils.py
index 1865fc5..4dbe1b4 100644
--- a/my_utils/file_utils.py
+++ b/my_utils/file_utils.py
@@ -22,6 +22,7 @@
with open(out_path, "w", encoding='utf8') as out:
json.dump(my_dict, fp=out, ensure_ascii=False)
+
def file_to_dict(file_path):
d = {}
with open(file_path) as f:
@@ -36,7 +37,6 @@
out.write(tok.get_conllU_line()+"\n")
out.write("\n")
-
def file_generator(file_path):
with open(file_path, "r") as data_file:
logger.info("Reading instances from lines in file at: %s", file_path)
@@ -121,4 +121,4 @@
raise Exception
return fixed_filename
else:
- return fname
\ No newline at end of file
+ return fname