Loading src/absinth.py +2 −2 Original line number Diff line number Diff line Loading @@ -143,7 +143,7 @@ def induce(topic_name: str, result_list: list) -> (nx.Graph, list, dict): graph_in_existence = True with open(node_dict_name, 'r') as node_file, open(edge_dict_name, 'r') as edge_file: with open(config.graph+node_dict_name, 'r') as node_file, open(config.graph+edge_dict_name, 'r') as edge_file: node_freq_dict = json.load(node_file) edge_freq_dict = json.load(edge_file) Loading @@ -154,7 +154,7 @@ def induce(topic_name: str, result_list: list) -> (nx.Graph, list, dict): node_freq_dict, edge_freq_dict = frequencies(target_string, result_list) with open(node_dict_name, 'w') as node_file, open(edge_dict_name, 'w') as edge_file: with open(config.graph+node_dict_name, 'w') as node_file, open(config.graph+edge_dict_name, 'w') as edge_file: node_file.write(json.dumps(node_freq_dict)) edge_file.write(json.dumps(edge_freq_dict)) Loading Loading
src/absinth.py +2 −2 Original line number Diff line number Diff line Loading @@ -143,7 +143,7 @@ def induce(topic_name: str, result_list: list) -> (nx.Graph, list, dict): graph_in_existence = True with open(node_dict_name, 'r') as node_file, open(edge_dict_name, 'r') as edge_file: with open(config.graph+node_dict_name, 'r') as node_file, open(config.graph+edge_dict_name, 'r') as edge_file: node_freq_dict = json.load(node_file) edge_freq_dict = json.load(edge_file) Loading @@ -154,7 +154,7 @@ def induce(topic_name: str, result_list: list) -> (nx.Graph, list, dict): node_freq_dict, edge_freq_dict = frequencies(target_string, result_list) with open(node_dict_name, 'w') as node_file, open(edge_dict_name, 'w') as edge_file: with open(config.graph+node_dict_name, 'w') as node_file, open(config.graph+edge_dict_name, 'w') as edge_file: node_file.write(json.dumps(node_freq_dict)) edge_file.write(json.dumps(edge_freq_dict)) Loading