• This site is a private, non-commercial website. As such, you're welcome here as long as you were invited. If you would like an invite, reach out to Cliff Spark

Show HN: Semantic Calculator (king-man+woman=?)

  • Thread starter Thread starter nxa
  • Start date Start date
N

nxa

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.



Comments URL: Show HN: Semantic Calculator (king-man+woman=?) | Hacker News

Points: 32

# Comments: 35

Continue reading...
 
Back
Top