0

The question is in the title, but here is an example:

Context: "I often go swimming in the ocean" Keywords: "water", "bird", ...

The keyword water + context should output a higher value, while bird + context a lowr value than water.

I tried using a pretrained model from huggingfaces that computes sentence embeddings and then compute cosine similarity, but it yields no good result. Anything I can try?

0 Answers0