Method for generating target content in work text and related equipment

By acquiring and matching work task information, building a knowledge graph and combining it with large models, the problem of singleness and accuracy of target content recommendation in work documents is solved, more comprehensive and accurate security measure recommendations are achieved, and the security of work documents is improved. and adaptability.

CN118569218APending Publication Date: 2024-08-30FIBRLINK NETWORKS +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410646969.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-23
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The target content recommendation method in existing work documents is single, there is a risk of omission, the accuracy is low, and it cannot adapt to the needs of different work locations and tasks. The randomness of large models and the limitations of the knowledge base make the recommendation of security measures inflexible and inaccurate.

Method used

By obtaining work task information, we perform similarity matching of historical work texts, build a knowledge graph, combine preset standard content and normative content to generate target content, and use vector space models and large models to recommend content to ensure the comprehensiveness and accuracy of the content. .

Benefits of technology

It effectively improves the comprehensiveness and accuracy of target content recommendations, reduces manual filling errors, improves the accuracy and adaptability of recommended safety measures in work documents, and enhances the safety of operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118569218A
    Figure CN118569218A
Patent Text Reader

Abstract

The invention provides a method for generating target content in a work text and related equipment. The method comprises the steps of obtaining work information of a work task; performing similarity matching in historical work texts based on the work information to obtain a target historical work text related to the work task; the target historical work text comprises historical target content related to the work task; determining candidate work content based on the work information, the historical target content and preset standard content; determining standard content about the work task based on the work information; and based on the work information, the candidate work content and the standard content, generating target content about the work task.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data processing, and in particular to a method for generating target content in a work text and related equipment. Background Art

[0002] Work documents are often used to record content related to work tasks. At present, the content in work documents can be obtained based on rules or large models. However, due to the limited design rules, the rule-based method cannot cover all work tasks and work types, and it is easy to omit safety measures when generating target content. For expert systems, they will be restricted by the knowledge base. Once the knowledge base is established, it is difficult to update and maintain it in the future, and the adaptability is poor. Although the large model-based method has strong adaptability to different work tasks, the answers of the large model are somewhat random, and there is a certain deviation in the answers to professional questions. In addition, the content generated by the large model is usually not flexible enough, and it cannot be accurately adjusted for different work locations and tasks. At the same time, it is also limited by the content of the knowledge base, and has high requirements for the knowledge base. Therefore, the existing model has a single method and a risk of omission when recommending content, and the accuracy of content recommendation is low. Summary of the invention

[0003] The present disclosure proposes a method for generating target content in a work text and related equipment, so as to solve the technical problems that the content recommendation method in the work text is single and has the risk of omission and low accuracy, etc. to a certain extent.

[0004] In a first aspect, the present disclosure provides a method for generating target content in a working text, comprising:

[0005] Get work information of work tasks;

[0006] Based on the work information, similarity matching is performed in historical work texts to obtain a target historical work text related to the work task; the target historical work text includes historical target content related to the work task;

[0007] Determine candidate work content based on the work information, the historical target content and the preset standard content;

[0008] Determining specification content about the work task based on the work information;

[0009] Based on the work information, the candidate work contents and the specification contents, target contents regarding the work task are generated.

[0010] In a second aspect of the present disclosure, a device for generating target content in a working text is provided, comprising:

[0011] An acquisition module is used to obtain work information of work tasks;

[0012] A matching module, configured to perform similarity matching in historical work texts based on the work information to obtain a target historical work text related to the work task; the target historical work text includes historical target content related to the work task;

[0013] A candidate module, used to determine candidate work content based on the work information, the historical target content and the preset standard content;

[0014] A specification module, used for determining specification content about the work task based on the work information;

[0015] A generation module is used to generate target content about the work task based on the work information, the candidate work content and the standard content.

[0016] In a third aspect of the present disclosure, an electronic device is provided, comprising one or more processors, a memory; and one or more programs, wherein the one or more programs are stored in the memory and executed by the one or more processors, and the programs include instructions for executing the method described in the first aspect.

[0017] According to a fourth aspect of the present disclosure, a non-volatile computer-readable storage medium containing a computer program is provided. When the computer program is executed by one or more processors, the processors execute the method described in the first aspect.

[0018] In a fifth aspect of the present disclosure, a computer program product is provided, comprising computer program instructions, which, when executed on a computer, enable the computer to execute the method described in the first aspect.

