A LSTM-CNN online review sentiment classification method and system based on background enhancement

By combining TF-IDF and deep learning technology in the LSTM-CNN method, the feature vectors of news and comments are extracted, which solves the cumbersome and background-dependent problems of online comment sentiment classification in the existing technology and achieves higher accuracy. and stability.

CN114416969BActive Publication Date: 2024-10-15XI AN JIAOTONG UNIV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111447487.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-30
Publication Date
2024-10-15
Estimated Expiration
2041-11-30

AI Technical Summary

Technical Problem

Existing online comment sentiment classification methods require a large amount of artificial prior knowledge, are cumbersome and difficult to accurately analyze the sentiment of news comments in different contexts, and can easily lead to misunderstandings of sentiment polarity.

Method used

The LSTM-CNN method based on background enhancement is used to collect news text and online comment text, use the TF-IDF algorithm to extract news text features, combine long short-term memory network and convolutional neural network to extract comment text features, and fuse feature vectors for emotion classification. , improve the model's sentiment analysis capabilities in different contexts.

Benefits of technology

It improves the accuracy of emotion classification of online comments, reduces manual intervention, enhances the ability to judge the emotion of news comments, and avoids misunderstandings of emotional polarity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114416969B_ABST
    Figure CN114416969B_ABST
Patent Text Reader

Abstract

The invention discloses an LSTM-CNN online comment sentiment classification method and system based on background enhancement. The method converts preprocessed online comment text into words to obtain word vector representation of the online comment text, extracts news text features by using a TF-IDF algorithm that integrates part of speech and position information, extracts local features of the comment text by using a convolutional neural network, splices news text features obtained by a news text feature extraction channel with comment text features obtained by an online comment text feature extraction channel to obtain a comment text feature vector based on background enhancement, takes the comment text as a language background and as a feature of comment text sentiment analysis, adds it into a sentiment classification model, improves the model's sentiment analysis and judgment ability under different backgrounds, uses TF-IDF in combination with part of speech and position information to extract news text features, fuses the feature vectors and then enters a fully connected layer for classification training to obtain a news comment sentiment classification model, and can improve the accuracy of news comment sentiment classification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of natural language processing and deep learning, and specifically relates to a LSTM-CNN online comment sentiment classification method and system based on background enhancement. Background Art

[0002] With the rapid development of information technology and the continuous improvement of the Internet penetration rate, the Internet has gradually become the main way for the public to obtain social information and participate in social hot topics in their daily lives, and it has played an increasingly important role in economic, political and social life. From 2017 to 2020, the scale of online news users in my country and their proportion in the total number of netizens have gradually increased, which fully reflects that most netizens in my country are willing to take the initiative to understand social hot news and pay more and more attention to online news events. This shows that netizens are happy to express their ideas on various news and are very enthusiastic about participating in online topics. The Internet era has led to an explosive growth of online information, and it is of great practical significance to conduct research on massive online comment data.

[0003] In the current environment where netizens have relatively free speech rights, public opinion is becoming more and more intense in the new media of the Internet. When a hot event is released on the new media platform, thousands of comments will be generated in a short period of time. The public speaks freely, and there are many types of comments that are fair, targeted, false, inflammatory, misleading, etc. If we do not strictly control the speech and understand the public opinion, it will cause the event to deteriorate and the public opinion to intensify. Therefore, effectively mining online comments on news plays an important role in the direction of comments and the development of public opinion.

[0004] The current mainstream online comment sentiment classification methods include sentiment classification based on sentiment dictionary, sentiment classification based on traditional machine learning, and classification methods based on deep learning. The first two sentiment classification methods require more artificial prior knowledge to assist, and complete the sentiment classification task by extracting a large number of artificial features and constructing sentiment dictionaries. Although the processing effects of these two methods are relatively ideal, the process is cumbersome. The sentiment classification method based on deep learning can automatically extract features, the processing process is simple, and the sentiment classification effect is better. Therefore, more and more people use deep learning-based methods to deal with sentiment classification problems. The content of online news comments has urgent practical significance, mainly for current important news events and real-life issues, including some hot and difficult issues among the people. Online comments are closely connected with the masses, reflecting the public's demands and voices for events, and also representing the characteristics and needs of the masses. News comments often contain attitudes towards something. Unlike comments on products, the sentiment in news comments often needs to rely on the news text as a background for comprehensive consideration. It is very difficult to analyze the sentiment of news comments without context. It is likely to misunderstand the true emotional information of the sentence and to some extent cause misunderstanding of the emotional polarity. Therefore, there is an urgent need for a method that can quickly and accurately realize comment sentiment classification, effectively classify and summarize online comments, and understand the dynamic development of events. Summary of the invention

