Pre-training method for sentiment analysis model, and electronic device
AssigneeBeijing Baidu Netcom Science Technology Co., Ltd.
InventorsCan Gao, Hao Liu, Bolei He, Xinyan Xiao, Hao Tian
Life of this patent
Estimating the term…
Loading patent…
AssigneeBeijing Baidu Netcom Science Technology Co., Ltd.
InventorsCan Gao, Hao Liu, Bolei He, Xinyan Xiao, Hao Tian
Estimating the term…
The present disclosure provides a pre-training method for a sentiment analysis model and an electronic device, which relates to a field of artificial intelligence technologies. The method includes: based on a given seed sentiment dictionary, performing sentimental knowledge detection on a training corpus in a training corpus set, and determining a detection sentiment word and a detection word pair of the training corpus; according to preset mask processing rules, performing mask process on the training corpus to generate a masked corpus; performing encoding and decoding on the masked corpus by using a preset encoder and decoder to determine the detection sentiment word and the detection word pair of the training corpus; and updating the preset encoder and decoder according to a difference between prediction sentiment word and the detection sentiment word, and a difference between prediction word pair and the detection word pair.
A pre-training method for a sentiment analysis model, comprising:
An electronic device, comprising:
A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are configured to cause a computer to implement the method comprising:
Dependencies are inferred from the claim text.