AI-Based Text Processing Method, Apparatus, Computer Device, and Storage Medium

By obtaining the comment data set and using the preset keyword database to generate prompt information, input it into the AIGC engine, the time-consuming and labor-intensive problem of manual intervention in traditional methods is solved, efficient and accurate comment text processing is achieved, and high-quality reference comment text is generated.

CN120045711BActive Publication Date: 2025-07-25JIANGSU ZHIXIN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510495171.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-04-21
Publication Date
2025-07-25
Estimated Expiration
2045-04-21

AI Technical Summary

Technical Problem

Faced with massive comment data, traditional text processing methods require manual intervention, which is time-consuming and labor-intensive and difficult to ensure the objectivity and accuracy of the processing results.

Method used

By obtaining the comment data set of the target object, using the preset keyword database to extract and generate prompt information, input it to the AIGC engine to output high-quality reference comment text, including prompt statements and pending text, to associate the user's core concerns.

Benefits of technology

It improves the efficiency and accuracy of comment data processing. The generated reference comment text reflects the user's real feedback, has high readability and reference value, and helps merchants better understand consumer needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120045711B_ABST
    Figure CN120045711B_ABST
Patent Text Reader

Abstract

The present application provides an AI-based text processing method, apparatus, computer device, and storage medium. The method obtains a comment dataset of a target object within a first period, then determines a target comment dataset from the comment dataset according to a target comment tag, generates a prompt message based on the comment texts of the individual comment data in the target comment dataset, and inputs the prompt message into a preset AIGC engine to output a reference comment text corresponding to the target comment tag. The prompt message not only includes a prompt statement for instructing the AIGC engine to generate a reference comment text, but also includes a text to be processed, which consists of keywords and keyword phrases and is directly related to the user's core concerns. This intelligent prompt message generation method helps the AIGC engine better understand the user's intention and generate high-quality reference comment texts.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to data processing technologies, and in particular to an AI-based text processing method, apparatus, computer device, and storage medium. Background Art

[0002] With the rapid development of Internet technologies and the wide popularity of social media, user-generated content has become an indispensable part of the cyber space. Among them, comment data, as an important form of user feedback and opinion expression, is of great significance for understanding user needs, evaluating product or service quality, monitoring brand reputation, etc.

[0003] However, in the face of a vast amount of comment data, how to efficiently and accurately extract valuable information from it has become an urgent problem to be solved. Traditional text processing methods often require manual intervention for tedious data screening, classification, and analysis work, which is not only time-consuming and laborious but also difficult to ensure the objectivity and accuracy of the processing results. Summary of the Invention

[0004] This application provides an AI-based text processing method, apparatus, computer device, and storage medium, which are used to generate prompt information that can be input into an AIGC engine based on a vast amount of comment data, so as to generate high-quality reference comment texts, thereby improving the processing efficiency of the vast amount of comment data.

[0005] In a first aspect, this application provides an AI-based text processing method, which is characterized by including:

[0006] Obtain a comment data set of a target object within a first time period, where the comment data set includes comment data made by different accounts on the target object within the first time period, and the comment data includes comment tags and comment texts;

[0007] Determine a target comment data set from the comment data set according to a target comment tag, where the comment tags of the comment data in the target comment data set are the target comment tags;

[0008] Generate prompt information according to the comment texts of each comment data in the target comment data set, where the prompt information includes a prompt statement and a text to be processed;

[0009] Input the prompt information into a preset AIGC engine to output a reference comment text corresponding to the target comment tag.

[0010] In the above solution, by obtaining the comment dataset of the target object within the first time period, the comment data of different accounts within the same time period is effectively integrated, improving the data processing efficiency, enabling the rapid collection of a large number of relevant comments, and providing a data basis for subsequent analysis. At the same time, by performing tagging processing on the comment data, the data classification is further refined, facilitating subsequent targeted processing. Screening the target comment dataset from the comment dataset according to the target comment tags realizes the precise positioning of the comment data. The target comment tags can be associated with multiple indicators such as the target satisfaction level, the target user attributes, and the number of comments per single customer, thereby ensuring that the screened comment data highly meets specific analysis requirements. Then, by using a preset keyword database to extract keywords from the comment texts in the target comment dataset and generating prompt information, the prompt information not only includes a prompt statement indicating the AIGC engine to generate a reference comment text but also includes the text to be processed, which consists of keywords and keyword phrases and is directly related to the core concerns of the user. This intelligent prompt information generation method helps the AIGC engine more accurately understand the user's intention and generate a high-quality reference comment text. Inputting the prompt information into the preset AIGC engine to output the reference comment text corresponding to the target comment tags, thereby enabling the generation of high-quality, coherent, and logical text content. These reference comment texts not only reflect the true feedback of the users but also have high readability and reference value, which is of great significance for enhancing the market competitiveness of the target object.

[0011] Optionally, the target object is an e-commerce product;

[0012] The target comment tags are used to associate with one or more of the target satisfaction level, the target user attributes, and the number of comments per single customer, where the number of comments per single customer is the number of comments output by the same account before the end node of the first time period.

[0013] In the above solution, by setting the target object as an e-commerce product, it is possible to accurately collect and process review data related to the product. These review data directly reflect the true feedback of consumers on the product, including aspects such as satisfaction, usage experience, and function evaluation. By associating with target review tags, such as the target satisfaction level, it is possible to quickly locate the overall evaluation tendency of consumers towards the product, providing intuitive market feedback for merchants. Moreover, the target review tags are also associated with target user attributes and the number of reviews per single customer, which can be used to analyze the characteristics of user groups and their review behaviors. Through user attributes (such as age, gender, region, etc.), it is possible to understand the preferences and acceptance degrees of different user groups for the product; while the number of reviews per single customer reflects the continuous attention and participation of users in the product. The comprehensive analysis of this information helps merchants to more comprehensively understand consumer needs. In addition, through intelligent text processing and analysis means, the efficiency of processing a large amount of e-commerce product review data has been significantly improved. Compared with the traditional manual analysis method, AIGC technology can generate high-quality reference review texts more quickly, providing timely and accurate market feedback for merchants.

[0014] Optionally, generating a prompt message according to the review texts of each review data in the target review data set, where the prompt message includes a prompt statement and a text to be processed, including:

