-
Notifications
You must be signed in to change notification settings - Fork 14
/
config.py
executable file
·669 lines (537 loc) · 31.3 KB
/
config.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
#coding:utf-8
# change the the value of the following two variables
# current working directory.
CWD = "/Users/Hunter/Documents/pycharmSpace/conll2015_discourse/"
# mallet bin path
MALLET_PATH = "/Users/Hunter/Documents/conll2015/mallet"
TRAIN = "train"
DEV = "dev"
TEST = "test"
DATA_PATH = CWD + "data/"
# train path
TRAIN_PATH = CWD + "data/conll15-st-03-04-15-train/"
DEV_PATH = CWD + "data/conll15-st-03-04-15-dev/"
'''train & dev raw text'''
RAW_TRAIN_PATH = TRAIN_PATH + "raw/"
RAW_DEV_PATH = DEV_PATH + "raw/"
''' train & dev conll text'''
CONLL_TRAIN_PATH = TRAIN_PATH + "conll_format/"
CONLL_DEV_PATH = DEV_PATH + "conll_format/"
''' train & dev pdtb data '''
PDTB_ORIGIN_DEV_PATH = DEV_PATH + "pdtb-data_origin.json"
''' train & dev parsers '''
PARSERS_TRAIN_PATH_JSON = TRAIN_PATH + "pdtb-parses.json"
PARSERS_DEV_PATH_JSON = DEV_PATH + "pdtb-parses.json"
'''Brown cluster '''
# BROWN_CLUSTER_PATH = CWD + "data/brown_cluster_100.txt"
# BROWN_CLUSTER_PATH = CWD + "data/brown_cluster_320.txt"
# BROWN_CLUSTER_PATH = CWD + "data/brown_cluster_1000.txt"
BROWN_CLUSTER_PATH = CWD + "data/brown_cluster_3200.txt"
''' word2vec cluster '''
WORD2VEC_CLUSTER_PATH = CWD + "data/word2vec_cluster"
'''Explicit Connectives'''
ExpConn_PATH = CWD + "data/ExpConn.txt"
SORTED_ExpConn_PATH = CWD + "data/sortedExpConn.txt"
''' dict '''
DICT_PATH = CWD + "dict/"
''' connnective dict '''
CONNECTIVE_DICT_PATH = DICT_PATH + "connective/"
''' connnective dict names '''
CONNECTIVE_DICT_CPOS_PATH = CONNECTIVE_DICT_PATH + "cpos_dict.txt"
CONNECTIVE_DICT_PREV_C_PATH = CONNECTIVE_DICT_PATH +"prev_c_dict.txt"
CONNECTIVE_DICT_PREVPOS_PATH = CONNECTIVE_DICT_PATH +"prevpos_dict.txt"
CONNECTIVE_DICT_PREVPOS_CPOS_PATH = CONNECTIVE_DICT_PATH + "prevpos_cpos_dict.txt"
CONNECTIVE_DICT_C_NEXT_PATH = CONNECTIVE_DICT_PATH + "c_next_dict.txt"
CONNECTIVE_DICT_NEXTPOS_PATH = CONNECTIVE_DICT_PATH + "nextpos_dict.txt"
CONNECTIVE_DICT_CPOS_NEXTPOS_PATH = CONNECTIVE_DICT_PATH + "cpos_nextpos_dict.txt"
CONNECTIVE_DICT_CPARENT_TO_ROOT_PATH = CONNECTIVE_DICT_PATH+ "cparent_to_root_path_dict.txt"
CONNECTIVE_DICT_COMPRESSED_CPARENT_TO_ROOT_PATH = CONNECTIVE_DICT_PATH+ "compressed_cparent_to_root_path_dict.txt"
#pitler
CONNECTIVE_DICT_SELF_CATEGORY_PATH = CONNECTIVE_DICT_PATH + "self_category_dict.txt"
CONNECTIVE_DICT_PARENT_CATEGORY_PATH = CONNECTIVE_DICT_PATH + "parent_category_dict.txt"
CONNECTIVE_DICT_LEFT_SIBLING_CATEGORY_PATH = CONNECTIVE_DICT_PATH + "left_sibling_category_dict.txt"
CONNECTIVE_DICT_RIGHT_SIBLING_CATEGORY_PATH = CONNECTIVE_DICT_PATH + "right_sibling_category_dict.txt"
#pitler , conn syn interaction
CONNECTIVE_DICT_CONN_SELF_CATEGORY_PATH = CONNECTIVE_DICT_PATH + "conn_self_category_dict.txt"
CONNECTIVE_DICT_CONN_PARENT_CATEGORY_PATH = CONNECTIVE_DICT_PATH + "conn_parent_category_dict.txt"
CONNECTIVE_DICT_CONN_LEFT_SIBLING_CATEGORY_PATH = CONNECTIVE_DICT_PATH + "conn_left_sibling_category_dict.txt"
CONNECTIVE_DICT_CONN_RIGHT_SIBLING_CATEGORY_PATH = CONNECTIVE_DICT_PATH + "conn_right_sibling_category_dict.txt"
#pitler , syn syn interaction
CONNECTIVE_DICT_SELF_PARENT_CATEGORY_PATH = CONNECTIVE_DICT_PATH + "self_parent_dict.txt"
CONNECTIVE_DICT_SELF_RIGHT_CATEGORY_PATH = CONNECTIVE_DICT_PATH + "self_right_dict.txt"
CONNECTIVE_DICT_SELF_LEFT_CATEGORY_PATH = CONNECTIVE_DICT_PATH + "self_left_dict.txt"
CONNECTIVE_DICT_PARENT_LEFT_CATEGORY_PATH = CONNECTIVE_DICT_PATH + "parent_left_dict.txt"
CONNECTIVE_DICT_PARENT_RIGHT_CATEGORY_PATH = CONNECTIVE_DICT_PATH + "parent_right_dict.txt"
CONNECTIVE_DICT_LEFT_RIGHT_CATEGORY_PATH = CONNECTIVE_DICT_PATH + "left_right_dict.txt"
# mine
CONNECTIVE_DICT_CONN_LOWER_CASE = CONNECTIVE_DICT_PATH + "conn_lower_case_dict.txt"
CONNECTIVE_DICT_CONN = CONNECTIVE_DICT_PATH + "conn.txt"
CONNECTIVE_DICT_PREVPOS_C = CONNECTIVE_DICT_PATH + "prevPOS_C.txt"
CONNECTIVE_DICT_SELF_CATEGORY_TO_ROOT_PATH = CONNECTIVE_DICT_PATH + "self_category_to_root_path.txt"
CONNECTIVE_DICT_CPARENT_TO_ROOT_PATH_NODE_NAMES = CONNECTIVE_DICT_PATH + "CParent_to_root_path_node_names_dict.txt"
CONNECTIVE_DICT_CONN_CONNCTX = CONNECTIVE_DICT_PATH + "conn_connCtx.txt"
CONNECTIVE_DICT_CONN_RIGHTSIBLINGCTX = CONNECTIVE_DICT_PATH + "conn_rightsiblingCtx.txt"
CONNECTIVE_DICT_CONN_LEFTSIBLINGCTX = CONNECTIVE_DICT_PATH + "conn_leftsiblingCtx.txt"
CONNECTIVE_DICT_CONN_LEFT_RIGHT_SIBLINGCTX = CONNECTIVE_DICT_PATH + "conn_left_right_siblingCtx.txt"
CONNECTIVE_DICT_CONN_PARENT_CATEGORY_CTX = CONNECTIVE_DICT_PATH + "conn_parent_category_Ctx.txt"
CONNECTIVE_DICT_CONN_RIGHTSIBLING_PRODUCTION_RULES = CONNECTIVE_DICT_PATH + "rightSibling_production_rules.txt"
''' argument position dict '''
ARG_POSITION_DICT_PATH = DICT_PATH + "argument_position/"
''' argument position dict names '''
ARG_POSITION_DICT_CSTRING = ARG_POSITION_DICT_PATH + "ctring_dict.txt"
ARG_POSITION_DICT_CPOS = ARG_POSITION_DICT_PATH + "cpos_dict.txt"
ARG_POSITION_DICT_PREV1 = ARG_POSITION_DICT_PATH + "prev1_dict.txt"
ARG_POSITION_DICT_PREV1POS = ARG_POSITION_DICT_PATH + "prev1pos_dict.txt"
ARG_POSITION_DICT_PREV1_C = ARG_POSITION_DICT_PATH + "prev1_C_dict.txt"
ARG_POSITION_DICT_PREV1POS_CPOS = ARG_POSITION_DICT_PATH + "prev1pos_Cpos_dict.txt"
ARG_POSITION_DICT_PREV2 = ARG_POSITION_DICT_PATH + "prev2_dict.txt"
ARG_POSITION_DICT_PREV2POS = ARG_POSITION_DICT_PATH + "prev2pos_dict.txt"
ARG_POSITION_DICT_PREV2_C = ARG_POSITION_DICT_PATH + "prev2_C_dict.txt"
ARG_POSITION_DICT_PREV2POS_CPOS = ARG_POSITION_DICT_PATH + "prev2pos_Cpos_dict.txt"
ARG_POSITION_DICT_NEXT1 = ARG_POSITION_DICT_PATH + "next1_dict.txt"
ARG_POSITION_DICT_NEXT1POS = ARG_POSITION_DICT_PATH + "next1pos_dict.txt"
ARG_POSITION_DICT_NEXT1_C = ARG_POSITION_DICT_PATH + "next1_C_dict.txt"
ARG_POSITION_DICT_NEXT1POS_CPOS = ARG_POSITION_DICT_PATH + "next1pos_Cpos_dict.txt"
ARG_POSITION_DICT_NEXT2 = ARG_POSITION_DICT_PATH + "next2_dict.txt"
ARG_POSITION_DICT_NEXT2POS = ARG_POSITION_DICT_PATH + "next2pos_dict.txt"
ARG_POSITION_DICT_NEXT2_C = ARG_POSITION_DICT_PATH + "next2_C_dict.txt"
ARG_POSITION_DICT_NEXT2POS_CPOS = ARG_POSITION_DICT_PATH + "next2pos_Cpos_dict.txt"
ARG_POSITION_DICT_CONN_TO_ROOT_PATH = ARG_POSITION_DICT_PATH + "conn_to_root_path.txt"
''' constituent-based '''
NT_DICT = DICT_PATH + "NT/"
NT_DICT_CON_Str = NT_DICT + "con_str.txt"
NT_DICT_CON_LStr = NT_DICT + "con_lstr.txt"
NT_DICT_NT_Ctx = NT_DICT + "nt_ctx.txt"
NT_DICT_CON_NT_Path = NT_DICT + "con_nt_path.txt"
NT_DICT_CON_NT_Path_iLsib = NT_DICT + "con_nt_path_ilsib.txt"
NT_DICT_PREV_CURR_PATH = NT_DICT + "nt_prev_curr_path.txt"
NT_DICT_CON_POS = NT_DICT + "con_pos.txt"
NT_DICT_C_PREV = NT_DICT + "c_prev.txt"
NT_DICT_NT_NAME = NT_DICT + "nt_name.txt"
NT_DICT_NT_PREV_CURR_PRODUCTION_RULE = NT_DICT + "nt_prev_curr_production_rule.txt"
''' mine '''
NT_DICT_NT_NTPARENT_CTX = NT_DICT + "nt_ntParent_ctx.txt"
NT_DICT_CPARENT_TO_ROOT_PATH = NT_DICT + "cparent_to_root_path.txt"
# conn
NT_DICT_CPARENT_TO_ROOT_PATH_NODE_NAMES = NT_DICT + "CParent_to_root_path_node_names.txt"
NT_DICT_CONN_CONNCTX = NT_DICT + "conn_connCtx.txt"
NT_DICT_CONN_PARENT_CATEGORYCTX = NT_DICT + "conn_parent_categoryCtx.txt"
NT_DICT_CONN_RIGHTSIBLINGCTX = NT_DICT + "conn_rightSiblingCtx.txt"
NT_DICT_SELF_CATEGORY = NT_DICT + "self_category.txt"
NT_DICT_PARENT_CATEGORY = NT_DICT + "parent_category.txt"
NT_DICT_LEFT_SIBLING_CATEGORY = NT_DICT + "left_sibling_category.txt"
NT_DICT_RIGHT_SIBLING_CATEGORY = NT_DICT + "right_sibling_category.txt"
# NT
NT_DICT_NT_LINKED_CTX = NT_DICT + "NT_Linked_ctx.txt"
NT_DICT_NT_TO_ROOT_PATH = NT_DICT + "NT_to_root_path.txt"
NT_DICT_NT_PARENT_LINKED_CTX = NT_DICT + "NT_parent_linked_ctx.txt"
''' explicit classifier '''
EXPLICIT_DICT = DICT_PATH + "explicit_classifier/"
EXPLICIT_DICT_CSTRING = EXPLICIT_DICT + "cstring.txt"
EXPLICIT_DICT_CPOS = EXPLICIT_DICT + "cpos.txt"
EXPLICIT_DICT_C_PREV = EXPLICIT_DICT + "c_prev.txt"
EXPLICIT_DICT_CLSTRING = EXPLICIT_DICT + "clstring.txt"
#pitler
EXPLICIT_DICT_SELF_CATEGORY_PATH = EXPLICIT_DICT + "self_category_dict.txt"
EXPLICIT_DICT_PARENT_CATEGORY_PATH = EXPLICIT_DICT + "parent_category_dict.txt"
EXPLICIT_DICT_LEFT_SIBLING_CATEGORY_PATH = EXPLICIT_DICT + "left_sibling_category_dict.txt"
EXPLICIT_DICT_RIGHT_SIBLING_CATEGORY_PATH = EXPLICIT_DICT + "right_sibling_category_dict.txt"
#pitler , conn syn interaction
EXPLICIT_DICT_CONN_SELF_CATEGORY_PATH = EXPLICIT_DICT + "conn_self_category_dict.txt"
EXPLICIT_DICT_CONN_PARENT_CATEGORY_PATH = EXPLICIT_DICT + "conn_parent_category_dict.txt"
EXPLICIT_DICT_CONN_LEFT_SIBLING_CATEGORY_PATH = EXPLICIT_DICT + "conn_left_sibling_category_dict.txt"
EXPLICIT_DICT_CONN_RIGHT_SIBLING_CATEGORY_PATH = EXPLICIT_DICT + "conn_right_sibling_category_dict.txt"
# pitler , syn- syn
EXPLICIT_DICT_SELF_PARENT_CATEGORY_PATH = EXPLICIT_DICT + "self_parent_dict.txt"
EXPLICIT_DICT_SELF_RIGHT_CATEGORY_PATH = EXPLICIT_DICT + "self_right_dict.txt"
EXPLICIT_DICT_SELF_LEFT_CATEGORY_PATH = EXPLICIT_DICT + "self_left_dict.txt"
EXPLICIT_DICT_PARENT_LEFT_CATEGORY_PATH = EXPLICIT_DICT + "parent_left_dict.txt"
EXPLICIT_DICT_PARENT_RIGHT_CATEGORY_PATH = EXPLICIT_DICT + "parent_right_dict.txt"
EXPLICIT_DICT_LEFT_RIGHT_CATEGORY_PATH = EXPLICIT_DICT + "left_right_dict.txt"
# mine
EXPLICIT_DICT_CONN_TO_ROOT_PATH = EXPLICIT_DICT + "conn_to_root_path.txt"
EXPLICIT_DICT_CONN_NEXT = EXPLICIT_DICT + "conn_next.txt"
EXPLICIT_DICT_CONN_CONNCTX = EXPLICIT_DICT + "conn_connCtx.txt"
EXPLICIT_DICT_CONN_RIGHTSIBLINGCTX = EXPLICIT_DICT + "conn_rightSiblingCtx.txt"
EXPLICIT_DICT_CONN_PARENT_CATEGORY_CTX = EXPLICIT_DICT + "conn_parent_category_Ctx.txt"
EXPLICIT_DICT_CONN_LEFTSIBLING_CTX = EXPLICIT_DICT + "conn_leftSibling_ctx.txt"
EXPLICIT_DICT_CPARENT_TO_ROOT_PATH_NODE_NAMES = EXPLICIT_DICT + "CParent_to_root_path_node_names.txt"
EXPLICIT_DICT_CONN_PARENT_CATEGORY_NOT_LINKED_CTX = EXPLICIT_DICT + "conn_parent_category_not_linked_Ctx.txt"
EXPLICIT_DICT_CONN_PREV_CONN = EXPLICIT_DICT + "conn_prev_conn.txt"
EXPLICIT_DICT_PREV_CONN = EXPLICIT_DICT + "prev_conn.txt"
EXPLICIT_DICT_AS_PREV_CONN = EXPLICIT_DICT + "as_prev_conn.txt"
EXPLICIT_DICT_AS_PREV_CONNPOS = EXPLICIT_DICT + "as_prev_connPOS.txt"
EXPLICIT_DICT_WHEN_PREV_CONN = EXPLICIT_DICT + "when_prev_conn.txt"
EXPLICIT_DICT_WHEN_PREV_CONNPOS = EXPLICIT_DICT + "when_prev_connPOS.txt"
EXPLICIT_DICT_AS_BEFORE_AFTER_TENSE = EXPLICIT_DICT + "as_before_after_tense.txt"
EXPLICIT_DICT_WHEN_BEFORE_AFTER_TENSE = EXPLICIT_DICT + "when_before_after_tense.txt"
EXPLICIT_DICT_WHEN_AFTER_LEMMA_VERBS = EXPLICIT_DICT + "when_after_lemma_verbs.txt"
''' Non-Explicit Dict '''
NON_EXPLICIT_DICT = DICT_PATH + "non_explicit_classifier/"
NON_EXPLICIT_DICT_WORD_PAIRS = NON_EXPLICIT_DICT + "word_pairs.txt"
NON_EXPLICIT_DICT_PRODUCTION_RULES = NON_EXPLICIT_DICT + "production_rules.txt"
NON_EXPLICIT_DICT_DEPENDENCY_RULES = NON_EXPLICIT_DICT + "dependency_rules.txt"
# firstlast,first3
NON_EXPLICIT_DICT_Arg1_first = NON_EXPLICIT_DICT + "Arg1_first.txt"
NON_EXPLICIT_DICT_Arg1_last = NON_EXPLICIT_DICT + "Arg1_last.txt"
NON_EXPLICIT_DICT_Arg2_first = NON_EXPLICIT_DICT + "Arg2_first.txt"
NON_EXPLICIT_DICT_Arg2_last = NON_EXPLICIT_DICT + "Arg2_last.txt"
NON_EXPLICIT_DICT_Arg1_first_Arg2_first = NON_EXPLICIT_DICT + "Arg1_first_Arg2_first.txt"
NON_EXPLICIT_DICT_Arg1_last_Arg2_last = NON_EXPLICIT_DICT + "Arg1_last_Arg2_last.txt"
NON_EXPLICIT_DICT_Arg1_first3 = NON_EXPLICIT_DICT + "Arg1_first3.txt"
NON_EXPLICIT_DICT_Arg2_first3 = NON_EXPLICIT_DICT + "Arg2_first3.txt"
# brown
NON_EXPLICIT_DICT_BROWN_CLUSTER_PAIRS = NON_EXPLICIT_DICT + "brown_cluster_pairs.txt"
# all words
NON_EXPLICIT_DICT_ALL_WORDS = NON_EXPLICIT_DICT + "all_words.txt"
# lemma word
NON_EXPLICIT_DICT_LOWER_CASE_LEMMA_WORDS = NON_EXPLICIT_DICT + "lower_case_lemma_words.txt"
# word2vec
NON_EXPLICIT_DICT_WORD2VEC = NON_EXPLICIT_DICT + "word2vec.txt"
# main verb pair
NON_EXPLICIT_DICT_MAIN_VERB_PAIR = NON_EXPLICIT_DICT + "main_verb_pair.txt"
# cp production rule
NON_EXPLICIT_DICT_CP_PRODUCTION_RULES = NON_EXPLICIT_DICT + "cp_production_rules.txt"
# arg1 arg2 tense pair
NON_EXPLICIT_DICT_ARG1_TENSE = NON_EXPLICIT_DICT + "arg1_tense.txt"
NON_EXPLICIT_DICT_ARG2_TENSE = NON_EXPLICIT_DICT + "arg2_tense.txt"
NON_EXPLICIT_DICT_ARG_TENSE_PAIR = NON_EXPLICIT_DICT + "arg_tense_pair.txt"
# arg first conn
NON_EXPLICIT_DICT_ARG1_FIRST3_CONN = NON_EXPLICIT_DICT + "arg1_first3_conn.txt"
NON_EXPLICIT_DICT_ARG2_FIRST3_CONN = NON_EXPLICIT_DICT + "arg2_first3_conn.txt"
NON_EXPLICIT_DICT_ARG_FIRST3_CONN_PAIR = NON_EXPLICIT_DICT + "arg_first3_conn_pair.txt"
# verb pair
NON_EXPLICIT_DICT_VERB_PAIR = NON_EXPLICIT_DICT + "verb_pair.txt"
# brown cluster
NON_EXPLICIT_DICT_ARG_BROWN_CLUSTER = NON_EXPLICIT_DICT + "arg_brown_cluster.txt"
# context
NON_EXPLICIT_DICT_PREV_CONTEXT_CONN = NON_EXPLICIT_DICT + "prev_context_conn.txt"
NON_EXPLICIT_DICT_PREV_CONTEXT_SENSE = NON_EXPLICIT_DICT + "prev_context_sense.txt"
NON_EXPLICIT_DICT_PREV_CONTEXT_CONN_SENSE = NON_EXPLICIT_DICT + "prev_context_conn_sense.txt"
NON_EXPLICIT_DICT_NEXT_CONTEXT_CONN = NON_EXPLICIT_DICT + "next_context_conn.txt"
NON_EXPLICIT_DICT_PREV_NEXT_CONTEXT_CONN = NON_EXPLICIT_DICT + "prev_next_context_conn.txt"
''' Attribution Span Labler '''
''' NON_CONNS_DICT '''
ATTRIBUTION_NON_CONNS_DICT = DICT_PATH + "attribution_non_conns/"
ATTRIBUTION_NON_CONNS_DICT_LOWERCASE_VERBS = ATTRIBUTION_NON_CONNS_DICT + "lowercase_verbs.txt"
ATTRIBUTION_NON_CONNS_DICT_LEMMA_VERBS = ATTRIBUTION_NON_CONNS_DICT + "lemma_verbs.txt"
ATTRIBUTION_NON_CONNS_DICT_CURR_FIRST = ATTRIBUTION_NON_CONNS_DICT + "curr_first.txt"
ATTRIBUTION_NON_CONNS_DICT_CURR_LAST = ATTRIBUTION_NON_CONNS_DICT + "curr_last.txt"
ATTRIBUTION_NON_CONNS_DICT_PREV_LAST = ATTRIBUTION_NON_CONNS_DICT + "prev_last.txt"
ATTRIBUTION_NON_CONNS_DICT_NEXT_FIRST = ATTRIBUTION_NON_CONNS_DICT + "next_first.txt"
ATTRIBUTION_NON_CONNS_DICT_PREV_LAST_CURR_FIRST = ATTRIBUTION_NON_CONNS_DICT + "prev_last_curr_first.txt"
ATTRIBUTION_NON_CONNS_DICT_CURR_LAST_NEXT_FIRST = ATTRIBUTION_NON_CONNS_DICT + "curr_last_next_first.txt"
ATTRIBUTION_NON_CONNS_DICT_CURR_PRODUCTION_RULE = ATTRIBUTION_NON_CONNS_DICT + "curr_production_rule.txt"
ATTRIBUTION_NON_CONNS_DICT_PREV_CURR_PRODUCTION_RULE = ATTRIBUTION_NON_CONNS_DICT + "prev_curr_production_rule.txt"
ATTRIBUTION_NON_CONNS_DICT_PREV_CURR_CP_PRODUCTION_RULE = ATTRIBUTION_NON_CONNS_DICT + "prev_curr_CP_production_rule.txt"
ATTRIBUTION_NON_CONNS_DICT_CURR_NEXT_CP_PRODUCTION_RULE = ATTRIBUTION_NON_CONNS_DICT + "curr_next_CP_production_rule.txt"
ATTRIBUTION_NON_CONNS_DICT_2PREV_POS_LEMMA_VERB = ATTRIBUTION_NON_CONNS_DICT + "2prev_pos_lemma_verb.txt"
ATTRIBUTION_NON_CONNS_DICT_CURR_FIRST_TO_PREV_LAST_PATH = ATTRIBUTION_NON_CONNS_DICT + "curr_first_to_prev_last_path.txt"
''' PS Arg2 dict '''
PS_ARG2_DICT = DICT_PATH + "ps_arg2/"
PS_ARG2_DICT_LOWERCASE_VERBS = PS_ARG2_DICT + "lowercase_verbs.txt"
PS_ARG2_DICT_LEMMA_VERBS = PS_ARG2_DICT + "lemma_verbs.txt"
PS_ARG2_DICT_FIRST_LOWERCASE_VERB = PS_ARG2_DICT + "first_lowercase_verb.txt"
PS_ARG2_DICT_FIRST_LEMMA_VERB = PS_ARG2_DICT + "first_lemma_verb.txt"
PS_ARG2_DICT_CURR_FIRST = PS_ARG2_DICT + "curr_first.txt"
PS_ARG2_DICT_CURR_LAST = PS_ARG2_DICT + "curr_last.txt"
PS_ARG2_DICT_PREV_LAST = PS_ARG2_DICT + "prev_last.txt"
PS_ARG2_DICT_NEXT_FIRST = PS_ARG2_DICT + "next_first.txt"
PS_ARG2_DICT_PREV_LAST_CURR_FIRST = PS_ARG2_DICT + "prev_last_curr_first.txt"
PS_ARG2_DICT_CURR_LAST_NEXT_FIRST = PS_ARG2_DICT + "curr_last_next_first.txt"
PS_ARG2_DICT_CURR_PRODUCTION_RULE = PS_ARG2_DICT + "curr_production_rule.txt"
# conn
PS_ARG2_DICT_CONN_STR = PS_ARG2_DICT + "conn_str.txt"
PS_ARG2_DICT_CONN_LSTR = PS_ARG2_DICT + "conn_lstr.txt"
PS_ARG2_DICT_CONN_POSITION_DISTANCE = PS_ARG2_DICT + "conn_position_distance.txt"
PS_ARG2_DICT_CONN_TO_ROOT_PATH = PS_ARG2_DICT + "conn_to_root_path.txt"
PS_ARG2_DICT_CONN_TO_ROOT_COMPRESSED_PATH = PS_ARG2_DICT + "conn_to_root_compressed_path.txt"
PS_ARG2_DICT_CONN_POSITION = PS_ARG2_DICT + "conn_position.txt"
PS_ARG2_DICT_CONN_IS_ADJACENT_TO_CONN = PS_ARG2_DICT + "conn_is_adjacent_to_conn.txt"
PS_ARG2_DICT_CURR_FIRST_CURR_FIRST_LEMMA_VERB = PS_ARG2_DICT + "curr_first_curr_first_lemma_verb.txt"
PS_ARG2_DICT_PREV_CURR_CP_PRODUCTION_RULE = PS_ARG2_DICT + "prev_curr_CP_production_rule.txt"
PS_ARG2_DICT_CURR_FIRST_PREV_LAST_PARSE_PATH = PS_ARG2_DICT + "curr_first_prev_last_parse_path.txt"
PS_ARG2_DICT_CPARENT_TO_ROOT_PATH_NODE_NAMES = PS_ARG2_DICT + "CParent_to_root_path_node_names.txt"
PS_ARG2_DICT_CPOS = PS_ARG2_DICT + "CPOS.txt"
PS_ARG2_DICT_CONN_CONNCTX = PS_ARG2_DICT + "conn_connCtx.txt"
PS_ARG2_DICT_CONN_PARENT_CATEGORY_CTX = PS_ARG2_DICT + "curr_first_prev_last_parse_path.txt"
PS_ARG2_DICT_CONN_CURR_FIRST = PS_ARG2_DICT + "conn_curr_first.txt"
''' PS Arg1 dict '''
PS_ARG1_DICT = DICT_PATH + "ps_arg1/"
PS_ARG1_DICT_LOWERCASE_VERBS = PS_ARG1_DICT + "lowercase_verbs.txt"
PS_ARG1_DICT_LEMMA_VERBS = PS_ARG1_DICT + "lemma_verbs.txt"
PS_ARG1_DICT_CURR_FIRST = PS_ARG1_DICT + "curr_first.txt"
PS_ARG1_DICT_CURR_LAST = PS_ARG1_DICT + "curr_last.txt"
PS_ARG1_DICT_PREV_LAST = PS_ARG1_DICT + "prev_last.txt"
PS_ARG1_DICT_NEXT_FIRST = PS_ARG1_DICT + "next_first.txt"
PS_ARG1_DICT_PREV_LAST_CURR_FIRST = PS_ARG1_DICT + "prev_last_curr_first.txt"
PS_ARG1_DICT_CURR_LAST_NEXT_FIRST = PS_ARG1_DICT + "curr_last_next_first.txt"
PS_ARG1_DICT_CURR_PRODUCTION_RULE = PS_ARG1_DICT + "curr_production_rule.txt"
# conn
PS_ARG1_DICT_CONN_STR = PS_ARG1_DICT + "conn_str.txt"
PS_ARG1_DICT_CONN_LSTR = PS_ARG1_DICT + "conn_lstr.txt"
PS_ARG1_DICT_CONN_POSITION_DISTANCE = PS_ARG1_DICT + "conn_position_distance.txt"
PS_ARG1_DICT_CONN_TO_ROOT_PATH = PS_ARG1_DICT + "conn_to_root_path.txt"
PS_ARG1_DICT_CONN_TO_ROOT_COMPRESSED_PATH = PS_ARG1_DICT + "conn_to_root_compressed_path.txt"
PS_ARG1_DICT_CONN_POSITION = PS_ARG1_DICT + "conn_position.txt"
PS_ARG1_DICT_CONN_IS_ADJACENT_TO_CONN = PS_ARG1_DICT + "conn_is_adjacent_to_conn.txt"
PS_ARG1_DICT_CURR_FIRST_CURR_FIRST_LEMMA_VERB = PS_ARG1_DICT + "curr_first_curr_first_lemma_verb.txt"
PS_ARG1_DICT_CONN_CURR_POSITION = PS_ARG1_DICT + "conn_curr_position.txt"
PS_ARG1_DICT_CURR_FIRST_PREV_LAST_PARSE_PATH = PS_ARG1_DICT + "curr_first_prev_last_parse_path.txt"
PS_ARG1_DICT_CONN_CURR_FIRST = PS_ARG1_DICT + "conn_curr_first.txt"
PS_ARG1_DICT_CPARENT_TO_ROOT_PATH_NODE_NAMES = PS_ARG1_DICT + "CParent_to_root_path_node_names.txt"
PS_ARG1_DICT_CPOS = PS_ARG1_DICT + "CPOS.txt"
PS_ARG1_DICT_CONN_CONNCTX = PS_ARG1_DICT + "conn_connCtx.txt"
PS_ARG1_DICT_CONN_PARENT_CATEGORY_CTX = PS_ARG1_DICT + "curr_first_prev_last_parse_path.txt"
PS_ARG1_DICT_CLAUSE_FIRST_CONN_POS = PS_ARG1_DICT + "clause_first_conn_pos.txt"
PS_ARG1_DICT_CLAUSE_MAIN_VERB_CONN = PS_ARG1_DICT + "clause_main_verb_conn.txt"
''' Implicit Arg1 '''
IMPLICIT_ARG1_DICT = DICT_PATH + "implicit_arg1/"
IMPLICIT_ARG1_DICT_LOWERCASE_VERBS = IMPLICIT_ARG1_DICT + "lowercase_verbs.txt"
IMPLICIT_ARG1_DICT_LEMMA_VERBS = IMPLICIT_ARG1_DICT + "lemma_verbs.txt"
IMPLICIT_ARG1_DICT_CURR_FIRST = IMPLICIT_ARG1_DICT + "curr_first.txt"
IMPLICIT_ARG1_DICT_CURR_LAST = IMPLICIT_ARG1_DICT + "curr_last.txt"
IMPLICIT_ARG1_DICT_PREV_LAST = IMPLICIT_ARG1_DICT + "prev_last.txt"
IMPLICIT_ARG1_DICT_NEXT_FIRST = IMPLICIT_ARG1_DICT + "next_first.txt"
IMPLICIT_ARG1_DICT_PREV_LAST_CURR_FIRST = IMPLICIT_ARG1_DICT + "prev_last_curr_first.txt"
IMPLICIT_ARG1_DICT_CURR_LAST_NEXT_FIRST = IMPLICIT_ARG1_DICT + "curr_last_next_first.txt"
IMPLICIT_ARG1_DICT_CURR_PRODUCTION_RULE = IMPLICIT_ARG1_DICT + "curr_production_rule.txt"
IMPLICIT_ARG1_DICT_PREV_CURR_PRODUCTION_RULE = IMPLICIT_ARG1_DICT + "prev_curr_production_rule.txt"
IMPLICIT_ARG1_DICT_PREV_CURR_CP_PRODUCTION_RULE = IMPLICIT_ARG1_DICT + "prev_curr_CP_production_rule.txt"
IMPLICIT_ARG1_DICT_CURR_NEXT_CP_PRODUCTION_RULE = IMPLICIT_ARG1_DICT + "curr_next_CP_production_rule.txt"
IMPLICIT_ARG1_DICT_2PREV_POS_LEMMA_VERB = IMPLICIT_ARG1_DICT + "2prev_pos_lemma_verb.txt"
IMPLICIT_ARG1_DICT_CURR_FIRST_TO_PREV_LAST_PATH = IMPLICIT_ARG1_DICT + "curr_first_to_prev_last_path.txt"
''' Implicit Arg2 '''
IMPLICIT_ARG2_DICT = DICT_PATH + "implicit_arg2/"
IMPLICIT_ARG2_DICT_LOWERCASE_VERBS = IMPLICIT_ARG2_DICT + "lowercase_verbs.txt"
IMPLICIT_ARG2_DICT_LEMMA_VERBS = IMPLICIT_ARG2_DICT + "lemma_verbs.txt"
IMPLICIT_ARG2_DICT_CURR_FIRST = IMPLICIT_ARG2_DICT + "curr_first.txt"
IMPLICIT_ARG2_DICT_CURR_LAST = IMPLICIT_ARG2_DICT + "curr_last.txt"
IMPLICIT_ARG2_DICT_PREV_LAST = IMPLICIT_ARG2_DICT + "prev_last.txt"
IMPLICIT_ARG2_DICT_NEXT_FIRST = IMPLICIT_ARG2_DICT + "next_first.txt"
IMPLICIT_ARG2_DICT_PREV_LAST_CURR_FIRST = IMPLICIT_ARG2_DICT + "prev_last_curr_first.txt"
IMPLICIT_ARG2_DICT_CURR_LAST_NEXT_FIRST = IMPLICIT_ARG2_DICT + "curr_last_next_first.txt"
IMPLICIT_ARG2_DICT_CURR_PRODUCTION_RULE = IMPLICIT_ARG2_DICT + "curr_production_rule.txt"
IMPLICIT_ARG2_DICT_PREV_CURR_PRODUCTION_RULE = IMPLICIT_ARG2_DICT + "prev_curr_production_rule.txt"
IMPLICIT_ARG2_DICT_PREV_CURR_CP_PRODUCTION_RULE = IMPLICIT_ARG2_DICT + "prev_curr_CP_production_rule.txt"
IMPLICIT_ARG2_DICT_CURR_NEXT_CP_PRODUCTION_RULE = IMPLICIT_ARG2_DICT + "curr_next_CP_production_rule.txt"
IMPLICIT_ARG2_DICT_2PREV_POS_LEMMA_VERB = IMPLICIT_ARG2_DICT + "2prev_pos_lemma_verb.txt"
IMPLICIT_ARG2_DICT_CURR_FIRST_TO_PREV_LAST_PATH = IMPLICIT_ARG2_DICT + "curr_first_to_prev_last_path.txt"
''' 使用pickle 保存的 dict '''
PICKLE_PATH = DICT_PATH + "pickle/"
PICKLE_DISC_CONNS_PATH = PICKLE_PATH+"disc_conns.p"
PICKLE_NON_DISC_CONNS_PATH = PICKLE_PATH+"non_disc_conns.p"
PICKLE_POLARITY_PATH = PICKLE_PATH+"polairty.p"
FEATURE_OUTPUT_PATH = CWD + "model_trainer/feature_output/"
#feature output
CONNECTIVE_TRAIN_FEATURE_OUTPUT_PATH = FEATURE_OUTPUT_PATH + "connective_train_feature.txt"
CONNECTIVE_DEV_FEATURE_OUTPUT_PATH = FEATURE_OUTPUT_PATH + "connective_dev_feature.txt"
ARG_POSITION_TRAIN_FEATURE_OUTPUT_PATH = FEATURE_OUTPUT_PATH + "arg_position_train_feature.txt"
ARG_POSITION_DEV_FEATURE_OUTPUT_PATH = FEATURE_OUTPUT_PATH + "arg_position_dev_feature.txt"
ARG_EXTRACTOR_TRAIN_FEATURE_OUTPUT_PATH = FEATURE_OUTPUT_PATH + "arg_extractor_train_feature.txt"
ARG_EXTRACTOR_DEV_FEATURE_OUTPUT_PATH = FEATURE_OUTPUT_PATH + "arg_extractor_dev_feature.txt"
NT_TRAIN_FEATURE_OUTPUT_PATH = FEATURE_OUTPUT_PATH + "nt_train_feature.txt"
NT_DEV_FEATURE_OUTPUT_PATH = FEATURE_OUTPUT_PATH + "nt_dev_feature.txt"
EXPLICIT_TRAIN_FEATURE_OUTPUT_PATH = FEATURE_OUTPUT_PATH + "explicit_train_feature.txt"
EXPLICIT_DEV_FEATURE_OUTPUT_PATH = FEATURE_OUTPUT_PATH + "explicit_dev_feature.txt"
NON_EXPLICIT_TRAIN_FEATURE_OUTPUT_PATH = FEATURE_OUTPUT_PATH + "non_explicit_train_feature.txt"
NON_EXPLICIT_DEV_FEATURE_OUTPUT_PATH = FEATURE_OUTPUT_PATH + "non_explicit_dev_feature.txt"
ATTRI_NON_CONNS_TRAIN_FEATURE_OUTPUT_PATH = FEATURE_OUTPUT_PATH + "attri_non_conns_train_feature.txt"
ATTRI_NON_CONNS_DEV_FEATURE_OUTPUT_PATH = FEATURE_OUTPUT_PATH + "attri_non_conns_dev_feature.txt"
PS_ARG2_TRAIN_FEATURE_OUTPUT_PATH = FEATURE_OUTPUT_PATH + "ps_arg2_train_feature.txt"
PS_ARG2_DEV_FEATURE_OUTPUT_PATH = FEATURE_OUTPUT_PATH + "ps_arg2_dev_feature.txt"
PS_ARG1_TRAIN_FEATURE_OUTPUT_PATH = FEATURE_OUTPUT_PATH + "ps_arg1_train_feature.txt"
PS_ARG1_DEV_FEATURE_OUTPUT_PATH = FEATURE_OUTPUT_PATH + "ps_arg1_dev_feature.txt"
IMPLICIT_ARG1_TRAIN_FEATURE_OUTPUT_PATH = FEATURE_OUTPUT_PATH + "implicit_arg1_train_feature.txt"
IMPLICIT_ARG1_DEV_FEATURE_OUTPUT_PATH = FEATURE_OUTPUT_PATH + "implicit_arg1_dev_feature.txt"
IMPLICIT_ARG2_TRAIN_FEATURE_OUTPUT_PATH = FEATURE_OUTPUT_PATH + "implicit_arg2_train_feature.txt"
IMPLICIT_ARG2_DEV_FEATURE_OUTPUT_PATH = FEATURE_OUTPUT_PATH + "implicit_arg2_dev_feature.txt"
COMP_CONTRAST_TRAIN_FEATURE_OUTPUT_PATH = FEATURE_OUTPUT_PATH + "comp_contrast_train_feature.txt"
COMP_CONTRAST_DEV_FEATURE_OUTPUT_PATH = FEATURE_OUTPUT_PATH + "comp_contrast_dev_feature.txt"
''' -- dev output --- '''
DEV_OUTPUT_PATH = CWD + "model_trainer/dev_output/"
# connective
CONNECTIVE_DEV_OUTPUT_PATH = DEV_OUTPUT_PATH + "connective_dev_result.txt"
#arg_positon
ARG_POSITION_DEV_OUTPUT_PATH = DEV_OUTPUT_PATH + "arg_position_dev_result.txt"
#arg_extractor
ARG_EXTRACTOR_DEV_OUTPUT_PATH = DEV_OUTPUT_PATH + "arg_extractor_dev_result.txt"
ARG_EXTRACTOR_DEV_EVALUATION_PATH = DEV_OUTPUT_PATH + "arg_extractor_dev_evaluation.txt"
#nt arg_extractor
NT_DEV_OUTPUT_PATH = DEV_OUTPUT_PATH + "nt_dev_result.txt"
#explicit
EXPLICIT_DEV_OUTPUT_PATH = DEV_OUTPUT_PATH + "explicit_dev_result.txt"
#non_explicit
NON_EXPLICIT_DEV_OUTPUT_PATH = DEV_OUTPUT_PATH + "non_explicit_dev_result.txt"
#attri
ATTRI_NON_CONNS_DEV_OUTPUT_PATH = DEV_OUTPUT_PATH + "attri_non_conns_dev_result.txt"
# ps arg2
PS_ARG2_DEV_OUTPUT_PATH = DEV_OUTPUT_PATH + "ps_arg2_dev_result.txt"
# ps arg1
PS_ARG1_DEV_OUTPUT_PATH = DEV_OUTPUT_PATH + "ps_arg1_dev_result.txt"
# comp contrast
COMP_CONTRAST_DEV_OUTPUT_PATH = DEV_OUTPUT_PATH + "comp_contrast_dev_result.txt"
# implicit arg1
IMPLICIT_ARG1_DEV_OUTPUT_PATH = DEV_OUTPUT_PATH + "implicit_arg1_dev_result.txt"
# implicit arg2
IMPLICIT_ARG2_DEV_OUTPUT_PATH = DEV_OUTPUT_PATH + "implicit_arg2_dev_result.txt"
MODEL_PATH = CWD + "model/"
#connective classifier model
CONNECTIVE_CLASSIFIER_MODEL = MODEL_PATH + "connective_classifier.model"
# argument position classifer
ARG_POSITION_CLASSIFIER_MODEL = MODEL_PATH + "arg_position_classifier.model"
# argument extractor
ARG_EXTRACTOR_CLASSIFIER_MODEL = MODEL_PATH + "arg_extractor_classifier.model"
# NT
NT_CLASSIFIER_MODEL = MODEL_PATH + "nt_classifier.model"
#explicit
EXPLICIT_CLASSIFIER_MODEL = MODEL_PATH + "explicit_classifier.model"
#non-explicit
NON_EXPLICIT_CLASSIFIER_MODEL = MODEL_PATH + "non_explicit_classifier.model"
# ps arg2
PS_ARG2_CLASSIFIER_MODEL = MODEL_PATH + "ps_arg2_classifier.model"
# ps arg1
PS_ARG1_CLASSIFIER_MODEL = MODEL_PATH + "ps_arg1_classifier.model"
# implicit arg1
IMPLICIT_ARG1_CLASSIFIER_MODEL = MODEL_PATH + "implicit_arg1_classifier.model"
# implicit arg2
IMPLICIT_ARG2_CLASSIFIER_MODEL = MODEL_PATH + "implicit_arg2_classifier.model"
''' connective syntatic category '''
CONNECTIVE_CATEGORY_PATH = DATA_PATH + "connective-category.txt"
adverbial = "adverbial"
Subordinator = "subordinator"
Coordinator = "coordinator"
Sense_To_Label = {
'Temporal.Asynchronous.Precedence': '1',
'Temporal.Asynchronous.Succession': '2',
'Temporal.Synchrony': '3',
'Contingency.Cause.Reason': '4',
'Contingency.Cause.Result': '5',
'Contingency.Condition': '6',
'Comparison.Contrast': '7',
'Comparison.Concession': '8',
'Expansion.Conjunction': '9',
'Expansion.Instantiation': '10',
'Expansion.Restatement': '11',
'Expansion.Alternative': '12',
'Expansion.Alternative.Chosen alternative': '13',
'Expansion.Exception': '14',
'EntRel': '15',
# 'Comparison': '16',
# 'Contingency': '17',
# 'Expansion': '18',
# 'Temporal': '19',
# 'Contingency.Cause': '20',
# 'Temporal.Asynchronous': '21'
}
Label_To_Sense = {
'1':'Temporal.Asynchronous.Precedence',
'2':'Temporal.Asynchronous.Succession',
'3':'Temporal.Synchrony',
'4':'Contingency.Cause.Reason',
'5':'Contingency.Cause.Result',
'6':'Contingency.Condition',
'7':'Comparison.Contrast',
'8':'Comparison.Concession',
'9':'Expansion.Conjunction',
'10':'Expansion.Instantiation',
'11':'Expansion.Restatement',
'12':'Expansion.Alternative',
'13':'Expansion.Alternative.Chosen alternative',
'14':'Expansion.Exception',
'15':'EntRel',
# '16':'Comparison',
# '17':'Contingency',
# '18':'Expansion',
# '19':'Temporal',
# '20': 'Contingency.Cause',
# '21': 'Temporal.Asynchronous'
}
SENSES = [
'Temporal.Asynchronous.Precedence',
'Temporal.Asynchronous.Succession',
'Temporal.Synchrony',
'Contingency.Cause.Reason',
'Contingency.Cause.Result',
'Contingency.Condition',
'Comparison.Contrast',
'Comparison.Concession',
'Expansion.Conjunction',
'Expansion.Instantiation',
'Expansion.Restatement',
'Expansion.Alternative',
'Expansion.Alternative.Chosen alternative',
'Expansion.Exception',
'EntRel',
]
JSON_DEV_OUTPUT_PATH = CWD + "data/test.json"
JSON_GOLD_EXPLICIT_PATH =CWD + "data/gold_explicit.json"
JSON_GOLD_NON_EXPLICIT_PATH =CWD + "data/gold_non_explicit.json"
NEGATE_WORDS_PATH = CWD + "data/negate_word"
LCSINFOMERGE_PATH = CWD + "data/LCSInfomerge.txt"
INQUIRER_WORD_PATH = CWD + "data/inquirer_word"
POLARITY_WORD_PATH = CWD + "data/polarity_word"
PARSER_OUTPUT = CWD + "parser_output/"
PARSER_FEATURE = PARSER_OUTPUT + "feature/"
PARSER_MODEL_OUTPUT = PARSER_OUTPUT + "model_output/"
''' conn_clf '''
PARSER_CONN_CLF_FEATURE = PARSER_FEATURE + "conn_clf_feature.txt"
PARSER_CONN_CLF_MODEL_OUTPUT = PARSER_MODEL_OUTPUT + "conn_clf_model_output.txt"
''' arg position clf '''
PARSER_ARG_POSITION_FEATURE = PARSER_FEATURE + "arg_position_feature.txt"
PARSER_ARG_POSITION_MODEL_OUTPUT = PARSER_MODEL_OUTPUT + "arg_position_model_output.txt"
''' constituent clf '''
PARSER_CONSTITUENT_FEATURE = PARSER_FEATURE + "constituent_feature.txt"
PARSER_CONSTITUENT_MODEL_OUTPUT = PARSER_MODEL_OUTPUT + "constituent_model_output.txt"
''' explicit clf '''
PARSER_EXPLICIT_CLF_FEATURE = PARSER_FEATURE + "explicit_clf_feature.txt"
PARSER_EXPLICIT_CLF_MODEL_OUTPUT = PARSER_MODEL_OUTPUT + "explicit_clf_model_output.txt"
''' explicit ps arg2 extractor '''
PARSER_PS_ARG2_FEATURE = PARSER_FEATURE + "ps_arg2_feature.txt"
PARSER_PS_ARG2_MODEL_OUTPUT = PARSER_MODEL_OUTPUT + "ps_arg2_model_output.txt"
''' explicit ps arg1 extractor '''
PARSER_PS_ARG1_FEATURE = PARSER_FEATURE + "ps_arg1_feature.txt"
PARSER_PS_ARG1_MODEL_OUTPUT = PARSER_MODEL_OUTPUT + "ps_arg1_model_output.txt"
''' implicit arg1 extractor '''
PARSER_IMPLICIT_ARG1_FEATURE = PARSER_FEATURE + "implicit_arg1_feature.txt"
PARSER_IMPLICIT_ARG1_MODEL_OUTPUT = PARSER_MODEL_OUTPUT + "implicit_arg1_model_output.txt"
''' implicit arg2 extractor '''
PARSER_IMPLICIT_ARG2_FEATURE = PARSER_FEATURE + "implicit_arg2_feature.txt"
PARSER_IMPLICIT_ARG2_MODEL_OUTPUT = PARSER_MODEL_OUTPUT + "implicit_arg2_model_output.txt"
''' explicit relation json file '''
PARSER_EXPLICIT_REATION_PATH = PARSER_OUTPUT + "pred_explicit_relation.json"
''' non-explicit relation json file '''
PARSER_NON_EXPLICIT_REATION_PATH = PARSER_OUTPUT + "pred_non_explicit_relation.json"
''' relation json file '''
PARSER_REATION_PATH = PARSER_OUTPUT + "pred_relation.json"
''' non_explicit clf '''
PARSER_NON_EXPLICIT_CLF_FEATURE = PARSER_FEATURE + "non_explicit_clf_feature.txt"
PARSER_NON_EXPLICIT_CLF_MODEL_OUTPUT = PARSER_MODEL_OUTPUT + "non_explicit_clf_model_output.txt"
''' attribution clf '''
PARSER_ATTRI_NON_CONNS_CLF_FEATURE = PARSER_FEATURE + "attri_non_conns_clf_feature.txt"
PARSER_ATTRI_NON_CONNS_CLF_MODEL_OUTPUT = PARSER_MODEL_OUTPUT + "attri_non_conns_clf_model_output.txt"
''' Explicit PS attribution clf '''
PARSER_PS_EXP_ATTRI_CLF_FEATURE = PARSER_FEATURE + "ps_exp_attri_clf_feature.txt"
PARSER_PS_EXP_ATTRI_CLF_MODEL_OUTPUT = PARSER_MODEL_OUTPUT + "aps_exp_attri_clf_model_output.txt"
ARG_POSITION_TO_LABEL = {
"SS": '0',
"PS": '1'
}
LABEL_TO_ARG_POSITION = {
"0": 'SS',
"1": 'PS'
}
# word2Vec
SKIPGRAM_WORD_EMBEDDING_FILE = CWD + "data/GoogleNews-vectors-negative300.bin"
#freely_omissible_connectives
FREELY_OMISSIBLE_CONNECTIVES_PATH = CWD + "data/freely_omissible_connectives.txt"
FEATURE_SELECTION_PATH = CWD + "feature_selection/"
FEATURE_SELECTION_PRODUCTION_RULES = FEATURE_SELECTION_PATH + "production_rules.txt"
FEATURE_SELECTION_PRODUCTION_RULES_INFOGAIN = FEATURE_SELECTION_PATH + "production_rules_infoGain.txt"
FEATURE_SELECTION_DICT_TOP_N_PRODUCTION_RULES = FEATURE_SELECTION_PATH + "top_nproduction_rules.txt"
# brown cluster
FEATURE_SELECTION_BROWN_CLUSTER = FEATURE_SELECTION_PATH + "brown_cluster.txt"
FEATURE_SELECTION_BROWN_CLUSTER_INFOGAIN = FEATURE_SELECTION_PATH + "brown_cluster_infoGain.txt"
FEATURE_SELECTION_DICT_TOP_N_BROWN_CLUSTER = FEATURE_SELECTION_PATH + "top_n_brown_cluster.txt"
MPQA_SUBJECTIVITY_LEXICON_PATH = CWD + "data/MPQA_Subjectivity_Lexicon.txt"
VERB_NET_PATH = CWD + "data/new_vn"