本文整理汇总了Python中util.load_dict_from_file函数的典型用法代码示例。如果您正苦于以下问题:Python load_dict_from_file函数的具体用法?Python load_dict_from_file怎么用?Python load_dict_from_file使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了load_dict_from_file函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self):
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)
示例2: __init__
def __init__(self):
self.dict_CString = self.get_dict_CString()
self.dict_CPOS = self.get_dict_CPOS()
self.dict_prev1 = self.get_dict_prev1()
self.dict_prev1POS = self.get_dict_prev1POS()
self.dict_prev1_C = self.get_dict_prev1_C()
self.dict_prev1POS_CPOS = self.get_dict_prev1POS_CPOS()
self.dict_prev2 = self.get_dict_prev2()
self.dict_prev2POS = self.get_dict_prev2POS()
self.dict_prev2_C = self.get_dict_prev2_C()
self.dict_prev2POS_CPOS = self.get_dict_prev2POS_CPOS()
self.dict_next1 = self.get_dict_next1()
self.dict_next1POS = self.get_dict_next1POS()
self.dict_next1_C = self.get_dict_next1_C()
self.dict_next1POS_CPOS = self.get_dict_next1POS_CPOS()
self.dict_next2 = self.get_dict_next2()
self.dict_next2POS = self.get_dict_next2POS()
self.dict_next2_C = self.get_dict_next2_C()
self.dict_next2POS_CPOS = self.get_dict_next2POS_CPOS()
self.dict_conn_to_root_path = util.load_dict_from_file(config.ARG_POSITION_DICT_CONN_TO_ROOT_PATH)
示例3: get_prevPOS_CPOS_dict
def get_prevPOS_CPOS_dict(self):
return util.load_dict_from_file(config.CONNECTIVE_DICT_PREVPOS_CPOS_PATH)
示例4: get_conn_parent_category_dict
def get_conn_parent_category_dict(self):
return util.load_dict_from_file(config.EXPLICIT_DICT_CONN_PARENT_CATEGORY_PATH)
示例5: get_prev_C_dict
def get_prev_C_dict(self):
# print "loading c pre.."
return util.load_dict_from_file(config.CONNECTIVE_DICT_PREV_C_PATH)
示例6: get_dict_CString
def get_dict_CString(self):
return util.load_dict_from_file(config.ARG_POSITION_DICT_CSTRING)
示例7: get_dict_prev2POS_CPOS
def get_dict_prev2POS_CPOS(self):
return util.load_dict_from_file(config.ARG_POSITION_DICT_PREV2POS_CPOS)
示例8: get_compressed_CParent_to_root_path_dict
def get_compressed_CParent_to_root_path_dict(self):
return util.load_dict_from_file(config.CONNECTIVE_DICT_COMPRESSED_CPARENT_TO_ROOT_PATH)
示例9: get_parent_category_dict
def get_parent_category_dict(self):
return util.load_dict_from_file(config.CONNECTIVE_DICT_PARENT_CATEGORY_PATH)
示例10: __init__
def __init__(self):
self.dict_CON_Str = self.get_dict_CON_Str()
self.dict_CON_LStr = self.get_dict_CON_LStr()
self.dict_NT_Ctx = self.get_dict_NT_Ctx()
self.dict_CON_NT_Path = self.get_dict_CON_NT_Path()
self.dict_CON_NT_Path_iLsib = self.get_dict_CON_NT_Path_iLsib()
self.dict_NT_prev_curr_Path = util.load_dict_from_file(config.NT_DICT_PREV_CURR_PATH)
self.dict_CON_POS = util.load_dict_from_file(config.NT_DICT_CON_POS)
self.dict_C_Prev = util.load_dict_from_file(config.NT_DICT_C_PREV)
self.dict_NT_Name = util.load_dict_from_file(config.NT_DICT_NT_NAME)
self.dict_NT_prev_curr_production_rule = util.load_dict_from_file(config.NT_DICT_NT_PREV_CURR_PRODUCTION_RULE)
self.dict_nt_ntParent_ctx = util.load_dict_from_file(config.NT_DICT_NT_NTPARENT_CTX)
self.dict_CParent_to_root_path = util.load_dict_from_file(config.NT_DICT_CPARENT_TO_ROOT_PATH)
self.dict_CParent_to_root_path_node_names = util.load_dict_from_file(config.NT_DICT_CPARENT_TO_ROOT_PATH_NODE_NAMES)
self.dict_conn_connCtx = util.load_dict_from_file(config.NT_DICT_CONN_CONNCTX)
self.dict_conn_parent_categoryCtx = util.load_dict_from_file(config.NT_DICT_CONN_PARENT_CATEGORYCTX)
self.dict_conn_rightSiblingCtx = util.load_dict_from_file(config.NT_DICT_CONN_RIGHTSIBLINGCTX)
self.dict_self_category = util.load_dict_from_file(config.NT_DICT_SELF_CATEGORY)
self.dict_parent_category = util.load_dict_from_file(config.NT_DICT_PARENT_CATEGORY)
self.dict_left_sibling_category = util.load_dict_from_file(config.NT_DICT_LEFT_SIBLING_CATEGORY)
self.dict_right_sibling_category = util.load_dict_from_file(config.NT_DICT_RIGHT_SIBLING_CATEGORY)
self.dict_NT_Linked_ctx = util.load_dict_from_file(config.NT_DICT_NT_LINKED_CTX)
self.dict_NT_to_root_path = util.load_dict_from_file(config.NT_DICT_NT_TO_ROOT_PATH)
self.dict_NT_parent_linked_ctx = util.load_dict_from_file(config.NT_DICT_NT_PARENT_LINKED_CTX)
示例11: get_conn_left_sibling_category_dict
def get_conn_left_sibling_category_dict(self):
return util.load_dict_from_file(config.CONNECTIVE_DICT_CONN_LEFT_SIBLING_CATEGORY_PATH)
示例12: get_dict_NT_Ctx
def get_dict_NT_Ctx(self):
return util.load_dict_from_file(config.NT_DICT_NT_Ctx)
示例13: get_dict_CON_NT_Path_iLsib
def get_dict_CON_NT_Path_iLsib(self):
return util.load_dict_from_file(config.NT_DICT_CON_NT_Path_iLsib)
示例14: get_dict_CON_LStr
def get_dict_CON_LStr(self):
return util.load_dict_from_file(config.NT_DICT_CON_LStr)
示例15: __init__
def __init__(self):
self.dict_lowercase_verbs = \
util.load_dict_from_file(config.IMPLICIT_ARG2_DICT_LOWERCASE_VERBS)
self.dict_lemma_verbs = \
util.load_dict_from_file(config.IMPLICIT_ARG2_DICT_LEMMA_VERBS)
self.dict_curr_first = \
util.load_dict_from_file(config.IMPLICIT_ARG2_DICT_CURR_FIRST)
self.dict_curr_last = \
util.load_dict_from_file(config.IMPLICIT_ARG2_DICT_CURR_LAST)
self.dict_prev_last = \
util.load_dict_from_file(config.IMPLICIT_ARG2_DICT_PREV_LAST)
self.dict_next_first = \
util.load_dict_from_file(config.IMPLICIT_ARG2_DICT_NEXT_FIRST)
self.dict_prev_last_curr_first = \
util.load_dict_from_file(config.IMPLICIT_ARG2_DICT_PREV_LAST_CURR_FIRST)
self.dict_curr_last_next_first = \
util.load_dict_from_file(config.IMPLICIT_ARG2_DICT_CURR_LAST_NEXT_FIRST)
self.dict_curr_production_rule = \
util.load_dict_from_file(config.IMPLICIT_ARG2_DICT_CURR_PRODUCTION_RULE)
self.dict_prev_curr_production_rule = \
util.load_dict_from_file(config.IMPLICIT_ARG2_DICT_PREV_CURR_PRODUCTION_RULE)
self.dict_prev_curr_CP_production_rule = \
util.load_dict_from_file(config.IMPLICIT_ARG2_DICT_PREV_CURR_CP_PRODUCTION_RULE)
self.dict_curr_next_CP_production_rule = \
util.load_dict_from_file(config.IMPLICIT_ARG2_DICT_CURR_NEXT_CP_PRODUCTION_RULE)
self.dict_prev2_pos_lemma_verb = \
util.load_dict_from_file(config.IMPLICIT_ARG2_DICT_2PREV_POS_LEMMA_VERB)
self.dict_curr_first_to_prev_last_path = \
util.load_dict_from_file(config.IMPLICIT_ARG2_DICT_CURR_FIRST_TO_PREV_LAST_PATH)