The embodiment of the invention provides a supervised word vector training method and device, and the method comprises the steps: generating the attention coefficient of each semantic vector of a target word according to the upper and lower words of the target word; generating a guide vector of the target word according to the semantic vector and the attention coefficient of each semantic vector;constructing a distance loss function from a training result of the word vector model to the guide vector; and supervising the word vector model through a distance loss function to generate an iteration direction of a training result. In the embodiment of the invention, the guide vector obtained according to the semantic vector and the attention coefficient can reflect the real semantics of the target word and the influence of the context on the semantics at the same time. Therefore, the guide vector is used for replacing the training process of the word vector model to supervise the word vector model by the upper and lower words. The obtained word vector can express the real semantics of the word, and the problems that the word vector obtained by the word vector training method in the prior art is insufficient in the aspects of expressing the polarity and the category of the word and cannot express the real semantics of the word are solved.
Supervised word vector training method and device