{"by":"nxa","descendants":172,"id":43988533,"kids":[43989245,43989512,43989060,43988592,43989603,43989543,43989014,43989961,43989077,43989378,43990625,43990084,43994225,43993481,43989048,43989254,43989509,43993740,43990566,43990517,43993288,43989084,43989967,43990052,43993647,43989348,43990190,43995853,43991058,43994524,43988786,43988904,43992670,43989486,43993734,43990304,43993885,43989584,43991944,43989020,43991701,43989205,43996421,43993571,43992422,43988601,43995511,43991160,43992555,43989647,43988948,43995568,43991710,43989216,43989070,43988999,43993284,43989897,43989996,43991921,43992518,43988842,43992710,43995170,43990384,43989162,43989021,43996877,43991357,43989510,43989569,43996210],"score":176,"text":"I&#x27;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 &#x2F; subtraction, beyond what many videos &#x2F; papers mention (like the obvious king-man+woman=queen). So I built something that doesn&#x27;t just give the first answer, but ranks the matches based on distance &#x2F; cosine symmetry. I polished it a bit so that others can try it out, too.<p>For now, I only have nouns (and some proper nouns) in the dataset, and pick the most common interpretation among the homographs. Also, it&#x27;s case sensitive.","time":1747252471,"title":"Show HN: Semantic Calculator (king-man+woman=?)","type":"story","url":"https://calc.datova.ai"}