[0015] Using a preset keyword database and extracting keywords from each review text in the target review data set to generate a target review keyword vector corresponding to each target review data , where is the th target review data in the target review data set , is the corresponding target review keyword vector;

[0016] Generating a target review keyword matrix according to the target review keyword vectors corresponding to each target review data ; ;

[0017] Generating the prompt message according to the target review keyword matrix , where the text to be processed includes the keywords in the target review keyword matrix , and the prompt statement is used to instruct the preset AIGC engine to generate the reference review text according to the text to be processed.

[0018] In the above solution, by using a preset keyword database to extract keywords from each comment text in the target comment dataset, the core information and key viewpoints in the comments can be accurately identified, which not only improves the efficiency of text processing but also ensures the accuracy and pertinence of subsequent analysis. By generating target comment keyword vectors corresponding to each target comment data, complex comment texts are transformed into a structured data form, facilitating subsequent further processing and analysis. After extracting the keywords, a target comment keyword matrix is further generated according to the target comment keyword vectors corresponding to each target comment data, realizing the integration and association of keyword data, enabling the keywords originally scattered in multiple comment texts to be centrally displayed, and facilitating subsequent analysis and mining. In addition, the construction of the keyword matrix provides an intuitive tool for understanding the overall distribution and correlation of comment data. Based on the target comment keyword matrix, prompt information can be intelligently generated, including prompt statements and text to be processed. The prompt statements are used to instruct a preset AIGC engine to generate reference comment texts according to the text to be processed, and the text to be processed contains the keywords in the keyword matrix. This intelligent way of generating prompt information ensures that the AIGC engine can receive accurate, relevant, and efficient input information, thereby generating high-quality reference comment texts. By optimizing the input of the AIGC engine, the efficiency and accuracy of text generation are further improved. Finally, through the prompt information generated by using the above method, the AIGC engine can output reference comment texts corresponding to the target comment tags.

[0019] Optionally, the generating the target comment keyword matrix according to the target comment keyword vectors corresponding to each target comment data includes:

[0020] Determining the number of rows of the target comment keyword matrix according to the keyword vector with the highest dimension in the target comment keyword vectors corresponding to each target comment data to generate the target comment keyword matrix :

[0021]

[0022] Wherein, is the j-th keyword in the i-th target comment keyword vector in the target comment keyword matrix If the number of keywords in the target comment keyword vector is less than then the number of keywords in ​​​​​The subsequent elements are configured with preset values;

[0023] Correspondingly, according to the target comment keyword matrix to generate the prompt information, including:

[0024] Traverse each element in the target comment keyword matrix and add the target comment keywords whose occurrence times are greater than the preset times to the text to be processed to generate the prompt information, where the prompt statement is used to instruct the preset AIGC engine to generate the reference comment text according to all the target comment keywords in the text to be processed.

[0025] In the above solution, by determining the number of rows of the keyword matrix according to the keyword vector with the highest dimension in the target comment keyword vectors corresponding to each target comment data, a structured keyword matrix is generated, which not only realizes the effective integration of keyword data, but also optimizes the data storage and retrieval efficiency. The construction of the keyword matrix makes the association relationship between keywords clearer, facilitating subsequent analysis and mining work. At the same time, by filling the vectors with insufficient keyword quantities with preset values, the integrity and consistency of the matrix are ensured, providing convenience for subsequent processing. After generating the keyword matrix, by traversing each element in the matrix and adding the target comment keywords whose occurrence times are greater than the preset times to the text to be processed to construct the prompt information, the accurate screening of high-frequency keywords is realized, ensuring that the prompt information can accurately reflect the core concerns of consumers. High-frequency keywords usually represent the mainstream views or common problems in the comments. Incorporating them into the text to be processed helps the AIGC engine generate more targeted and reference-worthy reference comment texts. By using the prompt information constructed by the above method, the AIGC engine can receive more accurate and relevant input data, thereby generating reference comment texts that are more matched with the target comment tags. This improvement in relevance and accuracy not only enhances the readability and reference value of the reference comment texts, but also improves the overall efficiency of text generation. For e-commerce products, this means that merchants can obtain more real feedback from consumers more quickly, and then make more accurate marketing strategy adjustments and product improvement decisions. In addition, the entire process of generating the keyword matrix and constructing the prompt information fully demonstrates the intelligent level of AIGC technology in the field of data processing and analysis. Through the automated keyword extraction, matrix construction, and screening processes, the workload of manual processing is greatly reduced, and the efficiency of data processing and analysis is improved.

[0026] Optionally, the generating the prompt information according to the target comment keyword matrix further includes:

[0027] Traverse the target comment keyword matrix each element in it, and add the associated target comment keyword phrases whose keyword association feature values are greater than the preset association feature threshold to the text to be processed, where the associated target comment keyword phrases include the first target comment keyword and the second target comment keyword.

[0028] In the above solution, by calculating the association feature values between keywords and screening out keyword phrases with high association degrees, the semantic relationships in the comment data can be understood more deeply. Associated keyword phrases often can reveal the comprehensive evaluations of reviewers on various aspects such as product features and usage experiences. Incorporating them into the text to be processed helps the AIGC engine generate richer, more accurate, and insightful reference review texts.

[0029] Optionally, traversing each element in the target comment keyword matrix and adding the associated target comment keyword phrases whose keyword association feature values are greater than the preset association feature threshold to the text to be processed further includes:

[0030] Updating the keyword association feature values according to the preset weight factors of each keyword in the preset keyword database.

[0031] In the above solution, by introducing the weight factors in the preset keyword database, the association strength between keywords can be evaluated more accurately. The weight factors are usually determined based on the importance of keywords in a specific field or context. Therefore, using these factors to update the keyword association feature values can make the association evaluation more in line with the actual context and domain knowledge. This improvement in accuracy helps generate more prompt information that is closer to the true comment intention, thereby improving the quality of the reference review texts generated by the AIGC engine.

[0032] Optionally, the AI-based text processing method further includes:

[0033] Obtaining a monitoring instruction for the target object, where the monitoring instruction is used to indicate obtaining another reference review text corresponding to another target object during the first time period, where the another target object is a benchmark object of the target object;

