Y
Y
YaKot2015-08-16 23:50:10
Algorithms
YaKot, 2015-08-16 23:50:10

How to calculate the degree of similarity of two texts?

It is necessary to determine the degree of similarity of two short texts, 1-2 sentences. Texts are smart home commands. Needed to implement the voice interface

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xmoonlight, 2015-08-17
@YaKot

1. You need a synonymizer and Yandex to compose word forms of synonyms in different cases: https://export.yandex.ru/inflect.xml?name=test
2. Then you make all possible sentence schemes: the order of KEY words and cases (prepositions, alliances and mate :) are not included here).
3. We build a tree for a quick search for a team based on KEY words from the spoken phrase.
4. We use the recognition of the similarity of words by Levenshtein and the similarity of chains for a tree - Shingly .
5. Profit!
Add. method: you can also use my bicycle to determine parts of speech and build the expected chains of the tree through Levenshtein.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question