[0019] From the above, it can be seen that the method and related equipment for generating target content in a work text provided by the present disclosure fully utilizes the normative knowledge in historical work texts and work procedures to recommend target content. Compared with a single rule-based method or a large model method, the method proposed in the present disclosure can effectively improve the comprehensiveness of target content recommendation. It can solve the problems of low efficiency and low accuracy of target content recommendation existing in the existing technical solutions, provide strong support for front-line staff to fill in work texts, effectively reduce errors caused by manual filling, and comprehensive and accurate safety measures can effectively improve the safety of operations. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the present disclosure or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 A schematic diagram of a generation architecture of target content in a working text according to an embodiment of the present disclosure.

[0022] Figure 2 The figure is a schematic diagram of the hardware structure of an exemplary electronic device according to an embodiment of the present disclosure.

[0023] Figure 3 The present invention is a flowchart of a method for generating target content in a working text according to an embodiment of the present invention.

[0024] Figure 4 A schematic diagram of a method for generating target content in a working text according to an embodiment of the present disclosure.

[0025] Figure 5 A schematic diagram of a device for generating target content in a working text according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0026] In order to make the objectives, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0027] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the embodiments of the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0028] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0029] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0030] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0031] Figure 1 A schematic diagram of a target content generation architecture in a working text according to an embodiment of the present disclosure is shown. Figure 1 , the generation architecture 100 of the target content in the working text may include a server 110, a terminal 120, and a network 130 providing a communication link. The server 110 and the terminal 120 may be connected via a wired or wireless network 130. The server 110 may be an independent physical server, or a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, security services, and CDN.

[0032] The terminal 120 may be implemented in hardware or software. For example, when the terminal 120 is implemented in hardware, it may be various electronic devices having a display screen and supporting page display, including but not limited to smart phones, tablet computers, e-book readers, laptop portable computers, and desktop computers, etc. When the terminal 120 device is implemented in software, it may be installed in the electronic devices listed above; it may be implemented as multiple software or software modules (such as software or software modules used to provide distributed services), or it may be implemented as a single software or software module, which is not specifically limited here.

[0033] It should be noted that the method for generating target content in the working text provided in the embodiment of the present application can be executed by the terminal 120 or by the server 110. It should be understood that Figure 1 The number of terminals, networks and servers in the embodiment is only for illustration and is not intended to limit the number of terminals, networks and servers. Any number of terminals, networks and servers may be provided as required.

[0034] Figure 2 FIG. 2 shows a schematic diagram of the hardware structure of an exemplary electronic device 200 provided in an embodiment of the present disclosure. Figure 2As shown, the electronic device 200 may include: a processor 202, a memory 204, a network module 206, a peripheral interface 208 and a bus 210. The processor 202, the memory 204, the network module 206 and the peripheral interface 208 are connected to each other in communication within the electronic device 200 through the bus 210.

[0035] Processor 202 may be a central processing unit (CPU), a generator of target content in a work text, a neural network processor (NPU), a microcontroller (MCU), a programmable logic device, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), or one or more integrated circuits. Processor 202 may be used to perform functions related to the technology described in this disclosure. In some embodiments, processor 202 may also include multiple processors integrated into a single logical component. For example, Figure 2 As shown, processor 202 may include a plurality of processors 202a, 202b, and 202c.

[0036] The memory 204 may be configured to store data (eg, instructions, computer code, etc.). Figure 2 As shown, the data stored in the memory 204 may include program instructions (for example, program instructions for implementing the method for generating target content in the working text of the embodiment of the present disclosure) and data to be processed (for example, the memory may store configuration files of other modules, etc.). The processor 202 may also access the program instructions and data stored in the memory 204, and execute the program instructions to operate on the data to be processed. The memory 204 may include a volatile storage device or a non-volatile storage device. In some embodiments, the memory 204 may include a random access memory (RAM), a read-only memory (ROM), an optical disk, a magnetic disk, a hard disk, a solid-state drive (SSD), a flash memory, a memory stick, etc.