[0034] Generating and outputting a monitoring report at a preset time interval, where the monitoring report includes the reference review text and the another reference review text.

[0035] In the above solution, by obtaining the monitoring instructions of the target object and its benchmark object, it is possible to collect the reference review texts of both in a specific period in real time or regularly. These review texts not only reflect the direct feedback of consumers on the target object and its benchmark product, but also imply key information such as market trends and consumer preferences. Generating and outputting a monitoring report at a preset time interval enables the enterprise to quickly obtain the latest market dynamics and consumer feedback. This real-time monitoring and reporting mechanism helps the enterprise quickly respond to market changes, adjust product strategies, marketing strategies or customer service strategies to meet the changing market demands.

[0036] In a second aspect, the present application provides an AI-based text processing device, including:

[0037] An acquisition module, configured to acquire a comment data set of a target object within a first period, where the comment data set includes comment data made by different accounts on the target object within the first period, and the comment data includes a comment tag and a review text;

[0038] A processing module, configured to determine a target comment data set from the comment data set according to a target comment tag, where the comment tag of the comment data in the target comment data set is the target comment tag;

[0039] A generation module, configured to generate a prompt message according to the review texts of the respective comment data in the target comment data set, where the prompt message includes a prompt statement and a text to be processed;

[0040] Input the prompt message into a preset AIGC engine to output a reference review text corresponding to the target comment tag.

[0041] Optionally, the target object is an e-commerce product;

[0042] The target comment tag is used to associate one or more of a target satisfaction level, a target user attribute, and the number of single-customer comments, where the number of single-customer comments is the number of comments output by the same account before the end node of the first period.

[0043] Optionally, the generation module is specifically configured to:

[0044] Utilize a preset keyword database and perform keyword extraction on the review texts in the target comment data set to generate a target comment keyword vector corresponding to each target comment data , where is the th target comment data in the target comment data set , is The corresponding target review keyword vector;

[0045] According to the target comment keyword vector corresponding to each target comment data Generate target review keyword matrix ;

[0046] Review keyword matrix according to the stated goal Generate the prompt information, wherein the text to be processed includes the target review keyword matrix The prompt statement is used to instruct the preset AIGC engine to generate the reference comment text according to the text to be processed.

[0047] Optionally, the generating module is specifically used for:

[0048] According to the target comment keyword vector corresponding to each target comment data The keyword vector with the highest dimension in the target review keyword matrix is determined number of rows , to generate the target review keyword matrix :

[0049]

[0050] in, Review keyword matrix for the target Middle Target review keyword vector The keywords, if the target review keyword vector The number of keywords in Less than , then The following elements are configured as preset values;

[0051] Traverse the target review keyword matrix and adds the target comment keywords whose occurrence times are greater than the preset times to the text to be processed to generate the prompt information, wherein the prompt statement is used to instruct the preset AIGC engine to generate the reference comment text according to all the target comment keywords in the text to be processed.

[0052] Optionally, the generating module is further specifically used for:

[0053] Traverse the target review keyword matrix each element in, and adding the associated target comment keyword phrase whose keyword association eigenvalue is greater than the preset association feature threshold to the text to be processed, where the associated target comment keyword phrase includes a first target comment keyword and a second target comment keyword.

[0054] Optionally, the generating module is further specifically configured to:

[0055] Update the keyword association eigenvalue according to the preset weight factor of each keyword in the preset keyword database.

[0056] Optionally, the obtaining module is further configured to obtain a monitoring instruction for the target object, where the monitoring instruction is used to instruct to obtain another reference comment text corresponding to another target object within the first time period, where the another target object is a benchmark object of the target object;

[0057] The output module 340 is further configured to generate and output a monitoring report at a preset time interval, where the monitoring report includes the reference comment text and the another reference comment text.

[0058] In a third aspect, the present application provides an electronic device, including:

[0059] a processor; and,

[0060] a memory for storing executable instructions of the processor;

[0061] wherein, the processor is configured to execute any possible method described in the first aspect by executing the executable instructions.

[0062] In a fourth aspect, the present application provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when the computer-executable instructions are executed by a processor, they are used to implement any possible method described in the first aspect.

[0063] The AI-based text processing method, device, computer device, and storage medium provided by the present application obtain a comment dataset of a target object within a first time period, then determine a target comment dataset from the comment dataset according to a target comment tag, and then generate a prompt message based on the comment text of each comment data in the target comment dataset, and input the prompt message into a preset AIGC engine to output a reference comment text corresponding to the target comment tag. The prompt message not only includes a prompt statement indicating the AIGC engine to generate the reference comment text, but also includes the text to be processed, which consists of keywords and keyword phrases and is directly related to the user's core concerns. This intelligent prompt message generation method helps the AIGC engine better understand the user's intention and generate high-quality reference comment texts. Brief Description of the Drawings

[0064] The drawings herein are incorporated into and constitute a part of this specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.

[0065] Figure 1 is a schematic flowchart of an AI-based text processing method shown according to an exemplary embodiment of the present application;

[0066] Figure 2 is a schematic flowchart of an AI-based text processing method shown according to another exemplary embodiment of the present application;

[0067] Figure 3 is a schematic structural diagram of an AI-based text processing device shown according to an exemplary embodiment of the present application;

[0068] Figure 4 is a schematic structural diagram of an electronic device shown according to an exemplary embodiment of the present application.

[0069] Through the above-mentioned drawings, specific embodiments of the present application have been shown, and there will be more detailed descriptions hereinafter. These drawings and textual descriptions are not intended to limit the scope of the concept of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. Detailed Description of the Embodiments

[0070] Here, the exemplary embodiments will be described in detail, and their examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0071] To solve the above problems, in the embodiments provided by the present application, the system receives a monitoring instruction input by the user, and clarifies the target object, the benchmark object, and the monitoring time period (the first time period) to be monitored. According to the monitoring instruction, the system captures the review texts of the target object and the benchmark object in real time or regularly within the specified time period. This process involves technical means such as web crawlers and API calls to ensure the comprehensiveness and accuracy of the review texts. The system sorts out and analyzes the collected review texts to generate a detailed monitoring report. The report content includes the reference review texts of the target object and the benchmark object, sentiment tendency analysis, keyword frequency statistics, etc., as well as the comparative analysis between the two. Finally, the system outputs the generated monitoring report in the manner specified by the user, such as email, the internal message center of the system, file download, etc., to ensure that the user can conveniently obtain the report content.

