Data Science, Machine Learning.
GOOGLE INC.| 1 0 0 0 0 0 MEDIUM.COM | 0 .77 .63 0 0 0 Amazon labs| 0 0 0 0 .7 .7 Google, inc| 1 0 0 0 0 0 Yahoo | 0 0 0 1 0 0 com | 0 0 1 0 0 0 Here’s the code: from sklearn.feature_extraction.text import TfidfVectorizer matrix = vectorizer.fit_transform(['GOOGLE','MEDIUM.COM', 'Amazon labs',