Use Sklearn To Find String Similarity Between Two Texts With Large Group Of Documents
Given a large set of documents (book titles, for example), how to compare two book titles that are not in the original set of documents, or without recomputing the entire TF-IDF ma
Solution 1:
Why do you append them to the list and recompute everything? Just do
new_vectors = vectorizer.transform([title1, title2])
Post a Comment for "Use Sklearn To Find String Similarity Between Two Texts With Large Group Of Documents"