A method for updating an application program and a related device

By automatically identifying and generating application configuration files, it solves the stability problems and update speed bottlenecks caused by manually writing configuration files, and achieves efficient and accurate update and deployment of applications.

CN118519661BActive Publication Date: 2024-10-01ZHUHAI QUIN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410982449.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-10-01
Estimated Expiration
2044-07-22

AI Technical Summary

Technical Problem

In the existing technology, application updates rely on developers or operation and maintenance personnel to manually write configuration files, which easily introduces configuration errors, affects the stability of the application, and restricts the expansion and update speed of the application.

Method used

By obtaining requirements documents and identifying target functions, calculating the similarity between text function descriptions and code comments, determining target configuration parameters and variables, generating target configuration files, and then automatically updating the application.

Benefits of technology

It improves the efficiency and accuracy of application deployment and ensures that the development team develops, updates and deploys the system under clear functional requirements and technical guidance to meet user needs and enhance the competitiveness of applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118519661B_ABST
    Figure CN118519661B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides an application updating method and related devices, belonging to the field of data processing technology. The method includes: performing function identification on a requirement document to obtain a target function and a text function description corresponding to the target function; performing attribute identification on the text function description to obtain a target configuration parameter corresponding to the target function; obtaining a code document corresponding to the requirement document, and obtaining a first code comment corresponding to the code document; calculating the similarity between the text function description and the first code comment to obtain a target function corresponding to the target function; obtaining a second code comment corresponding to an initial variable in the target function, and determining a target variable corresponding to the target configuration parameter according to the second code comment; generating a corresponding target configuration file according to the target variable and the target configuration parameter, and packaging the code document according to the target configuration file to obtain a target package file corresponding to the application, so that the application is updated according to the target package file.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to an application updating method and related devices. Background Art

[0002] In the context of the rapid iteration of mobile applications and the increasing demand for user experience, printer applications (Apps), as a key office tool, need to be able to flexibly respond to the challenges of different printer hardware and software environments. With the rapid iteration of applications, frequent updates are necessary. However, in existing technologies, updates rely on developers or operation and maintenance personnel to manually write configuration files. This method is prone to introducing configuration errors, which in turn affects the stability of the updated application. In addition, this approach also limits the ability of applications to quickly adapt to changes in new hardware or software environments, thereby restricting the expansion and update speed of applications. Summary of the invention

[0003] The main purpose of the embodiments of the present invention is to provide an application update method and related devices, aiming to solve the problem in the related technology that application updates rely on developers or operation and maintenance personnel to manually write configuration files. This method is prone to introduce configuration errors, which in turn affects the stability of the updated application and restricts the expansion and update speed of the application.

[0004] In a first aspect, an embodiment of the present invention provides a method for updating an application program, comprising:

[0005] Obtaining a requirement document, and performing functional identification on the requirement document to obtain a target function and a textual functional description corresponding to the target function;

[0006] Performing attribute recognition on the text function description to obtain target configuration parameters corresponding to the target function;

[0007] Obtain a code document corresponding to the requirement document, and obtain a first code comment corresponding to the code document;

[0008] Calculating the similarity between the text function description and the first code annotation to obtain the target function corresponding to the target function;

[0009] Obtaining a second code annotation corresponding to an initial variable in the objective function, and determining a target variable corresponding to the target configuration parameter according to the second code annotation;

[0010] A corresponding target configuration file is generated according to the target variable and the target configuration parameter, and the code document is packaged according to the target configuration file to obtain a target packaging file corresponding to the application, so that the application is updated according to the target packaging file.

[0011] In a second aspect, an embodiment of the present invention provides an application updating device, comprising:

[0012] A text recognition module is used to obtain a requirement document, and perform function recognition on the requirement document to obtain a target function and a text function description corresponding to the target function;

[0013] A function identification module, used to perform attribute identification on the text function description to obtain target configuration parameters corresponding to the target function;

[0014] A data acquisition module, used to obtain a code document corresponding to the requirement document, and obtain a first code comment corresponding to the code document;

[0015] A similarity calculation module, used to calculate the similarity between the text function description and the first code comment, and obtain the target function corresponding to the target function;

[0016] A variable determination module, used for obtaining a second code annotation corresponding to the initial variable in the objective function, and determining a target variable corresponding to the target configuration parameter according to the second code annotation;

[0017] The packaging processing module is used to generate a corresponding target configuration file according to the target variable and the target configuration parameter, and to package the code document according to the target configuration file to obtain a target packaging file corresponding to the application, so that the application is updated according to the target packaging file.

[0018] In a third aspect, an embodiment of the present invention further provides a terminal device, comprising a processor, a memory, a computer program stored in the memory and executable by the processor, and a data bus for realizing connection and communication between the processor and the memory, wherein when the computer program is executed by the processor, the steps of the update method of any application provided in the specification of the present invention are implemented.

[0019] In a fourth aspect, an embodiment of the present invention further provides a storage medium for computer-readable storage, characterized in that the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of an update method for any application provided in the specification of the present invention.

[0020] The embodiment of the present invention provides an application updating method and related devices, the method comprising: obtaining a requirement document and identifying the target function corresponding to the requirement document and the text function description corresponding to the target function, then performing attribute identification on the text function description to determine the required target configuration parameters, then analyzing the code document and obtaining the first code comment, which is helpful to understand the original intention and logic of the current code implementation, and then by calculating the similarity between the text function description and the first code comment, the target function corresponding to the target function can be confirmed, and then support is provided for the subsequent confirmation of the target variable corresponding to the target configuration parameter, and then based on the initial variable in the second code comment, the target variable corresponding to the target configuration parameter is determined, so as to generate the corresponding target configuration file for the target variable and the target configuration parameter. Finally, the code document is packaged by the generated target configuration file to obtain the target package file of the updated application, so as to ensure that the application is updated and deployed according to the requirements. The method can improve the efficiency and accuracy of the deployment process, and ensure that the development team can carry out systematic development, update and deployment under clear functional requirements and technical guidance, so as to better meet the user's usage needs and enhance the competitiveness of the application. It also solves the problem in related technologies that application updates rely on developers or operation and maintenance personnel to manually write configuration files. This method is prone to introduce configuration errors, which in turn affects the stability of the updated application and restricts the expansion and update speed of the application. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0022] Figure 1 A schematic diagram of a flow chart of a method for updating an application program provided by an embodiment of the present invention;

