Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a search method, to compare a non-corpus document to the corpus #6

Open
jpmckinney opened this issue Jun 3, 2013 · 8 comments
Open

Comments

@jpmckinney
Copy link
Owner

No description provided.

@jpmckinney jpmckinney changed the title Add a search method, to compare a document to the corpus Add a search method, to compare a non-corpus document to the corpus Oct 11, 2014
@ParthKolekar
Copy link

This would be great to have.

@neymarsabin
Copy link

Any updates on above mentioned idea?

@jpmckinney
Copy link
Owner Author

Sorry, no update - I'm not actively using the gem, but happy to merge a PR :)

@neymarsabin
Copy link

Are you implementing cosine similarity in this gem for the last computation ?

@jpmckinney
Copy link
Owner Author

What last computation are you referring to?

@neymarsabin
Copy link

Finding similarity after you find out the tf-idf values and the matrix. Doesn't the code below find the document similarity between document1 and document2 using cosine similarity method?
matrix[model.document_index(document1), model.document_index(document2)]

@jpmckinney
Copy link
Owner Author

Yes, indeed. That's how to do it if the document is a part of the corpus.

@neymarsabin
Copy link

@jpmckinney Thanks for the information...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants