Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

15
  • 1
    @Emj--about to test performance. Will update the post in the next few minutes. Commented Nov 12, 2019 at 23:03
  • 1
    @emj--check my updated post where I added your original method. Surprisingly the original is fastest. Wonder if it depends upon the size of the dataset (i.e. original is faster for small datasets). Commented Nov 12, 2019 at 23:28
  • 1
    @EmJ--good feedback. Let me see if I can remove the overhead of computing sets for every concept. Commented Nov 13, 2019 at 0:09
  • 1
    @emj--check revised method that uses count_occurences. This should be a lot faster for your test case. Commented Nov 13, 2019 at 0:42
  • 1
    @emj--just saw your post. Looks like you have already found a good solution. Commented Nov 13, 2019 at 12:31