Here's the problem...
I have a list of strings:
strings = ['one two three four', 'one two four five', 'four one two', 'three four']
I'm trying to find combinations of words that co-occur in two or more strings.
And here's the output I'm trying to get...
- [one, two, four] - 3 times
- [three, four] - 2 times
- [one, two] - 3 times
- [two, four] - 3 times
The combinations could be any length of two or more words.
Here's what I've already looked at - though I'm not having much luck finding anything I can bootstrap for my needs : (