Method and apparatus based on position relation-based skip-gram model and storage medium
Abstract:
The present disclosure relates to a method and an apparatus based on a neural network model. The method includes acquiring a plurality of training samples, each of the training samples comprising an identifier of an input word, an identifier of an output word, and position information, wherein in one of the training samples, the output word is a context of the input word, and the position information indicates a relative position between the output word and the input word; calling a position relation-based Continuous Skip-gram Model (Skip-Gram), with each of the training samples as an input, to obtain an output result, the output result comprising a word matrix embedding of the input word, a word matrix embedding of the output word and a position matrix embedding of the position information; and updating the position relation-based Skip-Gram based on the output result to train the position relation-based Skip-Gram.
Information query
Patent Agency Ranking
0/0