[0023] Figure 2 A schematic diagram of the module structure of an application updating device provided by an embodiment of the present invention;

[0024] Figure 3 A schematic block diagram of the structure of a terminal device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0025] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0026] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.

[0027] It should be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0028] The embodiment of the present invention provides an application updating method and related devices. The application updating method can be applied to a terminal device, which can be an electronic device such as a tablet computer, a laptop computer, a desktop computer, a personal digital assistant, and a wearable device. The terminal device can be a server or a server cluster.

[0029] Some embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0030] Please refer to Figure 1 , Figure 1 A schematic flow chart of a method for updating an application program provided in an embodiment of the present invention.

[0031] like Figure 1 As shown, the application updating method includes steps S101 to S106.

[0032] Step S101: Obtain a requirement document, and perform function identification on the requirement document to obtain a target function and a text function description corresponding to the target function.

[0033] Exemplarily, a detailed requirement document written by a product manager or a product planner is obtained, where the requirement document includes a description of specific functions that need to be included in the application and user expectations for the specific functions.

[0034] Exemplarily, after obtaining the requirement document, the requirement document is functionally classified to obtain the target function corresponding to the requirement document, and then the text function description is further segmented to obtain the text function description corresponding to the target function.

[0035] Step S102: Perform attribute recognition on the text function description to obtain target configuration parameters corresponding to the target function.

[0036] For example, by analyzing the textual function description, various attributes and requirements involved in the description are identified, which may include hardware requirements, software requirements, environment settings, parameter settings, and other aspects.

[0037] Exemplarily, specific target configuration parameters are determined based on the attributes identified in the textual function description. These parameters are settings that need to be configured or adjusted in the application to achieve the target function, such as the printer type, or the color theme, font style, language selection, internationalization settings, text size, etc. of the application, to control the enabling or disabling of specific functions.

[0038] For example, the pattern matching technology is used to find the common structure or format in the description, and then the target configuration parameters are found in the text function description according to the format or structure. The target configuration parameters are usually managed and adjusted through the application's setting interface or configuration file, aiming to meet the user's personalized needs for the application's appearance, behavior, and functions, thereby improving the user experience and flexibility of the application.

[0039] In some embodiments, the method of performing attribute identification on the text function description to obtain the target configuration parameters corresponding to the target function includes: performing sentence segmentation on the text function description to obtain multiple function description sentences; calculating the sentence relationship between any two of the function description sentences, and splitting and reorganizing the text function description according to the sentence relationship to obtain the target function descriptions corresponding to different versions of the application; performing attribute identification on the target function description to obtain the target configuration parameters corresponding to the target function.

[0040] Exemplarily, punctuation marks are used to segment the text function description into sentences to obtain multiple function description sentences, and then a semantic relationship model is used to judge the relationship between any two function description sentences, thereby obtaining a sentence relationship between the two, such as a parallel relationship or a compound relationship, wherein a parallel relationship indicates that the parameters contained in the two function description sentences are multiple-choice, and a compound relationship indicates that the parameters contained in the two function description sentences exist at the same time.

[0041] Exemplarily, based on the calculated sentence relationship, when the sentence relationship is a parallel relationship, the text function description is reorganized and reorganized, and then the corresponding text function description when the sentence relationship is a parallel relationship is split, and the corresponding text function description when the sentence relationship is a compound relationship is combined together to form different versions of the target function description to meet different application requirements or user expectations.

[0042] Exemplarily, for each reorganized target function description, an attribute identification step is performed. Using the previously mentioned text analysis technology, key attributes and configuration parameters in each description are identified. These parameters may involve hardware requirements, software settings, user interface options, etc., depending on the content and context of the function description. Thus, target configuration parameters corresponding to different versions of the target function description are obtained.

[0043] Specifically, through sentence segmentation, the text function description can be decomposed into multiple function description statements that are easier to process and understand. Therefore, by calculating the sentence relationship between the function description sentences and splitting and reorganizing them, the function description can be reorganized into different versions according to the sentence relationship. This can optimize the logical structure and order of the description, making it more in line with the actual needs of application development and configuration. The split and reorganized function description is thus more structured and logical, which helps the attribute recognition technology to more accurately extract key configuration parameters and attribute requirements. This can reduce misunderstandings and omissions, and ensure that the identified configuration parameters are more comprehensive and accurate.

[0044] In some embodiments, the calculation of the sentence relationship between any two of the function description statements includes: performing entity recognition on the function description statements to obtain effect entities corresponding to the function description statements; fuzzifying the effect entities in the function description statements to obtain fuzzy statements corresponding to the function description statements; calculating the sentence distance between any two of the fuzzy statements, and determining the sentence relationship between the function description statements corresponding to the fuzzy statements based on the sentence distance.

[0045] Exemplarily, natural language processing technology, especially named entity recognition (NER), is used to identify entities directly related to the function effects from the function description sentences, such as specific function operations (on or off), application color themes, font styles, language selections, internationalization settings, text size, and other effect entities.

[0046] Exemplarily, the identified effect entities are fuzzified to obtain fuzzy sentences. Fuzzy processing can be achieved by converting specific entities into general or abstract expressions, making the sentences more general and not overly dependent on specific details. Thus, the text similarity algorithm, such as edit distance, cosine similarity, etc., is used to calculate the sentence distance between any two fuzzy sentences, so as to quantify the similarity or distance between the fuzzy sentences.

