Online comment automatic reply method, system and storage medium based on semantic analysis

By carefully splitting the comment text information and calculating the matching degree, combined with the coincidence degree and feature correlation degree of the comment text database, the problem of insufficient analysis depth in the existing technology is solved, high-precision reply generation is achieved, and the reply quality is improved. Quality and review relevance.

CN118626596BActive Publication Date: 2024-10-18CHENGDU MOSHENG TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411103062.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2024-10-18
Estimated Expiration
2044-08-13

AI Technical Summary

Technical Problem

The existing comment text generation reply system is not deep enough when analyzing comment text information, and it is difficult to identify the internal correlation, resulting in poor correlation between reply quality and comments.

Method used

By establishing a review text database, the input review text information is split into a number of feature sets to be matched, the matching degree is calculated based on the degree of coincidence and feature correlation, and a high-matching feature set is selected as a reply generation feature group to generate a high-precision reply.

Benefits of technology

It improves the depth of analysis of comment text information, ensures high-precision matching between reply and comment features, and avoids the problem of poor correlation between reply quality and comments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626596B_ABST
    Figure CN118626596B_ABST
Patent Text Reader

Abstract

The present invention discloses an automatic reply method, system and storage medium for online comments based on semantic analysis, which relates to the technical field of reply generation, including: establishing a comment text database; obtaining input comment text information; performing comment text splitting on the input comment text information according to a comment text splitting algorithm to obtain a plurality of comment text feature sets to be matched; respectively calculating the matching degree of each comment text feature set to be matched with the comment text database; screening out the comment text feature set to be matched corresponding to the maximum matching degree; obtaining a reply feature group; and combining a plurality of reply features in the reply feature group to generate a reply. The advantages of the present invention are: it can effectively ensure the overall matching of the input comment text information, thereby ensuring the high-precision matching between the produced reply and the comment text features, and the feature information of the sudden change in the reply greatly improves the reply generation quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of reply generation, and in particular to an automatic reply method, system and storage medium for online comments based on semantic analysis. Background Art

[0002] The comment text generation reply system is an AI-based technology that processes and understands natural language comment text to generate reply content corresponding to the comment text description. This system combines natural language processing (NLP) and computer vision (CV) technologies to simulate human creativity and achieve automatic generation of replies.

[0003] In the existing comment text generation and reply system, the analysis depth of the input comment text information is insufficient, it is difficult to identify and calculate the internal correlation of the input comment text information, and it is difficult to fully understand the overall meaning of the input comment text information. It is extremely easy to generate erroneous feature information when generating replies, resulting in poor relevance between the quality of the generated replies and the comments. Summary of the invention

[0004] In order to solve the above technical problems, a method for automatic replying to online comments based on semantic analysis is provided. This technical solution solves the problems in the above-mentioned existing comment text generation and reply system, such as insufficient analysis depth of the input comment text information, difficulty in identifying and calculating the intrinsic correlation of the input comment text information, difficulty in fully understanding the overall meaning of the input comment text information, and extremely easy to generate erroneous feature information when generating replies, resulting in poor relevance between the quality of the generated replies and the comments.

[0005] In order to achieve the above purpose, the technical solution adopted by the present invention is:

[0006] An automatic reply method for online comments based on semantic analysis, comprising:

[0007] Establishing a review text database, wherein the review text database includes a plurality of review text feature classes, and each review text feature class includes a plurality of review text features of the same type;

[0008] Get the input comment text information;

[0009] The input comment text information is split according to the comment text splitting algorithm to obtain a plurality of comment text feature sets to be matched;

[0010] According to the matching algorithm, the matching degree between each review text feature set to be matched and the review text database is calculated respectively;

[0011] Filter out the to-be-matched comment text feature set corresponding to the maximum matching degree, and use the to-be-matched comment text feature set as the reply generation feature group;

[0012] Based on the reply feature corresponding to each comment text feature in the reply feature group, a reply feature group is obtained;

[0013] A response is generated by combining several response features in a response feature group.

[0014] Preferably, the step of performing comment text splitting on the input comment text information according to the comment text splitting algorithm to obtain a plurality of comment text feature sets to be matched specifically includes:

[0015] Get the total number of words M of the input comment text information;

[0016] Sequentially traverse the positive integers in the range of 0-M as the number of comment text splits n;