[0005] The purpose of the present invention is to provide a LSTM-CNN online review sentiment classification method and system based on background enhancement to overcome the shortcomings of the prior art.

[0006] A LSTM-CNN online review sentiment classification method based on background enhancement includes the following steps:

[0007] S1, collect news text and its corresponding online comment text and perform preprocessing;

[0008] S2, converting the preprocessed online review text into words to obtain the word vector representation of the online review text;

[0009] S3, taking the preprocessed news text as the input of the news text feature extraction channel, and extracting news text features using the TF-IDF algorithm that integrates part of speech and position information;

[0010] S4, taking the word vector representation of the online review text as the input of the review feature extraction channel, using the long short-term memory network to extract the contextual temporal features of the online review text, and then using the convolutional neural network to extract the local features of the review text;

[0011] S5, concatenate the news text features obtained by the news text feature extraction channel and the comment text features obtained by the online comment text feature extraction channel to obtain a comment text feature vector based on background enhancement, use the comment text feature vector to train a news comment sentiment classification model, and use the obtained news comment sentiment classification model to realize sentiment polarity classification of online comment texts.

[0012] Furthermore, news texts and their corresponding online comment text data are crawled from news software, and the collected news texts and comment texts are preprocessed. Specifically, regular expressions are used to clean special characters in the data, and the jieba word segmentation tool is used to segment and tag the news texts and comment texts, and the word segmentation results are filtered according to the stop word dictionary.

[0013] Furthermore, the Word2vec tool is used to train the preprocessed online comment texts of the news.

[0014] Furthermore, the CBOW language model is used to obtain word vector representation, and each word in the online review text is converted into a dense vector in a K-dimensional space.

[0015] Furthermore, the weight of each word in the news text is calculated according to the TF-IDF weight, word part-of-speech weight and word position weight of the word in the news text to obtain the feature vector representation of the news text.

[0016] Furthermore, if the part of speech of a word is a noun or a gerund, the weight is 1, and if it is any other part of speech, the weight is 0.5; the weight of the word position in the news text: the position information is represented by the word span, and the word span refers to the distance between the first and last appearance of the same word. The word span is normalized and converted into a weight value.

[0017] Furthermore, the word vector representation of news comment text is used as the input of the long short-term memory network. The strong context feature extraction ability of the long short-term memory network is used to capture the contextual semantic information of the online comment text, retain the temporal information between sentences, and strengthen the connection between the texts.

[0018] Furthermore, the comment text feature vector is used to train a news comment sentiment classification model, which divides the sentiment tendency into positive and negative.

[0019] Furthermore, the sentiment tendency with the maximum probability among the two sentiment tendencies is taken as the prediction result of the sentiment polarity of the news commentary text sentence by the model proposed in the present invention;

[0020] y=soft max(W T x+b)

[0021] yi =soft max(w j x+b j )

[0022] Where x is the input of the fully connected layer, W n×k is the weight, b is the bias term, and y is the probability of softmax output.

[0023] An online comment sentiment classification system, comprising a preprocessing module, a feature extraction and fusion module and a classification module;

[0024] The preprocessing module is used to preprocess the collected news text and its corresponding online comment text, and to convert the preprocessed online comment text into words to obtain the word vector representation of the online comment text;

[0025] The feature extraction fusion module is used to take the preprocessed news text as the input of the news text feature extraction channel, and use the TF-IDF algorithm that integrates part of speech and position information to extract news text features; take the word vector representation of the online comment text as the input of the comment feature extraction channel, use the long short-term memory network to extract the contextual temporal features of the online comment text, and then use the convolutional neural network to extract the local features of the comment text;

[0026] The classification module is used to obtain a comment text feature vector based on background enhancement by concatenating the news text features obtained by the news text feature extraction channel and the comment text features obtained by the online comment text feature extraction channel, train a news comment sentiment classification model using the comment text feature vector, and use the obtained news comment sentiment classification model to realize the sentiment polarity classification of online comment texts.

[0027] Compared with the prior art, the present invention has the following beneficial technical effects:

