Loading code/absinth.py +1 −1 Changes for code/absinth.py: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -186,7 +186,7 @@ if __name__ == '__main__': corpus_path = '/proj/absinth/wikipedia.txt.dump.20140615-en.SZTAKI' G = Graph() #initialises graph G.build(corpus_path, 'gay_bar', filters) #builds graph from corpus with target and filters G.build(corpus_path, 'division_by_zero', filters) #builds graph from corpus with target and filters for hub in G.root_hubs(): print(hub.key,'-->', list(hub.neighbors.keys()), '\n') #prints senses Loading Loading
code/absinth.py +1 −1 Changes for code/absinth.py: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -186,7 +186,7 @@ if __name__ == '__main__': corpus_path = '/proj/absinth/wikipedia.txt.dump.20140615-en.SZTAKI' G = Graph() #initialises graph G.build(corpus_path, 'gay_bar', filters) #builds graph from corpus with target and filters G.build(corpus_path, 'division_by_zero', filters) #builds graph from corpus with target and filters for hub in G.root_hubs(): print(hub.key,'-->', list(hub.neighbors.keys()), '\n') #prints senses Loading