[0017] Generate comment text splitting restriction conditions based on the total number of words M of the input comment text information and the number of comment text splits n;

[0018] Under the restriction of comment text splitting conditions, generate several comment text splitting arrays;

[0019] According to the numbers in the comment text split array, extract the comment text features to be matched with the corresponding number of words from the input comment text information in turn;

[0020] All the to-be-matched comment text feature sets are grouped into a to-be-matched comment text feature set;

[0021] The expression of the comment text splitting restriction condition is:

[0022]

[0023] In the formula, is the number of characters of the i-th comment text feature to be matched, is a set of positive integers.

[0024] Preferably, the step of calculating the matching degree between each to-be-matched comment text feature set and the comment text database according to the matching degree algorithm specifically includes:

[0025] Calculate the overlap between each review text feature set to be matched and the review text database;

[0026] Calculate the feature relevance of the comment text feature set to be matched, and obtain the feature relevance of the comment text feature set to be matched;

[0027] Based on the feature relevance of the to-be-matched comment text feature set and the overlap between the to-be-matched comment text feature set and the comment text database, the matching degree between the to-be-matched comment text feature set and the comment text database is calculated using a matching degree calculation formula;

[0028] The matching degree calculation formula is specifically:

[0029]

[0030] In the formula, is the matching degree between the feature set of the comment text to be matched and the comment text database, is the overlap between the feature set of the comment text to be matched and the comment text database, is the feature correlation of the comment text feature set to be matched.

[0031] Preferably, the calculation of the overlap between each to-be-matched comment text feature set and the comment text database specifically includes:

[0032] Traverse all comment text feature classes, determine whether the comment text feature to be matched in the comment text feature set to be matched is included in the comment text feature class, if so, record the comment text feature to be matched as the overlapping comment text feature, if not, record the comment text feature to be matched as the non-overlapping comment text feature;

[0033] Get the word count of all overlapping comment text features;

[0034] Based on the number of characters of the overlapping comment text features and the total number of characters of the input comment text information, the overlap between the comment text feature set to be matched and the comment text database is calculated using the overlap calculation formula.

[0035] Preferably, the calculation formula for the overlap degree is:

[0036]

[0037] In the formula, is the number of characters of the jth overlapping comment text feature, is the total number of overlapping comment text features.

[0038] Preferably, the step of calculating the feature correlation of the to-be-matched comment text feature set to obtain the feature correlation of the to-be-matched comment text feature set specifically includes:

[0039] Sort all overlapping comment text features according to the order in which the overlapping comment text features appear in the input comment text information;

[0040] Based on the comment text feature class described in each overlapping comment text feature, respectively analyzing the correlation between each overlapping comment text feature and its adjacent previous overlapping comment text feature and next overlapping comment text feature;

[0041] The maximum value of the correlation between the overlapping comment text feature and its adjacent previous overlapping comment text feature and the next overlapping comment text feature is taken as the correlation of the overlapping comment text feature;

[0042] According to the comprehensive formula of feature relevance, the feature relevance of the feature set of the to-be-matched comment text is calculated based on each overlapping comment text feature.

[0043] Preferably, the feature correlation comprehensive formula is specifically:

[0044]

[0045] In the formula, is the relevance of the jth overlapping comment text feature.

[0046] Furthermore, a semantic analysis-based automatic reply system for online comments is proposed, which is used to implement the semantic analysis-based automatic reply method for online comments as described above, comprising:

[0047] A storage module, wherein the storage module is used to store a comment text database;

[0048] A comment text input module, wherein the comment text input module is used to obtain input comment text information;

[0049] A feature splitting module, the feature splitting module is electrically connected to the comment text input module, and the feature splitting module is used to split the input comment text information according to the comment text splitting algorithm to obtain a plurality of comment text feature sets to be matched;

[0050] A matching calculation module, the matching calculation module is electrically connected to the storage module and the feature separation module, and the matching calculation module is used to calculate the matching degree of each to-be-matched comment text feature set and the comment text database according to a matching degree algorithm;

[0051] A screening module, the screening module is electrically connected to the matching calculation module, and the screening module is used to screen out a to-be-matched comment text feature set corresponding to a maximum matching degree, and use the to-be-matched comment text feature set as a reply generation feature group;

