Question: Question 3 2 pts The following Python code obtains the TF-IDF representation of a corpus. tfidf_model TfidfVectorizer tfidf tfidf_model.fit_transform(corpus) Which of the following lines of

Question 3 2 pts The following Python code obtains the TF-IDF representation of a corpus. tfidf_model TfidfVectorizer tfidf tfidf_model.fit_transform(corpus) Which of the following lines of code correctly obtains a TF-IDF representation of a new corpus that has the same vocabulary as the corpus used to fit the tfidf_model? O tfidf_new tfidf.todense(new_corpus) Otfidf_new = tfidf_model.transform(new.corpus) O tfidf_new tfidf_model.fit_transform(new_corpus) O tfidf_new tfidf. transform(new_corpus)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
