From a list of bigrams, I need to redact bigrams that do not have at least one term that exactly matches at least one term in a list of unigrams.
The Two Lists
bigram_list = ['computer vision', 'data excellence', 'data visualization']
unigram_list = ['excel', 'tableau', 'visio', 'visualization']
The Objective
cleaned_bigrams = ['data visualization']
What I've Tried
I tried adapting this approach here, but failed: Removing separate list of items from another list in Python 3.x
I also tried this, but couldn't get it to work: Get rid of unigrams in a list if contained within bigrams or trigrams python
I tried to adapt from a previous question I asked, but couldn't get that going: Create new boolean fields based on specific bigrams appearing in a tokenized pandas dataframe
Thanks in advance for any help you can provide, and would appreciate an upvote if you think this is a good question!