[0028] The invention discloses an LSTM-CNN online comment sentiment classification method based on background enhancement. The method comprises the following steps: collecting news text and its corresponding online comment text and performing preprocessing, performing word conversion on the preprocessed online comment text to obtain a word vector representation of the online comment text, taking the preprocessed news text as the input of a news text feature extraction channel, extracting news text features by using a TF-IDF algorithm integrating part of speech and position information, extracting local features of the comment text by using a convolutional neural network, splicing news text features obtained by the news text feature extraction channel with comment text features obtained by an online comment text feature extraction channel to obtain a comment text feature vector based on background enhancement, taking the comment text as a language background and as a feature of comment text sentiment analysis, adding the comment text into a sentiment classification model, thereby improving the sentiment analysis judgment capability of the model under different backgrounds, extracting news text features by using TF-IDF combined with part of speech and position information, extracting news comment features by using LSTM-CNN, fusing feature vectors and then entering into a fully connected layer for classification training to obtain a news comment sentiment classification model, and improving the accuracy of news comment sentiment classification.

[0029] Furthermore, the jieba word segmentation tool is used to perform word segmentation and part-of-speech tagging on the news text and comment text. The word segmentation results are filtered according to the stop word dictionary to complete the stop word removal operation, and then the comment data set is sentimentally labeled to avoid the labeling bias caused by personal subjective understanding. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 The figure is a flow chart of the classification method in a specific embodiment of the present invention.

[0031] Figure 2 It is a structural diagram of the classification model in a specific implementation manner of the present invention. DETAILED DESCRIPTION

[0032] The present invention is further described in detail below in conjunction with the accompanying drawings:

[0033] like Figure 1 As shown in FIG. 1 , a LSTM-CNN online review sentiment classification method based on background enhancement includes the following steps:

[0034] S1, collect news text and its corresponding online comment text and perform preprocessing;

[0035] S2, using the Word2vec tool to convert the preprocessed online review text into words to obtain the word vector representation of the online review text;

[0036] S3, constructing a news text feature extraction channel: using the preprocessed news text as the input of the news text feature extraction channel, and using the TF-IDF algorithm that integrates part of speech and position information to extract news text features;

[0037] S4, constructing an online review text feature extraction channel: using the word vector representation of the online review text as the input of the review feature extraction channel, using the long short-term memory network to extract the contextual temporal features of the online review text, and then using the convolutional neural network to extract the local features of the review text;

[0038] S5, concatenates the news text feature C1 obtained by the news text feature extraction channel and the comment text feature C2 obtained by the online comment text feature extraction channel, and then obtains the comment text feature vector C based on background enhancement, uses the comment text feature vector C to train a news comment sentiment classification model, and uses the obtained news comment sentiment classification model to realize the sentiment polarity classification of online comment texts.

[0039] Specifically, the acquisition and preprocessing of news text and its corresponding online comment text includes the following steps:

[0040] Step 1.1), first design a python crawler program to crawl data from news software. The news software uses Sina Weibo, Baidu or Toutiao; the data is divided into two parts, the first part is the Sina Weibo news text, and the second part is the comment text corresponding to the Sina Weibo news. The two parts are stored in two tables in the MySQL database, and the news ID is used as the connection between the two tables.

[0041] Step 1.2) Preprocess the collected news text and comment text, and use regular expressions to clean special characters in the data, such as @\[] and punctuation marks, which have no practical significance for judging emotional tendencies.

[0042] Step 1.3) Use the Jieba word segmentation tool to perform word segmentation and part-of-speech tagging on the news text and comment text, and filter the word segmentation results according to the stop word dictionary; count the length of the comment text, and ensure the uniformity of the comment text sentence length by expansion or truncation.

[0043] The Word2vec tool is used to train the preprocessed online comment text of the news. The present invention uses the CBOW language model to obtain word vector representation and converts each word in the online comment text into a dense vector in a K-dimensional space.

[0044] Construct a news text feature extraction channel: Use the preprocessed news text as the input of the news text feature extraction channel, and use the TF-IDF algorithm that integrates part of speech and position information to extract news text features. Specifically, the following steps are included:

[0045] Step 3.1) Calculate the weight of each word in the news text according to the TF-IDF weight, word part-of-speech weight and word position weight of the word in the news text to obtain the feature vector representation of the news text.

[0046] Specifically, the TF-IDF method is used to obtain the TF-IDF weights of words in the news text;

[0047] The setting of word part-of-speech weight. In this application, if a word's part-of-speech is a noun or a gerund, its weight is 1; if it is another part-of-speech, its weight is 0.5.

