Skip to content

sentence similarity  #7

Description

@jojo05

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions