diff --git a/code/absinth_nx.py b/code/absinth_nx.py index baef7fe4040383666a094a9b1d7ec8d620b97197..3b97902f9d434c23cedb061fcb36e548ba03ba17 100644 --- a/code/absinth_nx.py +++ b/code/absinth_nx.py @@ -198,6 +198,7 @@ def disambiguate(mst, hubs, contexts): for c in contexts: + c = c.lower() toks = [t.text for t in nlp(c)] vector = np.sum([T.nodes[t]['s'] if t in T.nodes else np.zeros(len(H)) for t in toks], axis=0) @@ -260,6 +261,7 @@ if __name__ == '__main__': target = value.strip() print("[A] Processing '"+target+"'.\n") + f = open(results_path+target+'.absinth', 'w') f.write('subTopicID\tresultID\n')