[0052] A reply generation module, the reply generation module is electrically connected to the screening module, and the reply generation module is used to obtain a reply feature group based on the reply feature corresponding to each comment text feature in the reply generation feature group, and combine several reply features in the reply feature group to generate a reply.

[0053] Optionally, the feature splitting module includes:

[0054] A splitting condition unit, wherein the splitting condition unit is used to generate a comment text splitting restriction condition;

[0055] A comment text splitting unit, the comment text splitting unit is used to generate a plurality of comment text splitting arrays under the comment text splitting restriction condition and extract the corresponding number of words of the to-be-matched comment text features from the input comment text information in turn according to the numbers in the comment text splitting arrays;

[0056] The matching calculation module includes:

[0057] An overlap calculation unit, the overlap calculation unit is used to calculate the overlap degree between each review text feature set to be matched and the review text database;

[0058] An association calculation unit, the association calculation unit is used to calculate the feature association degree of the to-be-matched comment text feature set, and obtain the feature association degree of the to-be-matched comment text feature set;

[0059] The matching calculation unit is used to calculate the matching degree between the comment text feature set to be matched and the comment text database through a matching degree calculation formula based on the feature association degree of the comment text feature set to be matched and the overlap degree between the comment text feature set to be matched and the comment text database.

[0060] Furthermore, a computer-readable storage medium is proposed, on which a computer-readable program is stored. When the computer-readable program is called, the method for automatically replying to online comments based on semantic analysis as described above is executed.

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

[0062] The present invention proposes an automatic reply scheme for online comments based on semantic analysis, which greatly improves the analysis depth of the input comment text information, and can effectively ensure the overall matching of the input comment text information, thereby ensuring a high-precision match between the generated reply and the comment text features, and avoiding the problem of erroneous feature information that is extremely easy to generate when generating a reply, resulting in poor correlation between the quality of the generated reply and the comment. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] Figure 1 This is a flow chart of the automatic reply method for online comments based on semantic analysis proposed by the present invention;

[0064] Figure 2 A flow chart of a method for obtaining a feature set of a comment text to be matched according to the present invention;

[0065] Figure 3 A flow chart of a method for calculating the matching degree between a review text feature set to be matched and a review text database according to the present invention;

[0066] Figure 4 A flow chart of a method for calculating the degree of overlap between a review text feature set to be matched and a review text database according to the present invention;

[0067] Figure 5 The flowchart of the method for calculating the feature relevance of the feature set of the review text to be matched according to the present invention. DETAILED DESCRIPTION

[0068] The following description is used to disclose the present invention so that those skilled in the art can implement the present invention. The preferred embodiments described below are only examples, and those skilled in the art may think of other obvious variations.

[0069] Reference Figure 1 As shown, an automatic reply method for online comments based on semantic analysis includes:

[0070] Establishing a review text database, wherein the review text database includes a plurality of review text feature classes, and each review text feature class includes a plurality of review text features of the same type;

[0071] Get the input comment text information;

[0072] The input comment text information is split according to the comment text splitting algorithm to obtain a plurality of comment text feature sets to be matched;

[0073] According to the matching algorithm, the matching degree between each review text feature set to be matched and the review text database is calculated respectively;

[0074] Filter out the to-be-matched comment text feature set corresponding to the maximum matching degree, and use the to-be-matched comment text feature set as the reply generation feature group;

[0075] Based on the reply feature corresponding to each comment text feature in the reply feature group, a reply feature group is obtained;

[0076] A response is generated by combining several response features in a response feature group.

[0077] This scheme greatly improves the analysis depth of the input comment text information by carefully splitting the input comment text information into several comment text feature sets to be matched, and combines the dual recognition judgment of the overlap between the comment text feature sets to be matched and the comment text database and the correlation between the comment text features in the comment text feature sets to be matched, which can effectively ensure the overall matching of the input comment text information.

[0078] Reference Figure 2 As shown, the comment text information input is split according to the comment text splitting algorithm to obtain several comment text feature sets to be matched, specifically including:

[0079] Get the total number of words M of the input comment text information;

[0080] Sequentially traverse the positive integers in the range of 0-M as the number of comment text splits n;

[0081] Generate comment text splitting restriction conditions based on the total number of words M of the input comment text information and the number of comment text splits n;

[0082] Under the restriction of comment text splitting conditions, generate several comment text splitting arrays;

