Remove Similarities string from list of tuples

I have a need where I need to remove the semantic similarity string from a list of tuples.

Here is my input:

[(327, 328, 'Apache'), (327, 329, 'Apache Kafka'), (328, 329, 'Kafka')]

Expected output:

[(327, 329, 'Apache Kafka')]

What is the best way to achieve the result?



Read more here: https://stackoverflow.com/questions/67930744/remove-similarities-string-from-list-of-tuples

Content Attribution

This content was originally published by thotam at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: