From fa33af60908dee8c8ef30fe306ddeebb0a80b0fc Mon Sep 17 00:00:00 2001
From: Victor Zimmermann <zimmermann@cl.uni-heidelberg.de>
Date: Tue, 20 Mar 2018 17:07:13 +0100
Subject: [PATCH] =?UTF-8?q?Kleinschei=C3=9F.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/absinth.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/absinth.py b/src/absinth.py
index 601f610..13aaa3d 100644
--- a/src/absinth.py
+++ b/src/absinth.py
@@ -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
             
-- 
GitLab