Re: logic programming - find synonyms of a given word

2021-04-10 Thread Blake Watson
||. But I don't think we can derive that big is a synonym of huge from such an index. Well, you can if you invert it: 0. Have an arbitrary "meaning" counter set to 0. 1. The first pair are new, so you increment your meaning counter and create set #1 containing the first pair. 2. When subsequent p

Re: logic programming - find synonyms of a given word

2021-04-10 Thread SideStep
P.S. What you suggest can be used as adjacency graph, and synonyms can be found through good old Breath First Search on it to find a presence/absence of path between two words. On Saturday, April 10, 2021 at 4:04:41 AM UTC+2 dsblak...@gmail.com wrote: > In practice I would probably just build a

Re: logic programming - find synonyms of a given word

2021-04-09 Thread Nesvarbu Nereikia
Thanks Blake, the map of sets was my first intuition too. But I don't think we can derive that big is a synonym of huge from such an index. If you look at the example input. On Saturday, April 10, 2021, Blake Watson wrote: > In practice I would probably just build a map, word : #setofsynonyms an

Re: logic programming - find synonyms of a given word

2021-04-09 Thread Blake Watson
In practice I would probably just build a map, word : #setofsynonyms and whenever a synonym was added [a b], I would add b to a's set and a to b's set. Or, even more likely, a vector, because "a" is probably a homonym (if we're talking English) and if "a" is "bank", I need one set of synonyms for