Skip to content

Commit

Permalink
Update topic_assistant.py
Browse files Browse the repository at this point in the history
  • Loading branch information
joerg committed Sep 16, 2021
1 parent a1b2b10 commit b7e92dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/topic_assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ def go(self, exampleText):
node.tag = node.tag + " [" + node.data['match'] + "]"
T.show(key=lambda node: node.data["w"], reverse=True, idhidden=True)

return json.dumps(T.to_dict(with_data=True, key=lambda node: node.data["w"], sort=True, reverse=True))
return T.to_dict(with_data=True, key=lambda node: node.data["w"], sort=True, reverse=True)

if __name__ == '__main__':

text = sys.argv[1]
a = TopicAssistant()
print(a.go(text))
print(json.dumps(a.go(text)))

0 comments on commit b7e92dd

Please sign in to comment.