Long text sentiment analysis method fusing Attention mechanism
A technology of sentiment analysis and long text, applied in computer parts, special data processing applications, instruments, etc., has limited ability to solve contextual information, cannot effectively solve long-range dependence problems, future information modeling and other problems, and achieves reduction effect of complexity
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0041] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0042] Please refer to figure 1 and figure 2 , the present invention provides a kind of long text emotion analysis method that integrates into Attention mechanism, it is characterized in that:
[0043] Step S1: Initialize the words in the text with word vectors, map the text into a set of word vectors, and use the word vectors as the input of the network and input them to the hidden layer;
[0044] Step S2: Introduce the GRU unit in the hidden layer to calculate the hidden state, increase the reverse network, and obtain the information of its context for each word in the sentence; specifically include:
[0045] Using bidirectional gate cycle unit modeling, the update formula of the GRU unit is as follows:
[0046] update gate z t The formula for calculating:
[0047] z t =σ(W z x t +U z h t-1 ) (1)
[0048] where x t is the input word vecto...
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