Flow chart generation method and device and flow extraction model training method and device
The business process diagram of the office system is automatically extracted and generated by training the process extraction model, which solves the time-consuming and labor-intensive problem of manually interpreting and drawing flow diagrams in the existing technology, and achieves efficient and accurate business flow diagram generation.
Patent Information
- Application Number
- CN202410188124.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-20
- Publication Date
- 2024-09-17
AI Technical Summary
In the existing technology, when developing an office system, humans need to interpret the office system and draw flow charts, which results in high labor and time costs, a long flow chart generation cycle, and low generation efficiency.
By pre-training the process extraction model, the process description text is automatically extracted based on the rules, regulations and prompt words of the target business, and a business flow chart is generated to reduce human intervention.
It significantly shortens the generation cycle of business process diagrams, improves the generation efficiency, ensures the accuracy of process description text, and ensures the accuracy of the generated business process diagrams.
Smart Images

Figure CN118657364A
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence processing technology, and in particular to a flowchart generation method, a process extraction model training method and a device. Background Art
[0002] In order to standardize office processes, companies usually formulate various office systems and develop corresponding office systems based on the office systems. At present, before developing an office system, it is usually necessary to manually interpret the office system and draw a flowchart of the office process, and then the developer develops the office system based on the flowchart. However, manually interpreting the office system and drawing the flowchart requires a lot of manpower and time costs, and the flowchart generation cycle is long and the generation efficiency is low. Summary of the invention
[0003] The present application provides a flowchart generation method, a process extraction model training method and a device to improve the generation efficiency of business process diagrams.
[0004] In a first aspect, an embodiment of the present application provides a flowchart generation method, comprising:
[0005] Obtain the first content text of the first rules and regulations of the target business;
[0006] Based on the target prompt word corresponding to the target business, the first content text is subjected to process extraction processing by a process extraction model to obtain a first process description text of the target business;
[0007] Generate a business process diagram of the target business according to the first process description text.
[0008] It can be seen that in the embodiment of the present application, the first process description text of the target business is automatically extracted, and the business process diagram of the target business is automatically generated based on the first process description text, instead of manually extracting the process description and manually drawing the business process diagram. Therefore, the generation cycle of the business process diagram is greatly shortened and the generation efficiency of the business process diagram is improved. Furthermore, since the process extraction is performed based on the target prompt word corresponding to the target business, the accuracy of the extracted first process description text is guaranteed, thereby providing a guarantee for generating an accurate business process diagram.
[0009] In a second aspect, an embodiment of the present application provides a method for training a process extraction model, including:
[0010] Acquire a training sample set; each training sample in the training sample set includes a second content text of a second rule or regulation, and a second process description text corresponding to the second rule or regulation;
[0011] The training network is iteratively trained using the training sample set and prompt words to obtain a process extraction model; the process extraction model is used to perform process extraction on the first content text of the first rules and regulations of the target business to obtain the first process description text of the target business.
[0012] It can be seen that in the embodiment of the present application, after obtaining the training sample set including the second content text of the second rules and regulations and the second process description text corresponding to the second rules and regulations, the training sample set is used to iteratively train the network to be trained to obtain a process extraction model. Therefore, when the first content text of the first rules and regulations of the target business is obtained, the process extraction model can be used to perform process extraction on the first content text to obtain the first process description text of the target business, without the need to manually extract the process description, thereby greatly improving the generation efficiency of the business process diagram of the target business.
[0013] In a third aspect, an embodiment of the present application provides a flowchart generating device, including:
[0014] An acquisition module, used for acquiring a first content text of a first rule or regulation of a target business;
[0015] An extraction module, configured to perform process extraction processing on the first content text based on the target prompt word corresponding to the target business, to obtain a first process description text of the target business;
[0016] A generating module is used to generate a business process diagram of the target business according to the first process description text.
[0017] In a fourth aspect, an embodiment of the present application provides a training device for a process extraction model, including:
[0018] An acquisition module, used for acquiring a training sample set; each training sample in the training sample set includes a second content text of a second rule or regulation, and a second process description text corresponding to the second rule or regulation;
[0019] The training module is used to iteratively train the training network using the training sample set and prompt words to obtain a process extraction model; the process extraction model is used to perform process extraction on the first content text of the first rules and regulations of the target business to obtain the first process description text of the target business.
[0020] In a fifth aspect, an embodiment of the present application provides an electronic device, including:
[0021] A processor; and a memory arranged to store computer executable instructions, wherein the executable instructions are configured to be executed by the processor, the executable instructions including steps for executing the flowchart generation method provided in the first aspect above, or the executable instructions including steps for executing the process extraction model training method provided in the second aspect above.
[0022] In a sixth aspect, an embodiment of the present application provides a storage medium, which is used to store computer-executable instructions, wherein the executable instructions enable a computer to execute the flowchart generation method provided in the first aspect above, or the executable instructions enable a computer to execute the process extraction model training method provided in the second aspect above.
[0023] In the seventh aspect, an embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the flowchart generation method provided in the first aspect above, or the executable instructions enable the computer to execute the training method of the process extraction model provided in the second aspect above. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate one or more embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0025] Figure 1 A first flowchart diagram of a flowchart generation method provided in an embodiment of the present application;
[0026] Figure 2 A second flowchart diagram of a flowchart generation method provided in an embodiment of the present application;
[0027] Figure 3 A third flowchart diagram of a flowchart generation method provided in an embodiment of the present application;
[0028] Figure 4 A fourth flowchart diagram of a flowchart generation method provided in an embodiment of the present application;
[0029] Figure 5 A schematic diagram of a business process diagram of a target business provided in an embodiment of the present application;
[0030] Figure 6 A flowchart of a training method for a process extraction model provided in an embodiment of the present application;
[0031] Figure 7 A schematic diagram of the module composition of a flow chart generating device provided in an embodiment of the present application;
[0032] Figure 8 A schematic diagram of the module composition of a training device for a process extraction model provided in an embodiment of the present application;
[0033] Fig. 9 A schematic diagram of the structure of an electronic device provided for one or more embodiments of the present application. DETAILED DESCRIPTION
[0034] In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of the present application, the technical solutions in one or more embodiments of the present application will be clearly and completely described below in conjunction with the drawings in one or more embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on one or more embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this document.
[0035] Considering that when enterprises currently develop corresponding office systems based on various office systems, professional system interpreters usually interpret the office system first to extract the necessary links and elements of the office process. Then, based on the necessary links and elements extracted by the system interpreters, the office process designers design a set of implementation processes that meet the system requirements and can be efficiently implemented and deployed, and draw a flowchart. Finally, the R&D personnel can develop the office system according to the flowchart. However, in this process, manually interpreting the office system and drawing the flowchart requires a lot of manpower and time costs, and there are problems such as long flow chart generation cycle and low generation efficiency. Based on this, the embodiment of the present application provides a flowchart generation method, which pre-trains the process extraction model, and when the first content text of the first rules and regulations of the target business is obtained, based on the target prompt word corresponding to the target business, the first content text is subjected to process extraction processing through the trained process extraction model to obtain the first process description text of the target business; and, based on the first process description text, a business process diagram of the target business is generated. Thus, the first process description text of the target business is extracted through the process extraction model, and the business process diagram of the target business is automatically generated based on the first process description text, instead of manually extracting the process description and manually drawing the business process diagram. Therefore, the generation cycle of the business process diagram is greatly shortened and the generation efficiency of the business process diagram is improved. Furthermore, since the process extraction is based on the target prompt words corresponding to the target business, the accuracy of the extracted first process description text is guaranteed, which in turn provides a guarantee for the generation of an accurate business process diagram.
[0036] Specifically, Figure 1 A flowchart diagram of a flowchart generation method provided in one or more embodiments of the present application, Figure 1 The method in the flowchart can be executed by a flow chart generating device (hereinafter referred to as generating device), which can be set in an electronic device. The electronic device can be a terminal device or a server. The terminal device can be a mobile phone, a tablet computer, a desktop computer, a portable notebook, etc. The server can be an independent server, a server cluster composed of multiple servers, or a cloud server for cloud computing processing. Figure 1 As shown, the method comprises the following steps:
[0037] Step S102, obtaining a first content text of a first rule or regulation of a target business;
[0038] The target business may be any type of business, such as onboarding business, resignation business, account opening business, identity verification business, resource transfer business, etc. The first rules and regulations include relevant information on the business handling process of the target business, including but not limited to the necessary links and elements in the handling process, etc. It is understandable that the specific content of the first rules and regulations may vary depending on the target business.
[0039] Step S104, based on the target prompt word corresponding to the target business, process extraction processing is performed on the first content text to obtain a first process description text of the target business;
[0040] In order to better understand the business scenario of the target business and thus improve the accuracy of the extracted process description text, in one or more embodiments of the present application, corresponding prompts are pre-set for different businesses, and when obtaining the first content text of the first rules and regulations of the target business, the first content text is subjected to process extraction processing based on the target prompt corresponding to the target business to obtain the first process description text of the target business. The first process description text may include steps and elements for handling the target business.
[0041] Step S106: Generate a business process diagram of the target business according to the first process description text.
[0042] In one or more embodiments of the present application, when the first content text of the first rules and regulations of the target business is obtained, the first content text is subjected to process extraction processing based on the target prompt word corresponding to the target business to obtain the first process description text of the target business; and a business process diagram of the target business is generated based on the first process description text. Thus, the first process description text of the target business is automatically extracted, and the business process diagram of the target business is automatically generated based on the first process description text, instead of manually extracting the process description and manually drawing the business process diagram. Therefore, the generation cycle of the business process diagram is greatly shortened and the generation efficiency of the business process diagram is improved. Furthermore, since the process extraction is performed based on the target prompt word corresponding to the target business, the accuracy of the extracted first process description text is guaranteed, thereby providing a guarantee for generating an accurate business process diagram.
[0043] Considering that in actual applications, different business providers often have different requirements for the format of rules and regulations, some business providers will formulate rules and regulations in text form, for example, it is convenient to save the content text of the rules and regulations in word documents, xml documents, etc. Some business providers will formulate rules and regulations in image form, for example, save the content text of the rules and regulations in pdf files, etc. Based on this, in one or more embodiments of the present application, Figure 2 As shown, step S102 may include the following steps S102-2 to S102-8:
[0044] Step S102-2, obtaining a flowchart generation request of the target business; the flowchart generation request includes the first rules and regulations of the target business;
[0045] In some embodiments, the generating device may include an editing module, and the user may operate the editing module to upload the system file of the first rules and regulations of the target business, and send a flowchart generation request for the target business to the generating device. Accordingly, step S102-2 may include: receiving the flowchart generation request for the target business sent by the user. In other embodiments, the electronic device where the generating device is located may be connected to other requesting devices for communication, and accordingly, step S102-2 may include: receiving the flowchart generation request for the target business sent by the requesting device.
[0046] Step S102-4, determining the target form of the first rules and regulations;
[0047] In some embodiments, the first rules and regulations may be included in the flowchart generation request in the form of a rules and regulations file, and the file name of the rules and regulations file may include form information. Accordingly, step S102-4 may include: parsing the file name of the rules and regulations file in the flowchart generation request to obtain form information; determining the target form of the first rules and regulations based on the obtained form information. In other embodiments, the flowchart generation request may include the form information of the first rules and regulations. Accordingly, step S102-4 may include: obtaining the form information from the flowchart generation request, and determining the target form of the first rules and regulations in the flowchart generation request based on the form information. The method for determining the target form is not limited to the above method, and it can be set by itself according to needs in actual applications.
[0048] Step S102-6, if the target format is a text format, obtaining the first content text of the first rules and regulations from the first rules and regulations in text format;
[0049] In some embodiments, the first rules and regulations may be included in the flowchart generation request in the form of a rules and regulations document. Accordingly, if the generation device determines that the format of the rules and regulations document in the flowchart generation request is a first preset format, the target format is determined to be a text format, and the first content text of the first rules and regulations is obtained from the text format rules and regulations document. The first preset format includes word, txt, xml, etc.
[0050] Step S102-8: if the target format is an image format, the first rules and regulations in the image format are converted to obtain a first content text of the first rules and regulations.
[0051] Specifically, if the generating device determines that the format of the rules and regulations file in the flowchart generation request is the second preset format, it determines that the target format is an image format, and converts the first rules and regulations in the image format to obtain the first content text of the first rules and regulations. The second preset format includes pdf, jpg, tif, gif, etc.
[0052] In order to ensure the accuracy of the first content text obtained by the conversion process, in one or more embodiments of the present application, step S102-8 may include the following steps S102-82 to S102-86:
[0053] Step S102-82, preprocessing the first rules and regulations in the form of an image to obtain a target image of the first rules and regulations;
[0054] In order to distinguish the text and background in the first rules and regulations in the form of an image as much as possible and improve the accuracy of subsequent text processing, in some embodiments, step S102-82 may include: graying the first rules and regulations in the form of an image to obtain a grayscale image of the first rules and regulations; binarizing the grayscale image to obtain a binary image; and denoising the binary image to obtain a target image of the first rules and regulations. Among them, graying is to convert a color image into a grayscale image. Binarization is to determine the nearest value between the grayscale value and the first value and the second value for the grayscale value of each pixel in the grayscale image. If the nearest value is the first value, the grayscale value is set to the first value, and if the nearest value is the second value, the grayscale value is set to the second value. Among them, the first value can be 0 and the second value can be 255. Denoising refers to removing noise points and lines in the binary image.
[0055] Therefore, by graying the first rules and regulations in image form, it is easier to distinguish the text and background; by binarization, the distinction between black text and white background is further enhanced; by denoising, the interference of noise elements in subsequent text processing is avoided. Therefore, by preprocessing the first rules and regulations in image form, accurate text detection and recognition is guaranteed.
[0056] Step S102-84, performing text detection processing on the target image to obtain a text detection result;
[0057] In some embodiments, the target image can be input into a pre-trained text detection model for text detection processing to obtain a text detection result. Among them, the text detection model may include a feature extraction module, a feature fusion module and an output module. The feature extraction module is used to perform feature extraction processing on the input target image to obtain image features of multiple different dimensions; the feature fusion module user performs fusion processing on the image features of the multiple different dimensions to obtain fusion features; the output module user outputs the text detection result according to the fusion features. The text detection result may include the position information of the detection frame of each detected text, and the position information may include the coordinate information of the center position of the detection frame (horizontal coordinate x, vertical coordinate y, width w, height h), the rotation angle of the detection frame, the four corner coordinates of the detection frame, etc. In some embodiments, the text detection model can be obtained by training a deep learning neural network based on the EAST algorithm. For the specific structure and training process of the text detection model, reference can be made to the relevant technology, which will not be described in detail in this application.
[0058] It should be pointed out that the specific structure and training process of the text detection model are not specifically limited in this application, and can be set according to needs in actual applications.
[0059] Step S102-86, performing text recognition processing according to the text detection result to obtain the first rules and regulations of the target business in text form.
[0060] In some embodiments, the text detection result can be input into a pre-trained text recognition model for text recognition processing to obtain the first rules and regulations in text form of the target business. Among them, the text recognition model may include a feature extraction module and a recognition module. The feature extraction module is used to extract text features of different dimensions of the text in the corresponding detection box according to the text detection result; in the recognition module, the user performs recognition processing according to the text features of different dimensions to obtain the text detection result. In some embodiments, the feature extraction module may be a VGG network, and the recognition module may include two BiLSTM networks. It should be pointed out that the structure of the text recognition model is not limited to the above structure, and it can be set as needed in actual applications. For the training method of the text recognition model, reference can be made to the prior art, which will not be described in detail in this application.
[0061] Therefore, when the first rules and regulations are obtained in the form of images, the accuracy of the first rules and regulations in the form of text is guaranteed by preprocessing them and performing text detection and text recognition.
[0062] After obtaining the first rules and regulations in text form, the first rules and regulations in text form can be subjected to process extraction processing. In order to improve the efficiency of process extraction, in one or more embodiments of the present application, process extraction processing is performed through a process extraction model. Specifically, Figure 3 As shown, step S104 may include the following steps S104-2 and S104-4:
[0063] Step S104-2, generating first input data of a process extraction model according to the first content text and the target prompt word corresponding to the target business;
[0064] Specifically, the business information of the target business is determined; based on the business information, the target prompt word corresponding to the target business is determined; and based on the first content text and the target prompt word corresponding to the target business, the first input data of the process extraction model is generated. Wherein, determining the business information of the target business may include: obtaining the business information of the target business from the flowchart generation request of the target business. Alternatively, the first rules and regulations of the target business obtained are parsed to obtain the business information of the target business. The business information may be any one or more of a business identifier, a business name, etc.
[0065] In order to facilitate the process extraction model to determine the business scenario, in one or more embodiments of the present application, the association relationship between business information and prompt words is pre-set for different businesses, and the target prompt word of the target business is determined based on the association relationship. Accordingly, the aforementioned determination of the target prompt word corresponding to the target business based on the business information may include: according to the business information of the target business, obtaining the associated prompt word in the association relationship between the business information and the prompt word; determining the obtained prompt word as the target prompt word corresponding to the target business.
[0066] As an example, the target business is the resignation business, and the first content text of the first rules and regulations of the target business is as follows:
[0067] (I) In principle, the employee shall initiate the resignation process in the resignation system. In special circumstances, if the employee is unable to log in to the resignation system to submit the resignation process, the employee may submit a paper resignation application, and the employee relations post of the Human Resources Department will handle the resignation procedures on the resignation system on the employee's behalf.
[0068] (II) After the head of the employing department / relevant manager receives and agrees to the employee's resignation application, he / she shall reasonably arrange the employee's handover work to ensure that the employee smoothly transfers all work before the resignation date.
[0069] (III) Before leaving the company, employees must cooperate in the work handover, complete the handover and settlement procedures, and have the relevant department's handlers review and approve the handover results in the resignation system. After completing all the procedures, the employee must go to the Human Resources Department to sign the relevant materials.
[0070] The target prompt words corresponding to the target business are as follows:
[0071] Assuming that you are an office process designer, please generate the corresponding resignation procedure instructions based on the following system content.
[0072] enter:
[0073] Output:
[0074] Based on the above first content text and the target prompt word corresponding to the target business, the first input data of the generated process extraction model is as follows:
[0075] Assuming that you are an office process designer, please generate the corresponding resignation procedure instructions based on the following system content.
[0076] enter:
[0077] Resignation procedures
[0078] (I) In principle, the employee shall initiate the resignation process in the resignation system. In special circumstances, if the employee is unable to log in to the resignation system to submit the resignation process, the employee may submit a paper resignation application, and the employee relations post of the Human Resources Department will handle the resignation procedures on the resignation system on the employee's behalf.
[0079] (II) After the head of the employing department / relevant manager receives and agrees to the employee's resignation application, he / she shall reasonably arrange the employee's handover work to ensure that the employee smoothly transfers all work before the resignation date.
[0080] (III) Before leaving the company, employees must cooperate in the work handover, complete the handover and settlement procedures, and have the relevant department's handlers review and approve the handover results in the resignation system. After completing all the procedures, the employee must go to the Human Resources Department to sign the relevant materials.
[0081] Output:
[0082] It should be pointed out that the specific contents of the above-mentioned first rules and regulations and target prompt words are only for illustration and not for limitation, and they can be set as needed in actual applications.
[0083] Furthermore, considering that there are many types of services and new services are constantly being generated, in order to conveniently obtain prompt words for various types of services, in one or more embodiments of the present application, the method may also include: iteratively training the initial network using training data to obtain a prompt word generation model. The training data includes service description information and prompt words corresponding to the service description information; the service description information may include service name, service type, etc. For the specific training process of the prompt word generation model, reference may be made to the existing model training process, which is not specifically limited in this application.
[0084] Correspondingly, the above-mentioned obtaining associated prompt words in the association relationship between business information and prompt words based on the business information of the target business; determining the obtained prompt words as target prompt words corresponding to the target business may include: determining whether associated prompt words are obtained in the association relationship between business information and prompt words based on the business information of the target business; if so, determining the obtained prompt words as target prompt words corresponding to the target business; if not, determining business description information of the target business; inputting the business description information of the target business into a prompt word generation model for generation processing to obtain prompt words corresponding to the target business.
[0085] Therefore, the prompt words corresponding to the target business are first obtained based on the association relationship, and when there are no prompt words corresponding to the target business in the association relationship, prompt words are generated through the prompt word generation model. On the one hand, it is guaranteed that when the target business is a new business, its corresponding prompt words can also be successfully obtained, which provides a guarantee for the smooth generation of the business process diagram of the target business. On the other hand, since the operation of the prompt word generation model requires a large amount of computing resources, first obtaining the prompt words corresponding to the target business based on the association relationship can release the corresponding computing resources and avoid unnecessary resource occupation.
[0086] Step S104 - 4 , performing business process extraction processing on the first content text in the first input data through the process extraction model to obtain a first process description text of the target business.
[0087] Specifically, the first input data is input into the process extraction model, and the process extraction model performs business process extraction processing on the first rules and regulations in the first input data, and outputs the first process description text of the target business. The specific process of business process extraction processing can be set and executed as needed in actual applications, and this application does not make specific limitations on this.
[0088] Continuing with the above example, the first process description text output by the process extraction model is as follows:
[0089] 1. In principle, employees themselves should initiate the resignation process in the resignation system.
[0090] 2. If the employee is unable to log in to the resignation system to submit the resignation process, they can submit a paper resignation application.
[0091] 3. After receiving the paper resignation application, the employee relations officer of the Human Resources Department will handle the resignation procedures on behalf of the employee in the resignation system.
[0092] 4. After receiving the employee's resignation application, the head of the employing department or relevant manager needs to agree and accept it.
[0093] 5. After approval, the head of the employing department or relevant manager needs to reasonably arrange the employee handover work.
[0094] 6. The employee smoothly transfers all work before the resignation date.
[0095] 7. Before leaving the company, employees must cooperate in work handover and complete resignation handover and settlement procedures.
[0096] 8. The person in charge of the relevant department needs to approve the resignation handover results in the resignation system.
[0097] 9. After completing all procedures, the employee needs to go to the Human Resources Department to sign relevant materials.
[0098] Thus, the first process description text of the target business is extracted through the process extraction model, instead of manually extracting the process description. Therefore, the generation cycle of the business process diagram is greatly shortened and the generation efficiency of the business process diagram is improved. Furthermore, the first input data of the process extraction model is generated based on the target prompt word corresponding to the target business, which enables the process extraction model to determine the corresponding business scenario and ensure the accuracy of the extracted first process description text.
[0099] In order to quickly and effectively generate a business process diagram for a target business, in one or more embodiments of the present application, a flow chart generation model is pre-trained. The flow chart generation model is used to generate a business process diagram for the target business. Specifically, Figure 4 As shown, step S106 may include the following steps S106-2:
[0100] Step S106 - 2 , randomly generating a noise image, inputting the noise image and the first process description text into a flowchart generation model for generation processing, and obtaining a business process diagram of the target business.
[0101] Among them, the flowchart generation model may include an encoding module, a prediction module and a generation module. Correspondingly, the flowchart generation process may include: encoding the first process description text through the encoding module to obtain encoded data; predicting the noise in the noise image through the prediction module; and generating a business process diagram of the target business based on the encoded data and noise through the generation module based on the self-attention mechanism. In some embodiments, the flowchart generation model can complete the task of generating images from text based on the StableDiffusion algorithm. For the specific structure and training process of the flowchart generation model, reference can be made to the relevant technology, which will not be repeated in this application.
[0102] Continuing with the above example, the flowchart generation model performs flowchart generation processing, and the business flowchart of the target business is obtained as follows Figure 5 shown.
[0103] Therefore, the business process diagram of the target business is automatically generated through the flowchart generation model, instead of manually drawing the business process diagram. Therefore, the generation cycle of the business process diagram is greatly shortened and the generation efficiency of the business process diagram is improved.
[0104] In order to further ensure the accuracy of the business process diagram of the target business, in one or more embodiments of the present application, the following step S108 may be further included after step S106:
[0105] Step S108, sending a review request to the designated account according to the business process diagram; the review request is used to request the review user corresponding to the designated account to review the business process diagram.
[0106] The designated account may be the account of the review user in the designated business system. When the review user logs into the business system, the corresponding review task can be seen. The review user can click on the review task to display the business process diagram of the target business, and can modify the business process diagram according to the needs and save the modified business process diagram.
[0107] Therefore, by sending a review request to a designated account, the accuracy of the business process diagram can be guaranteed based on manual review.
[0108] In one or more embodiments of the present application, when the first content text of the first rules and regulations of the target business is obtained, the first content text is subjected to process extraction processing based on the target prompt word corresponding to the target business to obtain the first process description text of the target business; and a business process diagram of the target business is generated based on the first process description text. Thus, the first process description text of the target business is automatically extracted, and the business process diagram of the target business is automatically generated based on the first process description text, instead of manually extracting the process description and manually drawing the business process diagram. Therefore, the generation cycle of the business process diagram is greatly shortened and the generation efficiency of the business process diagram is improved. Furthermore, since the process extraction is performed based on the target prompt word corresponding to the target business, the accuracy of the extracted first process description text is guaranteed, thereby providing a guarantee for generating an accurate business process diagram.
[0109] Corresponding to the flowchart generation method described above, based on the same technical concept, one or more embodiments of the present application also provide a method for training a process extraction model. Figure 6 A flowchart of a method for training a process extraction model provided in one or more embodiments of the present application is provided. Figure 6 The method can be executed by a training device for a process extraction model (hereinafter referred to as a training device). The training device can be set in an electronic device, which can be a terminal device or a server. The terminal device can be a mobile phone, a tablet computer, a desktop computer, a portable notebook, etc. The server can be an independent server, a server cluster composed of multiple servers, or a cloud server for cloud computing processing. Figure 6 As shown, the method comprises the following steps:
[0110] Step S202, obtaining a training sample set; each training sample in the training sample set includes a second content text of a second rule or regulation, and a second process description text corresponding to the second rule or regulation;
[0111] Among them, the second rules and regulations may include the first rules and regulations of the target business, and may also include the rules and regulations of other businesses, so that the trained process extraction model can extract the corresponding process description file based on the corresponding rules and regulations for different business scenarios. The method for obtaining the second content text is the same as the method for obtaining the first content text mentioned above. Please refer to the relevant description in the previous text, and the repetition will not be repeated here. The second process description text is the label of the corresponding second rules and regulations.
[0112] Step S204, using the training sample set and the prompt words to iteratively train the network to be trained to obtain a process extraction model.
[0113] The process extraction model is used to perform process extraction processing on the first content text of the first rules and regulations of the target business to obtain the first process description text of the target business. The network to be trained can be an existing large model, and the network to be trained can be iteratively trained. It can be a second rule and regulation of different business scenarios, and the network to be trained can be fine-tuned to enable the network to be trained to learn the relevant knowledge of the corresponding business scenario. Specifically, step S204 may include: obtaining the target training sample used for the current training round from the training sample set, and determining the second input data according to the target training sample and the prompt word corresponding to the target training sample; inputting the second input data into the network to be trained for process extraction processing to obtain the third process description text of the corresponding business and the trained network to be trained. Based on the third process description file and the second process description text in the target training sample, the target loss is determined according to the loss function. If it is determined that the training end condition is met according to the target loss, the network to be trained when the training end condition is met is determined as a process extraction model; if it is determined that the training end condition is not met according to the target loss, the next round of training processing is performed. Among them, the loss function can be a cross entropy loss function, and the process extraction model is used for the flowchart generation method provided by any of the aforementioned embodiments.
[0114] In the embodiment of the present application, after obtaining a training sample set including the second content text of the second rules and regulations and the second process description text corresponding to the second rules and regulations, the training sample set is used to iteratively train the network to be trained to obtain a process extraction model. Thus, when the first content text of the first rules and regulations of the target business is obtained, the process extraction model can be used to perform process extraction on the first content text to obtain the first process description text of the target business, without the need to manually extract the process description, thereby greatly improving the generation efficiency of the business process diagram of the target business.
[0115] Corresponding to the flowchart generation method described above, based on the same technical concept, one or more embodiments of the present application also provide a flowchart generation device. Figure 7A schematic diagram of the module composition of a flow chart generating device provided in one or more embodiments of the present application, such as Figure 7 As shown, the device comprises:
[0116] An acquisition module 301 is used to acquire a first content text of a first rule or regulation of a target business;
[0117] An extraction module 302 is used to perform a process extraction process on the first content text based on the target prompt word corresponding to the target business, so as to obtain a first process description text of the target business;
[0118] The generating module 303 is used to generate a business process diagram of the target business according to the first process description text.
[0119] The flowchart generation device provided in the embodiment of the present application, when obtaining the first content text of the first rules and regulations of the target business, performs process extraction processing on the first content text based on the target prompt word corresponding to the target business, and obtains the first process description text of the target business; and generates a business process diagram of the target business based on the first process description text. Thus, by automatically extracting the first process description text of the target business and automatically generating a business process diagram of the target business based on the first process description text, instead of manually extracting the process description and manually drawing the business process diagram. Therefore, the generation cycle of the business process diagram is greatly shortened and the generation efficiency of the business process diagram is improved. Furthermore, since the process extraction processing is based on the target prompt word corresponding to the target business, the accuracy of the extracted first process description text is guaranteed, thereby providing a guarantee for generating an accurate business process diagram.
[0120] It should be noted that the embodiment of the flowchart generating device in the present application and the embodiment of the flowchart generating method in the present application are based on the same inventive concept, so the specific implementation of this embodiment can refer to the implementation of the corresponding flowchart generating method mentioned above, and the repeated parts will not be repeated.
[0121] Each module in the above-mentioned flowchart generation device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the terminal device or the processor on the server side in the form of hardware, or can be stored in the memory in the terminal device or the memory on the server side in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0122] Furthermore, corresponding to the training method of the process extraction model described above, based on the same technical concept, one or more embodiments of the present application also provide a training device for a process extraction model. Figure 8 A schematic diagram of the module composition of a training device for a process extraction model provided in one or more embodiments of the present application, such as Figure 8 As shown, the device comprises:
[0123] An acquisition module 401 is used to acquire a training sample set; each training sample in the training sample set includes a second content text of a second rule or regulation, and a second process description text corresponding to the second rule or regulation;
[0124] The training module 402 is used to iteratively train the training network using the training sample set and prompt words to obtain a process extraction model; the process extraction model is used to perform process extraction on the first content text of the first rules and regulations of the target business to obtain the first process description text of the target business.
[0125] The training device of the process extraction model provided in the embodiment of the present application, after obtaining the training sample set including the second content text of the second rules and regulations and the second process description text corresponding to the second rules and regulations, uses the training sample set to iteratively train the network to be trained to obtain the process extraction model. Therefore, when the first content text of the first rules and regulations of the target business is obtained, the first content text can be subjected to process extraction processing by the process extraction model to obtain the first process description text of the target business, without the need to manually extract the process description, thus greatly improving the generation efficiency of the business process diagram of the target business.
[0126] It should be noted that the embodiment of the training device for the process extraction model in the present application and the embodiment of the training method for the process extraction model in the present application are based on the same inventive concept. Therefore, the specific implementation of this embodiment can refer to the implementation of the corresponding training method for the process extraction model mentioned above, and the repeated parts will not be repeated.
[0127] Each module in the training device of the above-mentioned process extraction model can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the terminal device or the processor on the server side in the form of hardware, or can be stored in the memory in the terminal device or the memory on the server side in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0128] Furthermore, corresponding to the flowchart generation method and the process extraction model training method described above, based on the same technical concept, one or more embodiments of the present application also provide an electronic device, which is used to execute the flowchart generation method described above. Fig. 9 A schematic diagram of the structure of an electronic device provided for one or more embodiments of the present application.
[0129] like Fig. 9As shown, the electronic device may have relatively large differences due to different configurations or performances, and may include one or more processors 501 and memory 502, and the memory 502 may store one or more storage applications or data. Among them, the memory 502 can be a temporary storage or a permanent storage. The application stored in the memory 502 may include one or more modules (not shown in the figure), and each module may include a series of computer executable instructions in the electronic device. Furthermore, the processor 501 can be configured to communicate with the memory 502 to execute a series of computer executable instructions in the memory 502 on the electronic device. The electronic device may also include one or more power supplies 503, one or more wired or wireless network interfaces 504, one or more input and output interfaces 505, one or more keyboards 506, etc.
[0130] In a specific embodiment, the electronic device includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer executable instructions for the electronic device, and the one or more programs configured to be executed by one or more processors include the following computer executable instructions:
[0131] Obtain the first content text of the first rules and regulations of the target business;
[0132] Based on the target prompt word corresponding to the target business, process extraction processing is performed on the first content text to obtain a first process description text of the target business;
[0133] Generate a business process diagram of the target business according to the first process description text.
[0134] The electronic device provided by one or more embodiments of the present application, when acquiring the first content text of the first rules and regulations of the target business, performs process extraction processing on the first content text based on the target prompt word corresponding to the target business, and obtains the first process description text of the target business; and generates a business process diagram of the target business based on the first process description text. Thus, the first process description text of the target business is automatically extracted, and the business process diagram of the target business is automatically generated based on the first process description text, instead of manually extracting the process description and manually drawing the business process diagram. Therefore, the generation cycle of the business process diagram is greatly shortened and the generation efficiency of the business process diagram is improved. Furthermore, since the process extraction processing is based on the target prompt word corresponding to the target business, the accuracy of the extracted first process description text is guaranteed, thereby providing a guarantee for the generation of an accurate business process diagram.
[0135] In another specific embodiment, the electronic device includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer executable instructions for the electronic device, and the one or more programs are configured to be executed by one or more processors, including computer executable instructions for performing the following:
[0136] Acquire a training sample set; each training sample in the training sample set includes a second content text of a second rule or regulation, and a second process description text corresponding to the second rule or regulation;
[0137] The training network is iteratively trained using the training sample set and prompt words to obtain a process extraction model; the process extraction model is used to perform process extraction on the first content text of the first rules and regulations of the target business to obtain the first process description text of the target business.
[0138] The electronic device provided in the embodiment of the present application, after acquiring the training sample set including the second content text of the second rules and regulations and the second process description text corresponding to the second rules and regulations, uses the training sample set to iteratively train the training network to obtain a process extraction model. Thus, when the first content text of the first rules and regulations of the target business is acquired, the process extraction model can be used to perform process extraction on the first content text to obtain the first process description text of the target business, without the need to manually extract the process description, thereby greatly improving the generation efficiency of the business process diagram of the target business.
[0139] It should be noted that the embodiment of the electronic device in the present application and the embodiment of the flowchart generation method and the training method of the process extraction model in the present application are based on the same inventive concept. Therefore, the specific implementation of this embodiment can refer to the implementation of the corresponding flowchart generation method and the training method of the process extraction model, and the repeated parts will not be repeated.
[0140] Further, corresponding to the flowchart generation method and the process extraction model training method described above, based on the same technical concept, one or more embodiments of the present application further provide a storage medium for storing computer executable instructions. In a specific embodiment, the storage medium may be a USB flash drive, an optical disk, a hard disk, etc. When the computer executable instructions stored in the storage medium are executed by the processor, the following process can be implemented:
[0141] Obtain the first content text of the first rules and regulations of the target business;
[0142] Based on the target prompt word corresponding to the target business, process extraction processing is performed on the first content text to obtain a first process description text of the target business;
[0143] Generate a business process diagram of the target business according to the first process description text.
[0144] When the computer executable instructions stored in the storage medium provided by one or more embodiments of the present application are executed by the processor, when the first content text of the first rules and regulations of the target business is obtained, based on the target prompt word corresponding to the target business, the first content text is subjected to process extraction processing to obtain the first process description text of the target business; and a business process diagram of the target business is generated according to the first process description text. Thus, the first process description text of the target business is automatically extracted, and the business process diagram of the target business is automatically generated according to the first process description text, instead of manually extracting the process description and manually drawing the business process diagram. Therefore, the generation cycle of the business process diagram is greatly shortened and the generation efficiency of the business process diagram is improved. Furthermore, since the process extraction processing is based on the target prompt word corresponding to the target business, the accuracy of the extracted first process description text is guaranteed, thereby providing a guarantee for the generation of an accurate business process diagram.
[0145] In another specific embodiment, the storage medium may be a USB flash drive, an optical disk, a hard disk, etc. When the computer executable instructions stored in the storage medium are executed by the processor, the following process can be implemented:
[0146] Acquire a training sample set; each training sample in the training sample set includes a second content text of a second rule or regulation, and a second process description text corresponding to the second rule or regulation;
[0147] The training network is iteratively trained using the training sample set and prompt words to obtain a process extraction model; the process extraction model is used to perform process extraction on the first content text of the first rules and regulations of the target business to obtain the first process description text of the target business.
[0148] When the computer executable instructions stored in the storage medium provided by one or more embodiments of the present application are executed by the processor, after obtaining the training sample set including the second content text of the second rules and regulations and the second process description text corresponding to the second rules and regulations, the training sample set is used to iteratively train the training network to obtain a process extraction model. Therefore, when the first content text of the first rules and regulations of the target business is obtained, the process extraction model can be used to perform process extraction on the first content text to obtain the first process description text of the target business, without the need to manually extract the process description, thereby greatly improving the generation efficiency of the business process diagram of the target business.
[0149] It should be noted that the embodiment of the storage medium in the present application and the embodiment of the flowchart generation method and the training method of the process extraction model in the present application are based on the same inventive concept. Therefore, the specific implementation of this embodiment can refer to the implementation of the corresponding flowchart generation method and the training method of the process extraction model, and the repeated parts will not be repeated.
[0150] Furthermore, corresponding to the flowchart generation method and the process extraction model training method described above, based on the same technical concept, one or more embodiments of the present application also provide a computer program product, which includes a computer program. When the computer program is executed by a processor, the following process can be implemented:
[0151] Obtain the first content text of the first rules and regulations of the target business;
[0152] Based on the target prompt word corresponding to the target business, process extraction processing is performed on the first content text to obtain a first process description text of the target business;
[0153] Generate a business process diagram of the target business according to the first process description text.
[0154] When the computer program in the computer program product provided by one or more embodiments of the present application is executed by the processor, when the first content text of the first rules and regulations of the target business is obtained, the first content text is subjected to process extraction processing based on the target prompt word corresponding to the target business to obtain the first process description text of the target business; and a business process diagram of the target business is generated based on the first process description text. Thus, the first process description text of the target business is automatically extracted, and the business process diagram of the target business is automatically generated based on the first process description text, instead of manually extracting the process description and manually drawing the business process diagram. Therefore, the generation cycle of the business process diagram is greatly shortened and the generation efficiency of the business process diagram is improved. Furthermore, since the process extraction processing is performed based on the target prompt word corresponding to the target business, the accuracy of the extracted first process description text is guaranteed, thereby providing a guarantee for the generation of an accurate business process diagram.
[0155] In another specific embodiment, when the computer program in the computer program product is executed by a processor, the following process can be implemented:
[0156] Acquire a training sample set; each training sample in the training sample set includes a second content text of a second rule or regulation, and a second process description text corresponding to the second rule or regulation;
[0157] The training network is iteratively trained using the training sample set and prompt words to obtain a process extraction model; the process extraction model is used to perform process extraction on the first content text of the first rules and regulations of the target business to obtain the first process description text of the target business.
[0158] When the computer program in the computer program product provided by one or more embodiments of the present application is executed by a processor, after obtaining a training sample set including the second content text of the second rules and regulations and the second process description text corresponding to the second rules and regulations, the training sample set is used to iteratively train the network to be trained to obtain a process extraction model. Therefore, when the first content text of the first rules and regulations of the target business is obtained, the process extraction model can be used to perform process extraction on the first content text to obtain the first process description text of the target business, without the need to manually extract the process description, thereby greatly improving the generation efficiency of the business process diagram of the target business.
[0159] It should be noted that the embodiment of the computer program product in the present application and the embodiment of the flowchart generation method and the training method of the process extraction model in the present application are based on the same inventive concept. Therefore, the specific implementation of this embodiment can refer to the implementation of the corresponding flowchart generation method and the training method of the process extraction model, and the repeated parts will not be repeated.
[0160] The above describes specific embodiments of the present application. 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 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.
[0161] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0162] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.
[0163] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0164] For the convenience of description, the above devices are described in terms of functions and are divided into various units. Of course, when implementing the embodiments of the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0165] Those skilled in the art will appreciate that one or more embodiments of the present application may be provided as methods, systems or computer program products. Therefore, one or more embodiments of the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0166] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0167] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0168] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0169] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0170] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0171] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules 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, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, 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. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0172] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0173] One or more embodiments of the present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. One or more embodiments of the present application may also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0174] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0175] The above description is only an embodiment of this document and is not intended to limit this document. For those skilled in the art, this document may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this document should be included in the scope of the claims of this document.
Claims
1. A flowchart generation method, characterized in that: include: Obtain the first content text of the first rules and regulations of the target business; Based on the target prompt word corresponding to the target business, process extraction processing is performed on the first content text to obtain a first process description text of the target business; Generate a business process diagram of the target business according to the first process description text.
2. The method according to claim 1, characterized in that: The step of performing a process extraction process on the first content text based on the target prompt word corresponding to the target business includes: Generate first input data of a process extraction model according to the first content text and the target prompt word corresponding to the target business; The process extraction model is used to perform process extraction processing on the first content text in the first input data.
3. The method according to claim 2, characterized in that The method further comprises: Determining business information of the target business; According to the service information, a target prompt word corresponding to the target service is determined.
4. The method according to claim 1, characterized in that: The obtaining of the first content text of the first rules and regulations of the target business includes: Obtaining a flowchart generation request for a target business; the flowchart generation request includes the first rules and regulations of the target business; Determining the target form of said first regulatory framework; If the target format is an image format, the first rules and regulations in the image format are converted to obtain a first content text of the first rules and regulations.
5. The method according to claim 4, characterized in that The converting process of the first rules and regulations in the image form to obtain the first content text of the first rules and regulations includes: Preprocessing the first rules and regulations in the form of an image to obtain a target image of the first rules and regulations; Performing text detection processing on the target image to obtain a text detection result; Text recognition processing is performed according to the text detection result to obtain the first rules and regulations of the target business in text form.
6. The method according to claim 1, characterized in that The generating a business process diagram of the target business according to the first process description text includes: Randomly generate noise images; The noise image and the first process description text are input into a flow chart generation model for generation processing to obtain a business flow chart of the target business.
7. The method according to claim 1, characterized in that The method further comprises: A review request is sent to a designated account according to the business process diagram; the review request is used to request a review user corresponding to the designated account to review the business process diagram.
8. A training method for a process extraction model, characterized in that: include: Obtain a training sample set; Each training sample in the training sample set includes a second content text of a second rule or regulation, and a second process description text corresponding to the second rule or regulation; The training network is iteratively trained using the training sample set and prompt words to obtain a process extraction model; the process extraction model is used to perform process extraction on the first content text of the first rules and regulations of the target business to obtain the first process description text of the target business.
9. A flow chart generating device, characterized in that: include: An acquisition module, used for acquiring a first content text of a first rule or regulation of a target business; An extraction module, configured to perform process extraction processing on the first content text based on the target prompt word corresponding to the target business, to obtain a first process description text of the target business; A generating module is used to generate a business process diagram of the target business according to the first process description text.
10. An electronic device, characterized in that: include: processor; as well as, A memory arranged to store computer executable instructions, wherein the executable instructions are configured to be executed by the processor, wherein the executable instructions include steps for executing the flowchart generation method described in any one of claims 1 to 7, or the executable instructions include steps for executing the process extraction model training method described in claim 8.
11. A storage medium, characterized in that: The storage medium is used to store computer-executable instructions, which enable a computer to execute the flowchart generation method described in any one of claims 1 to 7, or the executable instructions enable a computer to execute the process extraction model training method described in claim 8.
12. A computer program product, characterized in that It includes a computer program, which, when executed by a processor, implements the flowchart generation method described in any one of claims 1 to 7, or implements the process extraction model training method described in claim 8 when the computer program is executed by a processor.
