←back to thread

176 points nxa | 2 comments | | HN request time: 0.424s | 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.

1. downboots ◴[] No.43989996[source]
three + two = four (90%)
replies(1): >>43990026 #
2. LadyCailin ◴[] No.43990026[source]
Haha, yes, this was my first thought too. It seems it’s quite bad at actual math!