Datasets:

Modalities:
Text
Formats:
json
Languages:
Slovak
DOI:
Libraries:
Datasets
pandas
License:
fejso commited on
Commit
aaa23bb
·
verified ·
1 Parent(s): 6f02c03

Update automatic_evaluation.py

Browse files
Files changed (1) hide show
  1. automatic_evaluation.py +1 -12
automatic_evaluation.py CHANGED
@@ -23,17 +23,6 @@ def load_jsonl_file(file_path: str):
23
  return data
24
 
25
 
26
- def load_json_file(file_path: str):
27
- """
28
- Load json file
29
- :param file_path: path to the file
30
- :return: json data
31
- """
32
- with open(file_path, "r", encoding="utf-8") as f:
33
- data = json.load(f)
34
- return data
35
-
36
-
37
  if __name__ == '__main__':
38
  # get file names
39
  f_annotated_final = sys.argv[1]
@@ -42,7 +31,7 @@ if __name__ == '__main__':
42
  # load files
43
  print("Loading datasets")
44
  final_annotated = load_jsonl_file(f_annotated_final)
45
- predicted = load_json_file(f_predicted_final)
46
  print("Loaded datasets")
47
 
48
  # filtering parsing annotated dataset
 
23
  return data
24
 
25
 
 
 
 
 
 
 
 
 
 
 
 
26
  if __name__ == '__main__':
27
  # get file names
28
  f_annotated_final = sys.argv[1]
 
31
  # load files
32
  print("Loading datasets")
33
  final_annotated = load_jsonl_file(f_annotated_final)
34
+ predicted = load_jsonl_file(f_predicted_final)
35
  print("Loaded datasets")
36
 
37
  # filtering parsing annotated dataset