[0072] It should be noted that the embodiments provided in this application make full use of the advantages of AIGC technology, intelligently analyze and process review texts through algorithm models, and improve the efficiency and accuracy of text processing. The system supports real-time monitoring of changes in review texts and generates regular reports at preset time intervals to ensure that users can timely understand public opinion trends. It can also reveal the differences, similarities or potential trends between the target object and the benchmark object by comparing and analyzing their review texts, providing valuable decision-making support for users. In addition, through an automated monitoring and report generation process, the cost of manual intervention is significantly reduced and the monitoring efficiency is improved. Moreover, by providing comprehensive review text analysis and comparative analysis functions, it can help users more accurately grasp market dynamics and public opinion trends, providing strong support for decision-making.

[0073] Figure 1 is a schematic flowchart of an AI-based text processing method shown according to an exemplary embodiment of the present application. As Figure 1 shown, the method provided in this embodiment includes:

[0074] S101. Obtain a review data set of a target object within a first time period.

[0075] In this step, a review data set of a target object within a first time period is obtained. The review data set includes review data made by different accounts on the target object within the first time period, and the review data includes review tags and review texts.

[0076] Specifically, to obtain a review data set of a target object within a first time period, this obtaining behavior is based on the legal authorization of the data publisher, and the publisher can be the merchant itself, other merchants or users, etc. The review data set contains all review data made by different accounts on the target object within the first time period. These review data include two parts: review tags and review texts. Review tags are usually used to identify the category or theme of the review, while the review text is the specific evaluation content of the user. For example, a target object can be set, such as a certain e-commerce product. The first time period is determined, such as the past week, month, etc. Through web crawler technology or API interfaces, etc., all review data of the target object within the first time period is obtained from relevant platforms (such as e-commerce platforms, social media, etc.). The obtained review data is preprocessed, including steps such as deduplication and cleaning, to ensure the accuracy and effectiveness of the data.

[0077] S102. Determine a target review data set from the review data set according to a target review tag.

[0078] In this step, a target review data set is determined from the review data set according to a target review tag, where the review tags of the review data in the target review data set are target review tags.

[0079] Specifically, the target comment dataset can be filtered from the comment dataset according to the target comment tags. Among them, the comment data in the target comment dataset have the same comment tags, that is, they all belong to the same category or theme. Among them, for the preset target comment tags, they can be customized according to the needs of the enterprise, such as satisfaction levels (very satisfied, satisfied, average, dissatisfied, very dissatisfied), user attributes (age, gender, region, etc.), and the number of single-customer comments. Traverse the comment dataset, match the comment tags of the comment data with the target comment tags, and filter out the eligible comment data to form the target comment dataset.

[0080] S103. Generate prompt information according to the comment texts of each comment data in the target comment dataset.

[0081] In this step, generate prompt information according to the comment texts of each comment data in the target comment dataset. The prompt information includes a prompt statement and the text to be processed.

[0082] Specifically, prompt information can be generated according to the comment texts of each comment data in the target comment dataset. Among them, the prompt information includes two parts: a prompt statement and the text to be processed. The prompt statement is used to indicate how the AIGC engine generates the reference comment text, while the text to be processed contains the key information that needs to be processed by the AIGC engine.

[0083] In a possible implementation, it can be to extract keywords from the review texts in the target review dataset using a preset keyword database. The keyword database contains a series of keywords related to the target object and their weight factors. Generate a target review keyword vector based on the extracted keywords, with each target review data corresponding to a keyword vector. Generate a target review keyword matrix based on the target review keyword vectors corresponding to each target review data. The number of rows of the matrix can be determined according to the dimension of the keyword vector. If the number of keywords in a certain keyword vector is insufficient, it is filled with a preset value. Traverse the target review keyword matrix, and add the target review keywords whose occurrence times are greater than the preset number of times to the text to be processed. These keywords represent the mainstream views or common problems in the review data. Further traverse the target review keyword matrix, calculate the correlation eigenvalue between keywords, and filter out the associated target review keyword phrases whose keyword correlation eigenvalues are greater than the preset correlation threshold. The associated keyword phrases can reveal the comprehensive evaluation of reviewers on various aspects such as product features and usage experience. Update the keyword correlation eigenvalue using the weight factor in the preset keyword database to more accurately evaluate the association strength between keywords. Add the filtered associated target review keyword phrases to the text to be processed as well. Generate a prompt statement based on the text to be processed, instructing the AIGC engine to generate a reference review text according to the keywords and keyword phrases in the text to be processed.

[0084] S104. Input the prompt information into a preset AIGC engine to output the reference review text corresponding to the target review label.

[0085] Finally, the generated prompt information can be input into a preset AIGC engine to output the reference review text corresponding to the target review label. The AIGC engine generates a high-quality reference review text according to the keywords, keyword phrases, and prompt statement in the prompt information. An appropriate AIGC engine can be selected, such as advanced natural language processing models like GPT and BERT. Input the generated prompt information into the AIGC engine, and the AIGC engine performs text generation according to the keywords, keyword phrases, and prompt statement in the prompt information to output the reference review text. Further, post-processing can be performed on the generated reference review text, such as grammar checking and spelling correction steps, to ensure the accuracy and readability of the text.

[0086] In this embodiment, by obtaining the comment data set of the target object within the first time period, then, determining the target comment data set from the comment data set according to the target comment tag, and then generating a prompt message based on the comment texts of each comment data in the target comment data set, and inputting the prompt message into a preset AIGC engine to output the reference comment text corresponding to the target comment tag, wherein the prompt message not only includes a prompt statement for instructing the AIGC engine to generate the reference comment text, but also includes the text to be processed, which consists of keywords and keyword phrases and is directly related to the user's core concerns. This intelligent way of generating the prompt message helps the AIGC engine to more accurately understand the user's intention and generate high-quality reference comment texts.

[0087] Figure 2 is a schematic flowchart of an AI-based text processing method shown by another exemplary embodiment of the present application. As Figure 2 shown, the method provided in this embodiment includes:

[0088] S201. Obtain the comment data set of the target object within the first time period.

