text_html_output_1.png
from sklearn.feature_extraction.text import TfidfVectorizer

from sklearn.feature_extraction.text import TfidfVectorizer
corpus = ['I live in Mumbai', 'I like Mumbai', 'I dont like Pune']
vectorizer = TfidfVectorizer()
X = vectorizer.fit_transform(corpus)

corpus = ['you were born with potential', 'you were born with goodness and trust', 'you were born with ideals and dreams', 'you were born with greatness', 'you were born with wings', "you are not meant for crawling, so don't", 'you have wings', 'learn to use them and fly']
vectorizer = TfidfVectorizer()
X = vectorizer.fit_transform(corpus)
print(vectorizer.get_feature_names_out())
print(X)