M
M
mr_good_cat2021-06-07 15:15:38
Python
mr_good_cat, 2021-06-07 15:15:38

How to find the most similar model element in sklearn?

There is a dictionary of question-answer pairs. I break questions into words, process, lemmatize, vectorize and teach the model to find answers already in the model for similar questions. When entering a question, how do I find the closest value already in the model? The one by which the model finds the answer.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dmshar, 2021-06-07
@dmshar

Probably I didn't understand something.
On the one hand, "I teach the model to find answers already available in the model for similar questions." Those. how can you do it.
On the other hand: "When entering a question, how do I find the closest value already in the model" - i.e. How would you ask, but how to do it?
You somehow decide. What do you do, how do you do it, and what do you want to achieve.
Although, based on the phraseology of the question: "How to find the most similar element of the model in sklearn ", "find the answers already in the model ", "The one by which the model finds the answer" it looks like you started doing something (well, yes , "I break into words, processing,- i.e. in fact, you just call ready-made functions) without even knowing what sklearn is, or how and why it is used, or what a “model” is and how they work with them in machine learning, or how similar texts are searched for. How can you explain something if there is no basic foundation?
Therefore, I recommend starting with understanding the basics, and then moving on to solving some of your own problems. Moreover, a lot of things have been written about working with texts in machine learning.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question