[0083] According to the numbers in the comment text split array, extract the comment text features to be matched with the corresponding number of words from the input comment text information in turn;

[0084] All the to-be-matched comment text feature sets are grouped into a to-be-matched comment text feature set;

[0085] The expression of the comment text splitting restriction condition is:

[0086]

[0087] In the formula, is the number of characters of the i-th comment text feature to be matched, is a set of positive integers.

[0088] The above comment text splitting process is described with a specific embodiment:

[0089] In one embodiment, the input comment text information is "Guan Yu", and the total number of characters in the input comment text information is 2. The positive integers traversed in the range of 0-2 are 1 and 2. When n=1, the comment text splitting restriction condition is:

[0090]

[0091] The generated comment text split array is {2}, and the split comment text feature set to be matched is {Guan Yu};

[0092] When n=2, the comment text splitting constraints are:

[0093]

[0094] The generated comment text split array is {1,1}, and the split comment text feature set to be matched is {guan,yu}.

[0095] Reference Figure 3 As shown, the matching degree of each to-be-matched comment text feature set and the comment text database is calculated according to the matching degree algorithm, specifically including:

[0096] Calculate the overlap between each review text feature set to be matched and the review text database;

[0097] Calculate the feature relevance of the comment text feature set to be matched, and obtain the feature relevance of the comment text feature set to be matched;

[0098] Based on the feature relevance of the to-be-matched comment text feature set and the overlap between the to-be-matched comment text feature set and the comment text database, the matching degree between the to-be-matched comment text feature set and the comment text database is calculated using a matching degree calculation formula;

[0099] The matching degree calculation formula is specifically:

[0100]

[0101] In the formula, is the matching degree between the feature set of the comment text to be matched and the comment text database, is the overlap between the feature set of the comment text to be matched and the comment text database, is the feature correlation of the comment text feature set to be matched.

[0102] Reference Figure 4As shown, the calculation of the overlap between each to-be-matched comment text feature set and the comment text database specifically includes:

[0103] Traverse all comment text feature classes, determine whether the comment text feature to be matched in the comment text feature set to be matched is included in the comment text feature class, if so, record the comment text feature to be matched as the overlapping comment text feature, if not, record the comment text feature to be matched as the non-overlapping comment text feature;

[0104] Get the word count of all overlapping comment text features;

[0105] Based on the number of characters of the overlapping comment text features and the total number of characters of the input comment text information, the overlap between the comment text feature set to be matched and the comment text database is calculated using the overlap calculation formula.

[0106] The calculation formula of the overlap degree is:

[0107]

[0108] In the formula, is the number of characters of the jth overlapping comment text feature, is the total number of overlapping comment text features.

[0109] Specifically, for the input comment text information "Guan Yu", the comment text feature sets to be matched generated are {Guan Yu} and {Guan, Yu}, among which the comment text to be matched "Guan Yu" is overlapped in the historical figure comment text feature class, the comment text to be matched "Guan" is overlapped in the action comment text feature class, and the comment text to be matched "Yu" is overlapped in the object comment text feature class. Then, the overlap degrees of the comment text feature sets to be matched {Guan Yu} and {Guan, Yu} and the comment text database are both 1.

[0110] Reference Figure 5 As shown, the feature correlation degree calculation is performed on the feature set of the comment text to be matched, and the feature correlation degree of the feature set of the comment text to be matched is obtained, which specifically includes:

[0111] Sort all overlapping comment text features according to the order in which the overlapping comment text features appear in the input comment text information;

[0112] Based on the comment text feature class described in each overlapping comment text feature, respectively analyzing the correlation between each overlapping comment text feature and its adjacent previous overlapping comment text feature and next overlapping comment text feature;

[0113] The maximum value of the correlation between the overlapping comment text feature and its adjacent previous overlapping comment text feature and the next overlapping comment text feature is taken as the correlation of the overlapping comment text feature;

[0114] According to the comprehensive formula of feature relevance, the feature relevance of the feature set of the to-be-matched comment text is calculated based on each overlapping comment text feature.

[0115] The feature correlation comprehensive formula is specifically:

[0116]

[0117] In the formula, is the relevance of the jth overlapping comment text feature.

