Prompt information management method and system, computer equipment and storage medium
By extracting and mapping keywords of prompt information, and integrating key values for classification and compression processing, the problem of low prompt information classification efficiency in the existing technology is solved, and efficient prompt information management is achieved.
Patent Information
- Application Number
- CN202410857490.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-27
AI Technical Summary
The classification process of prompt information in the prior art is unreasonable, resulting in low classification efficiency and requiring a cumbersome discrimination process, resulting in low efficiency of response prompt information management.
By extracting the keywords of the prompt information to be managed, perform key-key value mapping processing, fuse the key values of the keywords as category evaluation values, determine the same type of prompt information, and perform compression processing, using the word segmentation vector atlas model and hash function to carry out information processing. Representation and storage.
It significantly reduces the computational burden of prompt information classification and compression, improves prompt information management efficiency, optimizes the classification process, reduces redundant information processing, and improves the response speed and reliability of the system.
Smart Images

Figure CN118708446A
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a prompt information management method, a prompt information management system, a computer device, and a computer-readable storage medium. Background Art
[0002] With the development of information technology, monitoring systems, network equipment, etc. are widely used in production practice. In the process of their work, redundant prompt information is usually generated, which may involve system anomalies, system failures, performance problems, security incidents, etc.
[0003] It is usually required to respond to the feedback prompt information in a timely manner, but given the large amount of prompt information data, processing the prompt information one by one may consume a lot of time and resources. At the same time, the prompt information may also contain scattered and redundant information, that is, some prompt information is repeated, so the repeated prompt information is usually compressed / overlapped. However, due to the unreasonable design of the prompt information compression / overlapping strategy, it is necessary to perform a tedious judgment process to determine whether the prompt information is repeated, which can easily lead to low judgment efficiency and thus the efficiency of prompt information management and response. Summary of the invention
[0004] Based on this, it is necessary to provide a prompt information management method, a prompt information management system, a computer device and a computer-readable storage medium to address the above technical problems, which can optimize the prompt information classification process and help improve the efficiency of prompt information management.
[0005] On the one hand, a prompt information management method is provided, which includes: obtaining prompt information to be managed; extracting keywords of the prompt information to be managed, performing key-value mapping processing on the keywords, and obtaining the key value of each keyword; integrating the key value of each keyword of the prompt information to be managed as a category evaluation value of the prompt information to be managed; determining that prompt information with matching category evaluation values belongs to the same type of prompt information, and compressing the same type of prompt information.
[0006] In one embodiment of the present application, extracting keywords of the prompt information to be managed includes: performing word segmentation processing on the prompt information to be managed to obtain the word segmentation vector of the prompt information to be managed; evaluating the weight of each word segmentation vector; selecting a first number of word segmentation vectors as keywords; wherein the weight of the word segmentation vector used as a keyword is higher than the weight of the word segmentation vector not used as a keyword.
[0007] In one embodiment of the present application, after obtaining the word segmentation vector of the prompt information to be managed, the method further includes: constructing a graph set model of the word segmentation vector of the prompt information to be managed; wherein each node set of the graph set model includes a second number of word segmentation vectors, and the word segmentation vectors in the same node set are adjacent; and the evaluation function for evaluating the weight of each word segmentation vector is:
[0008]
[0009] Where d represents the damping coefficient; In(i) represents all nodes connected to node i; Out(j) represents all nodes that can be reached from node j in the atlas model; ω ji Represents the correlation between node i and node j.
[0010] In one embodiment of the present application, word segmentation processing of prompt information to be managed includes: identifying the prompt information to be managed and performing separation and marking processing to perform word segmentation and part-of-speech processing on the prompt information to be managed, and obtaining prompt information segmentation; filtering preset stop words in the prompt information segmentation based on the separation and marking processing results, and taking the remaining prompt information segmentation as target segmentation; wherein the preset stop words include at least one of prepositions, conjunctions, and modal particles; encoding the target segmentation to obtain a segmentation vector.
[0011] In one embodiment of the present application, the storage method of prompt information includes a linked list storage method and a tree structure storage method; wherein the linked list storage method stores prompt information belonging to the same prompt information category in the form of a linear list; the tree structure storage method stores prompt information belonging to the same prompt information category in the form of a non-linear structure, and the prompt information stored in the tree structure storage method is linked in a tree-like hierarchical structure defined by a branch relationship; compressing the same type of prompt information includes: obtaining the same type of prompt information category to which the prompt information to be managed belongs as the category to be verified; wherein, in response to determining that the prompt information to be managed does not belong to an existing prompt information category, creating A new prompt information category is created and the prompt information to be managed is stored; a third quantity of the category to be verified is obtained; wherein the third quantity represents the quantity of prompt information already existing in the category to be verified, or the sum of the quantity of prompt information already existing and the prompt information to be managed; the third quantity is compared with a preset quantity threshold; in response to the third quantity not reaching the preset quantity threshold, the prompt information to be managed is compressed into the category to be verified, and the category to be verified stores the prompt information in a linked list storage manner; in response to the third quantity reaching the preset quantity threshold, the prompt information to be managed is compressed into the category to be verified, and the storage manner of the category to be verified is converted from the linked list storage manner to the tree structure storage manner.
[0012] In one embodiment of the present application, a key-value mapping process is performed on keywords to obtain the key value of each keyword, including: using a hash function to calculate the hash value of the keyword; using the hash value of the keyword as the key value of the keyword; integrating the key value of each keyword of the prompt information to be managed as the category evaluation value of the prompt information to be managed, including: superimposing the hash value of each keyword; using the sum of the hash values of each keyword of the prompt information to be managed as the category evaluation value of the prompt information to be managed.
[0013] On the other hand, a prompt information management system is provided, which includes: an information processing device and an information storage device; the information processing device is used to execute the prompt information management method as in any of the above embodiments; the information storage device is used to store various types of compressed prompt information.
[0014] In one embodiment of the present application, the information processing device includes a preprocessing module, a secondary processing module, a conversion module and a determination module; the preprocessing module is used to perform word segmentation processing on the prompt information to be managed to obtain a word segmentation vector; the secondary processing module is connected to the preprocessing module, and is used to extract keywords from the word segmentation vector; the conversion module is connected to the secondary processing module, and is used to use a hash function to operate on the keywords of the prompt information to be managed, and obtain the hash value of each keyword as the key value of each keyword; the determination module is connected to the conversion module, and is used to obtain the category evaluation value of the prompt information to be managed based on the key value of the keyword, so as to determine that the prompt information matching the category evaluation value belongs to the same type of prompt information based on the category evaluation value, compress the same type of prompt information, and send the determination result to the information storage device, so that the information storage device compresses and stores the prompt information based on the determination result.
[0015] On the other hand, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented: obtaining prompt information to be managed; extracting keywords of the prompt information to be managed, performing key-value mapping processing on the keywords, and obtaining the key value of each keyword; fusing the key value of each keyword of the prompt information to be managed as a category evaluation value of the prompt information to be managed; determining that prompt information matching the category evaluation value belongs to the same type of prompt information, and compressing the same type of prompt information.
[0016] On the other hand, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: obtaining prompt information to be managed; extracting keywords of the prompt information to be managed, performing key-value mapping processing on the keywords, and obtaining the key value of each keyword; fusing the key value of each keyword of the prompt information to be managed as a category evaluation value of the prompt information to be managed; determining that the prompt information with matching category evaluation values belongs to the same type of prompt information, and compressing the same type of prompt information.
[0017] The above-mentioned prompt information management method, prompt information management system, computer device and computer-readable storage medium extract keywords from the prompt information to be managed, so as to represent the information expressed by the prompt information to be managed through keywords, and can reduce the dimension of the information volume. In addition, the key values of several extracted keywords are integrated as the category evaluation value of the prompt information to be managed, which can significantly reduce the computational burden of obtaining indicators for classifying the prompt information to be managed, and is conducive to reducing the burden of identifying the prompt information to be managed, thereby improving the efficiency of classifying and compressing the prompt information to be managed, and further by optimizing the prompt information classification process, the present application can be conducive to improving the prompt information management efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 It is a structural diagram of an embodiment of the prompt information management system of the present application;
[0019] Figure 2 It is a structural diagram of an embodiment of an information processing device of the present application;
[0020] Figure 3 It is a flowchart of an embodiment of the prompt information management method of the present application;
[0021] Figure 4 It is a flowchart of another embodiment of the prompt information management method of the present application;
[0022] Figure 5 This is a flowchart of an embodiment of extracting keywords in the present application;
[0023] Figure 6 It is a structural diagram of an embodiment of a computer device of the present application. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0025] In order to solve the technical problem that the prompt information classification process existing in the related technology is unreasonable, resulting in a heavy classification burden and affecting the efficiency of prompt information management, the present application provides a prompt information management method, a prompt information management system, a computer device and a computer-readable storage medium. Among them, the prompt information management method includes: obtaining the prompt information to be managed; extracting the keywords of the prompt information to be managed, performing key-value mapping processing on the keywords, and obtaining the key value of each keyword; integrating the key value of each keyword of the prompt information to be managed as the category evaluation value of the prompt information to be managed; determining that the prompt information with matching category evaluation values belongs to the same type of prompt information, and compressing the same type of prompt information. The specific system structure and working principle of this application are described in detail below.
[0026] See also Figure 1 , Figure 1 It is a structural diagram of an embodiment of the prompt information management system of the present application.
[0027] In one embodiment, the prompt information management system includes an information processing device 10 and an information storage device 20 .
[0028] The information processing device 10 is used to implement the prompt information management method. Specifically, the information processing device 10 can obtain prompt information to be managed; extract keywords of the prompt information to be managed, perform key-value mapping processing on the keywords, and obtain the key value of each keyword; merge the key value of each keyword of the prompt information to be managed as the category evaluation value of the prompt information to be managed; determine that the prompt information with matching category evaluation values belongs to the same type of prompt information.
[0029] The information storage device 20 can compress the same type of prompt information and store the compressed prompt information of each type.
[0030] As such, the prompt information management system in this embodiment can extract keywords from the prompt information to be managed, so as to represent the information expressed by the prompt information to be managed through keywords, and can reduce the dimension of the information volume. Moreover, by integrating the key values of several extracted keywords as the category evaluation value of the prompt information to be managed, the computational burden of obtaining the index for classifying the prompt information to be managed can be significantly reduced, which is conducive to reducing the burden of identifying the prompt information to be managed, thereby improving the efficiency of classifying and compressing the prompt information to be managed, and further, by optimizing the prompt information classification process, the present application can be conducive to improving the prompt information management efficiency.
[0031] For further information, please refer to Figure 1 as well as Figure 2 , a schematic diagram of the structure of an information processing device according to an embodiment of the present application.
[0032] In one embodiment, the information processing device 10 may include a pre-processing module 11 , a secondary processing module 12 , a conversion module 13 and a determination module 14 .
[0033] The preprocessing module 11 is used to perform word segmentation processing on the management prompt information to obtain a word segmentation vector.
[0034] The secondary processing module 12 is connected to the pre-processing module 11 and is used to extract keywords from the word vector.
[0035] The conversion module 13 is connected to the secondary processing module 12 and is used to use a hash function to calculate the keywords of the prompt information to be managed, and obtain the hash value of each keyword as the key value of each keyword.
[0036] The determination module 14 is connected to the conversion module 13, and is used to obtain the category evaluation value of the prompt information to be managed based on the key value of the keyword, so as to determine whether the prompt information matching the category evaluation value belongs to the same type of prompt information based on the category evaluation value, compress the same type of prompt information, and send the determination result to the information storage device 20, so that the information storage device 20 compresses and stores the prompt information based on the determination result.
[0037] As such, in this embodiment, by further refining the component structure of the information processing device 10 and rationally configuring the data processing content of each component module, the computing burden between the component modules can be balanced, which is beneficial to improving the computing efficiency of each component module. It can also reduce the risk of abnormalities or errors in the intermediate links when managing the prompt information to be managed, which is beneficial to improving the stability and reliability of the information processing device 10, and further beneficial to improving the reliability of the prompt information management system.
[0038] In an alternative embodiment, the component modules such as the determination module for classifying the prompt information to be managed may also be arranged in the information storage device, which is not limited here.
[0039] For the specific definition of the prompt information management system, please refer to the definition of the prompt information management method below, which will not be repeated here. Each module in the above prompt information management system can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0040] The following is an example of the working principle of the prompt information management system of this application, that is, the specific implementation method of the prompt information management method of this application.
[0041] See also Figure 3 , Figure 3It is a flowchart of an embodiment of the prompt information management method of the present application.
[0042] S101: Obtain prompt information to be managed.
[0043] In this embodiment, the prompt information to be managed is prompt information that needs to be identified as to whether it belongs to the same type of prompt information as other prompt information.
[0044] The prompt information may include at least one of error information, abnormal prompt information, action execution information, and interaction completion feedback information.
[0045] S102: extract keywords of the prompt information to be managed, perform key-value mapping processing on the keywords, and obtain the key value of each keyword.
[0046] In this embodiment, the keyword refers to a word that can represent the main information expressed by the prompt information to be managed, and can exist in the form of a word, a word vector, or a word encoding vector, etc., which is not limited here.
[0047] In this embodiment, one or more keywords can be extracted from the prompt information to be managed. For example, the number of extracted keywords can be one, two, three, four, five, etc., which can be set in combination with the application scenario, or the number of extracted keywords can be selected based on the complexity of the prompt information.
[0048] The extracted keywords can be respectively subjected to key-value mapping processing to obtain the key value of each keyword. In other words, the key value of a keyword can represent the keyword. The key-value mapping processing can be reversible or irreversible, which is not limited here.
[0049] S103: integrating the key values of the keywords of the prompt information to be managed as the category evaluation value of the prompt information to be managed.
[0050] In this embodiment, in response to obtaining the key values of each keyword of the prompt information to be managed, the key values of the keywords can be fused to use the fusion result as the category evaluation value of the prompt information to be managed. In other words, in this embodiment, it can be considered that the extracted keywords can basically represent the content of the prompt information to be managed, and the key values of the keywords can represent the keywords, so it can be considered that the category evaluation value obtained by fusion of the key values of the keywords can represent the prompt information to be managed.
[0051] Optionally, the key values of the fused keywords can be fused in the form of superposition, weighted fusion, preset operation, etc., which will be explained in detail later by taking the form of superimposing keyword key values to obtain category evaluation values as an example, and will not be repeated here. It should be noted that the content explained in the following text as an example does not strictly limit the form of fused keyword key values in this embodiment.
[0052] S104: Determine that the prompt information with matching category evaluation values belongs to the same type of prompt information, and compress the same type of prompt information.
[0053] In this embodiment, the category to which the prompt information to be managed belongs can be determined based on the category evaluation value of the prompt information to be managed. The prompt information with matching category evaluation values can be determined to belong to the same category of prompt information, and the same category of prompt information can be compressed.
[0054] For example, the category evaluation value of the prompt information to be managed may be compared with the category evaluation values of various types of prompt information, and the category whose category evaluation value matches the prompt information to be managed is selected as the category to which it belongs.
[0055] Optionally, the category evaluation value matching may refer to the category evaluation values being the same, or the category evaluation value matching with a certain error may be allowed, which is not limited here.
[0056] It can be seen that in this embodiment, keywords in the prompt information to be managed are extracted, and the information expressed by the prompt information to be managed is represented by keywords, which can reduce the dimension of the information volume. In addition, the key values of several extracted keywords are integrated as the category evaluation value of the prompt information to be managed, which can significantly reduce the computational burden of obtaining the index for classifying the prompt information to be managed, which is conducive to reducing the burden of identifying the prompt information to be managed, thereby improving the efficiency of classifying and compressing the prompt information to be managed, and further by optimizing the prompt information classification process, it can be conducive to improving the prompt information management efficiency.
[0057] Optionally, when determining the category to which the prompt information to be managed belongs, the category evaluation values of each prompt information can be clustered to classify the prompt information and select cluster center prompt information for each category of prompt information. Further, whether the prompt information to be managed belongs to the category can be judged based on the category evaluation value of the cluster center prompt information. Specifically, when the category evaluation value of the prompt information to be managed matches the category evaluation value of the cluster center prompt information, it is determined that the prompt information to be managed belongs to the category of the cluster center prompt information. When the prompt information to be managed does not match the category evaluation value of the cluster center prompt information, it is determined that the prompt information to be managed does not belong to the category of the cluster center prompt information. Optionally, the acquired prompt information can be re-clustered with a preset duration and a preset number of prompt information to be managed as a cycle to further improve the reliability of the prompt information classification obtained based on clustering processing.
[0058] See also Figure 4 , Figure 4 It is a flowchart of another embodiment of the prompt information management method of the present application.
[0059] In one embodiment, the prompt information to be managed may be obtained and input into a preprocessing module, so that the prompt information to be managed is preprocessed by the preprocessing module to obtain a word segmentation vector of the prompt information to be managed.
[0060] Specifically, the prompt information to be managed may be identified and separated and marked, so as to perform word segmentation and part-of-speech processing on the prompt information to be managed, and obtain the prompt information word segmentation.
[0061] The preset stop words in the prompt information segmentation can be filtered based on the separation markup processing result, and the remaining prompt information segmentation can be used as the target segmentation. Among them, the preset stop words include at least one of prepositions, conjunctions, and modal particles. For example, the preset stop words can be and, of, the, etc., which are not limited here. The target segmentation is encoded to obtain a segmentation vector. In this way, it is beneficial to further reduce the entropy value of the prompt information to be managed, that is, in this embodiment, the relatively invalid information in the prompt information to be managed can be preliminarily filtered, and the computational burden of analyzing the preset stop words can be reduced. It is also beneficial to improve the information expression efficiency of the target segmentation, so as to reduce the burden of data processing required by the preset stop words while basically retaining important information, thereby significantly improving the prompt information management efficiency.
[0062] In this embodiment, in response to obtaining the word segmentation vectors of the prompt information to be managed, the word segmentation vectors can be input into a secondary processing module to screen the word segmentation vectors that can be used as keywords.
[0063] Specifically, the weight of each word segmentation vector can be evaluated.
[0064] Optionally, a graph model of the word segmentation vectors of the prompt information to be managed may be constructed; wherein each node set of the graph model includes a second number of word segmentation vectors, and the word segmentation vectors in the same node set are adjacent.
[0065] The weight of each word segmentation vector is evaluated using an image model based on the prompt information to be managed. The specific evaluation function can be shown in the following formula:
[0066]
[0067] Wherein, d represents the damping coefficient, and the value range of d is 0 to 1. For example, the value of d can be 0, 0.5, 0.8, 0.825, 0.85, 0.86, 0.9, 1, etc.; In(i) represents all nodes connected to node i; Out(j) represents all nodes that can be reached from node j in the atlas model, such as other nodes in the same window as node j described above, where the window in which node j exists may be one or more, and the nodes in each window in which node j exists are taken as Out(j); ω jiRepresents the correlation between node i and node j, such as cosine similarity, Euclidean distance, etc., which is not limited here.
[0068] As such, in this embodiment, when calculating the weight of each word segmentation vector, the information of each word segmentation vector that is associated with the current word segmentation vector can be integrated, and keywords can be selected based on the correlation between the word segmentation vectors, thereby improving the information richness and representativeness of the selected keywords, so as to improve the reliability of classifying the prompt information to be managed based on the key value of the keyword, thereby reducing the risk of unreasonable or abnormal classification of the prompt information to be managed, and is more conducive to reducing the situation where relatively important prompt information is folded and not processed in time due to classification errors, which is beneficial to improving the reliability of prompt information management.
[0069] For example, the keywords in the text of the prompt information to be managed are constructed into an atlas model. The atlas module expression can be shown as the following formula:
[0070] G=(V,E) Formula 1-2
[0071] Among them, G represents the graph model; V represents the node set, which includes the word segmentation vectors of the prompt information to be managed obtained in the previous text; E represents the edge between any two nodes (word segmentation vectors) constructed by using co-occurrence relationships and other methods. The edge between two nodes exists only when their corresponding words co-occur in a window of length K.
[0072] That is, K represents the window size, that is, the maximum number of co-occurring words in a window is K. Specifically, for example, after separation and marking, the target words include w1, w2, ..., wn.
[0073] The window size can be set to K to divide the windows into [w1,w2,…,wK], [w2,w3,…,wK+1], [w3,w4,…,wK+2], …, [wn-K+1,wn-K+2,…,wn]. Any two word pairs in each window can be considered to have an undirected edge. The constructed atlas module can be iterated according to the evaluation function in formula 1-1 to calculate the importance of the word segmentation vector until convergence, and the convergence value is used as the weight of the word segmentation vector.
[0074] The iterative convergence condition may be that the iteration results of two consecutive iterations of the same word segmentation vector are less than or equal to the iteration threshold, and it can be considered that the evaluation function of the word segmentation vector has been iteratively converged.
[0075] In response to obtaining the weight of each word segmentation vector, a first number of word segmentation vectors can be selected as keywords based on the weight of the word segmentation vector. Among them, the weight of the word segmentation vector used as a keyword is higher than the weight of the word segmentation vector that is not used as a keyword. That is to say, in this embodiment, a first number of word segmentation vectors with relatively high weights will be selected as keywords for the prompt information to be managed, and a small number of selected keywords will be used as text descriptors, striving to maximize information expression through the minimum text descriptor, which is conducive to improving the information expression efficiency of keywords, and can play a positive role in the classification of prompt information to be managed by improving the reliability of keyword selection.
[0076] Optionally, the first quantity may be one, two, three, four, five, eight, etc., which is not limited here.
[0077] like Figure 5 As shown in the example, Figure 5 It is a flowchart of an embodiment of extracting keywords in the present application.
[0078] The prompt information to be managed is separated and labeled to obtain six word segmentation vectors, namely, word segmentation vector A, word segmentation vector B, word segmentation vector C, word segmentation vector D, word segmentation vector E, and word segmentation vector F. The weight of each word segmentation vector in the prompt information to be managed is calculated by methods such as formula 1-1. For example, Figure 5 The example shows that the weights of word segmentation vector A, word segmentation vector B, word segmentation vector C, word segmentation vector D, word segmentation vector E, and word segmentation vector F are 0.775, 1.312, 1.013, 1.283, 1.1626, and 1.016 respectively. You can choose three of the word segmentation vectors as keywords, that is, Figure 5 In the example shown, the first number is three. It can be confirmed that the three word segmentation vectors with the largest weights are word segmentation vector B, word segmentation vector D, and word segmentation vector E. Therefore, word segmentation vector B, word segmentation vector D, and word segmentation vector E can be used as keywords for the prompt information to be managed.
[0079] Furthermore, in response to extracting the keywords of the prompt information to be managed, the keywords can be input into the conversion module, and key-value mapping processing is performed on the keywords to obtain keyword mapping information, that is, the key value of the keyword.
[0080] Specifically, a hash function may be used to calculate the hash value of a keyword; and the hash value of the keyword is used as the key value of the keyword. Optionally, each character in the string of each keyword may be iteratively processed, and the iterative formula may be as follows:
[0081] hash=(hash*33)+AS(c) Formula 1-3
[0082] Wherein, AS(c) represents the ASCII value of the character, where ASCII is a coding standard; hash*33 represents the selected hash function. For example, in this embodiment, the DJBX33A algorithm can be used to perform hash processing on the alarm keyword to help reduce hash conflicts.
[0083] In this way, the hash values of the keywords can be superimposed. The sum of the hash values of the keywords of the prompt information to be managed is used as the category evaluation value of the prompt information to be managed. In other words, the keyword S1, keyword S2, ... keyword Sx can be hashed separately, and the hash values of x keywords can be superimposed and combined into a new hash value, which can be considered as the hash value corresponding to the prompt information to be managed, as the category evaluation value of the prompt information to be managed, so as to determine the category to which the prompt information to be managed belongs based on its hash value.
[0084] Furthermore, the keyword mapping information, ie, the key value of the keyword, can be input into the determination module to analyze the category evaluation value of the prompt information to be managed, and determine the category to which the prompt information to be managed belongs based on the category evaluation value.
[0085] Specifically, a hash value mapping table may be constructed.
[0086] When the hash value of the prompt information to be managed exists in the hash mapping table, it can be considered that the same category of prompt information has appeared before, and it can be determined to be a duplicate prompt information. The prompt information to be managed is compressed and merged. At the same time, the current time can be determined as the new generation time of the alarm to update the time of the prompt information.
[0087] When the hash value of the prompt information to be managed does not exist in the hash mapping table, it can be considered that prompt information of the same category has not appeared before, and it is determined to be prompt information of a new category. The mapping relationship between the prompt information to be managed and its hash value is then added to the hash mapping table to ensure that compression and merging can be performed when prompt information of the same category is obtained subsequently.
[0088] In other words, in response to the existence of a prompt information category that matches the category evaluation value of the prompt information to be managed, it can be determined that the prompt information with the matching category evaluation value belongs to the same category of prompt information, and the same category of prompt information is compressed. In response to the absence of a prompt information category that matches the category evaluation value of the prompt information to be managed, it can be considered that this type of prompt information appears for the first time, so it can be determined that the prompt information to be managed does not belong to an existing prompt information category, a new prompt information category is created, and the prompt information to be managed is stored.
[0089] If so, the determination module may send its determination result to the information storage device, so that the information storage device stores the prompt information to be managed based on the determination result.
[0090] Specifically, the storage method of the prompt information includes a linked list storage method and a tree structure storage method. In other words, the present embodiment can be compatible with the linked list storage method and the tree structure storage method, so as to flexibly select the storage method of various prompt information, so as to improve the processing efficiency of subsequent prompt information query, statistics and other services, and also help to improve the efficiency of finding prompt information.
[0091] The linked list storage method stores the prompt information belonging to the same prompt information category in the form of a linear list.
[0092] The tree structure storage method stores prompt information belonging to the same prompt information category in the form of a non-linear structure, and the prompt information stored in the tree structure storage method is linked in a tree shape of a hierarchical structure defined by a branch relationship.
[0093] Optionally, a category of the same type of prompt information to which the prompt information to be managed belongs may be obtained as the category to be verified.
[0094] A third number of the categories to be verified is obtained, wherein the third number represents the number of existing prompt information in the category to be verified, or the sum of the number of existing prompt information and the number of prompt information to be managed.
[0095] The third quantity is compared with a preset quantity threshold.
[0096] In response to the third quantity not reaching the preset quantity threshold, the prompt information to be managed is compressed into the category to be verified, and the category to be verified stores the prompt information in a linked list storage manner.
[0097] In response to the third quantity reaching a preset quantity threshold, the prompt information to be managed is compressed into a category to be verified, and the storage mode of the category to be verified is converted from a linked list storage mode to a tree structure storage mode.
[0098] For example, the third number may be 10, 13, 16, 25, 50, 100, etc., and may be adjusted based on the number of prompt information, and is not limited here.
[0099] In layman's terms, the following uses the prompt information as an example of abnormal information to illustrate this embodiment. Among them, the abnormal information is used to prompt application environment abnormalities such as servers, error information, fault information, etc. The abnormal information can be converted into an alarm word vector through an alarm preprocessing device, and the alarm fault information can be extracted by separating and marking, and the feature vector set of the alarm fault information can be obtained. The word construction graph of the alarm feature vector set generated by algorithms such as TextRank (an automatic summarization algorithm) is iteratively calculated to calculate the weight of each alarm keyword feature vector to select several alarm keyword feature vectors with the largest weight. In order to filter out the word information that is more critical to this alarm fault in the entire data set.
[0100] All the alarm keywords that have been screened out are hashed by the DJBX33A algorithm, etc., and the hash value of the keyword is combined to determine whether the hash value already exists in the hash table. If it does, it is considered a duplicate alarm, and the alarm is compressed and merged, and the generation time of the alarm is updated. If it does not exist, the alarm hash value mapping is saved as a new record in the hash table.
[0101] Taking into account the limited resources, the abnormal information data after judgment and processing can also be stored at the index by combining a linked list and a tree structure, which is convenient for subsequent query, statistics and other business scenarios.
[0102] That is to say, the present application is based on prompt information such as server alarm fault log information, focuses on the redundancy and duplication that may exist in large quantities of prompt data and the limited space storage problem, obtains the word segmentation vector for the separated annotation of the prompt information, and then selects the keywords to identify the prompt information according to the relevant algorithm iteration, and converts the hash value of the prompt information through the hash function mapping method. In this way, the same type of alarms can be determined according to the hash value for compression and merging. At the same time, the present application can also focus on the efficiency of statistical query of prompt information, so it is compatible with linked lists and tree structures to store the converted prompt information data, so as to realize the merged classification storage of abnormal information under the condition of limited resources, and improve the efficiency of compression and merging of redundant alarm data, so as to effectively improve the query and statistical classification efficiency of prompt information, reduce the operation and maintenance burden caused by large quantities of repeated redundant alarms, and significantly improve the functionality of prompt information management.
[0103] It should be understood that although Figure 3-Figure 5 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 3-Figure 5 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0104] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the steps of the prompt information management method described above are implemented, which will not be described in detail here.
[0105] See also Figure 6 , Figure 6It is a structural diagram of an embodiment of a computer device of the present application.
[0106] In one embodiment, the computer device may be a server, and its internal structure diagram may be as follows: Figure 6 As shown in the example.
[0107] The computer device includes a processor, a memory, a network interface and a database connected through a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as prompt information. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a prompt information management method is implemented.
[0108] Those skilled in the art will understand that Figure 6 The structure shown as an example is merely a block diagram of a portion of the structure related to the present application solution, and does not constitute a limitation on the computer device to which the present application solution is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0109] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0110] S101: Obtain prompt information to be managed.
[0111] S102: extract keywords of the prompt information to be managed, perform key-value mapping processing on the keywords, and obtain the key value of each keyword.
[0112] S103: integrating the key values of the keywords of the prompt information to be managed as the category evaluation value of the prompt information to be managed.
[0113] S104: Determine that the prompt information with matching category evaluation values belongs to the same type of prompt information, and compress the same type of prompt information.
[0114] In one embodiment, when extracting keywords of the prompt information to be managed, the processor also implements the following steps when executing the computer program: performing word segmentation processing on the prompt information to be managed to obtain the word segmentation vector of the prompt information to be managed; evaluating the weight of each word segmentation vector; selecting a first number of word segmentation vectors as keywords; wherein the weight of the word segmentation vector used as a keyword is higher than the weight of the word segmentation vector not used as a keyword.
[0115] In one embodiment, after obtaining the word segmentation vectors of the prompt information to be managed, the processor further implements the following steps when executing the computer program: constructing a graph set model of the word segmentation vectors of the prompt information to be managed; wherein each node set of the graph set model includes a second number of word segmentation vectors, and the word segmentation vectors in the same node set are adjacent; and the evaluation function for evaluating the weight of each word segmentation vector is:
[0116]
[0117] Where d represents the damping coefficient; In(i) represents all nodes connected to node i; Out(j) represents all nodes that can be reached from node j in the atlas model; ω ji Represents the correlation between node i and node j.
[0118] In one embodiment, when segmenting the prompt information to be managed, the processor also implements the following steps when executing the computer program: identifying the prompt information to be managed and performing separation and marking processing to segment and process the prompt information to be managed, and obtaining prompt information segmentation; filtering the preset stop words in the prompt information segmentation based on the separation and marking processing results, and taking the remaining prompt information segmentation as target segmentation; wherein the preset stop words include at least one of prepositions, conjunctions, and modal particles; encoding the target segmentation to obtain a segmentation vector.
[0119] In one embodiment, the storage method of prompt information includes a linked list storage method and a tree structure storage method; wherein the linked list storage method stores prompt information belonging to the same prompt information category in the form of a linear table; the tree structure storage method stores prompt information belonging to the same prompt information category in the form of a non-linear structure, and the prompt information stored in the tree structure storage method is linked in a tree-like hierarchical structure defined by a branch relationship; when compressing the same type of prompt information, the processor further implements the following steps when executing the computer program: obtaining the same type of prompt information category to which the prompt information to be managed belongs as the category to be verified; wherein, in response to determining that the prompt information to be managed does not belong to an existing prompt information Information category, create a new prompt information category and store the prompt information to be managed; obtain a third number of the category to be verified; wherein the third number represents the number of prompt information already existing in the category to be verified, or the sum of the number of prompt information already existing and the prompt information to be managed; compare the third number with a preset number threshold; in response to the third number not reaching the preset number threshold, compress the prompt information to be managed into the category to be verified, and the category to be verified stores the prompt information in a linked list storage manner; in response to the third number reaching the preset number threshold, compress the prompt information to be managed into the category to be verified, and convert the storage manner of the category to be verified from the linked list storage manner to the tree structure storage manner.
[0120] In one embodiment, when a key-value mapping process is performed on keywords and the key value of each keyword is obtained, the processor also implements the following steps when executing a computer program: using a hash function to calculate the hash value of the keyword; using the hash value of the keyword as the key value of the keyword; integrating the key value of each keyword of the prompt information to be managed as the category evaluation value of the prompt information to be managed, the processor also implements the following steps when executing the computer program: superimposing the hash value of each keyword; using the sum of the hash values of each keyword of the prompt information to be managed as the category evaluation value of the prompt information to be managed.
[0121] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0122] S101: Obtain prompt information to be managed.
[0123] S102: extract keywords of the prompt information to be managed, perform key-value mapping processing on the keywords, and obtain the key value of each keyword.
[0124] S103: integrating the key values of the keywords of the prompt information to be managed as the category evaluation value of the prompt information to be managed.
[0125] S104: Determine that the prompt information with matching category evaluation values belongs to the same type of prompt information, and compress the same type of prompt information.
[0126] In one embodiment, when extracting keywords of the prompt information to be managed, the computer program also implements the following steps when executed by the processor: performing word segmentation processing on the prompt information to be managed to obtain the word segmentation vector of the prompt information to be managed; evaluating the weight of each word segmentation vector; selecting a first number of word segmentation vectors as keywords; wherein the weight of the word segmentation vector used as a keyword is higher than the weight of the word segmentation vector not used as a keyword.
[0127] In one embodiment, after obtaining the word segmentation vectors of the prompt information to be managed, the computer program further implements the following steps when executed by the processor: constructing a graph set model of the word segmentation vectors of the prompt information to be managed; wherein each node set of the graph set model includes a second number of word segmentation vectors, and the word segmentation vectors in the same node set are adjacent; and the evaluation function for evaluating the weight of each word segmentation vector is:
[0128]
[0129] Where d represents the damping coefficient; In(i) represents all nodes connected to node i; Out(j) represents all nodes that can be reached from node j in the atlas model; ω ji Represents the correlation between node i and node j.
[0130] In one embodiment, when the prompt information to be managed is segmented, the computer program also implements the following steps when executed by the processor: identifying the prompt information to be managed for separation and marking processing, so as to segment and process the prompt information to be managed, and obtain prompt information segmentation; filtering the preset stop words in the prompt information segmentation based on the separation and marking processing results, and taking the remaining prompt information segmentation as target segmentation; wherein the preset stop words include at least one of prepositions, conjunctions, and modal particles; encoding the target segmentation to obtain a segmentation vector.
[0131] In one embodiment, the storage method of prompt information includes a linked list storage method and a tree structure storage method; wherein the linked list storage method stores prompt information belonging to the same prompt information category in the form of a linear table; the tree structure storage method stores prompt information belonging to the same prompt information category in the form of a non-linear structure, and the prompt information stored in the tree structure storage method is linked in a tree-like hierarchical structure defined by a branch relationship; when compressing the same type of prompt information, the computer program further implements the following steps when executed by the processor: obtaining the same type of prompt information category to which the prompt information to be managed belongs as the category to be verified; wherein, in response to determining that the prompt information to be managed does not belong to an existing prompt information Information category, create a new prompt information category and store the prompt information to be managed; obtain a third number of the category to be verified; wherein the third number represents the number of prompt information already existing in the category to be verified, or the sum of the number of prompt information already existing and the prompt information to be managed; compare the third number with a preset number threshold; in response to the third number not reaching the preset number threshold, compress the prompt information to be managed into the category to be verified, and the category to be verified stores the prompt information in a linked list storage manner; in response to the third number reaching the preset number threshold, compress the prompt information to be managed into the category to be verified, and convert the storage manner of the category to be verified from the linked list storage manner to the tree structure storage manner.
[0132] In one embodiment, when a key-value mapping process is performed on keywords and the key value of each keyword is obtained, the computer program also implements the following steps when being executed by the processor: using a hash function to calculate the hash value of the keyword; using the hash value of the keyword as the key value of the keyword; integrating the key value of each keyword of the prompt information to be managed as the category evaluation value of the prompt information to be managed, the computer program also implements the following steps when being executed by the processor: superimposing the hash value of each keyword; using the sum of the hash values of each keyword of the prompt information to be managed as the category evaluation value of the prompt information to be managed.
[0133] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0134] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0135] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application.
Claims
1. A prompt information management method, It is characterized in that The prompt information management method comprises: Get reminder information to be managed; Extracting keywords of the prompt information to be managed, performing key-value mapping processing on the keywords, and obtaining key values of the keywords; Merging the key values of the keywords of the prompt information to be managed as the category evaluation value of the prompt information to be managed; It is determined that the prompt information with matching category evaluation values belongs to the same type of prompt information, and the same type of prompt information is compressed.
2. The prompt information management method according to claim 1, It is characterized in that The keywords for extracting the prompt information to be managed include: Performing word segmentation processing on the prompt information to be managed to obtain a word segmentation vector of the prompt information to be managed; Evaluate the weight of each word segmentation vector; A first number of the word segmentation vectors are selected as the keywords; wherein the weight of the word segmentation vectors that are the keywords is higher than the weight of the word segmentation vectors that are not the keywords.
3. The prompt information management method according to claim 2, It is characterized in that After obtaining the word segmentation vector of the prompt information to be managed, the following step is further included: Constructing a graph set model of the word segmentation vectors of the prompt information to be managed; wherein each node set of the graph set model includes a second number of the word segmentation vectors, and the word segmentation vectors in the same node set are adjacent; The evaluation function for evaluating the weight of each word segmentation vector is: Where d represents the damping coefficient; In(i) represents all nodes connected to node i; Out(j) represents all nodes that can be reached from node j in the atlas model; ω ji Represents the correlation between node i and node j.
4. The prompt information management method according to claim 2, It is characterized in that The word segmentation processing of the prompt information to be managed includes: Identify the prompt information to be managed and perform separation and marking processing, so as to perform word segmentation and part-of-speech processing on the prompt information to be managed, and obtain the prompt information word segmentation; Based on the separation mark processing result, the preset stop words in the prompt information segmentation are filtered, and the remaining prompt information segmentation is used as the target segmentation; wherein the preset stop words include at least one of prepositions, conjunctions, and modal particles; the target segmentation is encoded to obtain the segmentation vector.
5. The prompt information management method according to claim 1, It is characterized in that The storage method of the prompt information includes a linked list storage method and a tree structure storage method; The linked list storage method stores the prompt information belonging to the same prompt information category in the form of a linear list; The tree structure storage method stores prompt information belonging to the same prompt information category in a non-linear structure, and the prompt information stored in the tree structure storage method is linked in a tree shape of a hierarchical structure defined by a branch relationship; The compressed similar prompt information includes: Acquire the same prompt information category to which the prompt information to be managed belongs as the category to be verified; wherein, in response to determining that the prompt information to be managed does not belong to an existing prompt information category, create a new prompt information category and store the prompt information to be managed; Acquire a third number of the categories to be verified; wherein the third number represents the number of existing prompt information in the category to be verified, or the sum of the number of the existing prompt information and the prompt information to be managed; Comparing the third quantity with a preset quantity threshold; In response to the third quantity not reaching the preset quantity threshold, compressing the prompt information to be managed into the category to be verified, and the category to be verified stores the prompt information in the linked list storage manner; In response to the third quantity reaching the preset quantity threshold, the prompt information to be managed is compressed into the category to be verified, and the storage mode of the category to be verified is converted from the linked list storage mode to the tree structure storage mode.
6. The prompt information management method according to claim 1, It is characterized in that The performing key-value mapping processing on the keywords to obtain the key value of each keyword includes: Calculating a hash value of the keyword using a hash function; Using the hash value of the keyword as the key value of the keyword; The key values of the keywords of the prompt information to be managed are integrated as the category evaluation value of the prompt information to be managed, including: Adding hash values of the keywords; The sum of the hash values of the keywords of the prompt information to be managed is used as the category evaluation value of the prompt information to be managed.
7. A prompt information management system, It is characterized in that The prompt information management system comprises: An information processing device, configured to execute the prompt information management method according to any one of claims 1 to 6; The information storage device is used to store various types of compressed prompt information.
8. The prompt information management system according to claim 7, It is characterized in that The information processing device comprises: A preprocessing module is used to perform word segmentation on the management prompt information to obtain a word segmentation vector; A secondary processing module, connected to the preprocessing module, for extracting keywords from the word segmentation vector; a conversion module, connected to the secondary processing module, for calculating the keywords of the prompt information to be managed using a hash function to obtain a hash value of each keyword as a key value of each keyword; A determination module is connected to the conversion module and is used to obtain a category evaluation value of the prompt information to be managed based on the key value of the keyword, so as to determine whether the prompt information matching the category evaluation value belongs to the same type of prompt information based on the category evaluation value, compress the same type of prompt information, and send the determination result to the information storage device, so that the information storage device compresses and stores the prompt information based on the determination result.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the prompt information management method according to any one of claims 1 to 6 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the prompt information management method according to any one of claims 1 to 6 are implemented.
