Yehor Smoliakov commited on
Commit
8b69a2a
1 Parent(s): ff7fdc5
.gitignore CHANGED
@@ -1,2 +1,4 @@
1
  .venv/
2
  .ruff_cache/
 
 
 
1
  .venv/
2
  .ruff_cache/
3
+
4
+ .DS_Store
README.md CHANGED
@@ -20,45 +20,45 @@ dataset_info:
20
  dtype:
21
  class_label:
22
  names:
23
- '0': kriminalnie_pravo
24
- '1': pidpriemnicka_dialnist
25
- '2': spadkove_pravo
26
- '3': mizhnarodni_pravovidnosini
27
- '4': zhitlovi_pravovidnosini
28
- '5': korporativnie_pravo
29
- '6': immighratsiia_iemighratsiia
30
- '7': prava_spozhivachiv
31
- '8': medicina
32
- '9': pratsevlashtuvvannya
33
- '10': bankivska_diialnist
34
- '11': mytne_pravo
35
- '12': doghovirni_vidnosini
36
- '13': dovircha_vlastnist
37
- '14': reklama
38
- '15': viiskovie_pravo
39
- '16': gospodarskie_pravo
40
- '17': notarialni_pytanniia
41
- '18': tsivilne_pravo
42
- '19': litsienzuvannia
43
- '20': ziemielnie_pravo
44
- '21': nierukhomist
45
- '22': opodatkuvannia
46
- '23': sudova_praktika
47
- '24': inshe
48
- '25': piensiiata_sotsialni_viplati
49
- '26': reyestraciya_likvidaciya_bankrutstvo
50
- '27': ekologiya
51
- '28': administrativnie_pravo
52
- '29': gromadianski_pravovidnosini
53
- '30': strakhuvannya
54
- '31': vighotovliennia_produktsiyi_ta_nadannia_poslugh
55
- '32': intieliektualna_vlasnist
56
- '33': simejne_pravo
57
- '34': dierzhavni_zakupivli
58
- '35': prava_vnutrishno_pieriemishchienikh_osib
59
- '36': sotsialnyj_zakhist
60
- '37': investitsii
61
- '38': avtovlasnykam
62
  splits:
63
  - name: train
64
  num_bytes: 749020
 
20
  dtype:
21
  class_label:
22
  names:
23
+ '0': inshe
24
+ '1': ekologiya
25
+ '2': ziemielnie_pravo
26
+ '3': reklama
27
+ '4': bankivska_diialnist
28
+ '5': prava_spozhivachiv
29
+ '6': medicina
30
+ '7': spadkove_pravo
31
+ '8': immighratsiia_iemighratsiia
32
+ '9': intieliektualna_vlasnist
33
+ '10': gospodarskie_pravo
34
+ '11': pidpriemnicka_dialnist
35
+ '12': opodatkuvannia
36
+ '13': piensiiata_sotsialni_viplati
37
+ '14': viiskovie_pravo
38
+ '15': sudova_praktika
39
+ '16': kriminalnie_pravo
40
+ '17': gromadianski_pravovidnosini
41
+ '18': strakhuvannya
42
+ '19': pratsevlashtuvvannya
43
+ '20': sotsialnyj_zakhist
44
+ '21': vighotovliennia_produktsiyi_ta_nadannia_poslugh
45
+ '22': litsienzuvannia
46
+ '23': reyestraciya_likvidaciya_bankrutstvo
47
+ '24': doghovirni_vidnosini
48
+ '25': administrativnie_pravo
49
+ '26': nierukhomist
50
+ '27': prava_vnutrishno_pieriemishchienikh_osib
51
+ '28': investitsii
52
+ '29': notarialni_pytanniia
53
+ '30': avtovlasnykam
54
+ '31': zhitlovi_pravovidnosini
55
+ '32': dovircha_vlastnist
56
+ '33': dierzhavni_zakupivli
57
+ '34': simejne_pravo
58
+ '35': mytne_pravo
59
+ '36': mizhnarodni_pravovidnosini
60
+ '37': korporativnie_pravo
61
+ '38': tsivilne_pravo
62
  splits:
63
  - name: train
64
  num_bytes: 749020
