What is the word?

Report a typo

Complete the code below to find out the term at the following location: (3, 11). Use the IDE to solve the task and copy the answer (the term from the vocabulary) in the box.

from sklearn.feature_extraction.text import TfidfVectorizer

dataset = ["Yesterday",
           "All my troubles seemed so far away",
           "Now it looks as though they're here to stay",
           "Oh, I believe in yesterday"]

vectorizer = TfidfVectorizer()
tfidf_matrix = vectorizer.fit_transform(dataset)
terms = vectorizer.get_feature_names_out()

# put your code here

Remember that the location consists of indexes.
Enter a short text
___

Create a free account to access the full topic