Loading code/absinth_nx.py +2 −0 Changes for code/absinth_nx.py: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -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) Loading Loading @@ -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') Loading Loading
code/absinth_nx.py +2 −0 Changes for code/absinth_nx.py: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -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) Loading Loading @@ -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') Loading