Method for training semantic representation model, device and storage medium
AssigneeBeijing Baidu Netcom Science Technology Co., Ltd.
InventorsShuai Zhang, Lijie Wang, Xinyan Xiao, Yue Chang
Life of this patent
Estimating the term…
Loading patent…
AssigneeBeijing Baidu Netcom Science Technology Co., Ltd.
InventorsShuai Zhang, Lijie Wang, Xinyan Xiao, Yue Chang
Estimating the term…
Disclosed are a method for training a semantic representation model, a device and a storage medium, which relate to the field of computer technologies, and particularly to the field of artificial intelligence, such as a natural language processing technology, a deep learning technology, or the like. The method for training a semantic representation model includes: obtaining an anchor sample based on a sentence, and obtaining a positive sample and a negative sample based on syntactic information of the sentence; processing the anchor sample, the positive sample and the negative sample using the semantic representation model respectively, so as to obtain an anchor-sample semantic representation, a positive-sample semantic representation and a negative-sample semantic representation; constructing a contrast loss function based on the anchor-sample semantic representation, the positive-sample semantic representation, and the negative-sample semantic representation; and training the semantic representation model based on the contrast loss function.
A computer-implemented method for training a semantic representation model, comprising:
An electronic device, comprising:
A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform a method for training a semantic representation model, which comprises:
Dependencies are inferred from the claim text.