Live data from Hacker News

Show HN: Semantic Calculator (king-man+woman=?)

calc.datova.ai

41–50 of 179 posts

Re: Show HN: Semantic Calculator (king-man+woman=?)

#44
This might be helpful: I haven't implemented it in the UI, but from the API response you can see what the word definitions are, both for the input and the output. If the output has homographs, likeliness is split per definition, but the UI only shows the best one.

Also, if it gets buried in comments, proper nouns need to be capitalized (Paris-France+Germany).

I am planning on patching up the UI based on your feedback.

Re: Show HN: Semantic Calculator (king-man+woman=?)

#45
post #35

First off, this interface is very nice and a pleasure to use, congrats! Are you using word2vec for these, or embeddings from another model? I also wanted to add some flavor since it looks like many folks in this thread haven't seen something like this - it's been known since 2013 that we can do this (but it's great to remind folks especially with all the "modern" interest in NLP). It's also known (in some circles!) t…

Thank you! I actually had a hard time finding prior work on this, so I appreciate the references. The dictionary is based on https://wordnet.princeton.edu/ , no word2vec. It's just a plain lookup among precomputed embeddings (with mxbai-embed-large). And yes, I'm excluding words that are present in the query because. It would be interesting to see how other models perform. I tried one (forgot the name) that was focus…

(Question for anyone) how could I go about replicating this with Gemini Embedding? Generate and store an embedding for every word in the dictionary?

Re: Show HN: Semantic Calculator (king-man+woman=?)

#46

data + plural = number data - plural = research king - crown = (didn't work... crown gets circled in red) king - princess = emperor king - queen = kingdom queen - king = worker king + queen = queen + king = kingdom boy + age = (didn't work... boy gets circled in red) man - age = woman woman - age = newswoman woman + age = adult female body (tied with man) girl + age = female child girl + old = female child The other…

Yeah I did similar tests and got similar results.

Curious tool but not what I would call accurate.

Re: Show HN: Semantic Calculator (king-man+woman=?)

#48
post #35

Earlier quoted context omitted.

Thank you! I actually had a hard time finding prior work on this, so I appreciate the references. The dictionary is based on https://wordnet.princeton.edu/ , no word2vec. It's just a plain lookup among precomputed embeddings (with mxbai-embed-large). And yes, I'm excluding words that are present in the query because. It would be interesting to see how other models perform. I tried one (forgot the name) that was focus…

(Question for anyone) how could I go about replicating this with Gemini Embedding? Generate and store an embedding for every word in the dictionary?

Yes, that's pretty much what it is. Watch out for homographs.
Post reply on HN