[0048] Word position weight in news text: Position information is represented by word span, which refers to the distance between the first and last appearance of the same word. The word span is normalized and converted into a weight value to determine the importance of the word to the document.

[0049] Step 4: Construct an online comment text feature extraction channel and represent the words in the comment text as vectors.

[0050] As the input of the comment feature extraction channel, the long short-term memory network is first used to extract the contextual temporal features of the online comment text; then the convolutional neural network is used to extract the local features of the comment text. The specific steps include:

[0051] Step 4.1) Use the word vector representation of the news comment text as the input of the long short-term memory network, and use the long short-term memory network's strong context feature extraction ability to capture the contextual semantic information of the online comment text, retain the temporal information between sentences, and strengthen the connection between the text. The long short-term memory network (LSTM) contains 3 gates: input gate, forget gate, and output gate, which are used to control the transmission and retention of information in the network. The calculation formula of the LSTM model can be expressed as:

[0052] f t =σ(W f ·[h t-1 , x t ]+b f )

[0053] i t =σ(W i ·[h t-1 , x t ]+b i )

[0054] at =tanh(W C ·[h t-1 , x t ]+b C )

[0055] C t =f t *C t-1 +i t *a t

[0056] O t =σ(W o [h t-1 , x t ]+b o )

[0057] h i =O t *tanh(C t )

[0058] In the formula, C t represents the output of the memory unit at time t, σ(·) represents the sigmoid activation function, t represents the current time, t-1 represents the previous time, and i t represents the output of the input gate of the long short-term memory network at time t, o t represents the output of the long short-term memory network output gate at time t, f t Represents the output of the forget gate of the long short-term memory network at time t.

[0059] Step 4.2) Use the newly encoded vector output by the LSTM layer as the input of the convolutional neural network, perform convolution operations through multiple filters of different sizes, and extract different feature vectors c i , and then filter the largest features through the maximum pooling layer These maximum values ​​are then concatenated into a feature vector z, and finally the feature vectors of different windows are concatenated to obtain the output vector Z of the convolutional layer.

[0060] c i =f(w·x i:i+h-1 +b)

[0061] C=[c 1 , c 2 , ...c n-h+1 ]

[0062]

[0063]

[0064] Z=(z 1, z 2 , z 3 )

[0065] In the formula, x ii+h-1 represents a window of size h×k consisting of the i-th row to the i+h-1th row of the input matrix, and x i 、x i+1 , ..., x i+h-1 h represents the number of words in the window, w is the h×k dimensional weight matrix (so the number of parameters that a filter needs to learn is hk), b is the bias parameter, and f is the nonlinear activation function Relu.

[0066] Step 4.3) Use the output of the pooling layer as the input of the Flatten layer, and perform a "flattening" operation on the input, that is, convert the multi-dimensional input into one dimension.

[0067] Step 5: Extract the news text feature C obtained by the news text feature extraction channel 1 The comment text feature C obtained by the online comment text feature extraction channel 2 After splicing together, we can get the comment text feature vector C based on background enhancement:

[0068] C=(C 1 , C 2 )

[0069] The news comment sentiment classification model is trained by using the comment text feature vector C, and the sentiment polarity classification of online comment text is realized by using the obtained news comment sentiment classification model, which specifically includes the following steps:

[0070] Step 5.1) Using the comment text feature vector as the training set, through the Dropout layer, during the propagation process of the neural network, a certain neuron is stopped from working with a certain probability, thereby increasing the generalization ability of the model;

[0071] Step 5.2) Through the fully connected layer, the Softmax activation function is used to output the probability of each category. At the same time, in order to prevent overfitting, an L2 regularization is added to obtain the probability distribution of the emotional tendency corresponding to each sentence in the comment text. The present invention is aimed at the two-category sentiment classification task and divides the emotional tendency into positive and negative situations.

[0072] Step 5.3) The sentiment tendency with the maximum probability among the two sentiment tendencies is regarded as the prediction result of the sentiment polarity of the news commentary text sentence by the model proposed in the present invention.

[0073] y=soft max(W T x+b)

[0074] yi =soft max(w j x+b j )

[0075] Where x is the input of the fully connected layer, W n×k is the weight, b is the bias term, and y is the probability of softmax output.

[0076] like Figure 2 As shown, an online comment sentiment classification system includes a preprocessing module, a feature extraction and fusion module and a classification module;