[0047] Exemplarily, the sentence relationship between the functional description sentences corresponding to the fuzzy sentences is determined based on the calculated sentence distance. A shorter distance usually indicates closer semantics, which may mean that the descriptions are similar or related, and the corresponding sentence relationship is a parallel relationship, while a longer distance may indicate that the descriptions are more different, and the corresponding sentence relationship is a compound relationship.

[0048] Specifically, by first performing entity recognition, fuzzy processing can be performed on specific entities to provide support for more accurate results of subsequent sentence relationship recognition. Fuzzy processing can make the fuzzy sentences corresponding to the function description sentences more universal, reduce the interference of effect entities, and improve the generalization ability of descriptions. Therefore, when calculating the sentence distance between fuzzy sentences, the sentence retrieval and matching process can be simplified, and only the comparison is performed on the statement, rather than a complex comparison on the semantics of the entire sentence, so that the logical association and structural relationship between different description sentences can be better understood, providing more accurate technical guidance for subsequent function configuration and development work.

[0049] Step S103: Obtain a code document corresponding to the requirement document, and obtain a first code comment corresponding to the code document.

[0050] Exemplarily, the developer obtains the corresponding code document after developing according to the requirement document, and further obtains the corresponding first code comment in the code document.

[0051] Step S104: Calculate the similarity between the text function description and the first code annotation to obtain the target function corresponding to the target function.

[0052] Exemplarily, the first code comment corresponding to each function function in the text function description and the code document is preprocessed, including removing stop words and punctuation marks, performing word form restoration, etc. Thus, a first representation vector corresponding to the text function description and a second representation vector corresponding to the first code comment are obtained using a bag of words model, TF-IDF (Term Frequency-Inverse Document Frequency) or a word vector model (such as Word2Vec, GloVe, BERT, etc.).

[0053] Exemplarily, the cosine similarity between the first representation vector corresponding to the text function description and the second representation vector corresponding to the first code annotation is calculated to measure the similarity between the two, and then the function function corresponding to the first code annotation when the similarity is maximum is determined as the target function of the target function corresponding to the text function description.

[0054] In some embodiments, the calculating the similarity between the text function description and the first code comment to obtain the target function corresponding to the target function includes: using the composition similarity layer of the sentence similarity model to perform structural similarity calculation on the text function description and the first code comment to obtain a first similarity; using the semantic similarity layer of the sentence similarity model to perform semantic similarity calculation on the text function description and the first code comment to obtain a second similarity; using the text similarity layer of the semantic similarity model to perform text similarity calculation on the text function description and the first code comment to obtain a third similarity; using the information fusion layer of the semantic similarity model to perform similarity fusion on the first similarity, the second similarity and the third similarity to obtain a target similarity between the text function description and the first code comment; and determining the target function corresponding to the target function according to the target similarity.

[0055] Exemplarily, a composition similarity layer of a sentence similarity model is first constructed to determine the structural similarity between sentences, and then the text function description and the first code comment are calculated using the composition similarity layer to obtain a first similarity.

[0056] Exemplarily, a semantic similarity layer is added to the sentence similarity model, which can be used for deeper semantic understanding and similarity calculation, so that the semantic similarity layer is used to calculate the semantic similarity of the text function description and the first code comment to obtain a second similarity to capture higher-level semantic information.

[0057] Exemplarily, the text similarity layer in the sentence similarity model is reused to focus on the similarity features at the text level, so as to calculate the text similarity between the text function description and the first code comment using the text similarity layer to obtain the third similarity.

[0058] Exemplarily, the information fusion layer in the sentence similarity model is used to combine the first similarity, the second similarity and the third similarity into the information fusion layer to synthesize and fuse the similarities, thereby calculating the target similarity between the text function description and the first code comment in the information fusion layer.

[0059] Exemplarily, the similarity between the text function description and the first code annotation is measured according to the target similarity between the two, and then the function function corresponding to the first code annotation when the target similarity is maximum is determined as the target function of the target function corresponding to the text function description.

[0060] Specifically, by using different levels of the sentence similarity model (composition similarity layer, semantic similarity layer, text similarity layer), the similarity between the text function description and the first code annotation can be evaluated from different angles and levels. This multi-level similarity calculation can more accurately capture the similarity of semantic and grammatical structures, improve the accuracy and reliability of similarity calculation, and thus more comprehensively evaluate the degree of association between the text function description and the first code annotation, which in turn helps to determine that the text function description is most suitable for mapping to a specific target function, thereby improving the accuracy and reliability of the mapping between the text function description and the actual code.

[0061] Step S105: obtaining a second code annotation corresponding to the initial variable in the target function, and determining the target variable corresponding to the target configuration parameter according to the second code annotation.

[0062] Exemplarily, the comment information in the code document in which the developer marks the initial variables in the target function is extracted to obtain the second code comment corresponding to the initial variables in the target function.

[0063] Exemplarily, the second code annotation is matched with the target keyword corresponding to the target configuration parameter, and when the second code annotation and the target keyword corresponding to the target configuration parameter are matched successfully, the initial variable corresponding to the second code annotation is determined as the target variable corresponding to the target configuration parameter.

[0064] In some embodiments, determining the target variable corresponding to the target configuration parameter according to the second code annotation includes: determining the first meaning entity corresponding to the initial variable according to the second code annotation, and determining the second meaning entity corresponding to the target configuration parameter according to the text function description; determining an entity association graph, and obtaining an entity association path for associating the first meaning entity and the second meaning entity according to the entity association graph; determining the entity similarity between the first meaning entity and the second meaning entity according to the entity association path; and determining the target variable corresponding to the target configuration parameter from the initial variable according to the entity similarity.

[0065] Exemplarily, the best keyword is selected from the second code annotation to be determined as the first meaning entity corresponding to the initial variable. Similarly, the text function description is parsed to determine the second meaning entity corresponding to the target configuration parameter involved therein.

