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

sentence similarity #7

Open
jojo05 opened this issue Sep 12, 2016 · 0 comments
Open

sentence similarity #7

jojo05 opened this issue Sep 12, 2016 · 0 comments

Comments

@jojo05
Copy link

jojo05 commented Sep 12, 2016

Hi,
I am looking at the C++ MonolingualModel public classes and would like to confirm the steps to follow to perform sentence similarity

  1. load - (the word model)
  2. sentVec(file) - compute sentence vectors (one sentence per line)
  3. saveSentVectors - save the sentence vectors in text format

Question: given one existing sentence, how do I get the closest ones ?

I assume here that to compute the similarity of the given vector with all the other vectors, and there is no method for it. Is this correct ?

I see there is a similaritySentence for strings but maybe you should add one method that works with vectors or maybe a closestSentence method with params (sentence vector, all sentence vectors)

Thanks

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

1 participant