[0118] Specifically, for the input comment text information "Guan Yu", the comment text feature sets to be matched generated are {Guan Yu} and {Guan, Yu}. According to the above feature correlation comprehensive formula, the feature correlation of the comment text feature set to be matched {Guan Yu} is calculated to be 1. Since there is no effective correlation between the comment text to be matched "Guan" and the comment text to be matched "Yu", the correlation of the comment text feature to be matched "Guan" and the comment text feature to be matched "Yu" is set to 0.1. According to the above feature correlation comprehensive formula, the feature correlation of the comment text feature set to be matched {Guan, Yu} is calculated to be 0.1;

[0119] Combining the overlap between the comment text feature sets to be matched {Guan Yu} and {Guan, Yu} and the comment text database, as well as the feature correlation between the comment text feature sets to be matched {Guan Yu} and {Guan, Yu}, it is calculated that the matching degree of the comment text feature set to be matched {Guan Yu} and the comment text database is 1, and the matching degree of the comment text feature set to be matched {Guan, Yu} and the comment text database is 0.1. Therefore, the comment text feature set to be matched {Guan Yu} is the most suitable comment text feature set for the input comment text information. Generating reply features according to the comment text feature set to be matched {Guan Yu} and combining them to generate replies can maximize the degree of compatibility between the reply and the input comment text.

[0120] It should be noted that the comment text "Guan Yu" inputted above is merely an exemplary embodiment of the present solution. Inputting other comment text information and realizing reply generation according to the technical features disclosed in the present solution are all different embodiments of the present solution.

[0121] Further, based on the same inventive concept as the above-mentioned online comment automatic reply method based on semantic analysis, the present solution also proposes an online comment automatic reply system based on semantic analysis, comprising:

[0122] A storage module, wherein the storage module is used to store a comment text database;

[0123] A comment text input module, wherein the comment text input module is used to obtain input comment text information;

[0124] A feature splitting module, the feature splitting module is electrically connected to the comment text input module, and the feature splitting module is used to split the input comment text information according to the comment text splitting algorithm to obtain a plurality of comment text feature sets to be matched;

[0125] A matching calculation module, the matching calculation module is electrically connected to the storage module and the feature separation module, and the matching calculation module is used to calculate the matching degree of each to-be-matched comment text feature set and the comment text database according to a matching degree algorithm;

[0126] A screening module, the screening module is electrically connected to the matching calculation module, and the screening module is used to screen out a to-be-matched comment text feature set corresponding to a maximum matching degree, and use the to-be-matched comment text feature set as a reply generation feature group;

[0127] A reply generation module, the reply generation module is electrically connected to the screening module, and the reply generation module is used to obtain a reply feature group based on the reply feature corresponding to each comment text feature in the reply generation feature group, and combine several reply features in the reply feature group to generate a reply.

[0128] The feature splitting module comprises:

[0129] A splitting condition unit, wherein the splitting condition unit is used to generate a comment text splitting restriction condition;

[0130] A comment text splitting unit, the comment text splitting unit is used to generate a plurality of comment text splitting arrays under the comment text splitting restriction condition and extract the corresponding number of words of the to-be-matched comment text features from the input comment text information in turn according to the numbers in the comment text splitting arrays;

[0131] The matching calculation module includes:

[0132] An overlap calculation unit, the overlap calculation unit is used to calculate the overlap degree between each review text feature set to be matched and the review text database;

[0133] An association calculation unit, the association calculation unit is used to calculate the feature association degree of the to-be-matched comment text feature set, and obtain the feature association degree of the to-be-matched comment text feature set;

[0134] The matching calculation unit is used to calculate the matching degree between the comment text feature set to be matched and the comment text database through a matching degree calculation formula based on the feature association degree of the comment text feature set to be matched and the overlap degree between the comment text feature set to be matched and the comment text database.

[0135] The usage process of the above-mentioned online comment automatic reply system based on semantic analysis is as follows:

[0136] Step 1: Input comment text information through the input module;

[0137] Step 2: The splitting condition unit obtains the total number of characters M of the input comment text information; sequentially traverses the positive integers in the range of 0-M as the comment text split number n; based on the total number of characters M of the input comment text information and the comment text split number n, generates the comment text splitting restriction condition;

[0138] Step 3: Under the restriction of comment text splitting, generate several comment text splitting arrays and extract the corresponding number of words of the to-be-matched comment text features from the input comment text information in turn according to the numbers in the comment text splitting arrays;

