-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathimplicit_arg1_dict.py
55 lines (34 loc) · 1.84 KB
/
implicit_arg1_dict.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
#coding:utf-8
from util import singleton
import util, config
@singleton
class Implicit_arg1_dict():
def __init__(self):
self.dict_lowercase_verbs = \
util.load_dict_from_file(config.IMPLICIT_ARG1_DICT_LOWERCASE_VERBS)
self.dict_lemma_verbs = \
util.load_dict_from_file(config.IMPLICIT_ARG1_DICT_LEMMA_VERBS)
self.dict_curr_first = \
util.load_dict_from_file(config.IMPLICIT_ARG1_DICT_CURR_FIRST)
self.dict_curr_last = \
util.load_dict_from_file(config.IMPLICIT_ARG1_DICT_CURR_LAST)
self.dict_prev_last = \
util.load_dict_from_file(config.IMPLICIT_ARG1_DICT_PREV_LAST)
self.dict_next_first = \
util.load_dict_from_file(config.IMPLICIT_ARG1_DICT_NEXT_FIRST)
self.dict_prev_last_curr_first = \
util.load_dict_from_file(config.IMPLICIT_ARG1_DICT_PREV_LAST_CURR_FIRST)
self.dict_curr_last_next_first = \
util.load_dict_from_file(config.IMPLICIT_ARG1_DICT_CURR_LAST_NEXT_FIRST)
self.dict_curr_production_rule = \
util.load_dict_from_file(config.IMPLICIT_ARG1_DICT_CURR_PRODUCTION_RULE)
self.dict_prev_curr_production_rule = \
util.load_dict_from_file(config.IMPLICIT_ARG1_DICT_PREV_CURR_PRODUCTION_RULE)
self.dict_prev_curr_CP_production_rule = \
util.load_dict_from_file(config.IMPLICIT_ARG1_DICT_PREV_CURR_CP_PRODUCTION_RULE)
self.dict_curr_next_CP_production_rule = \
util.load_dict_from_file(config.IMPLICIT_ARG1_DICT_CURR_NEXT_CP_PRODUCTION_RULE)
self.dict_prev2_pos_lemma_verb = \
util.load_dict_from_file(config.IMPLICIT_ARG1_DICT_2PREV_POS_LEMMA_VERB)
self.dict_curr_first_to_prev_last_path = \
util.load_dict_from_file(config.IMPLICIT_ARG1_DICT_CURR_FIRST_TO_PREV_LAST_PATH)