Spaces:
Running
Running
Add media code num_dict and label_names
Browse files- label_dicts.py +64 -0
label_dicts.py
CHANGED
@@ -24,6 +24,70 @@ CAP_NUM_DICT = {
|
|
24 |
22: 999, # had to do this because of some language-domain models (e.g. english media)
|
25 |
}
|
26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
CAP_MIN_NUM_DICT = {
|
28 |
0: 100,
|
29 |
1: 101,
|
|
|
24 |
22: 999, # had to do this because of some language-domain models (e.g. english media)
|
25 |
}
|
26 |
|
27 |
+
CAP_MEDIA_LABEL_NAMES = {
|
28 |
+
1: "Macroeconomics",
|
29 |
+
2: "Civil Rights",
|
30 |
+
3: "Health",
|
31 |
+
4: "Agriculture",
|
32 |
+
5: "Labor",
|
33 |
+
6: "Education",
|
34 |
+
7: "Environment",
|
35 |
+
8: "Energy",
|
36 |
+
9: "Immigration",
|
37 |
+
10: "Transportation",
|
38 |
+
12: "Law and Crime",
|
39 |
+
13: "Social Welfare",
|
40 |
+
14: "Housing",
|
41 |
+
15: "Domestic Commerce",
|
42 |
+
16: "Defense",
|
43 |
+
17: "Technology",
|
44 |
+
18: "Foreign Trade",
|
45 |
+
19: "International Affairs",
|
46 |
+
20: "Government Operations",
|
47 |
+
21: "Public Lands",
|
48 |
+
23: "Culture",
|
49 |
+
24: "State and Local Government Administration",
|
50 |
+
26: "Weather and Natural Disasters",
|
51 |
+
27: "Fires",
|
52 |
+
29: "Sports and Recreation",
|
53 |
+
30: "Death Notices",
|
54 |
+
31: "Churches and Religions",
|
55 |
+
99: "Other, Miscellaneous, and Human Interest",
|
56 |
+
998: "No Policy or Media Content"
|
57 |
+
}
|
58 |
+
|
59 |
+
CAP_MEDIA_NUM_DICT = {
|
60 |
+
0: 1,
|
61 |
+
1: 2,
|
62 |
+
2: 3,
|
63 |
+
3: 4,
|
64 |
+
4: 5,
|
65 |
+
5: 6,
|
66 |
+
6: 7,
|
67 |
+
7: 8,
|
68 |
+
8: 9,
|
69 |
+
9: 10,
|
70 |
+
10: 12,
|
71 |
+
11: 13,
|
72 |
+
12: 14,
|
73 |
+
13: 15,
|
74 |
+
14: 16,
|
75 |
+
15: 17,
|
76 |
+
16: 18,
|
77 |
+
17: 19,
|
78 |
+
18: 20,
|
79 |
+
19: 21,
|
80 |
+
20: 23,
|
81 |
+
21: 24,
|
82 |
+
22:26,
|
83 |
+
23:27,
|
84 |
+
24:29,
|
85 |
+
25:30,
|
86 |
+
26:31,
|
87 |
+
27:99,
|
88 |
+
28:998
|
89 |
+
}
|
90 |
+
|
91 |
CAP_MIN_NUM_DICT = {
|
92 |
0: 100,
|
93 |
1: 101,
|