[0139] Step 4: The overlap calculation unit calculates the overlap between each review text feature set to be matched and the review text database;

[0140] Step 5: The association calculation unit calculates the feature association degree of the to-be-matched comment text feature set, and obtains the feature association degree of the to-be-matched comment text feature set;

[0141] Step 6: The matching calculation unit is used to calculate the matching degree between the feature set of the to-be-matched comment text and the comment text database through a matching degree calculation formula based on the feature association degree of the to-be-matched comment text feature set and the overlap degree between the feature set of the to-be-matched comment text and the comment text database;

[0142] Step 7: The screening module screens out the to-be-matched comment text feature set corresponding to the maximum matching degree, and uses the to-be-matched comment text feature set as the reply generation feature group;

[0143] Step 8: The reply generation module obtains the reply feature group based on the reply feature corresponding to each comment text feature in the reply generation feature group and combines several reply features in the reply feature group to generate a reply.

[0144] Furthermore, the present solution also proposes a storage medium on which a computer-readable program is stored, and when the computer-readable program is called, the above-mentioned automatic reply method for online comments based on semantic analysis is executed.

[0145] It is understandable that the storage medium may be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; an optical medium, such as a DVD; or a semiconductor medium, such as a solid state drive (SSD).

[0146] To sum up, the advantages of the present invention are: it can effectively ensure the overall matching of the input comment text information, thereby ensuring a high-precision match between the produced reply and the comment text features, and the sudden feature information in the reply greatly improves the quality of reply generation.

[0147] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The above embodiments and descriptions only describe the principles of the present invention. The present invention may be subject to various changes and improvements without departing from the spirit and scope of the present invention. These changes and improvements fall within the scope of the present invention. The scope of protection claimed by the present invention is defined by the attached claims and their equivalents.

Claims

1. An automatic reply method for online comments based on semantic analysis, characterized in that: include: Establishing a review text database, wherein the review text database includes a plurality of review text feature classes, and each review text feature class includes a plurality of review text features of the same type; Get the input comment text information; The input comment text information is split according to the comment text splitting algorithm to obtain a plurality of comment text feature sets to be matched; According to the matching algorithm, the matching degree between each review text feature set to be matched and the review text database is calculated respectively; Filter out the to-be-matched comment text feature set corresponding to the maximum matching degree, and use the to-be-matched comment text feature set as the reply generation feature group; Based on the reply feature corresponding to each comment text feature in the reply feature group, a reply feature group is obtained; Combining several response features in the response feature group to generate a response; The step of calculating the matching degree of each to-be-matched comment text feature set and the comment text database according to the matching degree algorithm specifically includes: Calculate the overlap between each review text feature set to be matched and the review text database; Calculate the feature relevance of the comment text feature set to be matched, and obtain the feature relevance of the comment text feature set to be matched; Based on the feature relevance of the to-be-matched comment text feature set and the overlap between the to-be-matched comment text feature set and the comment text database, the matching degree between the to-be-matched comment text feature set and the comment text database is calculated using a matching degree calculation formula; The matching degree calculation formula is specifically: In the formula, is the matching degree between the feature set of the comment text to be matched and the comment text database, is the overlap between the feature set of the comment text to be matched and the comment text database, is the feature relevance of the feature set of the to-be-matched comment text; the feature relevance calculation is performed on the feature set of the to-be-matched comment text to obtain the feature relevance of the feature set of the to-be-matched comment text, and specifically includes: Sort all the overlapping comment text features according to the order in which they appear in the input comment text information; analyze the correlation between each overlapping comment text feature and its adjacent previous overlapping comment text feature and next overlapping comment text feature based on the comment text feature class described by each overlapping comment text feature; The maximum value of the correlation between the overlapping comment text feature and its adjacent previous overlapping comment text feature and the next overlapping comment text feature is taken as the correlation of the overlapping comment text feature; According to the comprehensive formula of feature relevance, the feature relevance of the feature set of the to-be-matched comment text is calculated based on each overlapping comment text feature.

