An intelligent service platform for government complaints based on a large language model

Using a large language model to analyze the keyword importance and content similarity of government complaint texts solves the problem in the existing technology of being unable to accurately assess the importance of government complaint texts, enables timely processing of important complaint documents, and improves government complaint services quality.

CN118394891BActive Publication Date: 2024-10-29CHINA UNICOM (JIANGSU) IND INTERNET CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410854474.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-29
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

Existing technology cannot accurately assess the importance of government complaint texts, resulting in the inability to process some important complaint documents in a timely manner and reducing the quality of government complaint services.

Method used

A government complaint intelligent service platform based on a large language model is used to obtain complaint text and timestamps through the data acquisition module. The analysis module extracts the phrase importance and dynamic importance of keywords, and the adjustment module adjusts the initial importance based on content similarity and timestamps. , the processing module performs priority processing according to the real importance.

Benefits of technology

It improves the accurate assessment and processing of the importance of complaint texts, ensures timely processing of important complaint documents, and improves the quality of government complaint services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118394891B_ABST
    Figure CN118394891B_ABST
Patent Text Reader

Abstract

This invention relates to the field of government complaint management, specifically to an intelligent government complaint service platform based on a large language model. The platform first acquires multiple complaint texts and their timestamps from a government service platform within a preset time period. It then extracts different keywords from the target texts and analyzes the importance of each keyword's appearance in the text. Based on the dynamic importance of each keyword's appearance, the platform obtains the initial text importance of the target text. This initial text importance is further adjusted to obtain the true text importance. Based on this true text importance, all complaint texts are processed according to different priorities. This invention enables timely processing of some more important complaint texts, improving the service quality of government complaints.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of government affairs complaint management, and in particular to a government affairs complaint intelligent service platform based on a large language model. Background Art

[0002] Large language models, that is, large language models, are mainly used to understand and process human language. In terms of government complaint services, large language models can assist relevant personnel in improving the efficiency of handling complaint documents. At the same time, they can also assist relevant personnel in timely processing of some important complaint documents among a large number of complaint documents, so as to make timely feedback on the demands of the masses.

[0003] In the related technology, the importance of complaint texts is usually analyzed based on the frequency of occurrence of each keyword in the complaint text, so as to realize the processing of each complaint text. However, due to the complex human language environment, there are differences in the position distribution of different keywords in the complaint text, and there is a certain correlation between the keywords appearing in the complaint text. As a result, the existing methods cannot make an accurate assessment of the importance of each complaint text, which in turn makes it impossible to process some important complaint texts in a timely manner, thereby reducing the service quality of government complaints. Summary of the invention

[0004] In order to solve the technical problem that the existing methods cannot accurately evaluate the importance of each complaint text, which leads to the inability to timely process some important complaint files and reduces the service quality of government complaints, the purpose of the present invention is to provide a government complaint intelligent service platform based on a large language model. The technical solution adopted is as follows:

[0005] The present invention proposes an intelligent service platform for government affairs complaints based on a large language model, and the service platform includes:

[0006] The data acquisition module is used to obtain multiple complaint texts from the government service platform within a preset time period, as well as the timestamp of each complaint text; any complaint text is used as the target text, and the target text is subjected to natural language processing using a large language model to extract different keywords, wherein each keyword appears multiple times in the target text;

[0007] The analysis module is used to take any keyword as a target keyword, and obtain the phrase importance of the target keyword according to the frequency of the target keyword appearing in the target text and the position distribution of the target keyword in the target text; take the next keyword of the target keyword appearing each time in the target text as the reference keyword each time the target keyword appears; obtain the dynamic importance of the target keyword each time it appears in the target text according to the number of the same reference keywords, the number of words between the target keyword appearing each time in the target text and the corresponding reference keyword, and the phrase importance of the target keyword; obtain the initial text importance of the target text based on the dynamic importance of all keywords each time they appear in the target text;

[0008] An adjustment module, configured to adjust the initial text importance according to the number of identical keywords between the target text and other complaint texts other than the target text, and the timestamp of the target text, to obtain the real text importance of the target text;

[0009] A processing module is used to process all complaint texts according to different priorities based on the importance of the real texts.

[0010] Furthermore, obtaining the phrase importance of the target keyword according to the frequency of occurrence of the target keyword in the target text and the position distribution of the target keyword in the target text includes:

[0011] Use natural numbers to mark all keywords appearing in the target text in order from top to bottom and from left to right, and obtain the position number of each keyword appearing in the target text;

[0012] Obtaining the first importance of the target keyword according to the position sequence numbers of all target keywords appearing in the target text;

[0013] The target text is processed by using a large language model to obtain different sentences in the target text. The frequency of the sentences containing the target keyword in the target text is used as the second importance of the target keyword; the frequency of the target keyword in the target text is used as the third importance of the target keyword.

[0014] The first importance, the second importance and the third importance of the target keyword are integrated and normalized to obtain the phrase importance of the target keyword.

[0015] Further, obtaining the first importance of the target keyword according to the position serial numbers of all the target keywords appearing in the target text includes:

[0016] Analyzing the overall level of the position numbers of all target keywords appearing in the target text to obtain overall position parameters of the target keywords;

[0017] Negative correlation mapping is performed on the overall position parameter to obtain the first importance of the target keyword.

[0018] Furthermore, obtaining the dynamic importance of the target keyword each time it appears in the target text includes:

[0019] Among the reference keywords corresponding to all the target keywords appearing in the target text, the same reference keywords are divided into the same set to obtain different reference keyword sets; and the consistency parameter of the target keyword is obtained according to the number of reference keywords included in each of the reference keyword sets;

[0020] Combining the phrase importance and the consistency parameter of the target keyword to obtain the comprehensive importance of the target keyword;

