Datasets:
Delete constants.py
Browse files- constants.py +0 -138
constants.py
DELETED
@@ -1,138 +0,0 @@
|
|
1 |
-
# General Constants:
|
2 |
-
LABEL_NAME = 'label'
|
3 |
-
TEXT_COLUMN_NAME = [f"sentence_{i}" for i in range(1, 10)]
|
4 |
-
|
5 |
-
# SSPabs Constants:
|
6 |
-
SSPABS = 'SSPabs'
|
7 |
-
SSPABS_TRAIN_NAME = 'train.txt'
|
8 |
-
SSPABS_VALID_NAME = 'valid.txt'
|
9 |
-
SSPABS_TEST_NAME = 'test.txt'
|
10 |
-
SSPABS_DATA_DIR = 'data/SSP/abs'
|
11 |
-
SSPABS_LABELS = ["0", "1"]
|
12 |
-
SSPABS_TEXT_COLUMNS = 1
|
13 |
-
|
14 |
-
# PDTB Constants:
|
15 |
-
PDTB_I = 'PDTB-I'
|
16 |
-
PDTB_E = 'PDTB-E'
|
17 |
-
PDTB_TRAIN_NAME = 'train.txt'
|
18 |
-
PDTB_VALID_NAME = 'valid.txt'
|
19 |
-
PDTB_TEST_NAME = 'test.txt'
|
20 |
-
PDTB_DATA_DIR = 'data/PDTB'
|
21 |
-
PDTB_DIRS = {PDTB_E: 'Explicit', PDTB_I: 'Implicit'}
|
22 |
-
PDTB_E_LABELS = [
|
23 |
-
'Comparison.Concession',
|
24 |
-
'Comparison.Contrast',
|
25 |
-
'Contingency.Cause',
|
26 |
-
'Contingency.Condition',
|
27 |
-
'Contingency.Pragmatic condition',
|
28 |
-
'Expansion.Alternative',
|
29 |
-
'Expansion.Conjunction',
|
30 |
-
'Expansion.Instantiation',
|
31 |
-
'Expansion.List',
|
32 |
-
'Expansion.Restatement',
|
33 |
-
'Temporal.Asynchronous',
|
34 |
-
'Temporal.Synchrony',
|
35 |
-
]
|
36 |
-
PDTB_I_LABELS = [
|
37 |
-
'Comparison.Concession',
|
38 |
-
'Comparison.Contrast',
|
39 |
-
'Contingency.Cause',
|
40 |
-
'Contingency.Pragmatic cause',
|
41 |
-
'Expansion.Alternative',
|
42 |
-
'Expansion.Conjunction',
|
43 |
-
'Expansion.Instantiation',
|
44 |
-
'Expansion.List',
|
45 |
-
'Expansion.Restatement',
|
46 |
-
'Temporal.Asynchronous',
|
47 |
-
'Temporal.Synchrony',
|
48 |
-
]
|
49 |
-
PDTB_E_TEXT_COLUMNS = 2
|
50 |
-
PDTB_I_TEXT_COLUMNS = 2
|
51 |
-
|
52 |
-
|
53 |
-
# SP Constants:
|
54 |
-
SPARXIV = 'SParxiv'
|
55 |
-
SPROCSTORY = 'SProcstory'
|
56 |
-
SPWIKI = 'SPwiki'
|
57 |
-
SP_TRAIN_NAME = 'train.txt'
|
58 |
-
SP_VALID_NAME = 'valid.txt'
|
59 |
-
SP_TEST_NAME = 'test.txt'
|
60 |
-
SP_DATA_DIR = 'data/SP'
|
61 |
-
SP_DIRS = {SPARXIV: 'arxiv', SPROCSTORY: 'rocstory', SPWIKI: 'wiki'}
|
62 |
-
SP_LABELS = ["0", "1", "2", "3", "4"]
|
63 |
-
SP_TEXT_COLUMNS = 5
|
64 |
-
|
65 |
-
# BSO Constants:
|
66 |
-
BSOARXIV = 'BSOarxiv'
|
67 |
-
BSOROCSTORY = 'BSOrocstory'
|
68 |
-
BSOWIKI = 'BSOwiki'
|
69 |
-
BSO_TRAIN_NAME = 'train.txt'
|
70 |
-
BSO_VALID_NAME = 'valid.txt'
|
71 |
-
BSO_TEST_NAME = 'test.txt'
|
72 |
-
BSO_DATA_DIR = 'data/BSO'
|
73 |
-
BSO_DIRS = {BSOARXIV: 'arxiv', BSOROCSTORY: 'rocstory', BSOWIKI: 'wiki'}
|
74 |
-
BSO_LABELS = ["0", "1"]
|
75 |
-
BSO_TEXT_COLUMNS = 2
|
76 |
-
|
77 |
-
# DC Constants:
|
78 |
-
DCCHAT = 'DCchat'
|
79 |
-
DCWIKI = 'DCwiki'
|
80 |
-
DC_TRAIN_NAME = 'train.txt'
|
81 |
-
DC_VALID_NAME = 'valid.txt'
|
82 |
-
DC_TEST_NAME = 'test.txt'
|
83 |
-
DC_DATA_DIR = 'data/DC'
|
84 |
-
DC_DIRS = {DCCHAT: 'chat', DCWIKI: 'wiki'}
|
85 |
-
DC_LABELS = ["0", "1"]
|
86 |
-
DC_TEXT_COLUMNS = 6
|
87 |
-
|
88 |
-
|
89 |
-
# RST Constants:
|
90 |
-
RST = 'RST'
|
91 |
-
RST_TRAIN_NAME = 'RST_TRAIN.pkl'
|
92 |
-
RST_VALID_NAME = 'RST_DEV.pkl'
|
93 |
-
RST_TEST_NAME = 'RST_TEST.pkl'
|
94 |
-
RST_DATA_DIR = 'data/RST'
|
95 |
-
RST_LABELS = [
|
96 |
-
'NS-Explanation',
|
97 |
-
'NS-Evaluation',
|
98 |
-
'NN-Condition',
|
99 |
-
'NS-Summary',
|
100 |
-
'SN-Cause',
|
101 |
-
'SN-Background',
|
102 |
-
'NS-Background',
|
103 |
-
'SN-Summary',
|
104 |
-
'NS-Topic-Change',
|
105 |
-
'NN-Explanation',
|
106 |
-
'SN-Topic-Comment',
|
107 |
-
'NS-Elaboration',
|
108 |
-
'SN-Attribution',
|
109 |
-
'SN-Manner-Means',
|
110 |
-
'NN-Evaluation',
|
111 |
-
'NS-Comparison',
|
112 |
-
'NS-Contrast',
|
113 |
-
'SN-Condition',
|
114 |
-
'NS-Temporal',
|
115 |
-
'NS-Enablement',
|
116 |
-
'SN-Evaluation',
|
117 |
-
'NN-Topic-Comment',
|
118 |
-
'NN-Temporal',
|
119 |
-
'NN-Textual-organization',
|
120 |
-
'NN-Same-unit',
|
121 |
-
'NN-Comparison',
|
122 |
-
'NN-Topic-Change',
|
123 |
-
'SN-Temporal',
|
124 |
-
'NN-Joint',
|
125 |
-
'SN-Enablement',
|
126 |
-
'SN-Explanation',
|
127 |
-
'NN-Contrast',
|
128 |
-
'NN-Cause',
|
129 |
-
'SN-Contrast',
|
130 |
-
'NS-Attribution',
|
131 |
-
'NS-Topic-Comment',
|
132 |
-
'SN-Elaboration',
|
133 |
-
'SN-Comparison',
|
134 |
-
'NS-Cause',
|
135 |
-
'NS-Condition',
|
136 |
-
'NS-Manner-Means'
|
137 |
-
]
|
138 |
-
RST_TEXT_COLUMNS = 2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|