[0077] The preprocessing module is used to preprocess the collected news text and its corresponding online comment text, and to convert the preprocessed online comment text into words to obtain the word vector representation of the online comment text;

[0078] The feature extraction fusion module is used to take the preprocessed news text as the input of the news text feature extraction channel, and use the TF-IDF algorithm that integrates part of speech and position information to extract news text features; take the word vector representation of the online comment text as the input of the comment feature extraction channel, use the long short-term memory network to extract the contextual temporal features of the online comment text, and then use the convolutional neural network to extract the local features of the comment text;

[0079] The classification module is used to obtain a comment text feature vector based on background enhancement by concatenating the news text features obtained by the news text feature extraction channel and the comment text features obtained by the online comment text feature extraction channel, train a news comment sentiment classification model using the comment text feature vector, and use the obtained news comment sentiment classification model to realize the sentiment polarity classification of online comment texts.

[0080] The LSTM-CNN online comment sentiment classification method based on background enhancement proposed in the present invention uses cross entropy as a loss function and Adam as an optimizer. If it is assumed that y represents the actual probability distribution of the sentiment tendency of the comment text sentence, y represents the probability distribution of the sentiment tendency of the comment text sentence predicted by the method proposed in the present invention. The training goal of the method proposed in the present invention is to do its best to reduce the cross entropy loss between the actual probability distribution y of the sentiment tendency of the comment text sentence and the sentiment tendency distribution y of the comment text sentence predicted by the LSTM-CNN online comment sentiment classification method based on background enhancement proposed in the present invention.

[0081] This example selects two Weibo users, People's Daily and CCTV News, which are two influential media with large news releases, high user attention, and a large number of comments. Collect 1,000 news events from the two media and the corresponding 10 online comment data, a total of 10,000 online comment data sets, which are divided into training set, validation set, and test set in a ratio of 6:2:2. Use a LSTM-CNN online comment sentiment classification method based on background enhancement to analyze text sentiment. The specific steps are as follows:

[0082] 1. Clean the collected news text and the corresponding comment text data set through regular expressions to remove special useless characters, then use the Jieba word segmentation tool to perform word segmentation and part-of-speech tagging on the text corpus, and use the Harbin Institute of Technology stop word list to filter out meaningless words in the corpus.

[0083] 2. After removing stop words, sentiment annotation was performed on the comment data set. To avoid the labeling bias caused by personal subjective understanding, three students were invited to classify and label the real news comment data set collected in this article. When the three students reached a consensus, the preliminary labeling results of the comment text were determined;

[0084] 3. Perform statistics on the comment text dataset and determine the sentence length by truncation or supplementation. Then represent the online comment text in feature vector form, use the CBOW language model to obtain word vector representation, and convert each word in the corpus into a dense vector in a 200-dimensional space;

[0085] 4. Use the TF-IDF method that combines part of speech and position information to calculate the weight of each word in the news text and construct the feature vector of the news text.

[0086] 5. Use a hybrid neural network consisting of a long short-term memory network and a convolutional neural network to learn the features of the comment text corpus and obtain a multi-level feature vector. The number of neurons in the hidden layer of the long short-term memory network is set to 200 to ensure that the dimension of the word vector input to the convolutional neural network is also 200; the convolutional neural network convolution kernel size is set to 2, 3, 4, the number is set to 128, and the Dropout rate is set to 0.5 to prevent overfitting.

[0087] 6. The features obtained from the two channels are merged and finally enter the fully connected layer to use the softmax function for classification to obtain the experimental results. In order to verify the superiority of the LSTM-CNN online review sentiment classification method based on background enhancement proposed in the present invention, 4 groups of comparative experiments were set up on the same data set to compare the accuracy, recall rate, and F1 value. The results are shown in the following table.

[0088]

[0089] It can be seen from the table that the accuracy of the method proposed in the present invention is the highest for the news online comment data set, reaching 89.3714%, and has good explanatory power for the sentiment classification results.

[0090] The present invention discloses an LSTM-CNN online comment sentiment classification method based on background enhancement, which takes the relevant news or posts of the comments as its background, and adds it as the feature of sentiment analysis of the comment text to the sentiment classification model, thereby improving the model's sentiment analysis and judgment ability under different backgrounds. TF-IDF is used to extract news text features in combination with part of speech and position information, and LSTM-CNN is used to extract news comment features. The feature vectors are fused and then entered into the fully connected layer for classification training to obtain a news comment sentiment classification model. Through experimental comparative analysis, the model proposed by the present invention has a high accuracy rate for news comment sentiment classification.

