Commit 14a0691a authored by Victor Zimmermann's avatar Victor Zimmermann
Browse files

bug fix

parent 201549dd
Loading
Loading
Loading
Loading
+1 −1
Changes for code/absinth_nx.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -199,11 +199,11 @@ def disambiguate(mst, hubs, contexts):
        
        idx = contexts.index(c) + 1
        
        try:
            if max(vector) == 0:
                result.append((backup_cluster, idx))
                backup_cluster += 1
            else:    
            try:
                cluster = np.argmax(vector)
                result.append((cluster, idx))
        except: