Use the code below, print the final matrix, and put the score (TF-IDF only) for the last document in the answer box. Use the IDE to solve the task.
from sklearn.feature_extraction.text import TfidfVectorizer
dataset = ["Load up on guns, bring your friends",
"It's fun to lose and to pretend",
"She's over-bored and self-assured",
"Oh no, I know a dirty word",
"Hello"]
vectorizer = TfidfVectorizer()
weighted_matrix = vectorizer.fit_transform(dataset)
terms = vectorizer.get_feature_names_out()
# put your code here