←back to thread

176 points nxa | 2 comments | | HN request time: 0.439s | 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. TZubiri ◴[] No.43989348[source]
I'm getting Navralitova instead of queen. And can't get other words to work, I get red circles or no answer at all.
replies(1): >>43989566 #
2. gus_massa ◴[] No.43989566[source]
From another comment, https://news.ycombinator.com/item?id=43988861 King (with capital K) was a top 1 male tenis player.