Data structure for storing synonyms

Hello everybody.
I am new to this forum, as well as to computer science, so this question may seem unstructured. I ask this question because I have to include it in my project. Even if you could not help me with accurate answers, I ask you to show me the way to get to my answer.

Question:
I am in search of my own evolutionary data structure for aligning Terms and Phrases (synonyms for some rules). For example, Mobile and Cell will be synonyms if the query launched to search for synonyms of the mobile device also contains some related parts (the rules will be called here).
None of the Mobile and Cell values ​​can be different either.
Mobile can also be Mobile Library , Mobile Hospital , etc. Cell may be a biological term.

Work with me

I have studied several Nosql and Neo4j graphical databases. They are great, but I could not find useful concepts that may be related to my question.

Thanks in advance. Any help would be appreciated

+4
source share
1 answer

I don’t know how complicated your rules are, but if it is as simple as your example, you can use a simple relational model:

enter image description here

The word list ( Term ) contains all words such as "cell", "mobile", etc. The rules table ( Context ) indicates the domain in which the terms are used ("call", biology ", etc.), and the binding table ( Synonym ) combines the two Terms in one Context .

+2
source

Source: https://habr.com/ru/post/1500595/


All Articles