-
Notifications
You must be signed in to change notification settings - Fork 5
/
check.py
50 lines (39 loc) · 1.97 KB
/
check.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import json
# for i in range(5):
# with open(f"/Minions/submissions/test_ikhyo{i}.json", "r", encoding="utf-8-sig") as f:
# colab_inference = json.load(f)
# with open(f"/Minions/submissions/ikhyo{i}.json", "r", encoding="utf-8-sig") as f:
# server_inference = json.load(f)
# for i in range(5):
# with open(f"/Minions/check_folder/mi_{i}.json", "r", encoding="utf-8-sig") as f:
# colab_inference = json.load(f)
# with open(f"/Minions/submissions_origin/check_bertsum{i}.json", "r", encoding="utf-8-sig") as f:
# server_inference = json.load(f)
# for i in range(5):
# with open(f"/Minions/check_folder/ara_fold{i}.json", "r", encoding="utf-8-sig") as f:
# colab_inference = json.load(f)
# with open(f"/Minions/submissions_origin/check_kobert{i}.json", "r", encoding="utf-8-sig") as f:
# server_inference = json.load(f)
with open(f"/Minions/submissions/test_bertsum0.json", "r", encoding="utf-8-sig") as f:
colab_inference = json.load(f)
with open(f"/Minions/submissions/bertsum0.json", "r", encoding="utf-8-sig") as f:
server_inference = json.load(f)
# with open(f"/Minions/submissions/test_sentavg.json", "r", encoding="utf-8-sig") as f:
# colab_inference = json.load(f)
# with open(f"/Minions/submissions_origin/check_sentavg.json", "r", encoding="utf-8-sig") as f:
# server_inference = json.load(f)
# with open(f"/Minions/submissions/kobert0.json", "r", encoding="utf-8-sig") as f:
# colab_inference = json.load(f)
# with open(f"/Minions/submissions_origin/check_kobert0.json", "r", encoding="utf-8-sig") as f:
# server_inference = json.load(f)
count = 0
dictionary = {0:0, 1:0, 2:0, 3:0}
for ids in range(len(colab_inference)):
colab = set(colab_inference[ids].values())
server = set(server_inference[ids].values())
count = 0
for colab_value in colab:
if colab_value not in server:
count +=1
dictionary[count] += 1
print(dictionary)