Commit b8177d53 authored by Victor Zimmermann's avatar Victor Zimmermann
Browse files

Add .lower() for contexts

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