Patent attributes
In one embodiment, a method includes receiving a request to identify a word representing a target concept that is in a first relationship with a particular concept such that the first relationship is analogous to a second relationship in which a first reference concept is with a second reference concept, accessing a table of word vector relationships, looking up a particular word vector, a first reference word vector, and a second reference word vector, determining an imaginary vector such that a first vector from the first reference word vector to the second reference word vector is equal to a second vector from the particular word vector to the imaginary vector, selecting a target word vector closest to the imaginary vector, identifying a target n-gram corresponding to the target word vector, and sending a response message comprising the target n-gram.