Emotion analysis model training optimization method and system and storage medium
A technology of sentiment analysis and model training, applied in the field of sentiment analysis, can solve problems such as inaccurate sentiment analysis and lack of emotional labels
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0041] The present embodiment 1 provides a kind of emotion analysis model training optimization method, such as figure 1 shown, including the following steps:
[0042] In the S100 step, the text X and the emotional label L are connected using separators, and input into the BERT model; the BERT model includes a self-attention mechanism module and a multi-layer perceptron module; a text X and an emotional label L are combined For one sample, since the scoring of three emotional labels L is used during optimization training, three samples need to be input; the three samples are placed in the same group; in this embodiment, the samples that need to be input are arranged as follows:
[0043] Sample 1: ;
[0044] Sample 2: ;
[0045] Sample 3: .
[0046] In step S200, such as figure 2 As shown, through the self-attention mechanism module of the BERT model, the interior of the text X, the interior of the emotional label L, the text X and the emotional label L are fully fused to ...
Embodiment 2
[0060] Present embodiment 2 provides a kind of emotion analysis model training optimization system, BERT model comprises self-attention mechanism module and multi-layer perceptron module; image 3 As shown, the sentiment analysis model training optimization system 100 includes:
[0061] Feature fusion unit 1: It is used to fuse the acquired text and emotion tags through the self-attention mechanism module of the BERT model to obtain a fusion representation mark, so that the text information is fused with the emotion tag information, and the emotion tag information is also fused with the text information; fusion Indicates that the logo combines text information and emotional label information;
[0062] Model training unit 2: It is used to input the fusion representation into the multi-layer perceptron module (Muti-Layer Perception, MLP) of the BERT model and perform calculations to obtain the matching degree of the text and the emotional label; based on the matching degree, the...
Embodiment 3
[0065] Embodiment 3 provides a computer-readable storage medium, which is used to store the computer software instructions used to implement the emotion analysis model training and optimization method described in Embodiment 1 above, which includes instructions for executing the above-mentioned emotion analysis model The program designed by the training optimization method; specifically, the executable program can be built into the sentiment analysis model training optimization system 100, so that the sentiment analysis model training optimization system 100 can realize the described embodiment by executing the built-in executable program 1's sentiment analysis model training optimization method.
[0066] In addition, the computer-readable storage medium provided in this embodiment may use any combination of one or more readable storage media, where the readable storage medium includes electrical, optical, electromagnetic, infrared or semiconductor systems, devices or devices, ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com