A Text Classification Method Based on Category Gate Mechanism
A text classification and category technology, applied in text database clustering/classification, neural learning methods, text database query, etc., can solve problems such as the inability to accurately predict the meaning of text and the inability to accurately grasp the true meaning of words
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0051] This embodiment describes the reason why the user gate is only used in the user hierarchical network and the product gate is only used in the product hierarchical network when a category classification method based on the category gate mechanism is implemented.
[0052] A vocabulary category gate is placed at the word level of the user-level network and a product-level network, and a sentence category gate is placed at the sentence level.
[0053] Take the product gate as an example to explain why the user gate and product gate are only set at the sentence level:
[0054] Given product glasses, a sentence describing glasses may contain many different words, but only a few words are highly related to product glasses. For example, the word cool is highly related to product glasses, and the product attention mechanism will The word cool is selected, but the user's attention mechanism may not necessarily select the word cool; after the attention mechanism, use the product g...
Embodiment 2
[0116] Embodiment 2 uses contextual information to acquire word categories, that is, part 1.b of the summary of the invention.
[0117] 1.b specific implementation: set the number of hyperparameter categories to n c , the ith word vector and the word vectors of its adjacent words and Adding up, the category distribution of the i-th word is obtained based on the formula (28) through the linear layer
[0118]
[0119] Among them, softmax is the activation function of the linear layer; Represents element-wise addition; is the trainable weight parameter; is cd i the transposition of is the category distribution;
[0120] The category vocabulary vector is denoted as V c , c i is the category vector of the i-th word, n c is the number of categories, d c is the category vector dimension;
[0121] The category vector c of the i-th word i Obtained by (29) from the product of the category distribution and the category vocabulary vector table:
[0122] c i =...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