[0037] The network module 206 can be configured to provide communication with other external devices to the electronic device 200 via a network. The network can be any wired or wireless network capable of transmitting and receiving data. For example, the network can be a wired network, a local wireless network (e.g., Bluetooth, WiFi, near field communication (NFC) etc.), a cellular network, the Internet or a combination thereof. It is understood that the type of network is not limited to the above specific examples. In some embodiments, the network module 306 can include any number of network interface controllers (NICs), radio frequency modules, transceivers, modems, routers, gateways, adapters, cellular network chips, etc., in any combination.

[0038] The peripheral interface 208 can be configured to connect the electronic device 200 to one or more peripheral devices to achieve information input and output. For example, the peripheral devices can include input devices such as a keyboard, a mouse, a touch pad, a touch screen, a microphone, and various sensors, and output devices such as a display, a speaker, a vibrator, and an indicator light.

[0039] The bus 210 can be configured to transmit information between various components of the electronic device 200 (e.g., the processor 202, the memory 204, the network module 206, and the peripheral interface 208), such as an internal bus (e.g., a processor-memory bus), an external bus (USB port, PCI-E bus), etc.

[0040] It should be noted that, although the architecture of the electronic device 200 only shows the processor 202, the memory 204, the network module 206, the peripheral interface 208 and the bus 210, in the specific implementation process, the architecture of the electronic device 200 may also include other components necessary for normal execution. In addition, it can be understood by those skilled in the art that the architecture of the electronic device 200 may also only include the components necessary for implementing the embodiments of the present disclosure, and does not necessarily include all the components shown in the figure.

[0041] Electric power work documents are indispensable work documents in the power industry and are necessary documents to prevent personal and equipment accidents during the inspection and maintenance of power equipment. Currently, the filling of safety measures in substation work documents mainly refers to standardized templates and is filled out based on work experience. There are problems such as lack of intelligence, narrow applicability, and low reliability.

[0042] In the field of work text safety measures recommendation, rule-based safety measures recommendation method and knowledge base and large model-based safety measures recommendation method are two important recommendation methods. Rule-based safety measures recommendation method: This method is mainly based on invoicing rules for invoicing. Expert system is a typical method of this type. The system needs to design key information involved in work text invoicing, such as equipment type, equipment location, operation steps, etc., obtain relevant knowledge of power equipment operation through interaction with experts, and clarify the safety measures that need to be taken under various operating conditions. In the next step, the knowledge provided by the expert is expressed in a form that can be understood by the computer. The theoretical knowledge is formalized and saved by extracting the rules and logic in the knowledge, so that the expert system can process and use this information. Select the reasoning method of the inference machine and design the reasoning algorithm. The user can communicate with the machine through the interface and get the answer to the question. Safety measures recommendation method based on knowledge base and large model: This method is mainly based on the large model to recommend safety measures. The large model learns language structure and knowledge through large-scale text data, so that the computer can understand the questions raised by the user. In professional fields, the large model is not effective in answering questions due to insufficient knowledge. The knowledge base is used to supplement professional knowledge. When a user asks a relevant question, the relevant professional knowledge is first retrieved from the knowledge base, and then the content of the user's question and the professional knowledge are transmitted to the big model. The big model answers the professional questions raised by the user based on the input information.

[0043] Due to the limited rules of the design, the rule-based method cannot cover all work tasks and work types. It is easy to omit safety measures when recommending safety measures. For expert systems, they will be limited by the knowledge base. Once the knowledge base is established, it is difficult to update and maintain it in the future, and the adaptability is poor. Although the large model-based method has strong adaptability to different work tasks, the answers of the large model are somewhat random, and there is a certain deviation in the answers to professional questions. The filling of work text safety measures needs to consider different work locations and tasks. The safety measures generated by the large model are usually not flexible enough and cannot be accurately adjusted for different work locations and tasks. At the same time, the content of the large model’s answer is also limited by the content of the knowledge base, which has high requirements for the knowledge base. The recommendation of work text safety measures has strong professionalism and flexibility, and the model needs to have high robustness. The existing model has a single method and a risk of omission when recommending safety measures, and the accuracy of safety measures recommendation is low. Therefore, how to improve the accuracy and comprehensiveness of target content recommendation has become a technical problem that needs to be solved urgently.

