SeanLee97/AnglE

What similarity metric should I use to measure semantic similarity between two sentences?

zachares opened this issue · 2 comments

In the paper, at training time, it appears that you treat embeddings as a vectors of real numbers which is used to calculate cosine similarity and also as vectors of complex numbers which is used to calculate the angle between the two vectors to measure similarity. At inference time, what similarity metric should I use measure semantic similarity?

@zachares hi, you can use cosine or L2 in the inference stage.

Thank you!