[0066] Exemplarily, entity extraction is performed on multiple historical requirement documents, and then the extracted entities are connected in sequence according to the order of appearance in the historical requirement documents to obtain an entity association graph, and the weight corresponding to the entity is determined according to the frequency of appearance of the entity in the historical requirement documents, and the number of consecutive appearances between entities is determined as the corresponding weight between the entities.

[0067] Exemplarily, based on the established entity association graph, an association path from the first meaning entity to the second meaning entity is found. These association paths can be direct associations or complex paths connected through intermediate entities.

[0068] Exemplarily, the entity similarity between the first meaning entity and the second meaning entity is calculated based on the path similarity of the knowledge graph according to the association path, so as to determine the target variable most relevant to the target configuration parameter from the initial variables according to the calculated entity similarity. This usually involves selecting the most appropriate target variable according to a similarity score or threshold.

[0069] Specifically, by establishing an entity association graph and calculating entity similarity, the relationship between initial variables or target configuration parameters can be more accurately understood and mapped, so that based on the calculation results of entity similarity, the target variables to which the target configuration parameters in the functional description should be mapped can be accurately determined.

[0070] In some embodiments, the determining the entity similarity between the first meaning entity and the second meaning entity according to the entity association path includes: obtaining a path length corresponding to the entity association path, and determining a path weight corresponding to the entity association path according to the path length; determining a first association weight corresponding to the first meaning entity and the second meaning entity in the entity association path; determining a second association weight corresponding to the first meaning entity in the entity association path, and determining a third association weight corresponding to the second meaning entity in the entity association path; performing information fusion according to the path weight, the first association weight, the second association weight, and the third association weight to obtain the entity similarity; wherein the entity similarity is obtained according to the following formula:

[0071] ;

[0072] in, represents the entity similarity between the first meaning entity x and the second meaning entity y, m represents the number of paths corresponding to the entity association path, Indicates the path weight corresponding to the entity association path of the path item. represents the first association weight corresponding to the first meaning entity x and the second meaning entity y in the entity association path of the path, represents the second association weight corresponding to the first meaning entity x in the entity association path of the path, Represents the third association weight corresponding to the second meaning entity y in the entity association path of the path.

[0073] Exemplarily, for each entity association path, the number of entities it contains, that is, the length of the path, is calculated, and the path weight is determined based on the path length. Generally speaking, the longer the path length, the smaller the path weight may be, because a long path may represent a distant association or a weaker relationship. In addition, the ratio between the number of entities corresponding to the entity association path and the number of entities corresponding to all entity association paths can also be determined as the path weight.

[0074] Exemplarily, determining the first association weight between the first meaning entity and the second meaning entity in the entity association path may directly reflect the indirect association strength between the first meaning entity and the second meaning entity through the intermediate entity, and determining the sum of the weights of the relationships between the entities included in the entity association path between the first meaning entity and the second meaning entity as the first association weight.

[0075] Exemplarily, the second association weight of the first meaning entity in the entity association path is determined, which reflects the direct association strength corresponding to the first meaning entity, and the entity weight corresponding to the first meaning entity in the entity association path is determined as the second association weight. The third association weight of the second meaning entity in the entity association path is determined, which reflects the direct association strength corresponding to the second meaning entity, and the entity weight corresponding to the second meaning entity in the entity association path is determined as the third association weight.

[0076] Exemplarily, the path weight, the first association weight, the second association weight and the third association weight are combined to perform information fusion. This may involve weighted averaging, logical operations or other combination strategies to comprehensively consider the global and local impacts of the path, and then calculate the entity similarity between the first meaning entity and the second meaning entity based on the fused information. The entity similarity is obtained according to the following formula:

[0077] ;

[0078] in, represents the entity similarity between the first meaning entity x and the second meaning entity y, m represents the number of paths corresponding to the entity association path, Indicates the path weight corresponding to the path associated with the path entity. It represents the first association weight corresponding to the first meaning entity x and the second meaning entity y in the path entity association path. Indicates the second association weight corresponding to the first meaning entity x in the path entity association path, Represents the third association weight corresponding to the second meaning entity y in the path entity association path.

[0079] Exemplarily, in combination with the entity association path, the path weight corresponding to the entity association path is based on the first association weight between the first meaning entity and the second meaning entity in each entity association path, the second association weight corresponding to the first meaning entity and itself, and the third association weight corresponding to the second meaning entity and itself, and then comprehensively consider the information between the first meaning entity and the second meaning entity in different entity association paths, so as to obtain the entity similarity between the first meaning entity and the second meaning entity according to the above formula, and then provide support for the subsequent determination of the target variable corresponding to the target configuration parameter.

[0080] Specifically, by obtaining the path length of the entity association path and determining the path weight, the association strength and path complexity between entities can be deeply analyzed. This refined analysis helps to accurately capture the complex relationships between entities, improves the expressiveness and credibility of the entity association path in the entity similarity calculation, and then determines the different association weights of the first meaning entity and the second meaning entity in the entity association path to comprehensively evaluate their role and influence in the relationship network. This helps to refine the association measurement between entities and improve the accuracy and comprehensiveness of the entity similarity calculation. Finally, through the comprehensive consideration of path weights and different association weights, information fusion is performed to calculate entity similarity. This comprehensive consideration can effectively capture the multi-level relationships and influences between entities, providing a more comprehensive and accurate basis for entity similarity calculation.

[0081] Step S106: Generate a corresponding target configuration file according to the target variable and the target configuration parameter, and package the code document according to the target configuration file to obtain a target packaging file corresponding to the application, so that the application is updated according to the target packaging file.

[0082] Exemplarily, according to the target variables and target configuration parameters determined in the previous step, they are mapped to a specific configuration file format, so that the target configuration file is automatically generated by filling parameters using a template engine or a specific configuration management tool according to the defined format and the target variables and target configuration parameters.