[0021] The number of words between the target keyword and the corresponding reference keyword each time it appears in the target text is used as the distance parameter between the target keyword and the corresponding reference keyword each time it appears; according to the number of reference keywords included in the reference keyword set where the reference keyword is located each time the target keyword appears, and the distance parameter, a dynamic weight parameter of the target keyword each time it appears in the target text is obtained;

[0022] Based on the dynamic weight parameter, the comprehensive importance is adjusted to obtain the dynamic importance of the target keyword each time it appears in the target text.

[0023] Furthermore, obtaining the consistency parameter of the target keyword according to the number of reference keywords included in each reference keyword set includes:

[0024] Analyzing the proportion of the number of reference keywords included in each reference keyword set to the number of reference keywords included in all reference keyword sets to obtain a correlation parameter of each reference keyword set;

[0025] The maximum value of the correlation parameters of all reference keyword sets is used as the consistency parameter of the target keyword.

[0026] Furthermore, the step of obtaining the dynamic weight parameter of the target keyword each time it appears in the target text includes:

[0027] Performing negative correlation mapping on the distance parameter between each occurrence of the target keyword and the corresponding reference keyword to obtain a connection parameter between each occurrence of the target keyword and the corresponding reference keyword;

[0028] The number of reference keywords included in the reference keyword set and the connection parameter are integrated to obtain a dynamic weight parameter of the target keyword each time it appears in the target text.

[0029] Further, the obtaining of the initial text importance of the target text based on the dynamic importance of all keywords each time they appear in the target text includes:

[0030] The dynamic importance of all keywords each time they appear in the target text is integrated to obtain the initial text importance of the target text.

[0031] Furthermore, obtaining the real text importance of the target text includes:

[0032] According to the number of identical keywords between the target text and each other complaint text except the target text, obtain the content similarity between each other complaint text and the target text;

[0033] Selecting similar complaint texts of the target text from all other complaint texts, wherein the content similarity between the similar complaint texts and the target text is greater than a preset threshold;

[0034] According to the difference between the timestamp of the target text and the current time, the waiting time of the target text is obtained;

[0035] The number of similar complaint texts of the target text and the waiting time of the target text are integrated and normalized to obtain adjustment parameters of the target text;

[0036] Based on the adjustment parameter, the initial text importance of the target text is weighted to obtain the real text importance of the target text.

[0037] Furthermore, obtaining the content similarity between each other complaint text and the target text according to the number of identical keywords between the target text and each other complaint text except the target text includes:

[0038] The set of keywords extracted from each complaint text is used as the keyword set of each complaint text;

[0039] The Jaccard similarity coefficient of the keyword set between the target text and each other complaint text except the target text is used as the content similarity between the target text and each other complaint text.

[0040] Furthermore, based on the importance of the real text, processing all complaint texts according to different priorities includes:

[0041] Each complaint text is distributed to relevant personnel for processing in descending order of importance of the true text.

[0042] The present invention has the following beneficial effects:

[0043] The present invention takes into account that the existing methods are unable to make an accurate assessment of the importance of each complaint text, which in turn leads to the inability to promptly process some important complaint files, reducing the service quality of government complaints. Therefore, the present invention first obtains multiple complaint texts of the government platform within a preset time period, as well as the timestamp of each complaint text, and uses a large language model to extract the keywords of the target text. Taking into account the frequency of occurrence of keywords in the complaint text and the position distribution of keywords in the complaint text, both of which are influencing factors for the importance assessment of the complaint text, the present invention reflects the importance of the target keyword in the target text through phrase importance. Taking into account that there is a certain correlation between the keywords appearing in the more important complaint texts, the next keyword of each occurrence of the target keyword in the target text can be used as a reference keyword each time the target keyword appears. Taking into account that the fewer the number of words between the target keyword and the corresponding reference keyword each time it appears in the target text, the stronger the connection or correlation between the two, and then the importance of the target keyword each time it appears in the target text is reflected by the obtained dynamic importance, thereby improving the accuracy of the subsequent importance assessment of the target text, and preliminarily reflecting the importance of the target text by obtaining the initial text importance. Considering that the longer the target text stays in the platform and the more other complaint texts with similar content to the target text, the more timely processing is required for the target text, the initial text importance can be further adjusted to achieve an accurate assessment of the importance of the complaint text, and through the obtained real text importance, all complaint texts can be processed according to different priorities, so that important complaint documents can be processed in a timely manner and the service quality of government complaints can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0045] Figure 1 A block diagram of a government affairs complaint intelligent service platform based on a large language model provided by an embodiment of the present invention;

[0046] Figure 2A flow chart of a method for obtaining the importance of a target keyword phrase provided by an embodiment of the present invention;

[0047] Figure 3 A flow chart of a method for obtaining the dynamic importance of a target keyword each time it appears in a target text provided by an embodiment of the present invention;

[0048] Figure 4 A flow chart of a method for obtaining the real text importance of a target text provided by one embodiment of the present invention. DETAILED DESCRIPTION

[0049] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation method, structure, features and effects of a government complaint intelligent service platform based on a large language model proposed by the present invention are described in detail below in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0050] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0051] The following is a detailed description of a specific scheme of an intelligent service platform for government complaints based on a large language model provided by the present invention in conjunction with the accompanying drawings.

[0052] See also Figure 1 , which shows a block diagram of an intelligent service platform for government complaints based on a large language model provided by an embodiment of the present invention. The service platform includes: a data acquisition module 101, an analysis module 102, an adjustment module 103, and a processing module 104.

[0053] The data acquisition module 101 is used to obtain multiple complaint texts from the government service platform within a preset time period, as well as the timestamp of each complaint text; any complaint text is used as the target text, and the target text is subjected to natural language processing using a large language model to extract different keywords, wherein each keyword appears multiple times in the target text.