[0044] In view of this, the embodiments of the present disclosure provide a method for generating target content in a work text and related equipment. Make full use of the normative knowledge in historical work texts and work procedures to recommend target content. Compared with a single rule-based method or a large model method, the method proposed in the present disclosure can effectively improve the comprehensiveness of target content recommendation. It can solve the problems of low efficiency and low accuracy of target content recommendation in the existing technical solutions, provide strong support for front-line staff to fill in work texts, effectively reduce errors caused by manual filling, and comprehensive and accurate safety measures can effectively improve the safety of operations.

[0045] See also Figure 3 , Figure 3 A schematic flow chart of a method for generating target content in a working text according to an embodiment of the present disclosure is shown. The method for generating target content in a working text according to an embodiment of the present disclosure can be deployed on a server side. Figure 3 In the method 300 for generating target content in a working text, the method 300 may further include the following steps.

[0046] In step S310, work information of the work task is obtained.

[0047] Among them, the work task may refer to the work goal to be completed, and the work information may refer to the information related to the work task to be completed, including the goal, requirements, background, expected results, etc. of the task. Specifically, the work task may be an electric power work task, and the corresponding work information may include at least one of the following: work location, work equipment, or work content. Taking the electric power field as an example, the work information may include: the work equipment is "high-voltage line", the work content is "replacing insulators", and the work location is "transmission line section C".

[0048] In step S320, similarity matching is performed in historical work texts based on the work information to obtain a target historical work text related to the work task; the target historical work text includes historical target content related to the work task.

[0049] Among them, historical work texts can refer to work documents that record historical work tasks that have been performed in the past, which may include details, methods, results, measures, etc. The target historical work text can refer to the historical work text related to the work task, where the content related to the work task is the historical target content. After similarity matching, the documents or records that are most similar or relevant to the current work task are determined from the historical work texts as the target historical work texts. In the power field, historical work texts can refer to historical work tickets in the power field, and historical target content can refer to safety measures in historical work tickets.

[0050] In some embodiments, similarity matching is performed in historical work texts based on the work information to obtain a target historical work text related to the work task, including:

[0051] Constructing a knowledge graph based on the historical working text and the preset standard content, wherein the historical target content in the knowledge graph is associated with the historical working text, and the historical target content is associated with the corresponding preset standard content;

[0052] Perform similarity matching on the historical work texts in the knowledge graph based on the work information to obtain target historical texts;

[0053] The target historical work text is determined based on a portion of the target historical text that is relevant to the work task.

[0054] Specifically, taking the power field as an example, work information such as work location and equipment name, work content, etc. can be entered. These work information can be encoded into vectors using a vector space model. Find the historical work ticket that is most similar to the work information in the knowledge graph, and recommend the safety measures part of the historical work ticket as the target historical text. For example, if the work information is line maintenance at substation B, then the historical work ticket most similar to the task will be found, such as work ticket NO.1, which also performs line maintenance at the substation. Based on similar work tickets, the corresponding historical safety measures are recommended. For example, since work ticket NO.1 is similar to the current task, the safety measures of work ticket NO.1 can be recommended, such as "using an insulated boom truck" and "wearing a full set of high-altitude work safety equipment".

[0055] In some embodiments, constructing a knowledge graph based on the historical working text and the preset standard content includes:

[0056] Obtaining the historical work text;

[0057] Extract key information from the historical work text and store it in a preset format to obtain the historical target content;

[0058] The historical target content is associated with the historical working text, and the historical target content is associated with the corresponding preset standard content to obtain the knowledge graph.

[0059] Specifically, the historical work text can be a historical work ticket, and the historical target content can be the safety measures in the historical work ticket. OCR (Optical Character Recognition) technology can be used to scan paper or electronic work ticket files and convert them into editable text information. Then, the text information extracted by OCR is imported into the Python program, and regular expressions (regex) or natural language processing libraries (such as NLTK, spaCy) can be used to clean and segment the text, remove irrelevant characters and punctuation marks, and segment key information according to the fixed format of the work ticket, such as work number, work supervisor, work location, safety measures, etc. The extracted and sorted key information can be stored in a database or file for subsequent query and analysis. For example, JSON or CSV format can be used for storage, with each work ticket as a record and key fields clearly marked. For example, the text corresponding to the historical work ticket identified by OCR is: "Work ticket number: NO.2, person in charge: Zhang San, location: substation A, safety measures: 1. Confirm power off; 2. Wear insulating gloves. Each historical work ticket can be used as an independent historical work ticket node, and each safety measure can be used as an independent historical safety measure node, each with its own description attributes (such as ticket number, person in charge, location, etc.), and the historical safety measure node is associated with the historical work ticket node. Different safety measures can be standardized to obtain preset standard measures, and standard safety measure nodes can be created and associated with related historical safety measure nodes to achieve automatic identification and matching, thereby constructing a knowledge graph. It can be seen that each historical safety measure node in the knowledge graph has a corresponding historical work ticket node and a standard safety measure node, that is, each historical safety measure can be associated with the corresponding historical work ticket and preset standard measure.