[0083] For example, according to the generated target configuration file, an appropriate packaging tool (such as a build system, a packaging script, etc.) is used to package the code document and the configuration file into a target packaging file. This process usually integrates all necessary files and configurations together for subsequent application updates, thereby generating a target packaging file, which contains the latest version of the application. In addition, according to requirements, the generated target packaging file can be stored in an appropriate location or published to the target environment for subsequent application updates.

[0084] In some embodiments, the target function description includes at least a first function description and a second function description, and generating a corresponding target configuration file based on the target variable and the target configuration parameters includes: setting a macro keyword corresponding to the target variable according to a preset rule; generating a first script statement according to a configuration rule corresponding to the target configuration file, in combination with the macro keyword and the target configuration parameter corresponding to the first function description; generating a second script statement according to the configuration rule corresponding to the target configuration file, in combination with the macro keyword and the target configuration parameter corresponding to the second function description; generating a first configuration file corresponding to the first function description according to the first script statement, and generating a second configuration file corresponding to the second function description according to the second script statement; and obtaining the target configuration file according to the first configuration file and the second configuration file.

[0085] Exemplarily, when the statement relationship includes a parallel relationship, the target function description includes at least a first function description and a second function description, and then macro keywords are set for the target variable according to a preset rule. These macro keywords are usually used to identify and replace specific configuration parameters in configuration files and scripts.

[0086] Exemplarily, the configuration rules and macro keywords in the target configuration file are used in combination with the target configuration parameters corresponding to the first functional description to generate a first script statement, including but not limited to associating the macro keywords with the target configuration parameters, and then generating the first script statement according to the configuration rules corresponding to the target configuration file in combination with the macro keywords and the target configuration parameters corresponding to the first functional description; and generating the second script statement according to the configuration rules corresponding to the target configuration file in combination with the macro keywords and the target configuration parameters corresponding to the second functional description.

[0087] Exemplarily, a first configuration file corresponding to a first functional description is generated by combining the first script statements, and a second configuration file corresponding to a second functional description is generated by combining the second script statements. Finally, the generated first configuration file and the second configuration file are determined as target configuration files.

[0088] Specifically, the corresponding script statements and configuration files are generated according to the preset rules and function descriptions, and the target configuration file is finally obtained. This method can ensure the automation and standardization of the configuration process, improve the efficiency and consistency of configuration management, and is suitable for scenarios requiring automated deployment and updates.

[0089] The embodiment of the present invention provides an application updating method and related devices, the method comprising: obtaining a requirement document and identifying the target function corresponding to the requirement document and the text function description corresponding to the target function, then performing attribute identification on the text function description to determine the required target configuration parameters, then analyzing the code document and obtaining the first code comment, which is helpful to understand the original intention and logic of the current code implementation, and then by calculating the similarity between the text function description and the first code comment, the target function corresponding to the target function can be confirmed, and then support is provided for the subsequent confirmation of the target variable corresponding to the target configuration parameter, and then based on the initial variable in the second code comment, the target variable corresponding to the target configuration parameter is determined, so as to generate the corresponding target configuration file for the target variable and the target configuration parameter. Finally, the code document is packaged by the generated target configuration file to obtain the target package file of the updated application, so as to ensure that the application is updated and deployed according to the requirements. The method can improve the efficiency and accuracy of the deployment process, and ensure that the development team can carry out systematic development, update and deployment under clear functional requirements and technical guidance, so as to better meet the user's usage needs and enhance the competitiveness of the application. It also solves the problem in related technologies that application updates rely on developers or operation and maintenance personnel to manually write configuration files. This method is prone to introduce configuration errors, which in turn affects the stability of the updated application and restricts the expansion and update speed of the application.

[0090] See also Figure 2 , Figure 2An application updating device 200 provided in an embodiment of the present application includes a text recognition module 201, a function recognition module 202, a data acquisition module 203, a similarity calculation module 204, a variable determination module 205, and a packaging processing module 206, wherein the text recognition module 201 is used to obtain a requirement document, and perform function recognition on the requirement document to obtain a target function and a text function description corresponding to the target function; the function recognition module 202 is used to perform attribute recognition on the text function description to obtain a target configuration parameter corresponding to the target function; the data acquisition module 203 is used to obtain a code document corresponding to the requirement document, and obtain the code document corresponding to the requirement document. A first code comment corresponding to a code document; a similarity calculation module 204, used to calculate the similarity between the text function description and the first code comment, and obtain the target function corresponding to the target function; a variable determination module 205, used to obtain a second code comment corresponding to the initial variable in the target function, and determine the target variable corresponding to the target configuration parameter according to the second code comment; a packaging processing module 206, used to generate a corresponding target configuration file according to the target variable and the target configuration parameter, and package the code document according to the target configuration file to obtain the target packaging file corresponding to the application, so that the application is updated according to the target packaging file.

[0091] In some implementations, the function identification module 202 performs, during the process of identifying the attributes of the text function description to obtain the target configuration parameters corresponding to the target function:

[0092] Segmenting the text function description to obtain multiple function description sentences;

[0093] Calculate the statement relationship between any two of the function description statements, and split and reorganize the text function description according to the statement relationship to obtain target function descriptions corresponding to different versions of the application;

[0094] Attribute identification is performed on the target function description to obtain the target configuration parameters corresponding to the target function.

[0095] In some implementations, the function identification module 202 performs, during the process of calculating the statement relationship between any two of the function description statements:

[0096] Performing entity recognition on the function description statement to obtain an effect entity corresponding to the function description statement;

[0097] Fuzzifying the effect entity in the function description statement to obtain a fuzzy statement corresponding to the function description statement;

[0098] The sentence distance between any two of the fuzzy sentences is calculated, and the sentence relationship between the function description sentences corresponding to the fuzzy sentences is determined according to the sentence distance.