[0054] Large language models, such as ChatGPT, are mainly used to understand and process human language. In terms of government complaint services, large language models can assist relevant personnel in improving the efficiency of handling complaint documents. At the same time, they can also assist relevant personnel in timely handling of some important complaint documents among a large number of complaint documents, so as to provide timely feedback to the demands of the masses. In related technologies, the importance of each keyword is usually evaluated based on the frequency of occurrence of each keyword in the complaint text, and the importance of the complaint text is evaluated based on the importance of each keyword, thereby realizing the processing of each complaint text. In other words, the existing method for evaluating the importance of complaint text is a static method. Due to the complex human language environment, the same keyword contributes to the evaluation of the importance of the complaint text differently when it appears in different semantic environments. In addition, there are differences in the position distribution of different keywords in the complaint text, and there is a certain correlation between the keywords appearing in the complaint text, resulting in the inability to accurately evaluate the importance of each complaint text using the existing method, thereby resulting in the inability to timely handle some important complaint documents, thereby reducing the service quality of government complaints. Therefore, an embodiment of the present invention proposes a government complaint intelligent service platform based on a large language model to solve this problem.

[0055] The embodiment of the present invention first obtains multiple electronic documents about complaints from the government service platform within a preset time period, where the electronic documents about complaints can be collected through various channels, such as through emails, public accounts and official websites, etc. It should be noted that electronic documents may be stored in different file formats. In order to facilitate the subsequent processing of the large language model, the file format of all electronic documents about complaints needs to be converted into .txt text format to obtain multiple complaint texts. The conversion of file formats is a technical means well known to technicians in this field and will not be elaborated here.

[0056] At the same time, the government service platform must also record the timestamp of each complaint text. The timestamp of each complaint text indicates the time when the complaint text enters the government service platform.

[0057] It should be noted that due to the wide variety of content in complaint texts, some of which contain non-compliant demands. Therefore, the embodiments of the present invention can use the existing large language model to preliminarily screen the complaint texts, and screen out non-compliant complaints that are obviously inconsistent with real logic, have overly intense language, etc., and send them to the corresponding review department for direct processing by relevant personnel to ensure the efficiency and accuracy of the entire government service process, and also to improve the efficiency of the intelligent service platform.

[0058] In the subsequent steps of the embodiment of the present invention, it is necessary to analyze each complaint text. Therefore, any complaint text can be first used as the target text, and the large language model can be used to perform natural language processing on the target text to extract different keywords. The large language model can extract the keywords in the target text through the model's context understanding ability and self-attention mechanism, which will not be elaborated here. It should be noted that the keywords extracted from the target text are different from each other, and each keyword appears multiple times in the target text. That is to say, for a certain keyword, the keyword will appear in different positions in the target text.

[0059] The analysis module 102 is used to take any keyword as the target keyword, and obtain the phrase importance of the target keyword based on the frequency of the target keyword appearing in the target text and the position distribution of the target keyword in the target text; take the next keyword of the target keyword each time it appears in the target text as the reference keyword each time the target keyword appears; obtain the dynamic importance of the target keyword each time it appears in the target text based on the number of identical reference keywords, the number of words between the target keyword and the corresponding reference keyword each time it appears in the target text, and the phrase importance of the target keyword; obtain the initial text importance of the target text based on the dynamic importance of all keywords each time they appear in the target text.

[0060] Generally, different keywords contribute to the importance evaluation of complaint texts to different degrees. Therefore, the difference in importance between complaint texts is mainly reflected in the difference in the importance of keywords contained in each complaint text. In the existing methods, the importance of each keyword is usually only evaluated based on the frequency of each keyword appearing in the complaint text, and then the importance of the complaint text is analyzed by comprehensively analyzing the importance of each keyword. However, for special editing texts such as complaint texts, when editing the complaint content, the complainant always edits the more serious or more important complaint content at the front of the entire text in order to attract the attention and attention of relevant processing personnel, and edits the relatively less important complaint content at the back of the entire text. Therefore, the different position distributions of different keywords in the complaint text are different, which will also lead to differences in the importance of each keyword. Therefore, the embodiment of the present invention first takes any keyword as the target keyword, and analyzes the position distribution of the target keyword in the target text based on the frequency of the target keyword appearing in the target text. The importance of the target keyword in the target text is reflected by the acquired phrase importance, which provides a data basis for the subsequent dynamic analysis of the target keyword.

[0061] Preferably, in one embodiment of the present invention, the method for obtaining the phrase importance of the target keyword specifically includes:

[0062] See also Figure 2 , which shows a flow chart of a method for obtaining the phrase importance of a target keyword provided by an embodiment of the present invention.

[0063] Step S201: using natural numbers, all keywords appearing in the target text are marked in order from top to bottom and from left to right, to obtain the position number of each keyword appearing in the target text.

[0064] Since people usually edit texts in a top-to-bottom and left-to-right order, in order to analyze the position distribution of target keywords in the target text, the embodiment of the present invention first uses natural numbers to mark all keywords appearing in the target text in order from top to bottom and from left to right, and obtains the position number of each keyword appearing in the target text. The position number indicates the position of each keyword appearing in the target text relative to other keywords. The smaller the position number, the more forward the keyword appearing in the target text is relative to other keywords, thereby providing a data basis for the subsequent analysis of the position distribution of the target keywords in the target text.

[0065] Step S202: Obtain the first importance of the target keyword according to the position sequence numbers of all target keywords appearing in the target text.

[0066] Since the target text contains multiple target keywords, that is, the target keyword appears multiple times in the target text, the first importance of the target keyword can be obtained according to the position sequence number of all target keywords appearing in the target text. The larger the first importance, the more important the target keyword is in the target text.

[0067] Preferably, in one embodiment of the present invention, the method for obtaining the first importance of the target keyword specifically includes:

