logoalt Hacker News

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

162 pointsby nxayesterday at 7:54 PM166 commentsview on HN

I've been playing with embeddings and wanted to try out what results the embedding layer will produce based on just word-by-word input and addition / subtraction, beyond what many videos / papers mention (like the obvious king-man+woman=queen). So I built something that doesn't just give the first answer, but ranks the matches based on distance / cosine symmetry. I polished it a bit so that others can try it out, too.

For now, I only have nouns (and some proper nouns) in the dataset, and pick the most common interpretation among the homographs. Also, it's case sensitive.


Comments

MYEUHDyesterday at 9:05 PM

king - man + woman = queen

queen - woman + man = drone

show 1 reply
firejake308yesterday at 8:02 PM

King-man+woman=Navratilova, who is apparently a Czech tennis player. Apparently, it's very case-sensitive. Cool idea!

show 1 reply
doubtfulusertoday at 3:57 AM

doctor - man + woman = medical practitioner

Good to understand this bias before blindly applying these models (Yes- doctor is gender neutral - even women can be doctors!!)

show 1 reply
kylecazaryesterday at 10:00 PM

Woman + president = man

zerof1lyesterday at 8:40 PM

male + age = female

female + age = male

atum47today at 6:58 AM

horse+man

78% male horse 72% horseman

ainiriandtoday at 7:36 AM

dog+woman = man

That's weird.

erulabstoday at 4:43 AM

dog - fur = Aegean civilization (22%)

huh

blobbersyesterday at 9:06 PM

rice + fish = fish meat

rice + fish + raw = meat

hahaha... I JUST WANT SUSHI!

tlhunteryesterday at 10:36 PM

man + woman = adult female body

7373737373yesterday at 8:50 PM

it doesn't know the word human

G1Nyesterday at 8:45 PM

twelve-ten+five=

six (84%)

Close enough I suppose

TZubiriyesterday at 9:20 PM

I'm getting Navralitova instead of queen. And can't get other words to work, I get red circles or no answer at all.

show 1 reply
downbootsyesterday at 10:50 PM

three + two = four (90%)

show 1 reply
adzmyesterday at 8:31 PM

noodle+tomato=pasta

this is pretty fun

show 1 reply
quantum_stateyesterday at 11:48 PM

The app produces nonsense ... such as quantum - superposition = quantum theory !!!

kataqatsiyesterday at 9:00 PM

garden + sin = gardening

hmm...

woodruffwyesterday at 8:46 PM

colorless+green+ideas doesn't produce anything of interest, which is disappointing.

show 1 reply
throwaway984393today at 2:47 AM

[dead]

ephou7yesterday at 9:41 PM

[flagged]

ezbieyesterday at 9:50 PM

Can someone explain me what the fuck this is supposed to be!?

show 2 replies
spinarretstoday at 3:42 PM

cheeseburger-giraffe+space-kidney-monkey = cheesecake