To provide a method for increasing the learning ability of semantic information by a language model, increasing convergence speed of a word vector, and enhancing training effect by avoiding risk of information leakage due to learning based on character granularity.SOLUTION: A method includes: inputting each of at least two first sample text language materials into a language model; outputting a context vector of a first word mask in each first sample text language material via the language model; determining a word vector corresponding to each first word mask based on a first word vector parameter matrix, a second word vector parameter matrix, and a fully connected matrix respectively; and training the language model and the fully connected matrix based on the word vectors corresponding to the first word masks in the at least two first sample text language materials, so as to obtain the word vectors.SELECTED DRAWING: Figure 1
METHOD FOR OBTAINING WORD VECTORS BASED ON LANGUAGE MODEL, APPARATUS, DEVICE, AND STORAGE MEDIUM