-
Notifications
You must be signed in to change notification settings - Fork 1
/
ps_arg1_dict.py
56 lines (38 loc) · 1.9 KB
/
ps_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
49
50
51
52
53
54
55
#coding:utf-8
from util import singleton
import util, config
@singleton
class Ps_arg1_dict():
def __init__(self):
self.dict_lowercase_verbs = \
util.load_dict_from_file(config.PS_ARG1_DICT_LOWERCASE_VERBS)
self.dict_lemma_verbs = \
util.load_dict_from_file(config.PS_ARG1_DICT_LEMMA_VERBS)
self.dict_curr_first = \
util.load_dict_from_file(config.PS_ARG1_DICT_CURR_FIRST)
self.dict_curr_last = \
util.load_dict_from_file(config.PS_ARG1_DICT_CURR_LAST)
self.dict_prev_last = \
util.load_dict_from_file(config.PS_ARG1_DICT_PREV_LAST)
self.dict_next_first = \
util.load_dict_from_file(config.PS_ARG1_DICT_NEXT_FIRST)
self.dict_prev_last_curr_first = \
util.load_dict_from_file(config.PS_ARG1_DICT_PREV_LAST_CURR_FIRST)
self.dict_curr_last_next_first = \
util.load_dict_from_file(config.PS_ARG1_DICT_CURR_LAST_NEXT_FIRST)
self.dict_curr_production_rule = \
util.load_dict_from_file(config.PS_ARG1_DICT_CURR_PRODUCTION_RULE)
self.dict_con_str = \
util.load_dict_from_file(config.PS_ARG1_DICT_CONN_STR)
self.dict_con_lstr = \
util.load_dict_from_file(config.PS_ARG1_DICT_CONN_LSTR)
self.dict_conn_to_root_path = \
util.load_dict_from_file(config.PS_ARG1_DICT_CONN_TO_ROOT_PATH)
self.dict_conn_to_root_compressed_path = \
util.load_dict_from_file(config.PS_ARG1_DICT_CONN_TO_ROOT_COMPRESSED_PATH)
self.dict_conn_curr_position = \
util.load_dict_from_file(config.PS_ARG1_DICT_CONN_CURR_POSITION)
self.dict_curr_first_prev_last_parse_path = \
util.load_dict_from_file(config.PS_ARG1_DICT_CURR_FIRST_PREV_LAST_PARSE_PATH)
self.dict_conn_curr_first = \
util.load_dict_from_file(config.PS_ARG1_DICT_CONN_CURR_FIRST)