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

Kleinscheiß.

parent e96d083d
No related branches found
No related tags found
No related merge requests found
......@@ -608,10 +608,10 @@ def colour_graph(graph: nx.Graph, root_hub_list: list) -> nx.Graph:
return graph
def disambiguate_colour(graph: nx.Graph, root_hub_list, context_list: list) -> dict:
def disambiguate_colour(graph: nx.Graph, root_hub_list: list, context_list: list) -> dict:
"""Clusters senses to root hubs using a coloured graph.
This algorithm colours the graph using (a method with a name i don't know)
This algorithm colours the graph using evolutionary graph theory
and calculates scores for each root hub given a context based on this graph.
Args:
......@@ -766,7 +766,7 @@ def disambiguate_mst(graph: nx.Graph, root_hub_list: list,
pass
# If disambiguator does not detect a sense, return singleton.
if np.max(score_array) == 0:
if any(score_array):
pass
......
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