[0068] From the above analysis, it can be seen that the smaller the position number of each target keyword appearing in the target text, the closer the target keywords contained in the target text appear to the entire target text, and thus the more important the target keyword is. Therefore, we can first analyze the overall level of the position numbers of all target keywords appearing in the target text to obtain the overall position parameters of the target keywords, and then perform negative correlation mapping on the overall position parameters to obtain the first importance of the target keywords.

[0069] In an embodiment of the present invention, the average or median of the position numbers of all target keywords appearing in the target text can be used as the overall position parameter of the target keyword to achieve an overall level analysis of the position numbers of all target keywords appearing in the target text, which is not limited here.

[0070] The negative correlation mapping may be implemented using an inverse proportional function or other negative correlation functions, which is not limited here. The negative correlation mapping may be implemented in the same manner in subsequent steps of the embodiment of the present invention.

[0071] Step S203: Use the large language model to perform sentence processing on the target text to obtain different sentences in the target text, and use the frequency of the sentences containing the target keyword in the target text as the second importance of the target keyword; use the frequency of the target keyword in the target text as the third importance of the target keyword.

[0072] The more frequently the sentences containing the target keyword appear in the target text, the more important the target keyword is in the sentence editing process of the target text, and the more important the target keyword is in the target text. Therefore, the large language model can be used to sentence the target text to obtain different sentences in the target text. The frequency of occurrence of sentences containing the target keyword in the target text is used as the second importance of the target keyword. The greater the second importance, the more important the target keyword is in the target text. At the same time, the more frequently the target keyword appears in the target text, the more important the target keyword is in the target text. Therefore, the frequency of occurrence of the target keyword in the target text can be used as the third importance of the target keyword. The greater the third importance, the more important the target keyword is in the target text. Among them, sentence processing is the basic function of the existing large language model and will not be elaborated here.

[0073] The frequency of occurrence of sentences containing the target keyword in the target text is calculated as follows: the number of sentences containing the target keyword in the target text is used as the numerator, the number of all sentences in the target text is used as the denominator, and the ratio is used as the frequency of occurrence of sentences containing the target keyword in the target text.

[0074] The method for obtaining the frequency of the target keyword in the target text is: first, use the large language model to perform word segmentation on the target text, and statistically analyze the number of all phrases in the target text, use the number of all target keywords appearing in the target text as the numerator, and use the number of all phrases in the target text as the denominator, and use the ratio as the frequency of the target keyword in the target text. Among them, word segmentation is the basic function of the existing large language model and will not be elaborated here.

[0075] Step S204: The first importance, the second importance and the third importance of the target keyword are integrated and normalized to obtain the phrase importance of the target keyword.

[0076] From the above analysis, it can be seen that the greater the first importance, second importance and third importance of the target keyword, the more important the target keyword is in the target text. Therefore, the first importance, second importance and third importance of the target keyword can be integrated and normalized to obtain the phrase importance of the target keyword. The greater the phrase importance, the more important the target keyword is in the target text.

[0077] In the embodiment of the present invention, the first importance, the second importance and the third importance of the target keyword may be added or multiplied to achieve a combination of the three, which is not limited here.

[0078] In one embodiment of the present invention, the normalization processing can be specifically, for example, maximum and minimum value normalization processing, and the normalization in subsequent steps can all adopt maximum and minimum value normalization processing. In other embodiments of the present invention, other normalization methods can be selected according to the specific range of numerical values, which will not be described in detail.

[0079] The expression of the phrase importance of the target keyword can be specifically, for example, as follows:

[0080] Among them, A represents the phrase importance of the target keyword; Z represents the overall position parameter of the target keyword; B represents the number of all sentences in the target text; Indicates the number of sentences containing the target keyword in the target text; represents the number of target keywords appearing in the target text; C represents the number of all phrases in the target text; Indicates the first importance of the target keyword; Indicates the second importance of the target keyword; Indicates the third importance of the target keyword; Represents the normalization function.

[0081] Considering that the existing methods usually evaluate the importance of each keyword based on the frequency of its appearance in the complaint text, and then analyze the importance of the complaint text by comprehensively analyzing the importance of each keyword, it is a static analysis method. However, due to the complexity of the human language environment, the same keyword contributes differently to the importance evaluation of the complaint text when it appears in different semantic environments. Therefore, the embodiment of the present invention dynamically analyzes the importance of the target keyword, that is, analyzes the importance of the target keyword each time it appears in the target text, so as to improve the accuracy of the subsequent importance evaluation of the target text.

[0082] Since there is a certain correlation between the various keywords appearing in the more important complaint texts, that is, if the target keyword is more important in the target text, then the next keyword of the target keyword appearing each time in the complaint text is usually specific. For example, if the target keyword A appears in the target text each time, for the position where the target keyword A appears each time, if the next keyword that appears is always keyword B, that is, the appearance of target keyword A is always accompanied by the appearance of keyword B, it means that the importance of target keyword A is greater. Therefore, the next keyword of the target keyword that appears each time in the target text can be first used as the reference keyword for each time the target keyword appears, that is, each time the target keyword appears in the target text, it corresponds to a reference keyword, then the number of target keywords appearing in the target text is equal to the number of reference keywords. At this time, some reference keywords have the same situation. For example, the next keyword of the target keyword A when it appears for the first and second time in the target text is keyword B, then target keyword A in the The reference keywords corresponding to the first and second appearances are the same, both are keyword B, and among the reference keywords corresponding to all the target keywords appearing in the target text, the more identical reference keywords there are, the stronger the correlation between the target keyword and the reference keyword, and the more important the target keyword is in the target text. The more reference keywords corresponding to each appearance of the target keyword are identical to the reference keywords corresponding to the target keyword when it appears in other positions, the greater the importance of the target keyword when it appears this time. At the same time, the more words there are between the target keyword and the corresponding reference keyword each time it appears in the target text, the weaker the connection between the two. Therefore, the number of identical reference keywords and the number of words there are between the target keyword and the corresponding reference keyword each time it appears in the target text can be analyzed, and combined with the phrase importance of the target keyword obtained above, the importance of the target keyword each time it appears in the target text can be reflected through the obtained dynamic importance, providing a data basis for the subsequent evaluation of the importance of the target text.

