← Questions
Bag-of-words similarity search from scratch
0
I was asked this
No reports yet. Sign in to say where you were asked it.
Build a small similarity search with no libraries: tokenize the documents, turn each into a bag-of-words vector, write a similarity function such as cosine similarity, and return the documents closest to a query. The functions you need are given; you write each one.
No official answer yet. Write yours on the right and run it.
Nothing published yet.
Write and test your solution herePython in your browser, the question's tests level by level, saved for you.Sign in to start coding