[0089] In this step, obtain the comment data set of the target object within the first time period. The comment data set includes the comment data made by different accounts on the target object within the first time period, and the comment data includes a comment tag and a comment text.

[0090] In a possible application scenario, the target comment tag is used to associate one or more of a target satisfaction level, target user attributes, and the number of single-customer comments, where the number of single-customer comments is the number of comments output by the same account before the end node of the first time period.

[0091] Specifically, obtaining the comment data set of the target object within the first time period is an act based on the legal authorization of the data publisher, and the publisher can be the merchant itself, other merchants, or users, etc. The comment data set contains all the comment data made by different accounts on the target object within the first time period. These comment data include two parts: a comment tag and a comment text. The comment tag is usually used to identify the category or theme of the comment, while the comment text is the specific evaluation content of the user. For example, a target object can be set, such as a certain e-commerce product. Determine the first time period, such as the past week, month, etc. Through web crawler technology or API interfaces, etc., obtain all the comment data of the target object within the first time period from relevant platforms (such as e-commerce platforms, social media, etc.). Preprocess the obtained comment data, including steps such as deduplication and cleaning, to ensure the accuracy and effectiveness of the data.

[0092] S202. Determine the target comment data set from the comment data set according to the target comment tag.

[0093] In this step, a target comment dataset is determined from the comment dataset according to the target comment tag, where the comment tag of the comment data in the target comment dataset is the target comment tag.

[0094] Specifically, the target comment dataset can be filtered out from the comment dataset according to the target comment tag. Among them, the comment data in the target comment dataset has the same comment tag, that is, they all belong to the same category or theme. Among them, for the preset target comment tag, it can be customized according to the needs of the enterprise, such as satisfaction level (very satisfied, satisfied, average, dissatisfied, very dissatisfied), user attributes (age, gender, region, etc.), and the number of single-customer comments. Traverse the comment dataset, match the comment tag of the comment data with the target comment tag, and filter out the qualified comment data to form the target comment dataset.

[0095] S203. Utilize the preset keyword database and process the target comment dataset.

[0096] In this step, the preset keyword database can be utilized and the target comment dataset is used to extract keywords from each comment text in it to generate the target comment keyword vector corresponding to each target comment data , where is the th target comment data in the target comment dataset , and is the target comment keyword vector corresponding to

[0097] Specifically, a keyword database related to the field needs to be established. This database should contain common and representative vocabulary in the field, as well as their synonyms, near-synonyms, etc., to ensure the accuracy and comprehensiveness of keyword extraction. Then, advanced natural language processing techniques, such as TF-IDF (Term Frequency-Inverse Document Frequency), TextRank, or existing keyword extraction models based on deep learning, are used to extract keywords from each comment text in the target comment dataset. For each comment text, the extracted keywords will be organized into a vector, where each element of the vector represents a keyword, and the value of the element can be the weight of the keyword (such as the TF-IDF value) or a simple existence identifier (0 or 1).

[0098] S204. Generate a target comment keyword matrix according to the target comment keyword vectors corresponding to each target comment data.

[0099] In this step, a target comment keyword matrix can be generated based on the target comment keyword vectors corresponding to each piece of target comment data to generate a target comment keyword matrix , where is the number of target comment keyword vectors in the target comment keyword matrix .

[0100] Specifically, based on the target comment keyword vectors generated in the previous step, these vectors can be arranged in order to form a matrix, where each column of the matrix represents the keyword vector of a comment text. Optionally, before constructing the matrix, the keywords may need to be further processed, such as removing duplicates, merging synonyms, filtering out irrelevant words, etc., to ensure the accuracy and effectiveness of the matrix.

[0101] In a possible implementation, the number of rows of the target comment keyword matrix can be determined according to the keyword vector with the highest dimension in the target comment keyword vectors corresponding to each piece of target comment data to generate a target comment keyword matrix : where, is the th keyword in the th target comment keyword vector in the target comment keyword matrix. If the number of keywords in the target comment keyword vector

[0102]

[0103] is less than where is the target comment keyword matrix in the th target comment keyword vector in the th keyword. If the number of keywords in the target comment keyword vector is less than then the elements after will be configured with preset values.

[0104] S205. Generate a prompt message according to the target comment keyword matrix.

[0105] In this step, a prompt message is generated according to the target comment keyword matrix where the text to be processed includes the keywords in the target comment keyword matrix and the prompt statement is used to instruct a preset AIGC engine to generate a reference comment text according to the text to be processed.

[0106] Furthermore, traverse each element in the target comment keyword matrix and add the target comment keywords whose occurrence times are greater than the preset times to the text to be processed to generate a prompt message, where the prompt statement is used to instruct a preset AIGC engine to generate a reference comment text according to all the target comment keywords in the text to be processed.​

[0107] Specifically, select representative keywords from the target comment keyword matrix to form the text to be processed. These keywords can be high-frequency words, high-weight words, or words closely related to a specific theme. According to the content and purpose of the text to be processed, design one or more prompt statements. These statements should be able to instruct the AIGC engine on how to generate reference comment texts based on the text to be processed. For example: "Please generate a comment on the product experience based on the following keywords: {keyword list}." Combine the text to be processed and the prompt statements into a complete prompt message. This message will be input into the AIGC engine as the basis for generating reference comment texts.

[0108] Suppose we have a comment dataset on a certain mobile phone. Through the above steps, we can generate the following prompt message:

[0109] Text to be processed: {"The screen is clear", "Long battery life", "Good photo-taking effect", "High cost performance"}

[0110] Prompt statement: "Please generate a positive comment on a certain mobile phone based on the following keywords."

[0111] Complete prompt message: "Please generate a positive comment on a certain mobile phone based on the following keywords: The screen is clear, Long battery life, Good photo-taking effect, High cost performance."

[0112] This prompt message will be input into the AIGC engine, and the engine will generate a reference comment text that meets the requirements based on these keywords and instructions.

[0113] Furthermore, it can also be to traverse each element in the target comment keyword matrix and add the associated target comment keyword phrases whose keyword association feature values are greater than the preset association feature threshold to the text to be processed. The associated target comment keyword phrases include the first target comment keyword and the second target comment keyword. The first target comment keyword and the second target comment keyword The keyword association feature value is determined according to formula (1). Formula (1) is:

[0114] Formula (1)

[0115] where is the number of times the first target comment keyword and the second target comment keyword co-occur in the same target comment keyword vector in the target comment keyword matrix , is the first target comment keyword in the target comment keyword matrix the number of occurrences, is the second target comment keyword in the target comment keyword matrix the number of occurrences.

[0116] In the above solution, by calculating the correlation eigenvalue between keywords and screening out keyword phrases with high correlation, the semantic relationship in the comment data can be understood more deeply. Associated keyword phrases often can reveal the comprehensive evaluation of reviewers on various aspects such as product features and usage experiences. Incorporating them into the text to be processed helps the AIGC engine generate more rich, accurate, and insightful reference review texts. This ability to deepen the semantic understanding of the text is crucial for improving the quality of content generation and can provide more comprehensive and objective market feedback for e-commerce products. Among them, the screening of associated keyword phrases not only considers the occurrence frequency of individual keywords but also takes into account the co-occurrence relationship between keywords. This comprehensive consideration makes the generated prompt information more relevant and coherent. When the AIGC engine generates reference review texts according to the prompt information, it can more naturally integrate these associated keyword phrases, making the text content more fluent and well-organized. This improvement in relevance and coherence helps to enhance the readability and pertinence of the reference review texts. And, by introducing the calculation of keyword correlation eigenvalues, the refined processing and analysis of comment data are realized. Compared with the screening method that only relies on the occurrence frequency of keywords, this method can more accurately capture the subtle differences and potential associations in the comment data, making the generated prompt information more accurately reflect the true intentions and concerns of reviewers and providing more valuable input data for the AIGC engine.

[0117] Furthermore, it can also be to use formula (2) and update the keyword correlation eigenvalue according to the preset weight factor of each keyword in the preset keyword database The formula (2) is:

[0118] Formula (2)

[0119] wherein, is the first target comment keyword and the second target comment keyword in the th target comment keyword vector the keyword weight value, wherein, if the first target comment keyword and the second target comment keyword appear simultaneously in then , if the first target comment keyword and the second target comment keyword do not appear simultaneously in , then , is the preset weight factor of the first target comment keyword in the preset keyword database, is the preset weight factor of the second target comment keyword in the preset keyword database, is the preset weight factor of the th keyword in the th target comment keyword vector in the preset keyword database, is the number of columns of the target comment keyword matrix , is the number of rows of the target comment keyword matrix .

[0120] In the above solution, by introducing the weight factors in the preset keyword database, the correlation strength between keywords can be evaluated more accurately. The weight factors are usually determined based on the importance of keywords in a specific field or context. Therefore, updating the keyword correlation eigenvalues using these factors can make the correlation evaluation more in line with the actual context and domain knowledge. This improvement in accuracy helps to generate prompt information that is closer to the true comment intention, thereby improving the quality of the reference comment text generated by the AIGC engine. The keyword correlation eigenvalues adjusted by the weight factors can better reflect the importance of keywords in the comment data and their relationships with each other. When generating prompt information, incorporating these keyword phrases with high correlation and importance into the text to be processed helps the AIGC engine generate more targeted and in-depth reference comment text.

[0121] Among them, formula (2) finely adjusts the keyword association eigenvalue by introducing the weight factor in the preset keyword database. This adjustment process not only considers the co-occurrence times of keywords in the comments but also combines the importance of keywords in a specific field or context, that is, the weight factor. This comprehensive consideration makes the calculation of the keyword association eigenvalue more accurate and comprehensive, and can better reflect the actual association strength between keywords. The keyword association eigenvalue adjusted by formula (2) can more accurately guide the AIGC engine to select keyword phrases with higher relevance and importance when generating text. These keyword phrases can often more accurately reflect the true intentions and concerns of the reviewers, thereby improving the pertinence and relevance of the generated text. For e-commerce products, this means that the generated reference review text can more accurately reflect users' evaluations of product features, usage experiences, etc., providing more valuable market feedback for merchants.

[0122] S206. Input the prompt information into the preset AIGC engine to output the reference review text corresponding to the target review label.

[0123] Finally, the generated prompt information can be input into the preset AIGC engine to output the reference review text corresponding to the target review label. The AIGC engine generates high-quality reference review text based on the keywords, keyword phrases, and prompt statements in the prompt information. Appropriate AIGC engines can be selected, such as advanced natural language processing models like GPT and BERT. Input the generated prompt information into the AIGC engine, and the AIGC engine generates text according to the keywords, keyword phrases, and prompt statements in the prompt information to output the reference review text. Further, post-processing can be performed on the generated reference review text, such as grammar checking, spelling proofreading, etc., to ensure the accuracy and readability of the text.

[0124] Based on the above embodiments, a monitoring instruction of the target object can also be obtained. The monitoring instruction is used to indicate obtaining another reference review text corresponding to another target object within the first time period, where the other target object is the benchmark object of the target object. Then, at preset time intervals, a monitoring report is generated and output. The monitoring report includes the reference review text and the other reference review text.

[0125] Specifically, the system needs to receive monitoring instructions input by the user or administrator. This instruction clarifies the monitoring target, scope, and time frame, especially specifying another target object to be monitored (i.e., the benchmark object) and the first time period required for monitoring. The acquisition of monitoring instructions can be achieved through methods such as a graphical user interface (GUI), command-line interface (CLI), or application programming interface (API), ensuring flexibility and ease of use. For example, the user can select the "Add Benchmark Object Monitoring" function through the system's monitoring settings interface, and then input the identification information of the benchmark object (such as name, ID, etc.) and the time period (the first time period) they wish to monitor. The system then records and parses these instructions in preparation for subsequent operations.

[0126] After receiving the monitoring instructions, the system starts the monitoring program to capture relevant review texts in real-time or at regular intervals for the target object and its benchmark object within the first time period. This process may involve various technical means such as web crawler technology, API calls, or database queries to ensure that all relevant review data can be comprehensively and accurately collected.

[0127] For the acquisition of review texts for the target object and the benchmark object, the system needs to design an intelligent recognition mechanism to distinguish and store their review data separately. This may include methods such as keyword filtering, user identity recognition, or content context analysis to ensure the accuracy and integrity of the data.