[0060] In step S330, candidate work contents are determined based on the work information, the historical target contents and preset standard contents.

[0061] Among them, the vector space model is used to encode the work information into a vector, and compared with the historical safety measure nodes in the knowledge graph to find the most similar historical safety measures. At the same time, the preset standard content corresponding to the historical safety measures is determined based on the knowledge graph, so as to infer the missing safety measure details as candidate work content.

[0062] In some embodiments, determining candidate work content based on the work information, the historical target content, and the preset standard content includes:

[0063] Determining corresponding preset standard content based on the historical target content in the target historical text;

[0064] The candidate work content is obtained based on the work information and the corresponding preset standard content.

[0065] Specifically, for the preset standard content that needs to be modified, it can be updated based on the work information to obtain candidate work content. For example, if the work information is "perform line maintenance at substation B", the historical safety measures of the historical work ticket are found through vector query, such as historical safety measure 1 "confirm power failure", historical safety measure 2 "wear protective clothing", and historical safety measure 3 "check specific safety equipment of substation A". And identify that due to the change of work location, historical safety measure 3 is updated to "check specific safety equipment of substation B" based on the preset standard content corresponding to historical safety measure 3.

[0066] In step S340, the specification content of the work task is determined based on the work information.

[0067] Among them, standard content can refer to content frameworks or guidelines that meet specific standards or requirements related to work tasks. It ensures that the generated target content not only meets the task requirements, but also complies with internal and external regulations and best practices.

[0068] In some embodiments, determining the specification content of the work task based on the work information includes:

[0069] Based on the semantic information of the work information, a query is performed in a preset specification database to obtain the specification content about the work task.

[0070] Specifically, the work information can be input into the power safety specification knowledge base, and semantic search technology can be used to find safety specification knowledge with similar semantics to assist decision-making. For example, for the line maintenance task of substation B, it may be necessary to query power safety specifications related to substations, aerial work, and line maintenance.

[0071] In step S350, target content about the work task is generated based on the work information, the candidate work content and the standard content.

[0072] In some embodiments, generating target content about the work task based on the work information, the candidate work content and the standard content includes:

[0073] The work information, the candidate work content and the standard content are input into a trained processing model for fusion to obtain the target content.

[0074] Among them, the trained processing model can be obtained by training the initial model based on the training samples, which can have natural language organization capabilities and can understand prompts to obtain corresponding processing results. For example, the trained processing model can be an open source large language model trained on large-scale text. Based on work information such as work equipment, work content, and work location, candidate work content, and retrieved relevant specification content, a large model (such as Transformer-based model, Chatglm3-6b, Llama, Skywork-13B, ChatGPT, etc.) can be used for deep learning, and the required safety measures can be output based on historical safety measures and power safety specifications. The provided historical safety measures can be retained, and other safety measures can be supplemented, thereby generating a more comprehensive and personalized safety measure recommendation that integrates safety specification knowledge. For example, the work information is: the work equipment is "high voltage line", the content is "replace insulator", and the location is "transmission line section C". The trained model can integrate historical experience, standard safety measures (such as "use an insulated boom truck"), and specific safety regulations (such as "instructions for working at heights") to output target content: "When replacing insulators in section C of the transmission line, use an insulated boom truck and wear a full set of high-altitude work safety equipment. Ensure that there are at least two people operating and one person supervising." This target content is based on history and incorporates the latest safety regulations and situational understanding. It can make full use of existing knowledge to improve the efficiency of reasoning about safety measures.

