A
A
alex_ak12017-01-17 13:05:12
Text Processing Automation
alex_ak1, 2017-01-17 13:05:12

How to do a query search in the data?

Hello.
I have a program that has a list (small, let's say 1000 lines). I want to make a search bar at the bottom so that when typing, the list is filtered by this query. A query in ordinary human language is just like a collection of words.
How do I check if each line matches or not?
The simplest option is to break the query into words and look for them in the elements.
For improvement, you can connect to the pymorphy2 example (normally looks for the first form of a word so that it does not suffer from conjugations) and also bring all the words from the list to the same form.
But how to search for synonyms and inexact words? Maybe there are some ready-made solutions?
You can try to search for inaccurate words using the hamming distance or an analogue, I don’t know, however, whether it will be useful.
Of course, you can connect some kind of sphinx or, I don’t know, some other search engine, but I would like to get by with less cumbersome solutions without databases and all that.
The language is preferably .net, but if there is something else, it is not critical.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
longclaps, 2017-01-17
@alex_ak1

тыц тыц
> Но как искать синонимы и неточные слова
синонимы - по словарю синонимов
неточные слова как правило лучше отбросить - если у вас нет возможности построить такую систему машинного обучения, как у поисковиков, и обучить её разумно подсказывать - отбросьте.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question