data/labels.json CHANGED
@@ -1 +1 @@
1
- {"__label__kriminalnie_pravo": 0, "__label__pidpriemnicka_dialnist": 1, "__label__spadkove_pravo": 2, "__label__mizhnarodni_pravovidnosini": 3, "__label__zhitlovi_pravovidnosini": 4, "__label__korporativnie_pravo": 5, "__label__immighratsiia_iemighratsiia": 6, "__label__prava_spozhivachiv": 7, "__label__medicina": 8, "__label__pratsevlashtuvvannya": 9, "__label__bankivska_diialnist": 10, "__label__mytne_pravo": 11, "__label__doghovirni_vidnosini": 12, "__label__dovircha_vlastnist": 13, "__label__reklama": 14, "__label__viiskovie_pravo": 15, "__label__gospodarskie_pravo": 16, "__label__notarialni_pytanniia": 17, "__label__tsivilne_pravo": 18, "__label__litsienzuvannia": 19, "__label__ziemielnie_pravo": 20, "__label__nierukhomist": 21, "__label__opodatkuvannia": 22, "__label__sudova_praktika": 23, "__label__inshe": 24, "__label__piensiiata_sotsialni_viplati": 25, "__label__reyestraciya_likvidaciya_bankrutstvo": 26, "__label__ekologiya": 27, "__label__administrativnie_pravo": 28, "__label__gromadianski_pravovidnosini": 29, "__label__strakhuvannya": 30, "__label__vighotovliennia_produktsiyi_ta_nadannia_poslugh": 31, "__label__intieliektualna_vlasnist": 32, "__label__simejne_pravo": 33, "__label__dierzhavni_zakupivli": 34, "__label__prava_vnutrishno_pieriemishchienikh_osib": 35, "__label__sotsialnyj_zakhist": 36, "__label__investitsii": 37, "__label__avtovlasnykam": 38}
 
1
+ {"__label__inshe": 0, "__label__ekologiya": 1, "__label__ziemielnie_pravo": 2, "__label__reklama": 3, "__label__bankivska_diialnist": 4, "__label__prava_spozhivachiv": 5, "__label__medicina": 6, "__label__spadkove_pravo": 7, "__label__immighratsiia_iemighratsiia": 8, "__label__intieliektualna_vlasnist": 9, "__label__gospodarskie_pravo": 10, "__label__pidpriemnicka_dialnist": 11, "__label__opodatkuvannia": 12, "__label__piensiiata_sotsialni_viplati": 13, "__label__viiskovie_pravo": 14, "__label__sudova_praktika": 15, "__label__kriminalnie_pravo": 16, "__label__gromadianski_pravovidnosini": 17, "__label__strakhuvannya": 18, "__label__pratsevlashtuvvannya": 19, "__label__sotsialnyj_zakhist": 20, "__label__vighotovliennia_produktsiyi_ta_nadannia_poslugh": 21, "__label__litsienzuvannia": 22, "__label__reyestraciya_likvidaciya_bankrutstvo": 23, "__label__doghovirni_vidnosini": 24, "__label__administrativnie_pravo": 25, "__label__nierukhomist": 26, "__label__prava_vnutrishno_pieriemishchienikh_osib": 27, "__label__investitsii": 28, "__label__notarialni_pytanniia": 29, "__label__avtovlasnykam": 30, "__label__zhitlovi_pravovidnosini": 31, "__label__dovircha_vlastnist": 32, "__label__dierzhavni_zakupivli": 33, "__label__simejne_pravo": 34, "__label__mytne_pravo": 35, "__label__mizhnarodni_pravovidnosini": 36, "__label__korporativnie_pravo": 37, "__label__tsivilne_pravo": 38}
data/raw_test.jsonl CHANGED
The diff for this file is too large to render. See raw diff
 
data/raw_train.jsonl CHANGED
The diff for this file is too large to render. See raw diff
 
data/test.jsonl CHANGED
The diff for this file is too large to render. See raw diff
 
data/train.jsonl CHANGED
The diff for this file is too large to render. See raw diff
 
print_labels.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import json
2
+
3
+ with open("data/labels.json", "r") as f:
4
+ labels = json.load(f)
5
+
6
+ for k, v in labels.items():
7
+ k = k.replace("__label__", "")
8
+
9
+ print(f"'{v}': {k}")