2. According to claim 1, the method for automatically replying to online comments based on semantic analysis is characterized in that: The step of performing comment text splitting on the input comment text information according to the comment text splitting algorithm to obtain a plurality of comment text feature sets to be matched specifically includes: Get the total number of words M of the input comment text information; Sequentially traverse the positive integers in the range of 0-M as the number of comment text splits n; Generate comment text splitting restriction conditions based on the total number of words M of the input comment text information and the number of comment text splits n; Under the restriction of comment text splitting conditions, generate several comment text splitting arrays; According to the numbers in the comment text split array, extract the comment text features to be matched with the corresponding number of words from the input comment text information in turn; All the to-be-matched comment text feature sets are grouped into a to-be-matched comment text feature set; The expression of the comment text splitting restriction condition is: In the formula, is the number of characters of the i-th comment text feature to be matched, is a set of positive integers.

3. The method for automatically replying to online comments based on semantic analysis according to claim 2, characterized in that: The calculation of the overlap between each to-be-matched comment text feature set and the comment text database specifically includes: Traverse all comment text feature classes, determine whether the comment text feature to be matched in the comment text feature set to be matched is included in the comment text feature class, if so, record the comment text feature to be matched as the overlapping comment text feature, if not, record the comment text feature to be matched as the non-overlapping comment text feature; The word count of all overlapping comment text features is obtained; based on the word count of overlapping comment text features and the total word count of the input comment text information, the overlap between the comment text feature set to be matched and the comment text database is calculated using an overlap calculation formula.

4. The method for automatically replying to online comments based on semantic analysis according to claim 3 is characterized in that: The calculation formula of the overlap degree is: In the formula, is the number of characters of the jth overlapping comment text feature, is the total number of overlapping comment text features.

5. The method for automatically replying to online comments based on semantic analysis according to claim 4 is characterized in that: The feature correlation comprehensive formula is specifically: In the formula, is the relevance of the jth overlapping comment text feature.

6. An automatic reply system for online comments based on semantic analysis, characterized in that: The method for automatically replying to online comments based on semantic analysis as claimed in any one of claims 1 to 5 comprises: A storage module, wherein the storage module is used to store a comment text database; A comment text input module, wherein the comment text input module is used to obtain input comment text information; A feature splitting module, the feature splitting module is electrically connected to the comment text input module, and the feature splitting module is used to split the input comment text information according to the comment text splitting algorithm to obtain a plurality of comment text feature sets to be matched; A matching calculation module, the matching calculation module is electrically connected to the storage module and the feature separation module, and the matching calculation module is used to calculate the matching degree of each to-be-matched comment text feature set and the comment text database according to a matching degree algorithm; A screening module, the screening module is electrically connected to the matching calculation module, and the screening module is used to screen out a to-be-matched comment text feature set corresponding to a maximum matching degree, and use the to-be-matched comment text feature set as a reply generation feature group; A reply generation module, the reply generation module is electrically connected to the screening module, and the reply generation module is used to obtain a reply feature group based on the reply feature corresponding to each comment text feature in the reply generation feature group, and combine several reply features in the reply feature group to generate a reply.

7. The automatic reply system for online comments based on semantic analysis according to claim 6 is characterized by: The feature splitting module comprises: A splitting condition unit, wherein the splitting condition unit is used to generate a comment text splitting restriction condition; A comment text splitting unit, the comment text splitting unit is used to generate a plurality of comment text splitting arrays under the comment text splitting restriction condition and extract the corresponding number of words of the to-be-matched comment text features from the input comment text information in turn according to the numbers in the comment text splitting arrays; The matching calculation module includes: An overlap calculation unit, the overlap calculation unit is used to calculate the overlap degree between each review text feature set to be matched and the review text database; An association calculation unit, the association calculation unit is used to calculate the feature association degree of the to-be-matched comment text feature set, and obtain the feature association degree of the to-be-matched comment text feature set; The matching calculation unit is used to calculate the matching degree between the comment text feature set to be matched and the comment text database through a matching degree calculation formula based on the feature association degree of the comment text feature set to be matched and the overlap degree between the comment text feature set to be matched and the comment text database.

8. A computer-readable storage medium having a computer-readable program stored thereon, characterized in that: When the computer-readable program is called, the method for automatically replying to online comments based on semantic analysis as described in any one of claims 1 to 5 is executed.

Citation Information

Patent Citations

  • Automatic question-answering system and method

    CN104598445A

  • Conversation robot for daily life and chatting method thereof

    CN112818107A