[0083] It should be noted that, for the target keyword that appears for the last time in the target text, if there is no other keyword after its position, the previous keyword can be used as the reference keyword for the target keyword that appears for the last time.

[0084] Preferably, in one embodiment of the present invention, the method for obtaining the dynamic importance of the target keyword each time it appears in the target text specifically includes:

[0085] See also Figure 3 , which shows a flow chart of a method for obtaining the dynamic importance of a target keyword each time it appears in a target text, provided by an embodiment of the present invention.

[0086] Step S211: among the reference keywords corresponding to all target keywords appearing in the target text, the same reference keywords are divided into the same set to obtain different reference keyword sets; and the consistency parameter of the target keyword is obtained according to the number of reference keywords contained in each reference keyword set.

[0087] First, among the reference keywords corresponding to all target keywords appearing in the target text, the same reference keywords are divided into the same set to obtain different reference keyword sets. Among them, if there is a reference keyword that is different from all other reference keywords, the reference keyword is separately divided into the reference keyword set. At this time, the reference keyword set only contains the reference keyword. The more the number of identical reference keywords is, the stronger the correlation between the target keyword and the reference keyword is, and the more important the target keyword is in the target text. Therefore, the consistency parameter of the target keyword can be obtained according to the number of reference keywords contained in each reference keyword set. The larger the consistency parameter is, the greater the degree to which the same keyword appears each time the target keyword appears in the target text, and the greater the correlation between the target keyword and the keyword is, which further indicates that the target keyword is more important in the target text. Subsequently, the comprehensive importance of the target keyword can be calculated and analyzed based on the consistency parameter of the target keyword and the phrase importance obtained above.

[0088] Preferably, in one embodiment of the present invention, the method for obtaining the consistency parameter of the target keyword specifically includes:

[0089] The number of reference keywords included in each reference keyword set and the proportion of the number of reference keywords included in all reference keyword sets are analyzed to obtain the relevance parameter of each reference keyword set.

[0090] In one embodiment of the present invention, the number of reference keywords included in each reference keyword set is used as the numerator, the number of reference keywords included in all reference keyword sets is used as the denominator, and the ratio is used as the relevance parameter of each reference keyword set, wherein the number of reference keywords included in all reference keyword sets is equal to the number of target keywords appearing in the target text.

[0091] The larger the maximum value of the correlation parameter of all reference keyword sets, the greater the degree to which the same keyword appears each time the target keyword appears, and the greater the correlation between the target keyword and the keyword, which in turn means that the target keyword is more important in the target text. Therefore, the maximum value of the correlation parameter of all reference keyword sets is used as the consistency parameter of the target keyword.

[0092] The expression of the consistency parameter of the target keyword may be specifically, for example:

[0093] Among them, S represents the consistency parameter of the target keyword; Indicates The number of reference keywords contained in the reference keyword set; Indicates the number of target keywords that appear in the target text, and is also the number of reference keywords included in all reference keyword sets; Represents the maximum value function.

[0094] Step S212: Integrate the phrase importance and consistency parameters of the target keyword to obtain the comprehensive importance of the target keyword.

[0095] The phrase importance and consistency parameters of the target keyword reflect the importance of the target keyword in the target text from two different perspectives. Therefore, the phrase importance and consistency parameters of the target keyword can be integrated to obtain the comprehensive importance of the target keyword. The greater the comprehensive importance, the more important the target keyword is in the target text, which provides a data basis for the subsequent analysis of the importance of the target keyword each time it appears.

[0096] In the embodiment of the present invention, the sum or product of the phrase importance and consistency parameter of the target keyword may be used as the comprehensive importance of the target keyword to achieve the integration of the two, which is not limited here.

[0097] Step S213: The number of words between the target keyword and the corresponding reference keyword each time it appears in the target text is used as the distance parameter between the target keyword and the corresponding reference keyword each time it appears; based on the number of reference keywords included in the reference keyword set where the reference keyword is located each time the target keyword appears, and the distance parameter, the dynamic weight parameter of the target keyword each time it appears in the target text is obtained.

[0098] The fewer the number of words between the target keyword and the corresponding reference keyword each time it appears in the target text, the stronger the connection between the target keyword and the corresponding reference keyword each time it appears. Therefore, the number of words between the target keyword and the corresponding reference keyword each time it appears in the target text can be used as the distance parameter between the target keyword and the corresponding reference keyword each time it appears. At the same time, the more reference keywords are included in the reference keyword set where the reference keyword is located each time the target keyword appears, the stronger the correlation between the target keyword and the reference keyword. Therefore, the dynamic weight parameter of the target keyword each time it appears in the target text can be obtained based on the number of reference keywords included in the reference keyword set where the reference keyword is located each time the target keyword appears, and combined with the distance parameters of the two. Subsequently, the comprehensive importance of the target keyword obtained above can be adjusted based on the dynamic weight parameter each time the target keyword appears, so as to accurately calculate the dynamic importance of the target keyword each time it appears, and realize dynamic analysis of the importance of the target keyword.

[0099] Preferably, in one embodiment of the present invention, the method for obtaining the dynamic weight parameter each time the target keyword appears in the target text specifically includes:

