Text report problem automatic summarization method and device and medium
Through the automatic summary method of text report issues, cluster analysis and reinforcement learning technology are used to solve the cumbersome problems of employee weekly and daily summary and quarterly statistics, achieve efficient and accurate automated processing, and generate clear visual reports and rankings.
Patent Information
- Application Number
- CN202410937210.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-10-15
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the existing technology, the summary of employee weekly and daily reports and quarterly statistical rankings are cumbersome, time-consuming and difficult to guarantee accuracy, especially when the number of employees is large.
The text report problem automatic summary method is used to obtain historical problem data, perform annotation and cluster analysis, generate a problem classification model, and use reinforcement learning and cluster analysis methods to automatically identify error content and generate summary reports to form a visual preset format.
Automated processing is realized, work efficiency and accuracy are improved, human errors are reduced, automatic execution is realized through scheduled task tools, and clear visual reports and rankings are generated.
Smart Images

Figure CN118779362A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of text recognition technology, and more specifically, to a method, device and medium for automatically summarizing text report problems. Background Art
[0002] In order to make the preparation of employees' weekly and daily reports more standardized, the company will have a dedicated person to check and summarize each person's weekly and daily reports on weekends, and a ranking of the number of quarterly issues needs to be compiled every quarter; due to the large number of employees, the work of summarizing issues and quarterly statistical rankings is cumbersome and time-consuming, and the accuracy cannot be guaranteed. Summary of the invention
[0003] In view of the deficiencies in the prior art, the present invention provides a method, device and medium for automatically summarizing text report problems.
[0004] According to one aspect of the present invention, a method for automatically summarizing text report problems is provided, comprising:
[0005] Obtain a historical problem data set of the text report, and annotate each historical problem data in the historical problem data set with a problem category;
[0006] Cluster analysis is used to classify the annotated historical question data set and generate a question classification model;
[0007] The problem classification model is used to automatically batch identify the erroneous content of text reports within a preset period and their corresponding problem classifications, and determine the problem summary of the text reports within the preset period.
[0008] Optionally, the method further includes: preprocessing the historical question data set using a reinforcement learning method, wherein the reward function of the reinforcement learning method is set to:
[0009] R(s,a)=a*Acc(s,a)+b*Inf(s,a)+c*Fluency(s,a)
[0010] Where a represents the weight of the accuracy score; b represents the weight of the information score; c represents the weight of the fluency score; R(s,a) represents the reward value for performing action a in a given state s; Acc(s,a): represents the accuracy score for performing action a in a given state s; Inf(s,a): represents the information score for performing action a in a given state s; Fluency(s,a): represents the fluency score for performing action a in a given state s.
[0011] Optionally, the method further includes: aggregating the problems reported in the text to form a visual text in a preset format.
[0012] Optionally, a cluster analysis method is used to classify the annotated historical question data set to generate a question classification model, including:
[0013] Extracting features from the historical problem data in the historical problem data set, and selecting the extracted features to determine classification features;
[0014] Scale the classification features to unify the feature scale and obtain classification feature samples;
[0015] Calculate the Euclidean distance between the classification feature samples to determine the similarity between each sample in the classification feature sample;
[0016] The historical question data set is classified according to the similarity between each sample in the classification feature sample to determine the question classification model.
[0017] Optionally, the loss function of the cluster analysis method is the sum of squared errors.
[0018] According to another aspect of the present invention, there is provided a device for automatically summarizing text report problems, comprising:
[0019] An acquisition module is used to acquire a historical problem data set of a text report, and to mark the problem category of each historical problem data in the historical problem data set;
[0020] A generation module is used to classify the annotated historical question data set using a cluster analysis method to generate a question classification model;
[0021] The identification module is used to automatically batch identify the erroneous content of text reports within a preset period and their corresponding problem classifications using a problem classification model, and determine the problem summary of the text reports within the preset period.
[0022] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, and the computer program is used to execute the method described in any one of the above aspects of the present invention.
[0023] According to another aspect of the present invention, an electronic device is provided, comprising: a processor; a memory for storing instructions executable by the processor; the processor is configured to read the executable instructions from the memory and execute the instructions to implement the method described in any one of the above aspects of the present invention.
[0024] Therefore, this application uses an automated technical solution to convert the text report problem summary work into an automatically executed task, which can greatly improve work efficiency and accuracy. This automated processing can avoid human errors and reduce the time and workload required for manual operations. Through the use of scheduled task tools, weekly summary work can be automatically executed as planned, and visual reports and rankings can be generated to provide team members and stakeholders with a clear overview of the problems and statistical results. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] A more complete understanding of exemplary embodiments of the present invention may be obtained by referring to the following drawings:
[0026] Figure 1 It is a flowchart of a method for automatically summarizing text report problems provided by an exemplary embodiment of the present invention;
[0027] Figure 2 It is a structural schematic diagram of a device for automatically summarizing text report problems provided by an exemplary embodiment of the present invention;
[0028] Figure 3 This is a structure of an electronic device provided by an exemplary embodiment of the present invention. DETAILED DESCRIPTION
[0029] Below, the exemplary embodiments according to the present invention will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments of the present invention, and it should be understood that the present invention is not limited to the exemplary embodiments described here.
[0030] It should be noted that the relative arrangement of components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
[0031] Those skilled in the art can understand that the terms "first" and "second" in the embodiments of the present invention are only used to distinguish different steps, devices or modules, etc., and neither represent any specific technical meaning nor indicate the necessary logical order between them.
[0032] It should also be understood that, in the embodiments of the present invention, “plurality” may refer to two or more than two, and “at least one” may refer to one, two or more than two.
[0033] It should also be understood that any component, data or structure mentioned in the embodiments of the present invention can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.
[0034] In addition, the term "and / or" in the present invention is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the present invention generally indicates that the associated objects before and after are in an "or" relationship.
[0035] It should also be understood that the description of the various embodiments of the present invention focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.
[0036] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0037] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
[0038] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.
[0039] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0040] Embodiments of the present invention can be applied to electronic devices such as terminal devices, computer systems, servers, etc., which can operate with many other general or special computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments and / or configurations suitable for use with electronic devices such as terminal devices, computer systems, servers, etc. include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, small computer systems, large computer systems, and distributed cloud computing technology environments including any of the above systems, etc.
[0041] Electronic devices such as terminal devices, computer systems, servers, etc. can be described in the general context of computer system executable instructions (such as program modules) executed by computer systems. Generally, program modules can include routines, programs, object programs, components, logic, data structures, etc., which perform specific tasks or implement specific abstract data types. Computer systems / servers can be implemented in a distributed cloud computing environment, where tasks are performed by remote processing devices linked through a communication network. In a distributed cloud computing environment, program modules can be located on local or remote computing system storage media including storage devices.
[0042] Exemplary Methods
[0043] Figure 1 FIG. 1 is a flow chart of a method for automatically summarizing text report problems provided by an exemplary embodiment of the present invention. This embodiment can be applied to electronic devices, such as Figure 1 As shown, the text report problem automatic summary method 100 includes the following steps:
[0044] Step 101, obtaining a historical problem data set of a text report, and marking the problem category of each historical problem data in the historical problem data set;
[0045] Step 102, using a cluster analysis method to classify the annotated historical question data set to generate a question classification model;
[0046] Step 103, using the problem classification model to automatically batch identify the erroneous contents of the text reports within a preset period and their corresponding problem classifications, and determine the problem summary of the text reports within the preset period.
[0047] Specifically, this application will classify, calculate and count the inspection results according to the set rules, generate a unified summary report, and set up automated tasks to regularly execute this process to improve efficiency and accuracy.
[0048] The specific implementation steps are as follows:
[0049] 1. First, the weekly and daily problem data needs to be integrated:
[0050] Extract question data from each employee’s weekly and daily reports through text processing techniques (such as regular expressions) or natural language processing tools (such as NLTK).
[0051] Integrate the extracted problem data into a collection (such as a database table or spreadsheet), including information such as problem description, person to whom, department to which, submission time, etc.
[0052] In data processing, advanced reinforcement learning methods are adopted, which can independently solve problems through autonomous learning and optimization and adapt to the ever-changing data environment.
[0053] The specific operations are as follows:
[0054] 1) Environmental modeling:
[0055] a) State space: The original text dataset is regarded as the state space of the reinforcement learning environment, denoted as (s).
[0056] b) Vector representation: Use vector representation method to convert text into vector representation of state(s).
[0057] 2) Action definition:
[0058] Action Space: Define an action space (A), where each action (a) represents an operation that the agent can perform, such as selecting a sentence, extracting keywords, etc.
[0059] 3) Reward design:
[0060] Reward function: Design a reward function (R(s,a)) to measure how well the agent performs action (a) in state (s); the reward function is:
[0061] R(s,a)=a*Acc(s,a)+b*Inf(s,a)+c*Fluency(s,a)
[0062] Where a is the weight representing the accuracy score. It determines the importance of accuracy in the reward calculation. A larger weight will place more emphasis on accuracy.
[0063] b: represents the weight of the information score. It determines the importance of information in the reward calculation. A larger weight will place more emphasis on information.
[0064] c: represents the weight of the fluency score. It determines the importance of fluency in the reward calculation. A larger weight will emphasize fluency more.
[0065] R(s,a): represents the reward value for executing action a in a given state s. It is obtained by weighted calculation of the accuracy score Acc(s,a), the information score Inf(s,a), and the fluency score Fluency(s,a). R(s,a) can be used as the objective function in reinforcement learning to guide the agent to make decisions and optimize strategies in the environment.
[0066] Acc(s,a): represents the accuracy score of executing action a in a given state s. This score can measure whether the model's answer to the question is accurate and correct. The specific scoring method can be accuracy, F1 score or other evaluation indicators, which should be selected according to the specific task and application scenario.
[0067] Inf(s,a): represents the informativeness score of performing action a in a given state s. This score can measure the richness of information provided by the model when answering questions. Specifically, Inf(s,a) can consider factors such as the relevance of the answer, the level of detail, and the new information provided to evaluate the informativeness of the model when answering questions.
[0068] Fluency(s,a): represents the fluency score of executing action a in a given state s. This score can measure the language fluency of the model when answering questions. It can consider factors such as grammatical correctness, naturalness, and coherence to evaluate the quality of the model's language expression when answering questions.
[0069] 4) Reinforcement learning algorithm selection and training:
[0070] a) Choose a reinforcement learning algorithm suitable for the text reporting problem, such as Deep Q-Network (DQN), Proximal Policy Optimization (PPO), etc.
[0071] b) Use reinforcement learning algorithms for training to optimize the agent’s strategy through interaction with the environment.
[0072] 5) Testing and evaluation:
[0073] a) After training is complete, the trained agent is applied to new text data and its performance in generating report summaries is evaluated.
[0074] b) Use automatic evaluation metrics (e.g., ROUGE, BLEU) or human evaluation metrics to evaluate the quality of summaries generated by the agent.
[0075] 2. After the integration is completed, weekly and daily report issues need to be classified:
[0076] According to the classification rules of the questions, traverse each question data to determine which category it belongs to. This can be done using keyword matching, rule matching, or machine learning methods.
[0077] Label each piece of question data with the corresponding category.
[0078] Specifically, after the integration is completed, it is necessary to classify the weekly and daily report issues through cluster analysis technology:
[0079] First, perform feature selection: select features that are meaningful to the clustering task based on the requirements of the problem and the characteristics of the data. You can use methods such as correlation analysis and variance analysis to select features.
[0080] Then scale the features: unify the features of different scales into one range to avoid a certain feature having too much influence on the clustering results. Commonly used methods include standardization and normalization.
[0081] Then, feature extraction is performed: meaningful features can be extracted from the original data through dimensionality reduction methods such as principal component analysis (PCA) and linear discriminant analysis (LDA).
[0082] Next, we select the Euclidean distance as a similarity measure to calculate the similarity between samples. Using the scikit-learn library, we can calculate the Euclidean distance using the `euclidean_distances` function.
[0083] Then use the K-means algorithm: a commonly used centroid-based clustering algorithm. The number of clusters needs to be specified in advance, the centroids of the clusters are continuously updated in an iterative manner, and the samples are assigned to the nearest cluster.
[0084] Next, parameter optimization and clustering execution are required: Optimizing the clustering algorithm by adjusting parameters is an iterative process. The clustering results can be evaluated and optimized by trying different initial centroids, different numbers of clusters, etc.
[0085] Finally, interpret and visualize the clustering results: interpret and visualize the clustering results to better understand the clustering effect. You can use scatter plots, heat maps, etc. to display the clustering results. At the same time, assign a label or name to each cluster to represent the theme or class of the cluster.
[0086] In this way, the category of each question is matched.
[0087] Among them, the parameter adjustment results and specific parameter values of the K-means algorithm are as follows:
[0088] Number of clusters (k): By trying different k values (such as 2, 3, 4, 5, etc.), the corresponding evaluation indicators are calculated to obtain the clustering effect under different k values. Finally, it is found that when k = 3, the silhouette coefficient is the highest, indicating that this cluster division method best meets the clustering goal. Therefore, k = 3 is finally selected as the optimal number of clusters.
[0089] Iterations (max_iter): Set a larger number of iterations, here set to 1000, to ensure that the model is fully iterated. In actual operation, it is observed that after 400 iterations, the best centroid no longer changes, that is, the centroid has stabilized. Therefore, the iteration can be terminated early to save computing resources.
[0090] Selection of initial centroids: Use the K-means++ algorithm to select the initial centroids. The K-means++ algorithm takes into account the distance between centroids and obtains better initial centroids by selecting data points that are far away from the selected centroids as new centroids.
[0091] Distance measurement method: K-means algorithm uses Euclidean distance as the similarity measurement method by default. According to the characteristics and distribution of the data, cosine similarity is used as the distance measurement. First, the text data needs to be converted into a vector representation. Use the bag of words model or TF-IDF model to convert the text into a vector. The document vector is constructed by counting the frequency of words in each document. Then, according to the cosine similarity, the distance between each document and the centroid is calculated. The distance calculation can be converted into the distance formula using cosine similarity: distance = 1-cosine similarity. By calculating the distance, each document can be assigned to the corresponding cluster according to the minimum distance.
[0092] Loss function: Use SSE as the loss function. During the iteration process, calculate the distance between each sample and the centroid of the cluster to which it belongs, and update the cluster assignment of the centroid and sample. The iterative process will continue until the cluster assignment no longer changes or the predetermined maximum number of iterations is reached.
[0093] After each iteration, SSE can be calculated to evaluate the current clustering effect. Suppose after the 10th iteration, the following SSE value is obtained:
[0094] Cluster 1 SSE: 100
[0095] Cluster 2 SSE: 150
[0096] Cluster 3 SSE: 120
[0097] This means that under the current clustering results, the sum of squared distances between samples in cluster 1 and their centroids is 100, the sum of squared distances between samples in cluster 2 is 150, and the sum of squared distances between samples in cluster 3 is 120. The goal is to minimize SSE to achieve better clustering results.
[0098] 3. Then, the weekly questions will be summarized:
[0099] For each person's weekly and daily problem data, count the number of problems each person has each week. Group by person and calculate the number of problems each person has each week.
[0100] Present the results in a table or graph, including the person's name and the number of problems for the corresponding week.
[0101] 4. After the summary is completed, the quarterly problems will be arranged by different dimensions to form the statistical data of the quarterly problem rankings:
[0102] Group by department and count the number of issues in each department within a quarter. You can use database queries or data processing tools to group and count.
[0103] Arrange the number of department questions in descending order to generate a question ranking list. The ranking list can include department names and the corresponding number of questions.
[0104] 5. Next, you can use the data generated in the previous step to complete the generation and sharing of reports:
[0105] Use report generation tools (such as Excel, Python's Pandas library, and data visualization tools) to generate weekly issue summary reports and quarterly issue ranking reports.
[0106] Export the report to an appropriate format (such as Excel, PDF) and share it with relevant personnel via email, message or system notification.
[0107] 6. This is a long-term scheduled job, which requires the creation of an automated scheduled task:
[0108] Write an automation script or application to define the execution frequency of scheduled tasks (such as every Monday).
[0109] Call the code in the previous steps in the script to automatically execute the problem summary and quarterly statistics tasks every week.
[0110] Use a scheduled task tool (such as cron, Windows Task Scheduler) or a script scheduling framework (such as APScheduler) to set up scheduled task execution.
[0111] 7. After everything is configured, finally, you need to generate relevant reports and be able to share them:
[0112] To present summary of issues and quarterly leaderboards to team members and other stakeholders, I use report generation tools such as Excel, Python’s Pandas library, or data visualization tools.
[0113] Generate reports and export them to appropriate formats, such as Excel or PDF. Send problem summaries and rankings to relevant personnel in the company by sending tasks on a scheduled basis.
[0114] Therefore, this application uses an automated technical solution to convert the text report problem summary work into an automatically executed task, which can greatly improve work efficiency and accuracy. This automated processing can avoid human errors and reduce the time and workload required for manual operations. Through the use of scheduled task tools, weekly summary work can be automatically executed as planned, and visual reports and rankings can be generated to provide team members and stakeholders with a clear overview of the problems and statistical results.
[0115] Exemplary Devices
[0116] Figure 2 FIG. 1 is a schematic diagram of a structure of an automatic summary device for text report problems provided by an exemplary embodiment of the present invention. Figure 2 As shown, the device 200 includes:
[0117] The acquisition module 210 is used to acquire a historical problem data set of the text report, and to mark the problem category of each historical problem data in the historical problem data set;
[0118] A generation module 220 is used to classify the annotated historical question data set using a cluster analysis method to generate a question classification model;
[0119] The identification module 230 is used to automatically identify the erroneous contents of the text reports within a preset period and their corresponding problem classifications in batches by using a problem classification model, and determine the problem summary of the text reports within the preset period.
[0120] Optionally, the device 200 further includes: preprocessing the historical question data set using a reinforcement learning method, wherein the reward function of the reinforcement learning method is set to:
[0121] R(s,a)=a*Acc(s,a)+b*Inf(s,a)+c*Fluency(s,a)
[0122] Where a represents the weight of the accuracy score; b represents the weight of the information score; c represents the weight of the fluency score; R(s,a) represents the reward value for performing action a in a given state s; Acc(s,a): represents the accuracy score for performing action a in a given state s; Inf(s,a): represents the information score for performing action a in a given state s; Fluency(s,a): represents the fluency score for performing action a in a given state s.
[0123] Optionally, the device 200 further includes: a forming module, configured to aggregate the problems in the text report into a visual text in a preset format.
[0124] Optionally, the generating module 220 includes:
[0125] The extraction submodule is used to extract features from the historical problem data in the historical problem data set, and select the extracted features to determine the classification features;
[0126] The acquisition submodule is used to scale the classification features to unify the feature scale and obtain the classification feature samples;
[0127] A calculation submodule is used to calculate the Euclidean distance between the classification feature samples and determine the similarity between each sample in the classification feature samples;
[0128] The submodule is determined to classify the historical question data set according to the similarity between each sample in the classification feature sample and determine the question classification model.
[0129] Optionally, the loss function of the cluster analysis method is the sum of squared errors.
[0130] Exemplary Electronic Devices
[0131] Figure 3 This is a structure of an electronic device provided by an exemplary embodiment of the present invention. Figure 3 As shown, the electronic device 30 includes one or more processors 31 and a memory 32 .
[0132] The processor 31 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
[0133] The memory 32 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 31 may run the program instructions to implement the methods of the software programs of the various embodiments of the present invention described above and / or other desired functions. In one example, the electronic device may also include: an input device 33 and an output device 34, which are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0134] In addition, the input device 33 may also include, for example, a keyboard, a mouse, and the like.
[0135] The output device 34 can output various information to the outside. The output device 34 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto.
[0136] Of course, to simplify, Figure 3 Only some of the components related to the present invention in the electronic device are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application conditions, the electronic device may also include any other appropriate components.
[0137] Exemplary computer program products and computer-readable storage media
[0138] In addition to the above-mentioned methods and devices, an embodiment of the present invention may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the method according to various embodiments of the present invention described in the above-mentioned "Exemplary Method" section of this specification.
[0139] The computer program product may be written in any combination of one or more programming languages to write program code for performing the operations of the embodiments of the present invention, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0140] In addition, an embodiment of the present invention may also be a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, enables the processor to execute the steps of the method for information mining of historical change records according to various embodiments of the present invention described in the above “Exemplary Method” section of this specification.
[0141] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, system or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0142] The basic principle of the present invention is described above in conjunction with specific embodiments. However, it should be pointed out that the advantages, strengths, effects, etc. mentioned in the present invention are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. must be possessed by each embodiment of the present invention. In addition, the specific details disclosed above are only for the purpose of illustration and facilitation of understanding, rather than limitation, and the above details do not limit the present invention to being implemented by adopting the above specific details.
[0143] Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0144] The block diagrams of the devices, systems, equipment, and systems involved in the present invention are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, systems, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The word "such as" used here refers to the phrase "such as but not limited to", and can be used interchangeably with it.
[0145] The method and system of the present invention may be implemented in many ways. For example, the method and system of the present invention may be implemented by software, hardware, firmware or any combination of software, hardware, firmware. The above order of steps for the method is only for illustration, and the steps of the method of the present invention are not limited to the order specifically described above, unless otherwise specifically stated. In addition, in some embodiments, the present invention may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present invention. Thus, the present invention also covers a recording medium storing a program for executing the method according to the present invention.
[0146] It should also be noted that in the system, device and method of the present invention, each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. The above description of the disclosed aspects is provided to enable any technician in the field to make or use the present invention. Various modifications to these aspects are very obvious to those skilled in the art, and the general principles defined here can be applied to other aspects without departing from the scope of the present invention. Therefore, the present invention is not intended to be limited to the aspects shown here, but in accordance with the widest range consistent with the principles and novel features disclosed here.
[0147] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present invention to the forms disclosed herein. Although a number of example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims
1. A method for automatically summarizing text report problems, characterized in that: include: Acquire a historical problem data set of a text report, and annotate each historical problem data in the historical problem data set with a problem category; Using a cluster analysis method to classify the annotated historical question data set to generate a question classification model; The problem classification model is used to automatically batch identify erroneous contents of text reports within a preset period and their corresponding problem classifications, and determine a problem summary of the text reports within the preset period.
2. The method according to claim 1, characterized in that: Also includes: The historical question data set is preprocessed using a reinforcement learning method, wherein the reward function of the reinforcement learning method is set to: R(s,a)=a*Acc(s,a)+b*Inf(s,a)+c*Fluency(s,a) Where a represents the weight of the accuracy score; b represents the weight of the information score; c represents the weight of the fluency score; R(s,a) represents the reward value for performing action a in a given state s; Acc(s,a): represents the accuracy score for performing action a in a given state s; Inf(s,a): represents the information score for performing action a in a given state s; Fluency(s,a): represents the fluency score for performing action a in a given state s.
3. The method according to claim 1, characterized in that: Also includes: The problems in the text report are summarized to form a visual text in a preset format.
4. The method according to claim 1, characterized in that: The labeled historical question data set is classified using a cluster analysis method to generate a question classification model, including: Extracting features from the historical problem data in the historical problem data set, and selecting the extracted features to determine classification features; Scaling the classification features to unify the feature scale, and obtaining classification feature samples; Calculating the Euclidean distance between the classification feature samples to determine the similarity between each sample in the classification feature samples; The historical question data set is classified according to the similarity between each sample in the classification feature sample to determine the question classification model.
5. The method according to claim 4, characterized in that The loss function of the cluster analysis method is the sum of squared errors.
6. A device for automatically summarizing text report problems, characterized in that: include: An acquisition module, used for acquiring a historical problem data set of a text report, and marking a problem category for each historical problem data in the historical problem data set; A generation module, used to classify the annotated historical question data set using a cluster analysis method to generate a question classification model; The identification module is used to automatically batch identify the erroneous content of text reports within a preset period and their corresponding problem classifications using the problem classification model, and determine the problem summary of the text reports within the preset period.
7. The device according to claim 6, characterized in that Also includes: A forming module is used to summarize the problems in the text report to form a visual text in a preset format.
8. The device according to claim 6, characterized in that Generate modules, including: An extraction submodule, used for extracting features from the historical question data in the historical question data set, and selecting the extracted features to determine classification features; An acquisition submodule is used to scale the classification features to a uniform feature scale and obtain classification feature samples; A calculation submodule, used to calculate the Euclidean distance between the classification feature samples, and determine the similarity between each sample in the classification feature samples; A determination submodule is used to classify the historical question data set according to the similarity between each sample in the classification feature sample, and determine the question classification model.
9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program is used to execute the method according to any one of claims 1 to 5.
10. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the method described in any one of claims 1 to 5.
Citation Information
Patent Citations
Bridge detection report generation method and system
CN111027946A
Data enhancement method and device, equipment and storage medium thereof
CN115795310A
Audit report generation method and device, electronic equipment and nonvolatile storage medium
CN117648925A
Vehicle fault handling mode pushing method and device and medium
CN117668221A