Claims

1. A LSTM-CNN online review sentiment classification method based on background enhancement, It is characterized in that The following steps are involved: S1, collect news text and its corresponding online comment text and perform preprocessing; S2, converting the preprocessed online review text into words to obtain the word vector representation of the online review text; S3, taking the preprocessed news text as the input of the news text feature extraction channel, and extracting news text features using the TF-IDF algorithm that integrates part of speech and position information; S4, taking the word vector representation of the online review text as the input of the review feature extraction channel, using the long short-term memory network to extract the contextual temporal features of the online review text, and then using the convolutional neural network to extract the local features of the review text; S5, concatenate the news text features obtained by the news text feature extraction channel and the comment text features obtained by the online comment text feature extraction channel to obtain a comment text feature vector based on background enhancement, use the comment text feature vector to train a news comment sentiment classification model, and use the obtained news comment sentiment classification model to realize sentiment polarity classification of online comment texts.

2. According to the LSTM-CNN online review sentiment classification method based on background enhancement according to claim 1, It is characterized in that Crawling news text and its corresponding online comment text data from news software, preprocessing the collected news text and comment text, using regular expressions to clean special characters in the data, using the jieba word segmentation tool to segment and tag the news text and comment text, and filtering the segmentation results according to the stop word dictionary.

3. According to the LSTM-CNN online review sentiment classification method based on background enhancement according to claim 1, It is characterized in that The Word2vec tool is used to train the pre-processed online comment text of the news.

4. According to claim 3, a LSTM-CNN online review sentiment classification method based on background enhancement, It is characterized in that The CBOW language model is used to obtain word vector representation, and each word in the online review text is converted into a dense vector in a K-dimensional space.

5. According to the LSTM-CNN online review sentiment classification method based on background enhancement according to claim 1, It is characterized in that The weight of each word in the news text is calculated according to the TF-IDF weight, word part-of-speech weight and word position weight of the word in the news text to obtain the feature vector representation of the news text.

6. According to claim 5, a LSTM-CNN online review sentiment classification method based on background enhancement, It is characterized in that If a word's part of speech is a noun or a gerund, its weight is 1; if it is any other part of speech, its weight is 0.5; Word position weight in news text: Position information is represented by word span, which refers to the distance between the first and last appearance of the same word. The word span is normalized and converted into a weight value.

7. The LSTM-CNN online review sentiment classification method based on background enhancement according to claim 1, It is characterized in that The word vector representation of news comment text is used as the input of the long short-term memory network. The strong context feature extraction ability of the long short-term memory network is used to capture the contextual semantic information of the online comment text, retain the temporal information between sentences, and strengthen the connection between the texts.

8. The LSTM-CNN online review sentiment classification method based on background enhancement according to claim 1, It is characterized in that The news comment sentiment classification model is trained using comment text feature vectors, and the sentiment tendencies are divided into positive and negative.

9. The LSTM-CNN online review sentiment classification method based on background enhancement according to claim 8, It is characterized in that The sentiment tendency with the maximum probability among the two sentiment tendencies is regarded as the prediction result of the sentiment polarity of the news comment text sentence by the model proposed by the present invention; y=soft max(W T x+b) y i =soft max(w j x+b j ) Where x is the input of the fully connected layer, W n×k is the weight, b is the bias term, and y is the probability of softmax output.

10. An online review sentiment classification system based on the method of claim 1, It is characterized in that Including preprocessing module, feature extraction and fusion module and classification module; The preprocessing module is used to preprocess the collected news text and its corresponding online comment text, and to convert the preprocessed online comment text into words to obtain the word vector representation of the online comment text; The feature extraction fusion module is used to use the preprocessed news text as the input of the news text feature extraction channel, and extract news text features using the TF-IDF algorithm that integrates part of speech and position information; The word vector representation of the online review text is used as the input of the review feature extraction channel, the long short-term memory network is used to extract the contextual temporal features of the online review text, and then the convolutional neural network is used to extract the local features of the review text; The classification module is used to obtain a comment text feature vector based on background enhancement by concatenating the news text features obtained by the news text feature extraction channel and the comment text features obtained by the online comment text feature extraction channel, train a news comment sentiment classification model using the comment text feature vector, and use the obtained news comment sentiment classification model to realize the sentiment polarity classification of online comment texts.