[0128] The system automatically sorts and analyzes the collected review data at preset time intervals (such as daily, weekly, or monthly). The analysis content may include but is not limited to the number of reviews, sentiment tendency, keyword frequency, hot topics, etc., aiming to provide users with a comprehensive overview of the public opinion environment of the target object and its benchmark object during the specified time period.

[0129] Based on the above analysis, the system generates a monitoring report. The monitoring report adopts an intuitive and easy-to-read format (such as charts, lists, summaries, etc.) to display the reference review texts of the target object and the benchmark object, as well as the analysis results based on these texts. The report should also include a comparative analysis section highlighting the differences, similarities, or potential trends between the two, providing strong support for user decision-making.

[0130] Finally, the system outputs the generated monitoring report in the manner specified by the user. This can be sent via email, displayed in the system's internal message center, directly downloaded as a PDF or Excel file, or pushed to a third-party application through an API, etc. Ensure that users can conveniently obtain and view the report content and make timely responses or adjust strategies.

[0131] In the above solution, by obtaining the monitoring instructions for the target object and its benchmark object, it is possible to collect the reference review texts of both in a specific period in real time or regularly. These review texts not only reflect the direct feedback of consumers on the target object and its benchmark product, but also imply key information such as market trends and consumer preferences. Generating and outputting a monitoring report at a preset time interval enables the enterprise to quickly obtain the latest market dynamics and consumer feedback. This real-time monitoring and reporting mechanism helps the enterprise quickly respond to market changes, adjust product strategies, marketing strategies or customer service strategies to meet the changing market demands.

[0132] Figure 3 It is a schematic structural diagram of an AI-based text processing device shown according to an exemplary embodiment of the present application. As Figure 3 shown, the AI-based text processing device 300 provided in this embodiment includes:

[0133] An acquisition module 310, configured to acquire a comment data set of a target object within a first period, where the comment data set includes comment data made by different accounts on the target object within the first period, and the comment data includes a comment tag and a review text;

[0134] A processing module 320, configured to determine a target comment data set from the comment data set according to a target comment tag, where the comment tag of the comment data in the target comment data set is the target comment tag;

[0135] A generation module 330, configured to generate a prompt message according to the review texts of each comment data in the target comment data set, where the prompt message includes a prompt statement and a text to be processed;

[0136] An output module 340, configured to input the prompt message into a preset AIGC engine to output a reference review text corresponding to the target comment tag.

[0137] Optionally, the target object is an e-commerce product;

[0138] The target comment tag is used to associate one or more of a target satisfaction level, target user attributes, and the number of single-customer comments, where the number of single-customer comments is the number of comments output by the same account before the end node of the first period.

[0139] Optionally, the generation module 330 is specifically configured to:

[0140] Utilize a preset keyword database and extract keywords from each review text in the target comment data set to generate a target comment keyword vector corresponding to each target comment data , where, is the th target comment data in ; is the target comment keyword vector corresponding to

[0141] According to the target comment keyword vectors corresponding to each target comment data generate a target comment keyword matrix ;

[0142] According to the target comment keyword matrix generate the prompt information, where the text to be processed includes the keywords in the target comment keyword matrix The prompt statement is used to instruct the preset AIGC engine to generate the reference comment text according to the text to be processed.

[0143] Optionally, the generating module 330 is specifically configured to:

[0144] According to the target comment keyword vectors corresponding to each target comment data determine the number of rows of the target comment keyword matrix from the keyword vector with the highest dimension in to generate the target comment keyword matrix :

[0145]

[0146] where is the th keyword in the th target comment keyword vector in the If the number of keywords in the target comment keyword vector is less than , then configure the elements after to a preset value;

[0147] Traverse each element in the target comment keyword matrix and add the target comment keywords whose occurrence times are greater than the preset times to the text to be processed to generate the prompt information, where the prompt statement is used to instruct the preset AIGC engine to generate the reference comment text according to all the target comment keywords in the text to be processed.

[0148] Optionally, the generating module 330 is further specifically configured to:

[0149] Traverse each element in the target comment keyword matrix and add the associated target comment keyword phrase with a keyword association eigenvalue greater than the preset association feature threshold to the text to be processed. The associated target comment keyword phrase includes a first target comment keyword and a second target comment keyword.

[0150] Optionally, the generating module 330 is further specifically configured to:

[0151] Update the keyword association eigenvalue according to the preset weight factor of each keyword in the preset keyword database.

[0152] Optionally, the obtaining module 310 is further configured to obtain a monitoring instruction of the target object, where the monitoring instruction is used to indicate obtaining another reference comment text corresponding to another target object within the first time period, and the another target object is a benchmark object of the target object;

[0153] The output module is further configured to generate and output a monitoring report at a preset time interval, where the monitoring report includes the reference comment text and the another reference comment text.

[0154] Figure 4 It is a schematic structural diagram of an electronic device shown by an example embodiment of the present application. As Figure 4 shown, an electronic device 400 provided in this embodiment includes: a processor 401 and a memory 402; where:

[0155] The memory 402 is used to store a computer program, and this memory can also be flash (flash memory).

[0156] The processor 401 is configured to execute the execution instruction stored in the memory to implement each step in the above method. Specifically, reference can be made to the relevant descriptions in the foregoing method embodiments.

[0157] Optionally, the memory 402 can be either independent or integrated with the processor 401.

[0158] When the memory 402 is a device independent of the processor 401, the electronic device 400 may further include:

[0159] A bus 403 for connecting the memory 402 and the processor 401.

[0160] This embodiment also provides a readable storage medium, where a computer program is stored in the readable storage medium. When at least one processor of the electronic device executes the computer program, the electronic device executes the methods provided by the above various embodiments.

[0161] This embodiment also provides a program product, which includes a computer program stored in a readable storage medium. At least one processor of the electronic device can read the computer program from the readable storage medium, and the execution of the computer program by at least one processor enables the electronic device to implement the methods provided by the above various embodiments.

[0162] Those skilled in the art will readily conceive of other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any variations, uses, or adaptations of the present application, which follow the general principles of the present application and include known common knowledge or conventional technical means in the technical field not disclosed in the present application. The specification and embodiments are only regarded as exemplary, and the true scope and spirit of the present application are pointed out by the claims.