[0099] In some implementations, the similarity calculation module 204 performs, in the process of calculating the similarity between the text function description and the first code comment and obtaining the target function corresponding to the target function:

[0100] Using the composition similarity layer of the sentence similarity model, a structural similarity calculation is performed on the text function description and the first code comment to obtain a first similarity;

[0101] Calculating semantic similarity between the text function description and the first code comment using the semantic similarity layer of the sentence similarity model to obtain a second similarity;

[0102] Calculating text similarity between the text function description and the first code comment using the text similarity layer of the semantic similarity model to obtain a third similarity;

[0103] Using the information fusion layer of the semantic similarity model, similarity fusion is performed on the first similarity, the second similarity and the third similarity to obtain a target similarity between the text function description and the first code comment;

[0104] The objective function corresponding to the objective function is determined according to the objective similarity.

[0105] In some implementations, the variable determination module 205, in the process of determining the target variable corresponding to the target configuration parameter according to the second code annotation, performs:

[0106] Determine a first meaning entity corresponding to the initial variable according to the second code annotation, and determine a second meaning entity corresponding to the target configuration parameter according to the text function description;

[0107] Determine an entity association graph, and obtain an entity association path for associating the first meaning entity and the second meaning entity according to the entity association graph;

[0108] Determine the entity similarity between the first meaning entity and the second meaning entity according to the entity association path;

[0109] The target variable corresponding to the target configuration parameter is determined from the initial variables according to the entity similarity.

[0110] In some implementations, the variable determination module 205, in the process of determining the entity similarity between the first meaning entity and the second meaning entity according to the entity association path, performs:

[0111] Obtaining a path length corresponding to the entity-associated path, and determining a path weight corresponding to the entity-associated path according to the path length;

[0112] Determine first association weights corresponding to the first meaning entity and the second meaning entity in the entity association path;

[0113] Determine a second association weight corresponding to the first meaning entity in the entity association path, and determine a third association weight corresponding to the second meaning entity in the entity association path;

[0114] Performing information fusion according to the path weight, the first association weight, the second association weight, and the third association weight to obtain the entity similarity;

[0115] The entity similarity is obtained according to the following formula:

[0116] ;

[0117] in, represents the entity similarity between the first meaning entity x and the second meaning entity y, m represents the number of paths corresponding to the entity association path, Indicates the path weight corresponding to the entity association path of the path item. represents the first association weight corresponding to the first meaning entity x and the second meaning entity y in the entity association path of the path, represents the second association weight corresponding to the first meaning entity x in the entity association path of the path, Represents the third association weight corresponding to the second meaning entity y in the entity association path of the path.

[0118] In some implementations, the target function description includes at least a first function description and a second function description. In the process of generating a corresponding target configuration file according to the target variable and the target configuration parameter, the packaging processing module 206 executes:

[0119] Setting the macro keyword corresponding to the target variable according to the preset rules;

[0120] Generate a first script statement according to the configuration rule corresponding to the target configuration file in combination with the macro keyword and the target configuration parameter corresponding to the first function description;

[0121] Generate a second script statement according to the configuration rule corresponding to the target configuration file in combination with the macro keyword and the target configuration parameter corresponding to the second function description;

[0122] Generate a first configuration file corresponding to the first functional description according to the first script statement, and generate a second configuration file corresponding to the second functional description according to the second script statement;

[0123] The target configuration file is obtained according to the first configuration file and the second configuration file.

[0124] In some implementations, the application program updating apparatus 200 may be applied to a terminal device.

[0125] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the application updating device 200 described above can refer to the corresponding process in the aforementioned application updating method embodiment, and will not be repeated here.

[0126] See also Figure 3 , Figure 3 A schematic block diagram of the structure of a terminal device provided in an embodiment of the present invention.

[0127] like Figure 3 As shown, the terminal device 300 includes a processor 301 and a memory 302 , and the processor 301 and the memory 302 are connected via a bus 303 , such as an I2C (Inter-integrated Circuit) bus.

[0128] Specifically, the processor 301 is used to provide computing and control capabilities to support the operation of the entire terminal device. The processor 301 can be a central processing unit (CPU), and the processor 301 can also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.

[0129] Specifically, the memory 302 may be a Flash chip, a read-only memory (ROM) disk, an optical disk, a USB flash drive, or a mobile hard disk.

[0130] Those skilled in the art will understand that Figure 3The structure shown in the figure is only a block diagram of a partial structure related to the embodiment of the present invention, and does not constitute a limitation on the terminal device to which the embodiment of the present invention is applied. The specific server may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0131] The processor is used to run the computer program stored in the memory, and implement any one of the application program update methods provided by the embodiments of the present invention when executing the computer program.

[0132] In one embodiment, the processor is used to run a computer program stored in the memory, and implements the following steps when executing the computer program:

[0133] Obtaining a requirement document, and performing functional identification on the requirement document to obtain a target function and a textual functional description corresponding to the target function;

[0134] Performing attribute recognition on the text function description to obtain target configuration parameters corresponding to the target function;

[0135] Obtain a code document corresponding to the requirement document, and obtain a first code comment corresponding to the code document;

[0136] Calculating the similarity between the text function description and the first code annotation to obtain the target function corresponding to the target function;

[0137] Obtaining a second code annotation corresponding to an initial variable in the objective function, and determining a target variable corresponding to the target configuration parameter according to the second code annotation;

[0138] A corresponding target configuration file is generated according to the target variable and the target configuration parameter, and the code document is packaged according to the target configuration file to obtain a target packaging file corresponding to the application, so that the application is updated according to the target packaging file.

[0139] In some implementations, the processor 301, during the process of performing attribute recognition on the text function description to obtain the target configuration parameter corresponding to the target function, executes:

[0140] Segmenting the text function description to obtain multiple function description sentences;

[0141] Calculate the statement relationship between any two of the function description statements, and split and reorganize the text function description according to the statement relationship to obtain target function descriptions corresponding to different versions of the application;