[0100] The smaller the distance parameter between the target keyword and the corresponding reference keyword each time it appears, the stronger the connection between the two, and the greater the importance of the target keyword each time it appears. Therefore, the distance parameter between the target keyword and the corresponding reference keyword each time it appears can be negatively correlated to obtain the connection parameter between the target keyword and the corresponding reference keyword each time it appears.

[0101] Then, the number and connection parameters of the reference keywords contained in the reference keyword set where the reference keywords are located each time the target keyword appears are integrated to obtain the dynamic weight parameter of the target keyword each time it appears in the target text.

[0102] In an embodiment of the present invention, the product value or sum value of the number of reference keywords contained in the reference keyword set where the reference keyword is located each time the target keyword appears and the connectivity parameter can be used as a dynamic weight parameter each time the target keyword appears in the target text to achieve a combination of the two, which is not limited here.

[0103] The expression of the dynamic weight parameter each time the target keyword appears in the target text may be specifically, for example, as follows:

[0104] in, Indicates the dynamic weight parameter when the target keyword appears for the nth time in the target text; Indicates the number of reference keywords included in the reference keyword set to which the reference keyword belongs when the target keyword appears for the nth time; The distance parameter between the target keyword and the corresponding reference keyword for the nth occurrence; The connection parameter between the target keyword and the corresponding reference keyword that appear for the nth time; Indicates the preset adjustment parameter. To prevent the denominator from being 0, set it to 1. The specific value of can also be set by the implementer according to the specific implementation scenario and is not limited here.

[0105] Step S214: Based on the dynamic weight parameter, the comprehensive importance is adjusted to obtain the dynamic importance of the target keyword each time it appears in the target text.

[0106] Through the above process, the dynamic weight parameters of the target keyword each time it appears in the target text and the comprehensive importance of the target keyword are obtained. Then, based on the dynamic weight parameters, the comprehensive importance can be adjusted to obtain the dynamic importance of the target keyword each time it appears in the target text, and a dynamic analysis of the importance of the target keyword can be achieved. The greater the dynamic importance, the more important the target keyword is each time it appears in the target text. Subsequently, the dynamic importance of all keywords each time they appear can be combined to analyze the initial text importance of the target text.

[0107] In one embodiment of the present invention, the dynamic weight parameter of the target keyword each time it appears is multiplied by the comprehensive importance of the target keyword to obtain the dynamic adjustment amount each time the target keyword appears in the target text, and the sum of the comprehensive importance of the target keyword and the dynamic adjustment amount each time the target keyword appears in the target text is used as the dynamic importance of the target keyword each time it appears in the target text, thereby realizing the adjustment of the comprehensive importance by using the dynamic weight parameter.

[0108] The expression of the dynamic importance of the target keyword each time it appears in the target text can be specifically, for example, as follows:

[0109] in, Indicates the dynamic importance of the target keyword when it appears for the nth time in the target text; represents the dynamic weight parameter when the target keyword appears in the target text for the nth time; E represents the comprehensive importance of the target keyword; Indicates the dynamic adjustment amount when the target keyword appears for the nth time in the target text.

[0110] The same method as above can be used to obtain the dynamic importance of each keyword each time it appears in the target text. Then, the importance of the target text can be evaluated based on the dynamic importance of all keywords each time they appear in the target text. The importance of the target text can be preliminarily reflected by the initial text importance obtained. The initial text importance can be further adjusted later to improve the accuracy of the target text importance evaluation.

[0111] Preferably, in one embodiment of the present invention, the method for obtaining the initial text importance of the target text specifically includes:

[0112] Since the greater the dynamic importance of each keyword each time it appears in the target text, the greater the importance of the target text, the dynamic importance of all keywords each time they appear in the target text can be integrated to obtain the initial text importance of the target text.

[0113] In an embodiment of the present invention, the sum or product of the dynamic importance of all keywords each time they appear in the target text can be used as the initial text importance of the target text to achieve the integration of the dynamic importance of all keywords each time they appear in the target text, which is not limited here.

[0114] The expression of the initial text importance of the target text can be specifically, for example, as follows:

[0115] Among them, U represents the initial text importance of the target text; represents the dynamic importance of the h-th keyword when it appears for the nth time in the target text; H represents the number of different keywords extracted from the target text; It indicates the number of h-th keywords appearing in the target text, that is, the number of times the h-th keyword appears in the target text.

[0116] At this point, the initial text importance of the target text has been obtained, and the initial text importance can be further adjusted later to improve the accuracy of the target text importance assessment.

[0117] The adjustment module 103 is used to adjust the initial text importance according to the number of identical keywords between the target text and other complaint texts except the target text, and the timestamp of the target text, so as to obtain the real text importance of the target text.

[0118] Since the importance of the initial text obtained above can only reflect the importance or severity of the target text content, in actual situations, it is also necessary to promptly deal with complaint texts that have been retained in the government complaint service platform for too long. At the same time, if there are more other complaint texts with similar content to the target text in the government complaint service platform, it means that more people have raised the same complaint issues, which means that the complaint issues raised in the target text are more serious. Therefore, based on the number of identical keywords between the target text and other complaint texts other than the target text, the similarity of the content between the target text and other complaint texts can be analyzed. At the same time, combined with the timestamp of the target text, the time the target text stays in the platform can be analyzed, thereby adjusting the importance of the initial text. The importance of the target text can be accurately reflected by the obtained real text importance. Subsequently, each complaint text can be effectively handled based on the real text importance to improve the service quality of government complaints.

[0119] Preferably, in one embodiment of the present invention, the method for obtaining the real text importance of the target text specifically includes:

[0120] See also Figure 4 , which shows a flow chart of a method for obtaining the real text importance of a target text provided by an embodiment of the present invention.

[0121] Step S301: According to the number of identical keywords between the target text and each other complaint text except the target text, obtain the content similarity between each other complaint text and the target text.

