| Word | Gender | Age | Royalty | Distance |
|---|---|---|---|---|
| Man | 1 | 7 | 2 | - |
| Woman | 9 | 7 | 2 | - |
| Boy | 1 | 2 | 1 | - |
| Girl | 9 | 2 | 1 | - |
| King | 1 | 7 | 9 | - |
| Queen | 9 | 7 | 9 | - |
| Teenager | 5 | 4 | 1 | - |
Each word is represented as a 3D vector with coordinates [Gender, Age, Royalty].
King - Man + Woman = Queen
This famous example shows how word relationships are preserved in vector space. We subtract the "maleness" from King and add "femaleness" to get Queen.
Euclidean distance: ā[(xā-xā)² + (yā-yā)² + (zā-zā)²]
Closer points have smaller distances and are more semantically similar.
⢠Click spheres to see nearest neighbors
⢠Drag to rotate the 3D space
⢠Scroll to zoom in/out
⢠Vector operations show animated calculations
š¢ Green line: Closest neighbor
š Orange line: Second closest neighbor