[0142] Attribute identification is performed on the target function description to obtain the target configuration parameters corresponding to the target function.

[0143] In some implementations, during the process of calculating the statement relationship between any two of the function description statements, the processor 301 executes:

[0144] Performing entity recognition on the function description statement to obtain an effect entity corresponding to the function description statement;

[0145] Fuzzifying the effect entity in the function description statement to obtain a fuzzy statement corresponding to the function description statement;

[0146] The sentence distance between any two of the fuzzy sentences is calculated, and the sentence relationship between the function description sentences corresponding to the fuzzy sentences is determined according to the sentence distance.

[0147] In some implementations, the processor 301, in the process of calculating the similarity between the text function description and the first code annotation and obtaining the target function corresponding to the target function, executes:

[0148] Using the composition similarity layer of the sentence similarity model, a structural similarity calculation is performed on the text function description and the first code comment to obtain a first similarity;

[0149] Calculating semantic similarity between the text function description and the first code comment using the semantic similarity layer of the sentence similarity model to obtain a second similarity;

[0150] Calculating text similarity between the text function description and the first code comment using the text similarity layer of the semantic similarity model to obtain a third similarity;

[0151] Using the information fusion layer of the semantic similarity model, similarity fusion is performed on the first similarity, the second similarity and the third similarity to obtain a target similarity between the text function description and the first code comment;

[0152] The objective function corresponding to the objective function is determined according to the objective similarity.

[0153] In some implementations, during the process of determining the target variable corresponding to the target configuration parameter according to the second code annotation, the processor 301 executes:

[0154] Determine a first meaning entity corresponding to the initial variable according to the second code annotation, and determine a second meaning entity corresponding to the target configuration parameter according to the text function description;

[0155] Determine an entity association graph, and obtain an entity association path for associating the first meaning entity and the second meaning entity according to the entity association graph;

[0156] Determine the entity similarity between the first meaning entity and the second meaning entity according to the entity association path;

[0157] The target variable corresponding to the target configuration parameter is determined from the initial variables according to the entity similarity.

[0158] In some implementations, during the process of determining the entity similarity between the first meaning entity and the second meaning entity according to the entity association path, the processor 301 executes:

[0159] Obtaining a path length corresponding to the entity-associated path, and determining a path weight corresponding to the entity-associated path according to the path length;

[0160] Determine first association weights corresponding to the first meaning entity and the second meaning entity in the entity association path;

[0161] Determine a second association weight corresponding to the first meaning entity in the entity association path, and determine a third association weight corresponding to the second meaning entity in the entity association path;

[0162] Performing information fusion according to the path weight, the first association weight, the second association weight, and the third association weight to obtain the entity similarity;

[0163] The entity similarity is obtained according to the following formula:

[0164] ;

[0165] in, represents the entity similarity between the first meaning entity x and the second meaning entity y, m represents the number of paths corresponding to the entity association path, Indicates the path weight corresponding to the entity association path of the path item. represents the first association weight corresponding to the first meaning entity x and the second meaning entity y in the entity association path of the path, represents the second association weight corresponding to the first meaning entity x in the entity association path of the path, Represents the third association weight corresponding to the second meaning entity y in the entity association path of the path.

[0166] In some implementations, the target function description includes at least a first function description and a second function description, and the processor 301, in the process of generating a corresponding target configuration file according to the target variable and the target configuration parameter, executes:

[0167] Setting the macro keyword corresponding to the target variable according to the preset rules;

[0168] Generate a first script statement according to the configuration rule corresponding to the target configuration file in combination with the macro keyword and the target configuration parameter corresponding to the first function description;

[0169] Generate a second script statement according to the configuration rule corresponding to the target configuration file in combination with the macro keyword and the target configuration parameter corresponding to the second function description;

[0170] Generate a first configuration file corresponding to the first functional description according to the first script statement, and generate a second configuration file corresponding to the second functional description according to the second script statement;

[0171] The target configuration file is obtained according to the first configuration file and the second configuration file.

[0172] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the terminal device described above can refer to the corresponding process in the aforementioned application update method embodiment, and will not be repeated here.

[0173] An embodiment of the present invention also provides a storage medium for computer-readable storage, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of any application update method provided in the description of the embodiment of the present invention.

[0174] The storage medium may be an internal storage unit of the terminal device in the aforementioned embodiment, such as a hard disk or memory of the terminal device. The storage medium may also be an external storage device of the terminal device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the terminal device.

[0175] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In a hardware embodiment, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or transient medium). As is known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0176] It should be understood that the term "and / or" used in the present specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, including these combinations. It should be noted that, in this article, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "including a..." does not exclude the presence of other identical elements in the process, method, article or system including the element.

[0177] The serial numbers of the embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments. The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A method for updating an application, characterized in that: The method comprises: Obtaining a requirement document, and performing functional identification on the requirement document to obtain a target function and a textual functional description corresponding to the target function; Performing attribute recognition on the text function description to obtain target configuration parameters corresponding to the target function; Obtain a code document corresponding to the requirement document, and obtain a first code comment corresponding to the code document; Calculating the similarity between the text function description and the first code annotation to obtain the target function corresponding to the target function; Obtaining a second code annotation corresponding to an initial variable in the objective function, and determining a target variable corresponding to the target configuration parameter according to the second code annotation; Generate a corresponding target configuration file according to the target variable and the target configuration parameter, and package the code document according to the target configuration file to obtain a target package file corresponding to the application, so that the application is updated according to the target package file; Wherein, determining the target variable corresponding to the target configuration parameter according to the second code annotation includes: Determine a first meaning entity corresponding to the initial variable according to the second code annotation, and determine a second meaning entity corresponding to the target configuration parameter according to the text function description; Determine an entity association graph, and obtain an entity association path for associating the first meaning entity and the second meaning entity according to the entity association graph; Obtaining a path length corresponding to the entity-associated path, and determining a path weight corresponding to the entity-associated path according to the path length; Determine first association weights corresponding to the first meaning entity and the second meaning entity in the entity association path; Determine a second association weight corresponding to the first meaning entity in the entity association path, and determine a third association weight corresponding to the second meaning entity in the entity association path; Performing information fusion according to the path weight, the first association weight, the second association weight, and the third association weight to obtain entity similarity; Determining the target variable corresponding to the target configuration parameter from the initial variables according to the entity similarity; The entity similarity is obtained according to the following formula: ; in, represents the entity similarity between the first meaning entity x and the second meaning entity y, m represents the number of paths corresponding to the entity association path, Indicates the path weight corresponding to the entity association path of the path item. represents the first association weight corresponding to the first meaning entity x and the second meaning entity y in the entity association path of the path, represents the second association weight corresponding to the first meaning entity x in the entity association path of the path, Represents the third association weight corresponding to the second meaning entity y in the entity association path of the path.

