Skip to content
Snippets Groups Projects
Commit 9af20889 authored by Victor Zimmermann's avatar Victor Zimmermann
Browse files

Even more bugfixes (again).

parent 986efcf1
No related branches found
No related tags found
No related merge requests found
......@@ -155,8 +155,9 @@ 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(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))
json.dump(node_freq_dict, node_file)
json.dump(edge_freq_dict, edge_file)
#builds graph from these dictionaries, also applies multiple filters
print('[a]', 'Building graph.\t('+topic_name+')')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment