def fit_tfidf(count_vector): tfidf = TfidfTransformer(use_idf=False) tfidf_vector = tfidf.fit(count_vector) return tfidf_vector