[0075] See also Figure 4 , Figure 4 A schematic diagram of a method for generating target content in a working text according to an embodiment of the present disclosure is shown. Figure 4 In the method, the target content generation method in the work text is based on the safety measures recommendation method of the knowledge graph, knowledge base and big model, where the knowledge graph stores the relevant information in the historical work tickets, the knowledge base stores the power safety work regulations, and the big model is used to organize the text. In the method, the semantically similar historical work tickets are first determined based on the work content, and reasoning is performed based on the historical safety measures. Then, the semantically similar regulation items are determined, and the information is integrated through the big model, making full use of the existing knowledge to improve the efficiency, accuracy and comprehensiveness of the reasoning of safety measures. Specifically:

[0076] Extraction of historical work text information: Extract text information from work text files based on OCR technology. After extracting the text information, use Python program to intercept the text information, and then format and store the key information in the intercepted work text. The key information extracted from the historical work ticket is used for subsequent analysis and modeling.

[0077] Construction of knowledge graph: According to the designed storage mode, build from the top level to the bottom, split the work text safety measures, each safety measure corresponds to a node, then associate the safety measure node with the work text node, automatically identify the safety measure node, and establish a corresponding relationship between the safety measure node and the standard safety measure node. Organize the extracted information into a knowledge graph for subsequent query and analysis.

[0078] Accelerate query based on semantic knowledge graph: Input the work content into the embedding model to obtain the vector representation of the work content, and obtain similar work content by matching and sorting between vectors. Query the work content in the knowledge graph to obtain historical safety measures. Use natural language processing technology, such as word vector model, to semantically enhance the knowledge graph so that it supports semantic-based fast query. For example, a user can input work information such as work location, equipment name, work content, etc., and quickly find similar historical work tickets based on semantic fast query results, which become an important reference for subsequent safety measures recommendations. It can be seen that the method of the embodiment of the present disclosure combines semantic similarity query with knowledge graph query, uses vector library technology to accelerate the query speed of the historical work ticket knowledge graph, and quickly obtains relevant historical work tickets through semantic calculation of the vector library, which can effectively improve the efficiency of the query, and at the same time, the semantic-based query has stronger robustness.

[0079] Safety measures reasoning based on historical work texts: After determining historical safety measures with similar semantics, find the standard description of safety measures in the knowledge graph, classify the safety measures, identify the work location and equipment to fill in the safety measures that need to be modified. For safety measures that cannot be directly reused, classify and fill in the work content and location to ensure the accuracy of safety measures recommendations.

[0080] Semantic-based safety specification retrieval: Based on the input information, search for semantically similar power safety specification knowledge in the power safety specification knowledge base to obtain relevant power safety specification knowledge. Semantic-based safety specification retrieval obtains safety regulations and guidelines related to the current work scenario from the power safety specification knowledge base. The regulations and guidelines obtained from the power safety specification knowledge base are applied to safety measure recommendations to ensure that the final safety measure recommendations are not only based on historical work experience, but also meet industry standards and best practices.

[0081] Safety measures recommendation based on big model and knowledge base: input work equipment and content, work location, safety measures recommended based on knowledge graph, and relevant safety regulations knowledge are input into the big model, and the big model obtains more complete output based on this knowledge. The big model can learn more complex relationships and patterns from a large amount of historical data, thereby giving more accurate and personalized safety measures recommendations.

[0082] It can be seen that according to the method of the embodiment of the present disclosure, comprehensive and personalized safety measures recommendations are provided for specific work scenarios through various means such as extraction of historical work ticket information, construction of knowledge graphs, semantic query, large model learning, and query of the electric power safety specification knowledge base. The knowledge in the knowledge graph, large model, and knowledge base are integrated, and the historical work text knowledge graph is used to store historical knowledge. When querying similar work texts, the query is based on semantic similarity, and the vector database is used to accelerate the query speed of similar nodes. Taking into account the variability of work text tasks, new safety measures are inferred based on historical work texts and new work tasks and locations, which effectively improves the accuracy of safety measures recommendations. At the same time, in order to improve the comprehensiveness of safety measures recommendations, safety measures are supplemented based on the electric power safety work regulations knowledge base and large models to reduce the possibility of missing safety measures.

[0083] It should be noted that the method of the embodiment of the present disclosure can be performed by a single device, such as a computer or a server. The method of the present embodiment can also be applied in a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present disclosure, and the multiple devices will interact with each other to complete the described method.

