Data Science, Machine Learning.
import TfidfVectorizer from sklearn.feature_extraction.text import CountVectorizer from sklearn.metrics.pairwise import cosine_similarity # these would realistically get read from files or dataframes. a = ['google inc', 'medium.com', ...] b = ['google', 'microsoft', ...] stopwords = ['ltd', ...]