Most active commenters

    ←back to thread

    176 points nxa | 12 comments | | HN request time: 0.429s | source | bottom

    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. nikolay ◴[] No.43988786[source]
    Really?!

      man - brain = woman
      woman - brain = businesswoman
    replies(6): >>43988818 #>>43988887 #>>43988910 #>>43988964 #>>43988972 #>>43989276 #
    2. 2muchcoffeeman ◴[] No.43988818[source]
    Man - brain = Irish sea
    replies(1): >>43988825 #
    3. nikolay ◴[] No.43988825[source]
    Case matters, obviously! Try "man" with a lower-case "M"!
    replies(1): >>43988974 #
    4. karel-3d ◴[] No.43988887[source]
    woman+penis=newswoman (businesswoman is second)

    man+vagina=woman (ok that is boring)

    5. sapphicsnail ◴[] No.43988910[source]
    Telling that Jewess, feminist, and spinster were near matches as well.
    6. nxa ◴[] No.43988964[source]
    I probably should have prefaced this with "try at your own risk, results don't reflect the author's opinions"
    replies(1): >>43989943 #
    7. dalmo3 ◴[] No.43988972[source]
    I think subtraction is broken. None of what I tried made any sense. Water - oxygen = gin and tonic.
    8. Alifatisk ◴[] No.43988974{3}[source]
    Why does case matter? How does it affect the meaning?
    replies(2): >>43989004 #>>43989028 #
    9. bfLives ◴[] No.43989004{4}[source]
    “Man” is probably being interpreted as the Isle of Man.

    https://en.m.wikipedia.org/wiki/Isle_of_Man

    10. G1N ◴[] No.43989028{4}[source]
    Man (capital M) is probably being interpreted as some proper noun, maybe Isle of Man in this case?
    11. ◴[] No.43989276[source]
    12. dmonitor ◴[] No.43989943[source]
    I'm sure it would be trivial to get it to say something incredibly racist, so that's probably a worthwhile disclaimer to put on the website