[0122] The more identical keywords there are between the target text and each other complaint text except the target text, the more similar the contents between the target text and each other complaint text are. Therefore, the content similarity between each other complaint text and the target text can be obtained based on the number of identical keywords between the target text and each other complaint text except the target text.

[0123] Preferably, in one embodiment of the present invention, the method for obtaining the real text importance of the target text specifically includes:

[0124] The set consisting of the keywords extracted from each complaint text is used as the keyword set of each complaint text, wherein each keyword in the keyword set of each complaint text is different from each other.

[0125] The Jaccard similarity coefficient of the keyword set between the target text and each other complaint text except the target text is used as the content similarity between the target text and each other complaint text. The Jaccard similarity coefficient is a technical means well known to technicians in this field and will not be elaborated here.

[0126] Step S302: Select similar complaint texts to the target text from all other complaint texts, where the content similarity between the similar complaint texts and the target text is greater than a preset threshold.

[0127] The greater the content similarity between each other complaint text and the target text, the more similar the content between each other complaint text and the target text is. Therefore, similar complaint texts to the target text can be selected from all other complaint texts, where the content similarity between the similar complaint text and the target text is greater than a preset threshold. Subsequently, the initial text importance of the target text can be adjusted based on the number of similar complaint texts. The preset threshold is set to 0.8. The specific value of the preset threshold can also be set by the implementer according to the specific implementation scenario, and is not limited here.

[0128] Step S303: Obtain the waiting time of the target text according to the difference between the timestamp of the target text and the current time.

[0129] From the above analysis, we can see that the longer the target text stays in the platform, the more it needs to be processed in a timely manner. Therefore, the waiting time of the target text can be obtained according to the difference between the timestamp of the target text and the current time. The waiting time reflects the length of time the target text waits for processing in the platform, that is, the length of time the target text stays in the platform. The initial text importance of the target text can be adjusted based on the waiting time.

[0130] In one embodiment of the present invention, the difference between the current time and the timestamp of the target text may be used as the waiting time of the target text.

[0131] Step S304: The number of similar complaint texts to the target text and the waiting time of the target text are integrated and normalized to obtain adjustment parameters of the target text.

[0132] From the above analysis, it can be seen that the more similar complaint texts are to the target text and the longer the waiting time of the target text is, the more timely processing of the target text is needed, that is, the greater the importance of the target text is. Therefore, the number of similar complaint texts to the target text and the waiting time of the target text can be combined and normalized, and the initial text importance of the target text can be adjusted in the subsequent process through the obtained adjustment parameters.

[0133] In the embodiment of the present invention, the combination of the two can be achieved by calculating the sum or product of the number of similar complaint texts of the target text and the waiting time of the target text, which is not limited here.

[0134] Step S305: Based on the adjustment parameters, the initial text importance of the target text is weighted to obtain the real text importance of the target text.

[0135] After the adjustment parameters of the target text are obtained, the adjustment parameters can be used to perform weighted adjustment on the initial text importance of the target text, thereby obtaining the true text importance of the target text.

[0136] In one embodiment of the present invention, the product value of the adjustment parameter of the target text and the initial text importance may be used as the real text importance of the target text.

[0137] The expression of the real text importance of the target text can be specifically, for example, as follows:

[0138] in, represents the real text importance of the target text; T represents the waiting time of the target text; R represents the number of similar complaint texts of the target text; U represents the initial text importance of the target text; Represents the normalization function.

[0139] Through the same method mentioned above, the real text importance of each complaint text in the government complaint service platform within a preset time period can be obtained. Subsequently, the more important complaint files in the platform can be processed in a timely manner based on the real text importance, thereby improving the service quality of government complaints.

[0140] The processing module 104 is used to process all complaint texts according to different priorities based on the importance of the real texts.

[0141] The greater the importance of the real text of each complaint text, the more important the complaint text is, and the more priority is needed to deal with the complaint text in a timely manner. Therefore, all complaint texts can be processed according to different priorities based on the importance of the real text.

[0142] Preferably, in one embodiment of the present invention, the method for processing all complaint texts according to different priorities specifically includes:

[0143] Each complaint text will be distributed to relevant personnel for processing in descending order of the importance of the real text, so that complaint texts with greater real text importance can be given priority processing and the service quality of government complaints can be improved.

[0144] In summary, the embodiment of the present invention first obtains multiple complaint texts of the government service platform within a preset time period, and the timestamp of each complaint text; takes any complaint text as the target text, uses a large language model to perform natural language processing on the target text, and extracts different keywords, wherein each keyword appears multiple times in the target text; takes any keyword as the target keyword, and obtains the phrase importance of the target keyword according to the frequency of the target keyword appearing in the target text and the position distribution of the target keyword in the target text; takes the next keyword of the target keyword appearing each time in the target text as the reference keyword each time the target keyword appears; obtains the dynamic importance of the target keyword each time it appears in the target text according to the number of identical reference keywords, the number of words between the target keyword and the corresponding reference keyword each time it appears in the target text, and the phrase importance of the target keyword; obtains the initial text importance of the target text based on the dynamic importance of all keywords each time they appear in the target text; adjusts the initial text importance according to the number of identical keywords between the target text and other complaint texts except the target text, and the timestamp of the target text, and obtains the real text importance of the target text; based on the real text importance, all complaint texts are processed according to different priorities.

[0145] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0146] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

Claims

