←back to thread

176 points nxa | 2 comments | | HN request time: 0.001s | source

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.

Show context
MYEUHD ◴[] No.43989205[source]
king - man + woman = queen

queen - woman + man = drone

replies(1): >>43989604 #
1. bee_rider ◴[] No.43989604[source]
The second makes sense, I think, if you are a bee.
replies(1): >>43992811 #
2. neom ◴[] No.43992811[source]
So, are you a bee keeper then?