Method, device, electronic device and storage medium for generating operation instructions
By extracting and sorting features of the software interface and text, an automatic annotation interface is generated, which solves the problems of low efficiency and high error rate in generating software function illustrations, and achieves efficient and accurate generation of operating instructions.
Patent Information
- Application Number
- CN202410562668.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-08
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-05-08
AI Technical Summary
The generation efficiency of software function diagrams is low and the error rate is high. Especially when software iterations are frequent, manual annotation methods cannot meet the demand for rapid updates.
By extracting features of the interface to be annotated and description text, image features and text features are obtained, and target fusion features are generated based on similarity sorting, thereby automatically annotating the interface and improving the efficiency of generating operation instructions.
It improves the accuracy and efficiency of operating guide generation, reduces the error rate of manual annotation, and adapts to the need for rapid iteration of software.
Smart Images

Figure CN118192976B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of generating operation instructions, and in particular to a method, device, electronic device and storage medium for generating operation instructions. Background Art
[0002] With the development of computer technology, more and more organizations or individuals tend to provide services to the public through software programs. Among them, the functional diagram of the software is an important part of the software development process. Its diagram content includes interactive steps to show the software functions and display business interaction results. The application scope of the functional diagram includes user manual diagrams, software FAQ content interactive pictures, novice guide pictures, etc. Functional diagrams can help users quickly learn how to operate the software, and can also facilitate developers to demonstrate and deliver software.
[0003] In the current software development process, software function diagrams often rely on manual annotation, and due to the frequent and complex software function updates and iterations, with the increasing frequency of software iterations, the manual annotation method is inefficient and has a high error rate, resulting in low software development efficiency. Summary of the invention
[0004] In view of the above, it is necessary to propose a method, device, electronic device and storage medium for generating an operation guide to solve the technical problem of low efficiency in generating the operation guide.
[0005] The present application provides a method for generating an operation guide, the method comprising: extracting features from an interface to be annotated and a description text, obtaining a plurality of first image features corresponding to the interface to be annotated, and a plurality of first text features corresponding to the description text; the description text is a product requirement document of an application to be annotated, and the application to be annotated includes at least one interface to be annotated; combining the plurality of first image features with the plurality of first text features to obtain a plurality of first fusion features, wherein each first fusion feature includes a first image feature and a first text feature; for any interface to be annotated, based on the similarity ranking of all first fusion features corresponding to the interface to be annotated, determining a first target fusion feature of the interface to be annotated, wherein the image feature included in the first fusion feature is the image feature corresponding to the interface to be annotated, and the similarity of the first fusion feature indicates the semantic association between a first image feature and a first text feature included accordingly; determining a corresponding target operation guide based on the functional category of the first target fusion feature, and generating an automatic annotation interface according to the target operation guide and the interface to be annotated, wherein the target operation guide is obtained based on the description text.
[0006] In some embodiments, the feature extraction of the interface to be annotated and the descriptive text to obtain multiple first image features corresponding to the interface to be annotated and multiple first text features corresponding to the descriptive text includes: inputting the interface to be annotated and the descriptive text into a pre-trained feature extraction model to obtain multiple first image features corresponding to the interface to be annotated and multiple first text features corresponding to the descriptive text.
[0007] In some embodiments, the feature extraction model includes a first extraction unit and a second extraction unit, and inputting the interface to be annotated and the description text into a pre-trained feature extraction model to obtain multiple first image features corresponding to the interface to be annotated and multiple first text features corresponding to the description text includes: inputting the interface to be annotated into the first extraction unit to obtain multiple first image features corresponding to the interface to be annotated; inputting the description text into the second extraction unit to obtain multiple first text features corresponding to the description text.
[0008] In some embodiments, the method also includes training the feature extraction model, and the training of the feature extraction model includes: inputting a training interface into a pre-constructed initial first extraction unit to obtain predicted image features corresponding to the training interface; inputting a training text into a pre-constructed initial second extraction unit to obtain predicted text features corresponding to the training text; calculating the predicted similarity between the predicted image features and the predicted text features; determining a first loss value of the feature extraction model based on the predicted similarity and the true value similarity; wherein the true value similarity is used to characterize the degree of association between the training interface and the training text; when the first loss value is greater than a preset first termination threshold, updating the feature extraction model based on a back propagation algorithm until the first loss value is less than or equal to the first termination threshold, stopping updating the feature extraction model, and obtaining the feature extraction model trained to a convergence state.
[0009] In some embodiments, the method further includes: after the application to be annotated is updated, feature extraction is performed on the update interface and the update text to obtain a second image feature corresponding to the update interface and a plurality of second text features corresponding to the update text; based on the difference between the one-to-one corresponding first image feature and the second image feature, the update image feature is screened out from the second image feature, and the difference between the update image feature and the first image feature is greater than a first preset difference; based on the difference between the one-to-one corresponding first text feature and the second text feature, the update text feature is screened out from the second text feature, and the difference between the update text feature and the first text feature is greater than a second preset difference; the plurality of update image features are combined with the plurality of update text features to obtain a plurality of second fusion features, wherein each second fusion feature includes an update image feature and an update text feature; for any update interface, the second target fusion feature of any update interface is determined based on the similarity ranking of all the second fusion features corresponding to the any update interface; the corresponding target operation guide is determined based on the functional category of the second target fusion feature, and an update annotation interface is generated according to the target operation guide and the update interface.
[0010] In some embodiments, determining the corresponding target operation instructions based on the function category of the first target fusion feature includes: determining the corresponding function usage path according to the description text corresponding to the first target fusion feature; determining the function category of the first target fusion feature according to the function usage path to determine the target operation instructions corresponding to the function category.
[0011] In some embodiments, generating an automatic annotation interface according to the target operation guide and the interface to be annotated includes: inputting the first target fusion feature into a pre-trained image annotation model to generate an automatic annotation interface; wherein the image annotation model is used to generate an automatic annotation interface according to the target operation guide, the interface to be annotated and the image annotation strategy; the method also includes training the image annotation model, and the training of the image annotation model includes: inputting training image and text data into a pre-constructed initial annotation model, wherein the training image and text data corresponds to a training interface and a training text; obtaining a predicted annotation position corresponding to the training text in the training interface; calculating a second loss value of the initial annotation model according to the predicted annotation position and the pre-stored text annotation position, wherein the second loss value is used to characterize the difference between the predicted annotation position and the text annotation position; when the second loss value is greater than a preset second termination threshold, updating the initial annotation model based on a back propagation algorithm until the second loss value is less than or equal to the second termination threshold, stopping updating the initial annotation model, and obtaining the image annotation model trained to a converged state.
[0012] The embodiment of the present application also provides a device for generating an operation guide, the device comprising: an extraction module, used to extract features from an interface to be annotated and a description text, and obtain a plurality of first image features corresponding to the interface to be annotated, and a plurality of first text features corresponding to the description text; the description text is a product requirement document of an application to be annotated, and the application to be annotated includes at least one interface to be annotated; a combination module, used to combine the plurality of first image features with the plurality of first text features to obtain a plurality of first fusion features, wherein each first fusion feature includes a first image feature and a first text feature; a sorting module, used to determine a first target fusion feature of any interface to be annotated based on the similarity sorting of all first fusion features corresponding to the interface to be annotated, wherein the image feature included in the first fusion feature is the image feature corresponding to any interface to be annotated, and the similarity of the first fusion feature indicates the semantic association between a corresponding first image feature and a first text feature included; a generation module, used to determine a corresponding target operation guide based on the functional category of the first target fusion feature, and generate an automatic annotation interface according to the target operation guide and the interface to be annotated, wherein the target operation guide is obtained based on the description text.
[0013] An embodiment of the present application also provides an electronic device, comprising: a memory storing at least one instruction; and a processor executing the instruction stored in the memory to implement the method for generating an operation guide.
[0014] An embodiment of the present application also provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is executed by a processor in an electronic device to implement the method for generating operation instructions.
[0015] It can be seen from the above technical solutions that the embodiment of the present application performs feature extraction on the interface to be annotated and the description text to obtain the first image feature and the first text feature. Then the first image feature and the first text feature are combined into the first fusion feature. And based on the similarity sorting of the interface to be annotated corresponding to the first fusion feature, the first target fusion feature corresponding to each interface to be annotated can be screened out according to the degree of semantic association between the first image feature and the first text feature in the first fusion feature, thereby improving the accuracy of the subsequent generation of the target operation guide. Finally, the corresponding target operation guide is determined based on the functional category of the first target fusion feature, and an automatic annotation interface is generated according to the target operation guide and the interface to be annotated. In this way, the interface to be annotated can be automatically annotated according to the quantitative data of the first target fusion feature, thereby improving the generation efficiency of the operation guide, and then improving the annotation efficiency of the interface to be annotated. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 This is an application scenario diagram of a method for generating operation instructions provided in an embodiment of the present application.
[0017] Figure 2 It is a flowchart of a method for generating an operation guide provided in an embodiment of the present application.
[0018] Figure 3 This is a flowchart of a method for obtaining a first image feature and a first text feature provided by an embodiment of the present application.
[0019] Figure 4 It is a flowchart of a method for training a feature extraction model provided in one embodiment of the present application.
[0020] Figure 5 It is a flowchart of a method for determining target operation guidance provided by an embodiment of the present application.
[0021] Figure 6 It is a flowchart of a method for training an image annotation model provided in one embodiment of the present application.
[0022] Figure 7 It is a schematic diagram of an automatic annotation interface provided by an embodiment of the present application.
[0023] Figure 8 This is a flowchart of a method for performing incremental updates provided in one embodiment of the present application.
[0024] Fig. 9 It is a functional module diagram of a device for generating operation instructions provided in one embodiment of the present application.
[0025] Fig.10 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0026] In order to more clearly understand the purpose, features and advantages of the present application, the present application is described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that, in the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other. In the following description, many specific details are set forth to facilitate a full understanding of the present application, and the embodiments described are only a part of the embodiments of the present application, rather than all of the embodiments.
[0027] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0028] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by those skilled in the art to which the present application belongs. The terms used herein in the specification of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.
[0029] An embodiment of the present application provides a method for generating an operation guide, which can be applied to one or more electronic devices. The electronic device is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to a microprocessor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a programmable gate array (Field-Programmable Gate Array, FPGA), a digital processor (Digital Signal Processor, DSP), an embedded device, etc.
[0030] An electronic device can be any electronic product that can interact with customers, such as personal computers, tablet computers, smart phones, personal digital assistants (PDAs), game consoles, Internet Protocol Television (IPTV), smart wearable devices, etc.
[0031] The electronic device may also include a network device and / or a client device, wherein the network device includes, but is not limited to, a single network server, a server group consisting of multiple network servers, or a cloud consisting of a large number of hosts or network servers based on cloud computing.
[0032] The networks where electronic devices are located include but are not limited to the Internet, wide area network, metropolitan area network, local area network, virtual private network (VPN), etc.
[0033] like Figure 1As shown, the method for generating the operation instructions provided in the present application can be applied to an electronic device 100, and the electronic device 100 is communicatively connected to a database 200. Among them, the electronic device 100 is used to run the application to be annotated, and the database 200 is used to store the interface to be annotated and the description text corresponding to the application to be annotated. Exemplarily, the electronic device 100 can be a personal computer, a smart phone, or other device with data analysis functions, and the database 200 can be a data storage device integrated in the electronic device 100, or an external storage device communicatively connected to the electronic device 100, which is not limited in the present application. The application to be annotated can be a code, an application program, or application software running on the electronic device 100, which is not limited in the present application.
[0034] In one embodiment of the present application, when the electronic device 100 needs to annotate the interface to be annotated in the application to be annotated, the interface to be annotated and the description text stored in the database 200 can be synchronously analyzed to obtain multiple first image features corresponding to the interface to be annotated and multiple first text features corresponding to the description text, and an automatic annotation interface including target operation instructions is generated according to the first image features and the first text features. Among them, the target operation instructions can be a detailed description of the function corresponding to the interface to be annotated, and the automatic annotation interface can be an interface that has been annotated with the target operation instructions. In this way, the operation instructions can be automatically generated according to the pre-stored image data and text data, thereby improving the annotation efficiency of the application to be annotated.
[0035] like Figure 2 , is a flow chart of a method for generating an operation guide provided in an embodiment of the present application. According to different requirements, the order of the steps in the flow chart can be changed, and some steps can be omitted. The method for generating an operation guide provided in an embodiment of the present application includes the following steps.
[0036] S20, performing feature extraction on the interface to be annotated and the description text, and acquiring a plurality of first image features corresponding to the interface to be annotated and a plurality of first text features corresponding to the description text.
[0037] In one embodiment of the present application, in order to enhance the user experience when using application software, descriptive text may be used to annotate the interface to be annotated. This enables the user to efficiently obtain the functional interpretation of each interface to be annotated in the application software when interacting with the application software through an electronic device, thereby enhancing the usability of the application software.
[0038] In one embodiment of the present application, the interface to be annotated may be various functional icons in the application to be annotated, and the corresponding descriptive text content includes interactive steps for displaying software functions, displaying business interaction results, etc. The application scope of the functional diagram includes aspects such as user manual diagrams, software FAQ content interactive pictures, and novice guide pictures. The functional diagram of the software can help users quickly learn to operate the software, and it is also convenient for developers to demonstrate and deliver the software. Among them, the descriptive text is the product requirement document of the application to be annotated, and the application to be annotated includes at least one interface to be annotated. For example, when the interface to be annotated represents an image whose function is to input data, the corresponding descriptive text may be "Click this button to input data", that is, a detailed description of the function corresponding to the interface to be annotated.
[0039] In one embodiment of the present application, in order to improve the accuracy of annotating the interface to be annotated according to the descriptive text, the interface to be annotated and the descriptive text may be synchronously processed first to obtain quantitative data corresponding to the interface to be annotated and the descriptive text, thereby realizing the subsequent interface annotation task based on the quantitative data. Specifically, feature extraction is performed on the interface to be annotated and the descriptive text to obtain multiple first image features corresponding to the interface to be annotated, and multiple first text features corresponding to the descriptive text, including: inputting the interface to be annotated and the descriptive text into a pre-trained feature extraction model to obtain multiple first image features corresponding to the interface to be annotated, and multiple first text features corresponding to the descriptive text. Among them, both the first image feature and the first text feature can be vector data. Exemplarily, the first image feature can be [1,2,3,4], and the first text feature can be [2,3,4,5].
[0040] In one embodiment of the present application, the feature extraction model includes a first extraction unit and a second extraction unit, and the first extraction unit and the second extraction unit can be used to perform feature extraction on the interface to be annotated and the description text respectively, so that different feature extraction units can be used to process different types of data, thereby improving the accuracy of feature extraction. Among them, the first extraction unit and the second extraction unit can be any neural network with a feature extraction function. For example, the first extraction unit and the second extraction unit can be a convolutional neural network, a residual neural network, or a recurrent neural network, etc., which is not limited in the present application. Specifically, the interface to be annotated and the description text are input into a pre-trained feature extraction model to obtain multiple first image features corresponding to the interface to be annotated, and a method for obtaining multiple first text features corresponding to the description text, please refer to Figure 3 The corresponding detailed description.
[0041] In one embodiment of the present application, in order to improve the performance of the feature extraction model and thus improve the accuracy of feature extraction, the feature extraction model can be pre-trained to a convergence state using a training interface and training text, and then the feature extraction model trained to a convergence state is used to process the interface to be annotated and the description text, thereby improving the accuracy of the first image feature and the first text feature. For more details, please refer to Figure 4 The corresponding detailed description.
[0042] S21, combining the multiple first image features with the multiple first text features to obtain multiple first fusion features.
[0043] In one embodiment of the present application, in order to comprehensively analyze the first image feature and the first text feature during the operation guide generation process, multiple first image features and multiple first text features may be combined to obtain multiple first fusion features. Each first fusion feature includes a first image feature and a first text feature. Specifically, the first image features and the first text features may be cross-combined. For example, when the number of first image features is m and the number of first text features is n, the number of first fusion features is m*n.
[0044] In an embodiment of the present application, the first image feature can be placed in front and the first text feature can be placed in the back, and the first image feature and the first text feature can be spliced to obtain the first fusion feature; the first image feature can also be placed in the back and the first text feature can be placed in the front, and the first image feature and the first text feature can be spliced to obtain the first fusion feature; the first image feature and the first text feature can also be simultaneously input into a pre-built neural network encoder to obtain the first fusion feature. The present application does not limit the specific method of combining the first image feature and the first text feature.
[0045] For example, when the first image feature [1,2,3,4] is placed in front and the first text feature [2,3,4,5] is placed in the back, the first fused feature is [1,2,3,4,2,3,4,5].
[0046] S22: for any interface to be annotated, determining a first target fusion feature of any interface to be annotated based on the similarity ranking of all first fusion features corresponding to the interface to be annotated.
[0047] In one embodiment of the present application, the image features included in the first fusion feature are image features corresponding to any interface to be annotated, and the similarity of the first fusion feature represents the semantic association between a first image feature and a first text feature included therein. The higher the similarity corresponding to the first fusion feature, the higher the semantic association between a first image feature and a first text feature corresponding to the first fusion feature, that is, the more similar the semantics between the interface to be annotated and the description text corresponding to the first fusion feature are.
[0048] In an embodiment of the present application, the method for determining the similarity of the first fusion feature includes: calculating the cosine similarity, Hamming distance or Euclidean distance between a corresponding first image feature and a first text feature. The present application does not limit this.
[0049] Exemplarily, when the method for determining the similarity corresponding to the first fusion feature is to calculate the cosine similarity between a corresponding first image feature and a first text feature, and the first image feature is [1,2,3,4], and the first text feature is [2,3,4,5], the method for determining the similarity corresponding to the first fusion feature satisfies the following relationship: Therefore, when the first image feature is [1,2,3,4] and the first text feature is [2,3,4,5], the similarity corresponding to the first fusion feature is 0.74.
[0050] In one embodiment of the present application, the first fusion feature with the highest similarity can be determined from multiple first fusion features corresponding to the interface to be annotated as the first target fusion feature corresponding to the interface to be annotated. In this way, it can be ensured that the semantic correlation between the first image feature and the first text feature in the first target fusion feature is the highest, thereby improving the accuracy of the target operation guidance generated subsequently according to the first target fusion feature.
[0051] S23, determining a corresponding target operation guide based on the function category of the first target fusion feature, and generating an automatic annotation interface according to the target operation guide and the interface to be annotated.
[0052] In one embodiment of the present application, the target operation guide is obtained based on the description text, wherein the target operation guide is used to represent the detailed description corresponding to the interface to be annotated in the description text.
[0053] In one embodiment of the present application, since the first target fusion feature is obtained by combining the first image feature of the interface to be annotated and the first text feature of the corresponding descriptive text, the first target fusion feature contains all information of the first image feature and the first text feature. The functional category of the first target fusion feature can be determined according to the descriptive text corresponding to the first target fusion feature, and the corresponding target operation guide can be determined according to the functional category. Among them, the functional category of the first target fusion feature can be the function corresponding to the interface to be annotated corresponding to the first target fusion feature in the application to be annotated. For example, when the interface to be annotated corresponding to the first target fusion feature is any icon of the data analysis module in the application to be annotated, the functional category corresponding to the first target fusion feature can be data analysis. Specifically, for the method of determining the corresponding target operation guide based on the functional category of the first target fusion feature, please refer to Figure 5 The corresponding detailed description.
[0054] In one embodiment of the present application, an automatic annotation interface can be generated according to the target operation guide and the interface to be annotated, wherein the automatic annotation interface can be the interface to be annotated that has been annotated by the target operation guide. Specifically, in order to improve the efficiency of generating the automatic annotation interface, the first target fusion feature can be input into a pre-trained image annotation model to obtain the automatic annotation interface output by the image annotation model corresponding to the interface to be annotated. In order to improve the performance of the image annotation model, the image annotation model can be pre-trained. Specifically, the method for training the image annotation model can be referred to Figure 6 Corresponding detailed description. Among them, the image annotation model is used to generate an automatic annotation interface according to the target operation guide, the interface to be annotated and the image annotation strategy. Among them, the image annotation strategy can be to annotate the target operation guide to the position of the interface to be annotated; it can also be the layout position of the target operation guide in the interface to be annotated, etc.
[0055] like Figure 7 The figure shows a schematic diagram of an automatic annotation interface provided by an embodiment of the present application, wherein the automatic annotation interface 700 includes an annotation area 710. The annotation area 710 is determined by the image annotation model and is used to define the annotation position of the target operation guide in the interface to be annotated.
[0056] It can be seen from the above technical solutions that the embodiment of the present application obtains the first image feature and the first text feature by extracting features of the interface to be annotated and the description text. Then the first image feature and the first text feature are combined into the first fusion feature. And based on the similarity sorting of the interface to be annotated corresponding to the first fusion feature, the first target fusion feature corresponding to each interface to be annotated can be screened out according to the degree of semantic association between the first image feature and the first text feature in the first fusion feature, thereby improving the accuracy of the subsequent generation of the target operation guide. Finally, the corresponding target operation guide is determined based on the functional category of the first target fusion feature, and an automatic annotation interface is generated according to the target operation guide and the interface to be annotated. In this way, the interface to be annotated can be automatically annotated according to the quantitative data of the first target fusion feature, thereby improving the generation efficiency of the operation guide, and then improving the annotation efficiency of the interface to be annotated.
[0057] In one embodiment of the present application, after the application to be annotated is updated, the interface to be annotated and the corresponding description text will be updated synchronously to obtain an updated interface and corresponding updated text. In order to ensure that the target operation guide corresponding to the updated interface can be updated in time to improve the accuracy of annotating the updated interface, the target operation guide corresponding to the updated interface can be incrementally updated to obtain an updated annotation interface, thereby improving the efficiency of application updates while taking into account the accuracy of application updates. For specific methods of performing incremental updates, please refer to Figure 8 The corresponding detailed description.
[0058] like Figure 3 , is a flow chart of a method for obtaining a first image feature and a first text feature provided in an embodiment of the present application. According to different requirements, the order of the steps in the flow chart can be changed, and some steps can be omitted. The method for obtaining a first image feature and a first text feature provided in an embodiment of the present application includes the following steps.
[0059] S30: input the interface to be annotated to the first extraction unit to obtain a plurality of first image features corresponding to the interface to be annotated.
[0060] In one embodiment of the present application, the interface to be annotated can be any icon in the application to be annotated, and the interface to be annotated can be a digital image in any format. The interface to be annotated can be input into the first extraction unit in the feature extraction model, and the interface to be annotated is encoded by the first extraction unit to obtain a corresponding plurality of first image features. The number of interfaces to be annotated is the same as the number of first image features, and each interface to be annotated corresponds to one first image feature.
[0061] S31, inputting the description text into the second extraction unit to obtain a plurality of first text features corresponding to the description text.
[0062] In one embodiment of the present application, the description text may be a product requirement document corresponding to the application to be annotated, and the product requirement document is used to explain in detail the functions of the application to be annotated and the meaning of the icon. The description text may be input into the second extraction unit in the feature extraction model, and the description text may be encoded by the second extraction unit to obtain a plurality of corresponding first text features. The number of description texts is the same as that of first text features, and each description text corresponds to one first text feature.
[0063] like Figure 4 , is a flow chart of a method for training a feature extraction model provided in an embodiment of the present application. According to different requirements, the order of the steps in the flow chart can be changed, and some steps can be omitted. The method for training a feature extraction model provided in an embodiment of the present application includes the following steps.
[0064] S40, inputting the training interface into a pre-constructed initial first extraction unit to obtain predicted image features corresponding to the training interface.
[0065] In one embodiment of the present application, the training interface may be a pre-collected digital image used to characterize all candidate icons in the process of developing the application to be annotated. The training interface may be input into a pre-constructed initial first extraction unit to obtain the predicted image features corresponding to the training interface. The predicted image features are used to characterize the quantitative features of the training interface.
[0066] S41, inputting a training text into a pre-constructed initial second extraction unit to obtain a predicted text feature corresponding to the training text.
[0067] In one embodiment of the present application, the training text may be pre-edited text information corresponding to the training interface, and each training interface corresponds to a training text. The training text is used to characterize the detailed description of the corresponding training interface. For example, when the training image is an icon corresponding to a data download function in an application to be annotated, the training text may be a detailed description corresponding to the data download function. The training text may be input into a pre-constructed initial second extraction unit to obtain predicted text features corresponding to the training text. The predicted text features are used to characterize the quantitative features of the training text.
[0068] S42, calculating the predicted similarity between the predicted image feature and the predicted text feature.
[0069] In one embodiment of the present application, in order to evaluate the performance of the initial first extraction unit and the initial second extraction unit, the predicted similarity between the predicted image features and the predicted text features can be calculated, so that the performance of the initial first extraction unit and the initial second extraction unit can be determined based on the quantitative feature of the predicted similarity, thereby improving the accuracy of the feature extraction model.
[0070] In an embodiment of the present application, the method for calculating the predicted similarity is the same as the method for calculating the similarity in step S22, and will not be repeated here.
[0071] S43, determining a first loss value of the feature extraction model according to the predicted similarity and the true value similarity; wherein the true value similarity is used to characterize the degree of association between the training interface and the training text.
[0072] In one embodiment of the present application, in order to improve the performance of the feature extraction model, the first loss value of the feature extraction model can be determined based on the predicted similarity and the pre-stored true value similarity, and the performance of the feature extraction model can be evaluated based on the quantitative data of the first loss value. For example, the first loss value can be the absolute value of the difference between the predicted similarity and the true value similarity. Among them, the larger the first loss value, the greater the difference between the predicted similarity and the true value similarity, which indicates that the degree of association between the training interface and the training text predicted by the feature extraction model is greatly different from the actual degree of association, and the performance of the feature extraction model is insufficient.
[0073] S44, when the first loss value is greater than a preset first termination threshold, the feature extraction model is updated based on the back propagation algorithm until the first loss value is less than or equal to the first termination threshold, and the updating of the feature extraction model is stopped to obtain the feature extraction model trained to a convergence state.
[0074] In one embodiment of the present application, when the first loss value is greater than the preset first termination threshold, it indicates that the correlation degree between the training interface and the training text predicted by the feature extraction model is significantly different from the actual correlation degree, and the performance of the feature extraction model is insufficient. Therefore, the feature extraction model can be updated based on the back propagation algorithm until the first loss value is less than or equal to the preset first termination threshold, indicating that the feature extraction model has been trained to a convergence state, and the feature extraction model can be stopped from being updated. Exemplarily, the first termination threshold can be a pre-set value such as 0.01, 0.001, etc.
[0075] like Figure 5 , is a flow chart of a method for determining target operation guidance provided in an embodiment of the present application. According to different requirements, the order of the steps in the flow chart can be changed, and some steps can be omitted. The method for determining target operation guidance provided in an embodiment of the present application includes the following steps.
[0076] S50: Determine a corresponding function usage path according to the description text corresponding to the first target fusion feature.
[0077] In one embodiment of the present application, since the first target fusion feature is obtained by combining the first image feature of the interface to be annotated and the first text feature of the corresponding description text, the description text corresponding to the first target fusion feature is used to record the detailed description of the interface to be annotated corresponding to the first target fusion feature. Specifically, the interface to be annotated can be various function icons in the application to be annotated, and the corresponding description text can be the product requirement document of the application to be annotated, which is used to record the function usage path of the application to be annotated to which the interface to be annotated belongs.
[0078] S51, determining a function category of the first target fusion feature according to the function usage path, so as to determine a target operation guide corresponding to the function category.
[0079] In one embodiment of the present application, the function usage path is used to record the running order of each function module in the application to be annotated, and can also be used to record all icons in the application to be annotated and the function category corresponding to each interface to be annotated, as well as the operation instructions corresponding to the interface to be annotated. Specifically, the operation instructions of the interface to be annotated are used to explain the functions of the interface to be annotated in detail. Therefore, the corresponding function category and the target operation instructions corresponding to the interface to be annotated can be queried from the function usage path according to the interface to be annotated corresponding to the first target fusion feature. For example, when the interface to be annotated is an icon whose function is to download data, the corresponding operation instructions may be "click this button to download data".
[0080] like Figure 6 , is a flow chart of a method for training an image annotation model provided in an embodiment of the present application. According to different requirements, the order of the steps in the flow chart can be changed, and some steps can be omitted. The method for training an image annotation model provided in an embodiment of the present application includes the following steps.
[0081] S60, inputting training image and text data into a pre-built initial annotation model, wherein the training image and text data corresponds to a training interface and a training text.
[0082] In one embodiment of the present application, the training image data may be quantitative data obtained by combining the predicted image features corresponding to the training interface and the predicted text features corresponding to the training text. In order to evaluate the performance of the pre-built initial annotation model, the training image data may be input into the pre-built initial annotation model.
[0083] S61, obtaining the predicted annotation position corresponding to the training text in the training interface.
[0084] In one embodiment of the present application, the initial annotation model is used to generate a predicted annotation position based on the training graphic data. The predicted annotation position is used to characterize the annotation position of the training text in the training interface. Specifically, the predicted annotation position can be the coordinates of the four vertices of the area in the training interface used to annotate the training text; the predicted annotation position can also be the center point coordinates and side length of the area used to annotate the training text. The present application does not limit the specific form of the predicted annotation position.
[0085] Exemplarily, when the predicted annotation positions are the coordinates of four vertices of an area in the training interface used to annotate training text, the predicted annotation positions may be in the form of: (3,4), (3,100), (100,4), (100,100).
[0086] S62, calculating a second loss value of the initial annotation model according to the predicted annotation position and the pre-stored text annotation position, wherein the second loss value is used to characterize the difference between the predicted annotation position and the text annotation position.
[0087] In one embodiment of the present application, in order to evaluate the performance of the initial annotation model using quantitative data, the second loss value of the initial annotation model can be determined according to the predicted annotation position and the pre-stored text annotation position, so that the initial annotation model can be updated according to the second loss value later. Different forms of predicted annotation positions correspond to different calculation methods of the second loss value, which is not limited in the present application.
[0088] Exemplarily, when the coordinates of the four vertices of the predicted annotation positions in the training interface for annotating training text are (3,4), (3,100), (100,4) and (100,100) in the training interface, and the pre-stored text annotation positions are (3,14), (3,110), (100,14) and (100,110), the second loss value can be the mean of the coordinate differences.
[0089] S63, when the second loss value is greater than a preset second termination threshold, the initial annotation model is updated based on the back propagation algorithm until the second loss value is less than or equal to the second termination threshold, and the updating of the initial annotation model is stopped to obtain the image annotation model trained to a convergence state.
[0090] In one embodiment of the present application, when the second loss value is greater than the preset second termination threshold, it indicates that the difference between the predicted annotation position predicted by the initial annotation model and the preset text annotation position is large, and the performance of the initial annotation model is insufficient. Therefore, the initial annotation model can be updated based on the back propagation algorithm until the second loss value is less than or equal to the preset second termination threshold, indicating that the initial annotation model has been trained to a convergence state, and the initial annotation model can be stopped from being updated.
[0091] like Figure 8 , is a flowchart of a method for performing incremental updates provided in an embodiment of the present application. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted. The method for performing incremental updates provided in an embodiment of the present application includes the following steps.
[0092] S80, after the application to be annotated is updated, feature extraction is performed on the updated interface and the updated text to obtain a second image feature corresponding to the updated interface and a plurality of second text features corresponding to the updated text.
[0093] In one embodiment of the present application, after the application to be annotated is updated, its corresponding interface to be annotated (e.g., the icon in the application to be annotated) and description text (e.g., the product requirement document of the application to be annotated) will be updated synchronously to form an updated interface and updated text. In order to timely maintain the availability of the updated application to be annotated, feature extraction can be performed on the updated interface and the updated text, so as to timely update the operation guide corresponding to the interface to be annotated using the second image feature corresponding to the updated interface and the multiple second text features corresponding to the updated text.
[0094] In one embodiment of the present application, feature extraction is performed on the update interface and the update text, and the method for obtaining the second image feature corresponding to the update interface and the multiple second text features corresponding to the update text is the same as the method for obtaining the multiple first image features corresponding to the interface to be annotated and the multiple first text features corresponding to the description text recorded in step S20, and will not be repeated here.
[0095] S81, based on the difference between the one-to-one corresponding first image feature and the second image feature, screening the updated image feature from the second image features, wherein the difference between the updated image feature and the first image feature is greater than a first preset difference.
[0096] In one embodiment of the present application, in order to improve the update efficiency of the application to be annotated, the update image features can be screened from the second image features, thereby reducing the scope of updating the interface to be annotated and realizing the incremental update of the application to be annotated. Specifically, the update image features can be screened based on the difference between the one-to-one corresponding first image features and the second image features. When the difference between any second image feature and the corresponding first image feature is greater than the first preset difference, the second image feature is determined to be the update image feature. Among them, the difference between the first image feature and the second image feature can be the cosine distance between the first image feature and the second image feature, and can also be the Euclidean distance between the first image feature and the second image feature, and can also be the Hamming distance between the first image feature and the second image feature, and the present application does not limit this. Among them, the difference below the set value can be 0.1, 0.01 or 0.001, etc., and the present application does not limit this.
[0097] S82, based on the difference between the one-to-one corresponding first text feature and the second text feature, selecting an updated text feature from the second text features, wherein the difference between the updated text feature and the first text feature is greater than a second preset difference.
[0098] In one embodiment of the present application, the method of filtering and updating the text features in the second text features is the same as the method of filtering and updating the image features in the second image features recorded in step S81, and will not be repeated here.
[0099] S83, combining the multiple updated image features with the multiple updated text features to obtain multiple second fused features, wherein each second fused feature includes an updated image feature and an updated text feature.
[0100] In one embodiment of the present application, the method of combining and updating image features and updating text features to obtain multiple second fusion features is the same as the method of obtaining multiple first fusion features recorded in step S21, and will not be repeated here.
[0101] S84, for any updated interface, determining a second target fusion feature of the any updated interface based on the similarity ranking of all second fusion features corresponding to the any updated interface.
[0102] In one embodiment of the present application, the method for determining the second target fusion feature based on the similarity ranking of all second fusion features corresponding to any updated interface is the same as the method for determining the first target fusion feature of any interface to be annotated recorded in step S22, and will not be repeated here.
[0103] S85, determining a corresponding target operation guide based on the function category of the second target fusion feature, and generating an update annotation interface according to the target operation guide and the update interface.
[0104] In one embodiment of the present application, the method for determining the target operation guidance and generating the update annotation interface based on the functional category of the second target fusion feature is the same as the method for determining the target operation guidance and generating the update annotation interface recorded in step S23, and will not be repeated here.
[0105] See also Fig. 9 , Fig. 9 1 is a functional module diagram of an operation guide generation device provided in an embodiment of the present application. The operation guide generation device 91 includes an extraction module 910, a combination module 911, a sorting module 912 and a generation module 913. The module / unit referred to in the present application refers to a series of computer-readable instruction segments that can be executed by the processor 13 and can complete a fixed function, which is stored in the memory 12. In this embodiment, the functions of each module / unit will be described in detail in subsequent embodiments.
[0106] The extraction module 910 is used to perform feature extraction on the interface to be annotated and the description text, and obtain multiple first image features corresponding to the interface to be annotated, and multiple first text features corresponding to the description text; the description text is a product requirement document of the application to be annotated, and the application to be annotated includes at least one interface to be annotated.
[0107] The combining module 911 is used to combine the multiple first image features with the multiple first text features to obtain multiple first fusion features, wherein each first fusion feature includes a first image feature and a first text feature.
[0108] The sorting module 912 is used to determine the first target fusion feature of any interface to be annotated based on the similarity sorting of all first fusion features corresponding to any interface to be annotated, wherein the image feature included in the first fusion feature is the first image feature corresponding to any interface to be annotated, and the similarity of the first fusion feature represents the semantic association between a corresponding first image feature and a first text feature.
[0109] The generating module 913 is used to determine the corresponding target operation guide based on the functional category of the first target fusion feature, and generate an automatic annotation interface according to the target operation guide and the interface to be annotated, wherein the target operation guide is obtained based on the description text.
[0110] The extraction module 910 is further used to input the interface to be annotated and the description text into a pre-trained feature extraction model to obtain a plurality of first image features corresponding to the interface to be annotated and a plurality of first text features corresponding to the description text.
[0111] The extraction module 910 is further used to input the interface to be annotated into the first extraction unit to obtain multiple first image features corresponding to the interface to be annotated; and input the description text into the second extraction unit to obtain multiple first text features corresponding to the description text.
[0112] The extraction module 910 is also used to input the training interface into a pre-constructed initial first extraction unit to obtain the predicted image features corresponding to the training interface; input the training text into a pre-constructed initial second extraction unit to obtain the predicted text features corresponding to the training text; calculate the predicted similarity between the predicted image features and the predicted text features; determine the first loss value of the feature extraction model according to the predicted similarity and the true value similarity; wherein the true value similarity is used to characterize the degree of association between the training interface and the training text; when the first loss value is greater than a preset first termination threshold, update the feature extraction model based on the back propagation algorithm until the first loss value is less than or equal to the first termination threshold, stop updating the feature extraction model, and obtain the feature extraction model trained to a convergence state.
[0113] The generating module 913 is further used to determine a corresponding function usage path according to the description text corresponding to the first target fusion feature; determine a function category of the first target fusion feature according to the function usage path to determine a target operation guide corresponding to the function category.
[0114] The generation module 913 is also used to input the first target fusion feature into a pre-trained image annotation model to generate an automatic annotation interface; wherein the image annotation model is used to generate an automatic annotation interface according to the target operation guide, the interface to be annotated and the image annotation strategy; the method also includes training the image annotation model, and the training of the image annotation model includes: inputting training image and text data into a pre-constructed initial annotation model, wherein the training image and text data corresponds to a training interface and a training text; obtaining a predicted annotation position corresponding to the training text in the training interface; calculating a second loss value of the initial annotation model according to the predicted annotation position and the pre-stored text annotation position, wherein the second loss value is used to characterize the difference between the predicted annotation position and the text annotation position; when the second loss value is greater than a preset second termination threshold, updating the initial annotation model based on a back propagation algorithm until the second loss value is less than or equal to the second termination threshold, stopping updating the initial annotation model, and obtaining the image annotation model trained to a converged state.
[0115] The generation module 913 is further used to extract features from the update interface and the update text after the application to be annotated is updated, and obtain a second image feature corresponding to the update interface and a plurality of second text features corresponding to the update text; based on the difference between the one-to-one corresponding first image feature and the second image feature, screen the update image feature from the second image feature, and the difference between the update image feature and the first image feature is greater than a first preset difference; based on the difference between the one-to-one corresponding first text feature and the second text feature, screen the update text feature from the second text feature, and the difference between the update text feature and the first text feature is greater than a second preset difference; combine the plurality of update image features with the plurality of update text features to obtain a plurality of second fusion features, wherein each second fusion feature includes an update image feature and an update text feature; for any update interface, determine the second target fusion feature of any update interface based on the similarity ranking of all the second fusion features corresponding to the any update interface; determine the corresponding target operation guide based on the functional category of the second target fusion feature, and generate an update annotation interface according to the target operation guide and the update interface.
[0116] See also Fig.10 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 100 includes a memory 12 and a processor 13. The memory 12 is used to store computer-readable instructions, and the processor 13 is used to execute the computer-readable instructions stored in the memory to implement the method for generating an operation guide described in any of the above embodiments.
[0117] In an embodiment of the present application, the electronic device 100 further includes a bus, and a computer program stored in the memory 12 and executable on the processor 13, such as a program for generating operation instructions.
[0118] Fig.10 Only the electronic device 100 having the memory 12 and the processor 13 is shown, and those skilled in the art can understand that Fig.10 The structure shown does not constitute a limitation on the electronic device 100 , and the electronic device 100 may include fewer or more components than shown in the figure, or combine some components, or arrange the components differently.
[0119] Combination Figure 2The memory 12 in the electronic device 100 stores a plurality of computer-readable instructions to implement a method for generating an operation guide, and the processor 13 can execute the plurality of instructions to implement: extracting features from an interface to be annotated and a description text, obtaining a plurality of first image features corresponding to the interface to be annotated, and a plurality of first text features corresponding to the description text; the description text is a product requirement document of an application to be annotated, and the application to be annotated includes at least one interface to be annotated; combining the plurality of first image features with the plurality of first text features to obtain a plurality of first fusion features, wherein each first fusion feature includes a first image feature and a first text feature; for any interface to be annotated, based on the similarity ranking of all first fusion features corresponding to the interface to be annotated, determining a first target fusion feature of the interface to be annotated, wherein the image feature included in the first fusion feature is the first image feature corresponding to the interface to be annotated, and the similarity of the first fusion feature indicates the semantic association between a first image feature and a first text feature included accordingly; determining a corresponding target operation guide based on the functional category of the first target fusion feature, and generating an automatic annotation interface according to the target operation guide and the interface to be annotated, wherein the target operation guide is obtained based on the description text.
[0120] Specifically, the specific implementation method of the processor 13 for the above instructions can refer to Figure 2 The description of the relevant steps in the corresponding embodiments will not be repeated here.
[0121] Those skilled in the art will appreciate that the schematic diagram is merely an example of the electronic device 100 and does not constitute a limitation on the electronic device 100. The electronic device 100 may be a bus-type structure or a star-type structure. The electronic device 100 may also include more or less other hardware or software than shown in the diagram, or a different arrangement of components. For example, the electronic device 100 may also include input and output devices, network access devices, etc.
[0122] It should be noted that the electronic device 100 is only an example, and other existing or future electronic products that are suitable for the present application should also be included in the protection scope of the present application and included here by reference.
[0123] Among them, the memory 12 includes at least one type of readable storage medium, and the readable storage medium can be non-volatile or volatile. The readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 12 can be an internal storage unit of the electronic device 100, such as a mobile hard disk of the electronic device 100. In other embodiments, the memory 12 can also be an external storage device of the electronic device 100, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. equipped on the electronic device 100. The memory 12 can not only be used to store application software and various types of data installed in the electronic device 100, such as the code of the generation program of the operation guide, etc., but also can be used to temporarily store data that has been output or is to be output.
[0124] In some embodiments, the processor 13 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and a combination of various control chips. The processor 13 is the control core (Control Unit) of the electronic device 100, and uses various interfaces and lines to connect various components of the entire electronic device 100, and executes various functions and processes data of the electronic device 100 by running or executing programs or modules stored in the memory 12 (for example, a program for generating operation instructions, etc.), and calling data stored in the memory 12.
[0125] The processor 13 executes the operating system of the electronic device 100 and various installed applications. The processor 13 executes the applications to implement the steps in the above-mentioned generation method of each operation guide, for example Figure 2 Steps shown.
[0126] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory 12 and executed by the processor 13 to complete the present application. The one or more modules / units may be a series of computer-readable instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program in the electronic device 100. For example, the computer program may be divided into an extraction module 910, a combination module 911, a sorting module 912, and a generation module 913.
[0127] The above-mentioned integrated unit implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a computer device, or a network device, etc.) or a processor to execute a part of the method for generating the operation guide described in each embodiment of the present application.
[0128] If the module / unit integrated in the electronic device 100 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also instruct the relevant hardware devices to complete through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, the steps of each of the above-mentioned method embodiments can be implemented.
[0129] The computer program includes computer program code, which may be in source code form, object code form, executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory and other memory, etc.
[0130] Furthermore, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the blockchain node, etc.
[0131] The bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. Fig.10 Only one arrow is used in the figure, but it does not mean that there is only one bus or one type of bus. The bus is configured to realize the connection and communication between the memory 12 and at least one processor 13, etc.
[0132] An embodiment of the present application also provides a computer-readable storage medium (not shown), in which computer-readable storage medium is stored computer-readable instructions, and the computer-readable instructions are executed by a processor in an electronic device to implement the method for generating operation instructions described in any of the above embodiments.
[0133] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0134] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0135] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0136] In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the specification can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any specific order.
[0137] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the preferred embodiments, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present application.
Claims
1. A method for generating an operation guide, characterized in that: The method comprises: Perform feature extraction on the interface to be annotated and the description text to obtain a plurality of first image features corresponding to the interface to be annotated and a plurality of first text features corresponding to the description text; the description text is a product requirement document of the application to be annotated, and the application to be annotated includes at least one interface to be annotated; Combining the plurality of first image features with the plurality of first text features to obtain a plurality of first fused features, wherein each first fused feature includes a first image feature and a first text feature; For any interface to be annotated, based on the similarity ranking of all first fusion features corresponding to the interface to be annotated, determine the first target fusion feature of the interface to be annotated, wherein the image feature included in the first fusion feature is the first image feature corresponding to the interface to be annotated, and the similarity of the first fusion feature represents the semantic association between a first image feature and a first text feature included accordingly; A corresponding target operation guide is determined based on the function category of the first target fusion feature, and an automatic annotation interface is generated according to the target operation guide and the interface to be annotated, wherein the target operation guide is obtained based on the description text.
2. The method for generating an operation guide according to claim 1, wherein: The step of extracting features from the interface to be annotated and the description text to obtain a plurality of first image features corresponding to the interface to be annotated and a plurality of first text features corresponding to the description text comprises: The interface to be annotated and the description text are input into a pre-trained feature extraction model to obtain a plurality of first image features corresponding to the interface to be annotated and a plurality of first text features corresponding to the description text.
3. The method for generating an operation guide according to claim 2, wherein: The feature extraction model includes a first extraction unit and a second extraction unit. The inputting of the interface to be annotated and the description text into the pre-trained feature extraction model to obtain a plurality of first image features corresponding to the interface to be annotated and a plurality of first text features corresponding to the description text includes: Inputting the interface to be annotated into the first extraction unit to obtain a plurality of first image features corresponding to the interface to be annotated; The description text is input into the second extraction unit to obtain a plurality of first text features corresponding to the description text.
4. The method for generating an operation guide according to claim 3, wherein: The method further includes training the feature extraction model, wherein the training the feature extraction model includes: Inputting a training interface into a pre-constructed initial first extraction unit to obtain predicted image features corresponding to the training interface; Inputting a training text into a pre-constructed initial second extraction unit to obtain a predicted text feature corresponding to the training text; Calculating the predicted similarity between the predicted image feature and the predicted text feature; Determining a first loss value of the feature extraction model according to the predicted similarity and the true value similarity; wherein the true value similarity is used to characterize the degree of association between the training interface and the training text; When the first loss value is greater than a preset first termination threshold, the feature extraction model is updated based on the back propagation algorithm until the first loss value is less than or equal to the first termination threshold, and then the updating of the feature extraction model is stopped to obtain the feature extraction model trained to a convergence state.
5. The method for generating an operation guide according to any one of claims 1 to 4, characterized in that: The method further comprises: After the application to be annotated is updated, feature extraction is performed on the update interface and the update text to obtain a second image feature corresponding to the update interface and a plurality of second text features corresponding to the update text; Based on the difference between the one-to-one corresponding first image feature and the second image feature, selecting the updated image feature from the second image features, wherein the difference between the updated image feature and the first image feature is greater than a first preset difference; Based on the difference between the one-to-one corresponding first text feature and the second text feature, selecting the updated text feature from the second text feature, wherein the difference between the updated text feature and the first text feature is greater than a second preset difference; Combining the multiple updated image features with the multiple updated text features to obtain multiple second fused features, wherein each second fused feature includes an updated image feature and an updated text feature; For any update interface, based on the similarity ranking of all second fusion features corresponding to the any update interface, determine the second target fusion feature of the any update interface; A corresponding target operation guide is determined based on the function category of the second target fusion feature, and an update annotation interface is generated according to the target operation guide and the update interface.
6. The method for generating an operation guide according to any one of claims 1 to 4, characterized in that: The determining of the corresponding target operation guide based on the functional category of the first target fusion feature includes: Determine a corresponding function usage path according to the description text corresponding to the first target fusion feature; The function category of the first target fusion feature is determined according to the function usage path to determine the target operation guidance corresponding to the function category.
7. The method for generating an operation guide according to any one of claims 1 to 4, characterized in that: Generating the automatic annotation interface according to the target operation guide and the interface to be annotated includes: Inputting the first target fusion feature into a pre-trained image annotation model to generate an automatic annotation interface; The image annotation model is used to generate an automatic annotation interface according to the target operation guide, the interface to be annotated and the image annotation strategy; The method further includes training the image annotation model, wherein the training the image annotation model includes: Input training graphic data into a pre-built initial annotation model, wherein the training graphic data corresponds to a training interface and a training text; Obtaining a predicted annotation position corresponding to the training text in the training interface; Calculating a second loss value of the initial annotation model according to the predicted annotation position and the pre-stored text annotation position, wherein the second loss value is used to characterize the difference between the predicted annotation position and the text annotation position; When the second loss value is greater than a preset second termination threshold, the initial annotation model is updated based on the back propagation algorithm until the second loss value is less than or equal to the second termination threshold, and then the updating of the initial annotation model is stopped to obtain the image annotation model trained to a convergent state.
8. A device for generating operation instructions, characterized in that: The device comprises a module for implementing the method for generating an operation guide according to any one of claims 1 to 7, and the device comprises: An extraction module is used to extract features from the interface to be annotated and the description text, and obtain a plurality of first image features corresponding to the interface to be annotated and a plurality of first text features corresponding to the description text; the description text is a product requirement document of the application to be annotated, and the application to be annotated includes at least one interface to be annotated; A combining module, used for combining the plurality of first image features with the plurality of first text features to obtain a plurality of first fused features, wherein each first fused feature includes a first image feature and a first text feature; A sorting module, for determining, for any interface to be annotated, a first target fusion feature of the interface to be annotated based on the similarity sorting of all first fusion features corresponding to the interface to be annotated, wherein the image feature included in the first fusion feature is the first image feature corresponding to the interface to be annotated, and the similarity of the first fusion feature represents the semantic association between a first image feature and a first text feature included accordingly; A generation module is used to determine a corresponding target operation guide based on the functional category of the first target fusion feature, and generate an automatic annotation interface according to the target operation guide and the interface to be annotated, wherein the target operation guide is obtained based on the description text.
9. An electronic device, characterized in that: The electronic device includes a processor and a memory, and the processor is used to implement the method for generating an operation guide as described in any one of claims 1 to 7 when executing a computer program stored in the memory.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for generating an operation guide according to any one of claims 1 to 7 is implemented.