1. An intelligent government complaint service platform based on a large language model. It is characterized in that The service platform includes: The data acquisition module is used to obtain multiple complaint texts from the government service platform within a preset time period, as well as the timestamp of each complaint text; any complaint text is used as the target text, and the target text is subjected to natural language processing using a large language model to extract different keywords, wherein each keyword appears multiple times in the target text; The analysis module is used to take any keyword as a target keyword, and obtain the phrase importance of the target keyword according to the frequency of the target keyword appearing in the target text and the position distribution of the target keyword in the target text; take the next keyword of the target keyword appearing each time in the target text as the reference keyword each time the target keyword appears; obtain the dynamic importance of the target keyword each time it appears in the target text according to the number of the same reference keywords, the number of words between the target keyword appearing each time in the target text and the corresponding reference keyword, and the phrase importance of the target keyword; obtain the initial text importance of the target text based on the dynamic importance of all keywords each time they appear in the target text; An adjustment module, configured to adjust the initial text importance according to the number of identical keywords between the target text and other complaint texts other than the target text, and the timestamp of the target text, to obtain the real text importance of the target text; A processing module is used to process all complaint texts according to different priorities based on the importance of the real texts.

2. According to claim 1, a government affairs complaint intelligent service platform based on a large language model, It is characterized in that The step of obtaining the phrase importance of the target keyword according to the frequency of occurrence of the target keyword in the target text and the position distribution of the target keyword in the target text includes: Use natural numbers to mark all keywords appearing in the target text in order from top to bottom and from left to right, and obtain the position number of each keyword appearing in the target text; Obtaining the first importance of the target keyword according to the position sequence numbers of all target keywords appearing in the target text; The target text is processed by using a large language model to obtain different sentences in the target text. The frequency of the sentences containing the target keyword in the target text is used as the second importance of the target keyword; the frequency of the target keyword in the target text is used as the third importance of the target keyword. The first importance, the second importance and the third importance of the target keyword are integrated and normalized to obtain the phrase importance of the target keyword.

3. According to claim 2, a government affairs complaint intelligent service platform based on a large language model, It is characterized in that The obtaining the first importance of the target keyword according to the position serial numbers of all the target keywords appearing in the target text comprises: Analyzing the overall level of the position numbers of all target keywords appearing in the target text to obtain overall position parameters of the target keywords; Negative correlation mapping is performed on the overall position parameter to obtain the first importance of the target keyword.

4. According to claim 1, a government affairs complaint intelligent service platform based on a large language model, It is characterized in that The step of obtaining the dynamic importance of the target keyword each time it appears in the target text includes: Among the reference keywords corresponding to all the target keywords appearing in the target text, the same reference keywords are divided into the same set to obtain different reference keyword sets; and the consistency parameter of the target keyword is obtained according to the number of reference keywords included in each of the reference keyword sets; Combining the phrase importance and the consistency parameter of the target keyword to obtain the comprehensive importance of the target keyword; The number of words between the target keyword and the corresponding reference keyword each time it appears in the target text is used as the distance parameter between the target keyword and the corresponding reference keyword each time it appears; according to the number of reference keywords included in the reference keyword set where the reference keyword is located each time the target keyword appears, and the distance parameter, a dynamic weight parameter of the target keyword each time it appears in the target text is obtained; Based on the dynamic weight parameter, the comprehensive importance is adjusted to obtain the dynamic importance of the target keyword each time it appears in the target text.

5. According to claim 4, a government affairs complaint intelligent service platform based on a large language model, It is characterized in that The step of obtaining the consistency parameter of the target keyword according to the number of reference keywords included in each reference keyword set includes: Analyzing the proportion of the number of reference keywords included in each reference keyword set to the number of reference keywords included in all reference keyword sets to obtain a correlation parameter of each reference keyword set; The maximum value of the correlation parameters of all reference keyword sets is used as the consistency parameter of the target keyword.

6. According to claim 4, a government affairs complaint intelligent service platform based on a large language model, It is characterized in that The step of obtaining the dynamic weight parameter of the target keyword each time it appears in the target text includes: Performing negative correlation mapping on the distance parameter between each occurrence of the target keyword and the corresponding reference keyword to obtain a connection parameter between each occurrence of the target keyword and the corresponding reference keyword; The number of reference keywords included in the reference keyword set and the connection parameter are integrated to obtain a dynamic weight parameter of the target keyword each time it appears in the target text.

7. According to claim 1, a government affairs complaint intelligent service platform based on a large language model, It is characterized in that The step of obtaining the initial text importance of the target text based on the dynamic importance of all keywords each time they appear in the target text includes: The dynamic importance of all keywords each time they appear in the target text is integrated to obtain the initial text importance of the target text.

8. According to claim 1, a government affairs complaint intelligent service platform based on a large language model, It is characterized in that The obtaining of the real text importance of the target text includes: According to the number of identical keywords between the target text and each other complaint text except the target text, obtain the content similarity between each other complaint text and the target text; Selecting similar complaint texts of the target text from all other complaint texts, wherein the content similarity between the similar complaint texts and the target text is greater than a preset threshold; According to the difference between the timestamp of the target text and the current time, the waiting time of the target text is obtained; The number of similar complaint texts of the target text and the waiting time of the target text are integrated and normalized to obtain adjustment parameters of the target text; Based on the adjustment parameter, the initial text importance of the target text is weighted to obtain the real text importance of the target text.

9. According to claim 8, a government affairs complaint intelligent service platform based on a large language model, It is characterized in that The obtaining of the content similarity between each other complaint text and the target text according to the number of the same keywords between the target text and each other complaint text except the target text comprises: The set of keywords extracted from each complaint text is used as the keyword set of each complaint text; The Jaccard similarity coefficient of the keyword set between the target text and each other complaint text except the target text is used as the content similarity between the target text and each other complaint text.

10. According to claim 1, a government complaint intelligent service platform based on a large language model, It is characterized in that Based on the importance of the real text, all complaint texts are processed according to different priorities, including: Each complaint text is distributed to relevant personnel for processing in descending order of importance of the true text.

Citation Information

Patent Citations

  • Government affair text automatic allocation model training method and device

    CN116562284A

  • Intelligent seat text processing method based on large model

    CN117332066A