2. The method according to claim 1, characterized in that The step of performing attribute recognition on the text function description to obtain target configuration parameters corresponding to the target function includes: Segmenting the text function description to obtain multiple function description sentences; Calculate the statement relationship between any two of the function description statements, and split and reorganize the text function description according to the statement relationship to obtain target function descriptions corresponding to different versions of the application; Attribute identification is performed on the target function description to obtain the target configuration parameters corresponding to the target function.

3. The method according to claim 2, characterized in that The calculating the statement relationship between any two of the function description statements includes: Performing entity recognition on the function description statement to obtain an effect entity corresponding to the function description statement; Fuzzifying the effect entity in the function description statement to obtain a fuzzy statement corresponding to the function description statement; The sentence distance between any two of the fuzzy sentences is calculated, and the sentence relationship between the function description sentences corresponding to the fuzzy sentences is determined according to the sentence distance.

4. The method according to claim 1, characterized in that: The calculating the similarity between the text function description and the first code comment to obtain the target function corresponding to the target function includes: Using the composition similarity layer of the sentence similarity model, a structural similarity calculation is performed on the text function description and the first code comment to obtain a first similarity; Calculating semantic similarity between the text function description and the first code comment using the semantic similarity layer of the sentence similarity model to obtain a second similarity; Calculating text similarity between the text function description and the first code comment using the text similarity layer of the sentence similarity model to obtain a third similarity; Using the information fusion layer of the sentence similarity model, similarity fusion is performed on the first similarity, the second similarity and the third similarity to obtain a target similarity between the text function description and the first code comment; The objective function corresponding to the objective function is determined according to the objective similarity.

5. The method according to claim 2, characterized in that The target function description includes at least a first function description and a second function description, and generating a corresponding target configuration file according to the target variable and the target configuration parameter includes: Setting the macro keyword corresponding to the target variable according to the preset rules; Generate a first script statement according to the configuration rule corresponding to the target configuration file in combination with the macro keyword and the target configuration parameter corresponding to the first function description; Generate a second script statement according to the configuration rule corresponding to the target configuration file in combination with the macro keyword and the target configuration parameter corresponding to the second function description; Generate a first configuration file corresponding to the first functional description according to the first script statement, and generate a second configuration file corresponding to the second functional description according to the second script statement; The target configuration file is obtained according to the first configuration file and the second configuration file.

6. An application updating device, characterized in that: include: A text recognition module is used to obtain a requirement document, and perform function recognition on the requirement document to obtain a target function and a text function description corresponding to the target function; A function identification module, used to perform attribute identification on the text function description to obtain target configuration parameters corresponding to the target function; A data acquisition module, used to obtain a code document corresponding to the requirement document, and obtain a first code comment corresponding to the code document; A similarity calculation module, used to calculate the similarity between the text function description and the first code comment, and obtain the target function corresponding to the target function; A variable determination module is used to obtain a second code annotation corresponding to the initial variable in the objective function, and determine the target variable corresponding to the target configuration parameter according to the second code annotation, wherein the determining the target variable corresponding to the target configuration parameter according to the second code annotation includes: determining the first meaning entity corresponding to the initial variable according to the second code annotation, and determining the second meaning entity corresponding to the target configuration parameter according to the text function description; determining an entity association map, and obtaining an entity association path for associating the first meaning entity and the second meaning entity according to the entity association map; obtaining a path length corresponding to the entity association path, and determining a path weight corresponding to the entity association path according to the path length; determining a first association weight corresponding to the first meaning entity and the second meaning entity in the entity association path; determining a second association weight corresponding to the first meaning entity in the entity association path, and determining a third association weight corresponding to the second meaning entity in the entity association path; performing information fusion according to the path weight, the first association weight, the second association weight and the third association weight to obtain entity similarity; determining the target variable corresponding to the target configuration parameter from the initial variable according to the entity similarity; wherein the entity similarity is obtained according to the following formula: ; in, represents the entity similarity between the first meaning entity x and the second meaning entity y, m represents the number of paths corresponding to the entity association path, Indicates the path weight corresponding to the entity association path of the path item. represents the first association weight corresponding to the first meaning entity x and the second meaning entity y in the entity association path of the path, represents the second association weight corresponding to the first meaning entity x in the entity association path of the path, The third association weight representing the second meaning entity y in the entity association path of the path item; The packaging processing module is used to generate a corresponding target configuration file according to the target variable and the target configuration parameter, and to package the code document according to the target configuration file to obtain a target packaging file corresponding to the application, so that the application is updated according to the target packaging file.

7. A terminal device, characterized in that: The terminal device includes a processor and a memory; The memory is used to store computer programs; The processor is configured to execute the computer program and implement the application program update method according to any one of claims 1 to 5 when executing the computer program.

8. A computer storage medium for computer storage, characterized in that: The computer storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the application updating method according to any one of claims 1 to 5.