[0084] It should be noted that the above describes some embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0085] Based on the same technical concept, corresponding to any of the above-mentioned embodiments and methods, the present disclosure also provides a device for generating target content in a working text, see Figure 5 , the device for generating the target content in the working text includes:

[0086] An acquisition module is used to obtain work information of work tasks;

[0087] A matching module, configured to perform similarity matching in historical work texts based on the work information to obtain a target historical work text related to the work task; the target historical work text includes historical target content related to the work task;

[0088] A candidate module, used to determine candidate work content based on the work information, the historical target content and the preset standard content;

[0089] A specification module, used for determining specification content about the work task based on the work information;

[0090] A generation module is used to generate target content about the work task based on the work information, the candidate work content and the standard content.

[0091] For the convenience of description, the above device is described by dividing it into various modules according to its functions. Of course, when implementing the present disclosure, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0092] The device of the above embodiment is used to implement the method for generating target content in the corresponding working text in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.

[0093] Based on the same technical concept, corresponding to any of the above-mentioned embodiment methods, the present disclosure also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the method for generating target content in a working text as described in any of the above embodiments.

[0094] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0095] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the method for generating target content in the working text as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0096] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present disclosure (including the claims) is limited to these examples. Based on the concept of the present disclosure, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present disclosure as described above, which are not provided in detail for the sake of simplicity.

[0097] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present disclosure difficult to understand, the known power / ground connections to the integrated circuit (IC) chips and other components may or may not be shown in the provided figures. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present disclosure difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which the embodiments of the present disclosure will be implemented (that is, these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present disclosure, it is apparent to those skilled in the art that the embodiments of the present disclosure can be implemented without these specific details or with changes in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.

[0098] Although the present disclosure has been described in conjunction with specific embodiments of the present disclosure, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.

[0099] The embodiments of the present disclosure are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present disclosure should be included in the scope of protection of the present disclosure.

Claims

1. A method for generating target content in a working text, comprising: Get work information of work tasks; Based on the work information, similarity matching is performed in historical work texts to obtain a target historical work text related to the work task; the target historical work text includes historical target content related to the work task; Determine candidate work content based on the work information, the historical target content and the preset standard content; Determining specification content about the work task based on the work information; Based on the work information, the candidate work contents and the specification contents, target contents regarding the work task are generated.

2. The method according to claim 1, wherein Based on the work information, similarity matching is performed in historical work texts to obtain a target historical work text related to the work task, including: Constructing a knowledge graph based on the historical working text and the preset standard content, wherein the historical target content in the knowledge graph is associated with the historical working text, and the historical target content is associated with the corresponding preset standard content; Perform similarity matching on the historical work texts in the knowledge graph based on the work information to obtain target historical texts; The target historical work text is determined based on a portion of the target historical text that is relevant to the work task.

3. The method according to claim 2, wherein: Determining candidate work content based on the work information, the historical target content and the preset standard content includes: Determining corresponding preset standard content based on the historical target content in the target historical text; The candidate work content is obtained based on the work information and the corresponding preset standard content.

4. The method according to claim 2, wherein: Constructing a knowledge graph based on the historical work text and the preset standard content includes: Obtaining the historical work text; Extract key information from the historical work text and store it in a preset format to obtain the historical target content; The historical target content is associated with the historical working text, and the historical target content is associated with the corresponding preset standard content to obtain the knowledge graph.

5. The method according to claim 1, wherein: Determining the specification content of the work task based on the work information includes: Based on the semantic information of the work information, a query is performed in a preset specification database to obtain the specification content about the work task.

6. The method according to claim 1, wherein: Generating target content about the work task based on the work information, the candidate work content and the standard content, including: The work information, the candidate work content and the standard content are input into a trained processing model for fusion to obtain the target content.

7. The method according to claim 1, wherein: The work information includes at least one of the following: work location, work equipment or work content.

8. A device for generating target content in a working text, comprising: An acquisition module is used to obtain work information of work tasks; A matching module, configured to perform similarity matching in historical work texts based on the work information to obtain a target historical work text related to the work task; the target historical work text includes historical target content related to the work task; A candidate module, used to determine candidate work content based on the work information, the historical target content and the preset standard content; A specification module, used for determining specification content about the work task based on the work information; A generation module is used to generate target content about the work task based on the work information, the candidate work content and the standard content.

9. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 7 when executing the program. 10 . A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to execute the method according to claim 1 .