[0163] It should be understood that the present application is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present application is only limited by the appended claims.

Claims

1. An AI-based text processing method, characterized in that, including: Obtain a comment dataset of a target object within a first time period, where the comment dataset includes comment data made by different accounts on the target object within the first time period, and the comment data includes a comment tag and a comment text; Determine a target comment dataset from the comment dataset according to a target comment tag, where the comment tag of the comment data in the target comment dataset is the target comment tag; Generate a prompt message according to the comment texts of the respective comment data in the target comment dataset, where the prompt message includes a prompt statement and a text to be processed; including: Using a preset keyword database and performing keyword extraction on each review text in the target review dataset to generate a target review keyword vector corresponding to each target review data , where is the th target review data in the target review dataset , and is the target review keyword vector corresponding to ; According to the target comment keyword vectors corresponding to each piece of target comment data Determine the target comment keyword matrix based on the keyword vector with the highest dimension in The number of rows to generate the target comment keyword matrix : ; Among them, is the th target comment keyword vector in the th keyword in the target comment keyword vector If the number of keywords is less than , then configure the elements after as preset values; According to the target comment keyword matrix Generate the prompt information, where the text to be processed includes the keywords in the target comment keyword matrix The prompt statement is used to instruct a preset AIGC engine to generate a reference comment text according to the text to be processed; it includes: Traverse each element in the target comment keyword matrix and add the target comment keywords whose occurrence times are greater than the preset times to the text to be processed to generate the prompt information, where the prompt statement is used to instruct the preset AIGC engine to generate the reference comment text according to all the target comment keywords in the text to be processed; Traverse each element in the target comment keyword matrix and add the associated target comment keyword phrase with the keyword association eigenvalue greater than the preset association feature threshold to the text to be processed. The associated target comment keyword phrase includes a first target comment keyword and a second target comment keyword. The first target comment keyword and the second target comment keyword of the keyword association eigenvalue is determined according to Formula 1. The Formula 1 is: ; wherein, is the first target comment keyword and the second target comment keyword co-occur in the same target comment keyword vector of the target comment keyword matrix the number of times; is the first target comment keyword appears in the target comment keyword matrix the number of times; is the second target comment keyword appears in the target comment keyword matrix the number of times; Input the prompt message into a preset AIGC engine to output a reference comment text corresponding to the target comment tag.

2. The AI-based text processing method according to claim 1, wherein The target object is an e-commerce product; The target comment tag is used to associate one or more of a target satisfaction level, target user attributes, and the number of single-customer comments, where the number of single-customer comments is the number of comments output by the same account before the end node of the first time period.

3. The AI-based text processing method according to claim 1, wherein Traversing each element in the target comment keyword matrix and adding the associated target comment keyword phrase with the keyword association eigenvalue greater than the preset association feature threshold to the text to be processed, further comprising: Update the keyword association eigenvalue according to the preset weight factor of each keyword in the preset keyword database.

4. The AI-based text processing method according to any one of claims 1-3, characterized in that, It further includes: Obtain a monitoring instruction for the target object, where the monitoring instruction is used to indicate obtaining another reference comment text corresponding to another target object within the first time period, and the another target object is a benchmark object of the target object; Generate and output a monitoring report at preset time intervals, where the monitoring report includes the reference comment text and the another reference comment text.

5. An AI-based text processing device, characterized in that, including: An obtaining module, configured to obtain a comment dataset of a target object within a first time period, where the comment dataset includes comment data made by different accounts on the target object within the first time period, and the comment data includes a comment tag and a comment text; A processing module, configured to determine a target comment dataset from the comment dataset according to a target comment tag, where the comment tag of the comment data in the target comment dataset is the target comment tag; A generating module, configured to generate a prompt message according to the comment texts of the respective comment data in the target comment dataset, where the prompt message includes a prompt statement and a text to be processed; The generating module is specifically configured to: Using a preset keyword database, and performing keyword extraction on each review text in the target review dataset to generate a target review keyword vector corresponding to each target review data , where is the th target review data in the target review dataset , is the target review keyword vector corresponding to Determine the target comment keyword matrix according to the keyword vectors of the target comments corresponding to each piece of target comment data Determine the target comment keyword matrix based on the keyword vector with the highest dimension among them The number of rows to generate the target comment keyword matrix : ; Among them, is the th target comment keyword vector in the target comment keyword matrix and is the th keyword. If the number of keywords in the target comment keyword vector is less than , then the elements after are configured with preset values; According to the target comment keyword matrix Generate the prompt information, where the text to be processed includes the keywords in the target comment keyword matrix The prompt statement is used to instruct a preset AIGC engine to generate a reference review text according to the text to be processed; including: Traverse each element in the target comment keyword matrix and add the target comment keywords whose occurrence times are greater than the preset times to the text to be processed to generate the prompt information, where the prompt statement is used to instruct the preset AIGC engine to generate the reference comment text according to all the target comment keywords in the text to be processed; Traverse each element in the target comment keyword matrix and add the associated target comment keyword phrase with a keyword association eigenvalue greater than the preset association feature threshold to the text to be processed. The associated target comment keyword phrase includes a first target comment keyword and a second target comment keyword. The first target comment keyword and the second target comment keyword of the keyword association eigenvalue is determined according to Formula 1. The Formula 1 is: ; wherein, is the first target comment keyword and the second target comment keyword co-occur in the same target comment keyword vector of the target comment keyword matrix the number of times; is the first target comment keyword appears in the target comment keyword matrix the number of times; is the second target comment keyword appears in the target comment keyword matrix the number of times; An output module, configured to input the prompt message into a preset AIGC engine to output a reference comment text corresponding to the target comment tag.

6. An electronic device, characterized in that, including: A processor; and, A memory, configured to store executable instructions of the processor; wherein the processor is configured to execute the method according to any one of claims 1 to 4 by executing the executable instructions.

7. A computer-readable storage medium, characterized in that, Computer-executable instructions are stored in the computer-readable storage medium, and when the computer-executable instructions are executed by a processor, they are used to implement the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Image description text generation method and device based on AIGC, and storage medium

    CN117746143A

  • Clothing design method and device based on intelligent interaction engine, equipment and medium

    CN118051969A