News for hackers. Stuff that matters.
Re:King – Man + Woman = King? by Sean1708 on Tuesday July 16, 2019 @08:30AM (#20449405)
To be honest, I think the idea that we should expect ML algorithms to give a single, certain answer is misguided. I would expect the output from this algorithm to be "King - Man + Woman = King (90%), Queen (83%), Prince (70%)" or something like that, i.e. a list of answers with some measure of how "good" those answers are. Then again, I work in a field that doesn't really have categorical answers so maybe I'm missing something obvious.
Re:King – Man + Woman = King? by flo_hu on Tuesday July 16, 2019 @09:00AM (#20449583)
That's pretty much correct. You would typically calculate a vector for "King-Man+Woman" and then do a query on this based on a cosine distance (or similar measure) over the entire vocabulary.

The query would give you a ranked list of the closest word vectors with scores that indicate how good the match is.

Re:King – Man + Woman = King? by piker on Tuesday July 16, 2019 @08:51AM (#20449523)
But the example is only performing vector operations. You could perhaps normalize the distances of a number of vectors with a softmax or something to produce a probability across a set, but what's being presented in the paper is the "closest" vector following the operations in terms of cosine distance.