Questions tagged [cosine-similarity]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

Given a document and a set of keywords. I want to calculate how well each keyword describes the document

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 ...
0 votes
0 answers
21 views

How can you add data to BERT? Will 10-20 books added affect the word embeddings?

I will be using BERT to get word embeddings before performing cosine similarity analysis on my data. According to this paper the accuracy of word embeddings can be improved by updating the model with ...
  • 13
0 votes
0 answers
164 views

How to calculate similarity between the two graphs?

I have to learn similarity between graphs using deep learning. I have many samples (500k) of graphs. How can I compute similarity score between two graphs? I am thinking: convert graphs into vectors ...
  • 153
0 votes
0 answers
24 views

model to generate suggestions for improving the cosine similarity of two documents?

I am working on a system that compares a source document to a target document and then generate alternative variations of the source document. The goal is to reach a higher cosine similarity between ...
1 vote
2 answers
53 views

Given embedding vector A and vector B, how to find top k embedding vectors such that they are similar to vector A and dissimilar to vector B

Which would be better approach for getting top k embedding vectors such that they are similar to embedding vector A and dissimilar to vector B. Approach 1: calculate ...
  • 11
0 votes
2 answers
78 views

How to reduce the number of clusters produced by the Markov Clustering Algorithm?

I have used the Markov Clustering Algorithm (MCL) to cluster tweets, based on their similarity. However, I got a too high number of clusters, and most of the clusters have only one tweet. Any ...
0 votes
0 answers
35 views

How to calculate cosine similarity for classification when you have say 10000 samples belonging to two classes have a bunch of samples

Does anyone have experience with using Cosine Similarity for text classification? I see a number of articles on how to find cosine similarity between documents using Doc2Vec, Gensim, etc. I have a ...