Questions tagged [semantic-similarity]
The semantic-similarity tag has no usage guidance.
59 questions
2
votes
0
answers
106
views
Use text embeddings to map job descriptions to ESCO occupations
I'm trying to build a model to map job descriptions to ESCO occupations which is a taxonomy for job titles. Every ESCO occupations have a title, a description and some essential skills.
Ideally I ...
0
votes
0
answers
26
views
Finding accuracy of model that uses different labels than ground truth
I have an nlp model that has ground truth labels and predicted labels (that belong to different group of classes). For example, the ground truth labels are [art, computer science, history] and ...
1
vote
1
answer
787
views
How to combine two vector embeddings into one?
I want to use OpenCLIP for generating embeddings for each slide in an array of pptx presentations.
To improve the quality of the results, I want to vectorize both slide text content and preview images....
0
votes
0
answers
9
views
Semantic grouping and replacement of words to improve topic modelling with LDA
I have a data set of customers with complaints.
As a result, I want to perform topic modelling to find topics that customers talk about in their complaints. I use LDA for this. In the results of LDA, ...
0
votes
0
answers
39
views
How can I measure the precision and Recall?
I did semantic search using query and the total relevant documents should be 12 documents but my model retrieve 5 relevant documents only so the irrelevant are 7 documents. how can i calculate the ...
0
votes
1
answer
158
views
How does RAG query affect the similarity search?
I have a RAG pipeline where I want to extract a piece of information called "X" In a regular RAG pipeline, there is a query entered by the user. Then, ...
0
votes
1
answer
43
views
Visualizing Author Topic Similarities: t-SNE and Cluster Labeling
I am working on a dataframe containing abstracts from various NLP conferences, along with information on information on the respective authors (names) and the keywords they've associated with their ...
0
votes
1
answer
134
views
Semantic Search on numeric data
I have a dataset in csv format. Most columns have numbers in them. The data is mostly number based, with little text.
A sample of my dataset:
I want to build a semantic search engine that can answer ...
0
votes
0
answers
48
views
How can I avoid the irrelevant number of sentences in the result?
The nature of the data I have is not arranged; however, I'm trying to extract the appropriate sentences for each query as a sample for ground truth. Also, the most critical problem is that I use the ...
3
votes
1
answer
213
views
Why do semantically different words produce similar embeddings?
I am comparing words in HuggingFace web UI using e5-small-v2, one of the best vector embedding models:
Assuming that the scores are in the range from 0 to 1, how ...
1
vote
0
answers
139
views
How to do search/cluster over a million points?
I've a practical question in the areas of clustering/semantic search and would like to get some thoughts. Refer the figure for more details on this hypothetical situation.
Imagine I've 2 query ...
0
votes
0
answers
53
views
Why shouldn't the attention matrices $W^Q$, $W^K$, $W^V$ be the same?
My question is why the equally shaped attention head matrices $W^Q$, $W^K$, $W^V$ should not be the same $W = W^Q =W^K= W^V$. In my understanding of transformer-based language models one attention ...
0
votes
1
answer
148
views
What do averaged word vectors represent?
Assume you have high-dimensional word embeddings (d > 100) for a large number of words (|V| > 100,000) calculated over a huge non-specialized natural language corpus. Assume you have taken the ...
1
vote
2
answers
334
views
How to find a vector representation for each descriptor?
Cubes data is well known data for extreme classification. Each picture has a set of descriptor along with it. Total data set has 312 descriptor. You will find list of descriptior in this file.
My ...
0
votes
1
answer
590
views
Deduplication using NLP
I have a product catalog.
The user can add a new product to the catalog. The user can enter some attributes (such as color, weight, etc.) in the text boxes. The user can also mention the description ...
3
votes
2
answers
3k
views
Semantic search - combine text and image embedding
I have a question regarding combining text and image embeddings for semantic search. The use case is product search on a (B2B) marketplace, we have image(s) and title&description of the products. ...
1
vote
0
answers
30
views
Semantic Text similarity NLP
I'm new to AIML. Right now I'm working with a requirement where I need to see if two sentences are similar semantically. I'm searching for an API which compares given sentance with another array of ...
0
votes
1
answer
209
views
Which model to use that can distinguish between names with the same words?
For my task, I need a model that can distinguish between job titles that contain the same words. BERT model "msmarco-MiniLM-L-12-v3" shows high cosine similarity for positions: "Data ...
0
votes
0
answers
125
views
On which texts should TfidfVectorizer be fitted when using TF-IDF cosine for text similarity?
I wonder on which texts should TfidfVectorizer be fitted when using TF-IDF cosine for text similarity. Should TfidfVectorizer be fitted on the texts that are analyzed for text similarity, or some ...
3
votes
1
answer
44
views
Is there a reference dataset for contextual similarity?
I'm doing some experiments with word embeddings to try to capture context-aware similarity, so that for example the word pair apple - hardware, are very dissimilar in the context of a fruit store, but ...
3
votes
1
answer
3k
views
How do we evaluate the outputs of text generation models?
Evaluation of a wide variety of natural language generation (NLG) tasks is difficult. For instance, for a question answering model, it is hard for a human to quantify how well the model has answered a ...
3
votes
1
answer
4k
views
Threshold determination / prediction for cosine similarity scores
Given a query sentence, we search and find similar sentences in our corpus using transformer-based models for semantic textual similarity.
For one query sentence, we might get 200 similar sentences ...
0
votes
1
answer
758
views
Text cleaning when applying Sentence Similarity / Semantic Search
Do we need to apply text cleaning practices for the task of sentence similarity?
Most models are being used with whole sentences that even have punctuation. Here are two example sentences that we wish ...
0
votes
0
answers
48
views
Mapping of an unseen Field/word to an existing description (in the input data), given Field and their respective descriptions as input/training data
I am working on a NLP problem.
Problem Statement
Given the input of fields & Labels and the respective descriptions, the goal is to the map a new unseen field to one of the most appropriate ...
0
votes
0
answers
60
views
Parameters for training a sentence-similarity model using Bert?
I have a list of sentences :
sentences = ["Missing Plate", "Plate not found"]
I am trying to find the most similar sentences in the list by ...
1
vote
0
answers
43
views
Which model is better able to understand the difference that two sentences are talking about different things?
I'm currently working on the task of measuring semantic proximity between sentences. I use fasttext train _unsiupervised (skipgram) for this. I extract the sentence embeddings and then measure the ...
1
vote
1
answer
65
views
Document Similarity with User Preference
To measure the similarity between two documents, one can use, e.g. TF-IDF/Cosine Similarity. Supposing that after calculating the similarity scores of Doc A against ...
3
votes
1
answer
1k
views
How to choose similarity measurement between sentences and paragraphs
Problems
1. How to find appropriate measurement method
There are several ways to measure sentence similarities, but I have no idea how to find appropriate method among them for my data (sentences).
...
0
votes
1
answer
35
views
Document Content
I have a set of .pdf/.docx documents with content. I need to search for the most suitable document according to a particular sentence. For instance:
...
1
vote
1
answer
38
views
Is there a way to train Doc2Vec on a corpus of docs and be able to take a novel doc and see how similar it is to the trained corpus?
I have a project idea, where I train a bunch of documents on Doc2Vec and then take a novel, input doc, and ideally be able to be told how similar it is to the docs supplied for training as a whole or ...
1
vote
2
answers
781
views
Train a spaCy model for semantic similarity
I'm attempting to train a spaCy model for the purposes of computing semantic similarity but I'm not getting the results I would anticipate.
I have created two text files that contain many sentences ...
1
vote
0
answers
43
views
Comparing the similarity structure of 2 distance matrices (computed from sentence embedding)
I apologize if this question lacks clarity, my mathematical background on the topic is limited and was hoping to find some guidance. I would like to compare 2 distance matrices that contain pair-wise ...
0
votes
1
answer
22
views
applicability of relative similarity computation
I've computed the cosine similarity between a & b (=x) and ...
1
vote
1
answer
113
views
BERT Optimization for Production
I'm using BERT to transform text into 768 dim vector, It's multilingual :
...
0
votes
1
answer
573
views
Cosine vs Manhattan for Text Similarity [closed]
I'm storing sentences in Elasticsearch as dense_vector field and used BERT for the embedding so each vector is 768 dim. ...
2
votes
1
answer
2k
views
Cluster words into groups of similar meaning (synonyms)
How can words be clustered into groups of similar meaning (synonyms)?
I started with pre-trained word embeddings (e.g., Google News), which is great, but not perfect - a limitation arises because the ...
2
votes
1
answer
1k
views
What's the best way to generate similar words?
Hi all I'm fairly up to date with all the NLP tasks out there (nlpprogress.com, paperswithcode.com) and great tools like (nltk, flair, huggingface etc). I want to take a single word, and predict a ...
-1
votes
1
answer
125
views
How to group clusters with semantic similarity?
I have a list of job titles. I found the semantic similarity between them by using word2vec in spacy.
Now I want job titles ...
1
vote
0
answers
22
views
Is it possible to perform Semantic Textual Similarity without using NLTK and Genism?
College restricted us to make projects in object oriented programming languages but without using any other libraries except standard ones. We can not use APIs also
1
vote
1
answer
160
views
How to determine whether a semantic concept is present in a string
I need to find a way to detect if a large string contains a specific substring.
Imagine that I have a full contract page converted to string in my Python program. What I want to do is to say if a ...
1
vote
1
answer
1k
views
Similarity Threshold Standards
When using similarity measures (eg. Resnik Information Content, Cosine Similarity, etc.) for any type of data, are there any standard similarity thresholds that are used, or does it all depend on the ...
1
vote
2
answers
70
views
Sentence to word similarity
Is there a way to know how much a sentence is related to a word/topic?
For instance the following dataframe and the topics/attributes Romantique, ...
3
votes
1
answer
467
views
Evaluation metric for Information retrieval system
I am currently reading Semantic Product Search paper published by Amazon. They are using two evaluation subtasks matching and ranking. In matching, they tune the model hyperparameters to
maximize ...
1
vote
0
answers
14
views
Appearance-based hashing for similarity detection for picking the 100 most distinct images out 500 images
I would like to perform appearance-based hashing for similarity detection. I have 500 photos for each of my categories but I only want to maintain the 100 of them that are most distinct. How should I ...
2
votes
1
answer
1k
views
If i use use BERT embeddings for if cosine(sent1,sent2) > 0.9, then is it fair to assume s1 and s2 are similar
According to BERT author Jacob Devlin: I'm not sure what these vectors are, since BERT does not generate meaningful sentence vectors. It seems that this is doing average pooling over the word tokens ...
1
vote
1
answer
1k
views
Should one-hot encoded categorical features needs to be scaled when used along with text feature while deriving semantic similarity?
My aim is to derive textual similarity using multiple features. Some of the features are textual for which I am using (Tfhub 2.0) Universal Sentence encoder. There are other categorical features which ...
0
votes
1
answer
130
views
How to approach for predicting semantic similarity between two phrases
I need pointers on the latest research, tools, and techniques for predicting semantic similarity between two phrases.
Problem Statement: Given two propositions A ...
0
votes
1
answer
2k
views
Semantic similarity between two or more sentences
I need to determine how similar sentences (in meaning) are to one another.
In order to do it, I have been considering an algorithm (cosine similarity) to determine the similarity between sentences. I ...
0
votes
1
answer
58
views
Semantic networks: word2vec?
I have some doubts on how to represent the relationships between words in texts.
Let’s suppose I have two sentences like these:
...
0
votes
1
answer
254
views
Modelling for similarity between two descriptions
I have a dataset of companies and research projects that they were involved in. A subset of the dataset is shown below.
I am trying to find a way to model similarity between the company and the ...