Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Text-based emotion detection method and device, computer equipment and medium

A detection method and emotion technology, applied in the field of text-based emotion detection, can solve problems such as not being able to meet actual needs

Pending Publication Date: 2021-04-02
深延科技(北京)有限公司
View PDF0 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] With the rapid development of deep learning technology, the field of natural language detection also introduces deep learning technology for detection, because natural language sometimes expresses emotions through a word or a sentence, and sometimes expresses happiness, sadness, and sarcasm through at least two sentences and other emotions, so recognizing the emotion of the speaker through a word or a sentence can no longer meet the actual needs, and it is necessary to perform emotion detection according to the context or the scene of the current dialogue
However, compared with the emotion detection of a single sentence in the prior art, the emotion detection of multiple rounds of dialogues is more difficult, because not only the meaning of the current sentence needs to be understood, but also the context at that time needs to be understood and combined with the context sentence. detection

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Text-based emotion detection method and device, computer equipment and medium
  • Text-based emotion detection method and device, computer equipment and medium
  • Text-based emotion detection method and device, computer equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0054] In order to illustrate the present invention more clearly, the present invention will be further described below in conjunction with preferred embodiments and accompanying drawings. Similar parts in the figures are denoted by the same reference numerals. Those skilled in the art should understand that the content specifically described below is illustrative rather than restrictive, and should not limit the protection scope of the present invention.

[0055] For the problems in the existing technology, such as figure 2As shown, one embodiment of the present invention provides a kind of text-based emotion detection method, comprising:

[0056] Input the text data into the trained N neural network language models and output N emotion prediction probabilities, each neural network language model includes a pre-trained language model, a first fully connected layer and an activation function;

[0057] The final prediction probability of the text data is obtained by fusing t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a text-based emotion detection method and device, computer equipment and a medium, and the emotion detection method comprises the steps of inputting text data into N trained neural network language models, and outputting N emotion prediction probabilities, wherein each neural network language model comprises a pre-trained language model, a first full connection layer and anactivation function; and fusing the N emotion prediction probabilities to obtain a final prediction probability of the text data, wherein N is a natural number greater than or equal to 2. According to the embodiment provided by the invention, the plurality of neural network language models are set, each pre-trained language model is used for predicting according to different extracted features togenerate the plurality of emotion prediction probabilities, and the plurality of emotion prediction probabilities are fused to obtain the final prediction probability of the input text data, so thatthe prediction capability is remarkably improved, and the invention has wide application prospects.

Description

technical field [0001] The present invention relates to the technical field of natural language detection, in particular to a text-based emotion detection method and device, computer equipment and media. Background technique [0002] With the rapid development of deep learning technology, the field of natural language detection also introduces deep learning technology for detection, because natural language sometimes expresses emotions through a word or a sentence, and sometimes expresses happiness, sadness, and sarcasm through at least two sentences Therefore, identifying the speaker's emotion through a word or a sentence can no longer meet the actual needs. It is necessary to perform emotion detection based on the context or the scene of the current dialogue. However, compared with the emotion detection of a single sentence in the prior art, the emotion detection of multiple rounds of dialogues is more difficult, because not only the meaning of the current sentence needs t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F40/216G06F16/35G06K9/62G06N3/04
CPCG06F40/216G06F16/35G06N3/045G06F18/2415G06F18/214Y02D10/00
Inventor 陈海波罗志鹏潘春光
Owner 深延科技(北京)有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products