A software function generation method and system based on deep learning
Through the software function generation method based on deep learning, we build a software function point list library and vector library to automatically generate software functions, solving the problems of high labor costs and poor development results in traditional software development, and realizing efficient and highly compatible software. Function generation.
Patent Information
- Application Number
- CN202410145840.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-01
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-02-01
AI Technical Summary
In the traditional software development process, labor costs are high, workload is heavy, and development results are poor, resulting in deficiencies in software function design and optimization.
Using a method based on deep learning, by building a software function point list library, vector library and component library, using deep learning algorithms to generate software function models, automated software function generation, and retrieval and assembly of functional components are achieved.
It improves the efficiency and practicality of software function generation, reduces labor costs, enhances compatibility and user experience for software with different needs, and eliminates restrictions on functional design and optimization.
Smart Images

Figure CN118012419B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of software development, and specifically relates to a software function generation method and system based on deep learning. Background Art
[0002] With the rapid development of information technology, software programs are increasingly used in all walks of life. The functions and performance of software are crucial to the stable operation of business systems. In the traditional software development process, the realization of software functions often depends on the experience and skills of developers, which requires a large investment in manpower costs and a large workload. However, due to the limitations of subjective factors of developers, software programs have certain deficiencies in function design, implementation and optimization, and the software operation effect is poor. Summary of the invention
[0003] In order to solve the problems of high manpower cost investment, heavy workload and poor development effect in the prior art, the present invention aims to provide a software function generation method and system based on deep learning.
[0004] The technical solution adopted by the present invention is:
[0005] A method for generating software functions based on deep learning comprises the following steps:
[0006] According to the existing software function specifications of several existing software in various application scenarios, a software function point list library and a software function vector library are constructed;
[0007] Generate a software function generation sample set based on the software function point list library and the software function vector library, and build a software function generation model based on the software function generation sample set using a deep learning algorithm;
[0008] Collect the demand information of the required software, and obtain the software function point list based on the demand information to obtain the required software function point list;
[0009] Input the required software function point list into the software function generation model to generate software functions and obtain several required software function vectors;
[0010] According to a number of required software function vectors, searching and matching is performed in a preset software function component library to obtain corresponding required software function components;
[0011] If the corresponding required software function component does not exist in the software function component library, the software function components are assembled according to a number of required software function vectors to obtain the corresponding newly added software function component.
[0012] Furthermore, it also includes collecting a number of existing software source code files, and building a preset software function component library based on the number of existing software source code files. Specifically, according to the existing software function specifications and existing software source code files of a number of existing software in various application scenarios, a software function point list library, a software function vector library and a preset software function component library are built, including the following steps:
[0013] Collect existing software function specifications and existing software source code files of several existing software in various application scenarios;
[0014] Preprocessing a number of existing software function specifications and a number of corresponding existing software source code files to obtain a number of preprocessed existing software function specifications and a number of preprocessed existing software source code files;
[0015] Extracting a number of existing software function entities and existing software function entity relationships between different existing software function entities in the existing software function specification after preprocessing;
[0016] According to a plurality of existing software function entities of the same preprocessed existing software function specification and existing software function entity relationships between different existing software function entities, a software function point list is acquired to obtain a corresponding existing software function point list;
[0017] According to a plurality of existing software function entities of the same preprocessed existing software function specification and the existing software function entity relationship between different existing software function entities, software function vectorization is performed to obtain a plurality of corresponding existing software function vectors;
[0018] Matching a plurality of existing software function entities of the same preprocessed existing software function specification with code comments of the corresponding preprocessed existing software source code files to obtain a preprocessed existing software source code file segment corresponding to each existing software function entity;
[0019] Packaging the preprocessed existing software source code files corresponding to all existing software function entities of the same preprocessed existing software function specification into segments to obtain corresponding first existing software function components;
[0020] Traverse all preprocessed existing software function specifications and all preprocessed existing software source code files to construct a software function point list library consisting of several existing software function point lists, a software function vector library consisting of several existing software function vectors, and a preset software function component library consisting of several first existing software function components; the preset software function component library also includes several second existing software function components stored locally.
[0021] Further, preprocessing a number of existing software function specifications and a number of corresponding existing software source code files to obtain a number of preprocessed existing software function specifications and a number of preprocessed existing software source code files includes the following steps:
[0022] Performing data format conversion on several existing software function specifications to obtain several corresponding existing software function specifications after data format conversion;
[0023] Perform duplicate data screening on several existing software function specifications after data format conversion to obtain several corresponding existing software function specifications after duplicate data screening;
[0024] Eliminate erroneous data from the existing software function specifications after multiple duplicate data screening to obtain corresponding existing software function specifications after multiple preprocessing;
[0025] The existing software source code files corresponding to the preprocessed existing software function specifications are retained, and the parameter names of the existing software source code files are unified to obtain the corresponding preprocessed existing software source code files.
[0026] Further, extracting a plurality of existing software function entities and existing software function entity relationships between different existing software function entities in the existing software function specification after preprocessing includes the following steps:
[0027] Dividing the plurality of preprocessed existing software function specifications into a first software function specification set and a second software function specification set according to a ratio of 2:8;
[0028] Use crawler tools to crawl a number of basic software function words, and form a software function word library based on the basic software function words;
[0029] According to the software function word library, each first software function specification in the first software function specification set is annotated with a software function entity to obtain an annotated software function specification set;
[0030] According to the annotated software functional specification set, a functional entity extraction model and an entity relationship extraction model are constructed;
[0031] Using the functional entity extraction model, extracting functional entities from the first software functional specification set and the second software functional specification set to obtain corresponding existing software functional entities;
[0032] The entity relationship extraction model is used to extract entity relationships from several existing software function entities, and the existing software function entity relationships between different existing software function entities are obtained.
[0033] Further, according to the existing software function entities of the same preprocessed existing software function specification and the existing software function entity relationships between different existing software function entities, a software function point list is obtained to obtain a corresponding existing software function point list, including the following steps:
[0034] According to a plurality of existing software function entities of the same preprocessed existing software function specification, generating a plurality of corresponding existing software function points;
[0035] According to the existing software function entity relationship between different existing software function entities in the same preprocessed existing software function specification, a corresponding number of existing software function point connection edges are generated;
[0036] According to a plurality of existing software function points and a plurality of existing software function point connection edges of the same preprocessed existing software function specification, a software function point list is obtained to obtain a corresponding existing software function point list.
[0037] Further, according to the existing software function entities of the same preprocessed existing software function specification and the existing software function entity relationships between different existing software function entities, software function vectorization is performed to obtain corresponding existing software function vectors, including the following steps:
[0038] Setting software function vectorization rules for function properties, function levels and function names of existing software function entities;
[0039] According to the software function vectorization rule, software function vectorization is performed on a plurality of existing software function entities of the same preprocessed existing software function specification to obtain coordinates of a plurality of existing software function points;
[0040] According to the existing software function entity relationships between different existing software function entities, nested dimension parameters are added to the coordinates of several existing software function points to obtain several existing software function vectors.
[0041] Further, a software function generation sample set is generated according to the software function point list library and the software function vector library, and a software function generation model is constructed according to the software function generation sample set using a deep learning algorithm, including the following steps:
[0042] Extracting several existing software function point lists stored in a software function point list library and several existing software function vectors stored in a software function vector library;
[0043] Using several existing software function vectors of the same existing software as real software function labels of the corresponding existing software function point list to obtain software function generation samples with real software function labels;
[0044] Traverse all existing software function point lists to generate a software function generation sample set with real software function labels;
[0045] Generate sample sets based on software functions and use deep learning algorithms to build software function generation models.
[0046] Further, the requirement information of the required software is collected, and according to the requirement information, a software function point list is obtained to obtain the required software function point list, including the following steps:
[0047] Collect demand information about required software uploaded by users;
[0048] Use the pre-trained functional entity extraction model to extract functional entities from the requirement information and obtain a number of corresponding required software functional entities;
[0049] Using a pre-trained entity relationship extraction model, perform entity relationship extraction on a number of required software function entities to obtain required software function entity relationships between different required software function entities;
[0050] According to a number of required software functional entities, a number of corresponding required software functional points are generated;
[0051] According to the demand software function entity relationship between different demand software function entities, a corresponding number of demand software function point connection edges are generated;
[0052] According to a number of required software function points and a number of required software function point connecting edges, a software function point list is obtained to obtain a corresponding required software function point list.
[0053] Furthermore, it also includes performing software integration debugging according to the requirements / newly added software functional components, obtaining the required software source code file of the required software, and generating the corresponding required software functional specification, including the following steps:
[0054] According to the required software function point list, set the running order of the required software function points, as well as the nesting relationship and calling rules between different required software function points, and obtain the corresponding required software code engineering;
[0055] Use the development tools corresponding to the required software to load the required software code project and set the calling functions of the required software function points to obtain the corresponding required software source code;
[0056] Based on the development tools corresponding to the required software, run and debug the required software source code, and output the required software source code file of the required software;
[0057] According to the required software function point list, use the preset software function specification template to generate the corresponding required software function specification.
[0058] A software function generation system based on deep learning, used to implement a software function generation method, the system includes a database generation unit, a model construction unit, a software function point list acquisition unit, a software function generation unit, a component retrieval and matching unit, a component assembly unit, and a source code file generation unit connected in sequence;
[0059] A database generation unit, used to construct a software function point inventory library and a software function vector library according to existing software function specifications of several existing software in various application scenarios;
[0060] A model building unit, used to generate a software function generation sample set according to a software function point list library and a software function vector library, and to build a software function generation model according to the software function generation sample set by using a deep learning algorithm;
[0061] A software function point list acquisition unit is used to collect the requirement information of the required software, and acquire the software function point list according to the requirement information to obtain the required software function point list;
[0062] A software function generation unit, used for inputting a list of required software function points into a software function generation model, performing software function generation, and obtaining a number of required software function vectors;
[0063] A component search and matching unit is used to search and match a preset software function component library according to a number of required software function vectors to obtain corresponding required software function components;
[0064] A component assembly unit, used to assemble software function components according to a number of required software function vectors to obtain corresponding newly added software function components;
[0065] The source code file generating unit is used to perform software integration debugging according to the requirements / newly added software functional components, obtain the required software source code file of the required software, and generate the corresponding required software functional specification.
[0066] The beneficial effects of the present invention are:
[0067] The present invention discloses a software function generation method and system based on deep learning. By organizing the existing software function specifications and existing software source code files of the existing software, a software function point list library, a software function vector library and a software function component library are constructed, so as to provide data support for the subsequent automatic generation of software functions, thereby improving the efficiency and practicability of software function generation and the compatibility with software with different requirements, reducing the labor cost investment and the workload of developers; by vectorizing the software functions and using the software function vectors to refer to the software functions without text description, the software function development efficiency is improved, the limitations and deficiencies of the software program in function design, implementation and optimization are eliminated, and the software operation effect and user experience are improved; the software function point list is used as a medium to describe the software function and architecture, and the construction of a software function generation model based on deep learning is realized, so that the software function prediction can be carried out according to the user demand information, the user's private customization is realized, and the accuracy and practicability of the software function generation are improved.
[0068] Other beneficial effects of the present invention will be further described in the specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] Figure 1 It is a flowchart of the software function generation method based on deep learning in the present invention.
[0070] Figure 2 It is a structural block diagram of the software function generation system based on deep learning in the present invention. DETAILED DESCRIPTION
[0071] The present invention will be further explained below in conjunction with the accompanying drawings and specific embodiments.
[0072] Embodiment 1:
[0073] like Figure 1 As shown, this embodiment provides a software function generation method based on deep learning, comprising the following steps:
[0074] S1: According to the existing software function specifications and existing software source code files of several existing software in various application scenarios, a software function point list library, a software function vector library and a preset software function component library are constructed, including the following steps:
[0075] S1-1: Collect existing software function specifications and existing software source code files of several existing software in various application scenarios;
[0076] In this embodiment, the application scenario includes different application fields and usage scenarios of the software. Existing software refers to software that has been put on the market for public purchase or use or is published in information exchange forums or academic paper forums, emphasizing the privacy nature of the software, that is, it has been released and made public, and its existing software function specifications and existing software source code files can be obtained;
[0077] Existing software function specifications refer to user instructions that describe the software functions in detail during the development or use phase of the existing software, including information such as the software's application scenarios, programming languages, and function introductions;
[0078] The existing software source code file includes the software source code summary file related to the installation, operation, debugging and maintenance of the existing software, through which all the software functions disclosed in the above-mentioned existing software function specification can be realized;
[0079] S1-2: Preprocessing a number of existing software function specifications and a number of corresponding existing software source code files to obtain a number of preprocessed existing software function specifications and a number of preprocessed existing software source code files, including the following steps:
[0080] S1-2-1: performing data format conversion on several existing software function specifications to obtain several corresponding existing software function specifications after data format conversion;
[0081] The formats of different existing software function specifications may be different, including .txt, .doc, .pdf, .png, etc. In order to facilitate subsequent processing, the formats of existing software function specifications are unified to improve processing efficiency;
[0082] S1-2-2: screening duplicate data of several existing software function specifications after data format conversion to obtain several corresponding existing software function specifications after duplicate data screening;
[0083] S1-2-3: Eliminate erroneous data from the existing software function specifications after multiple duplicate data screening to obtain corresponding existing software function specifications after multiple preprocessing;
[0084] S1-2-4: retaining a number of existing software source code files corresponding to the preprocessed existing software function specifications, and unifying parameter names of the several existing software source code files to obtain a number of corresponding preprocessed existing software source code files;
[0085] The parameter names are unified, which avoids excessive data volume or function call errors caused by inconsistent parameter names, improves the practicality and versatility of the software function component library, and enhances the efficiency and reliability of software function generation;
[0086] S1-3: extracting a number of existing software function entities and existing software function entity relationships between different existing software function entities in the existing software function specification after preprocessing, including the following steps:
[0087] S1-3-1: dividing a number of pre-processed existing software function specifications into a first software function specification set and a second software function specification set according to a ratio of 2:8;
[0088] S1-3-2: Use crawler tools to crawl a number of basic software function words, and form a software function word library based on the basic software function words;
[0089] S1-3-3: annotating each first software function specification in the first software function specification set with a software function entity according to the software function vocabulary to obtain an annotated software function specification set;
[0090] S1-3-4: Construct a functional entity extraction model and an entity relationship extraction model based on the annotated software functional specification set;
[0091] Named Entity Recognition (NER) and Entity Relation Extraction (ERE) are important tasks in natural language processing, which aim to identify entities with specific meanings and various relationships between these entities from texts.
[0092] In the prior art, deep learning algorithms are often used to construct functional entity extraction models and entity relationship extraction models, such as a functional semantic feature extraction module based on the BERT-BiLSTM-Attention-CRF algorithm, a pre-trained language sub-model of Bidirectional Encoder Representation from Transformers (BERT) and a bidirectional long short-term memory network (BILSTM), connected with a linear chain conditional random field (CRF) module, using the BERT pre-trained language sub-model for vector representation, a BILSTM network for functional semantic feature extraction based on word vectors, and a CRF module for sequence labeling to model the dependency relationship between adjacent elements in the sequence, thereby improving the accuracy and robustness of labeling and obtaining the corresponding functional entities and entity relationships;
[0093] S1-3-5: Using the functional entity extraction model, extracting functional entities from the first software functional specification set and the second software functional specification set to obtain corresponding existing software functional entities;
[0094] S1-3-7: Use the entity relationship extraction model to extract entity relationships from several existing software function entities, and obtain existing software function entity relationships between different existing software function entities;
[0095] S1-4: Acquiring a software function point list according to a plurality of existing software function entities of the same preprocessed existing software function specification and existing software function entity relationships between different existing software function entities to obtain a corresponding existing software function point list, including the following steps:
[0096] S1-4-1: generating corresponding existing software function points according to a plurality of existing software function entities of the same preprocessed existing software function specification;
[0097] S1-4-2: generating a number of corresponding existing software function point connection edges according to the existing software function entity relationships between different existing software function entities in the same preprocessed existing software function specification;
[0098] S1-4-3: acquiring a software function point list according to a plurality of existing software function points and a plurality of existing software function point connection edges of the same preprocessed existing software function specification, and obtaining a corresponding existing software function point list;
[0099] S1-5: performing software function vectorization according to a plurality of existing software function entities of the same preprocessed existing software function specification and the existing software function entity relationships between different existing software function entities to obtain a plurality of corresponding existing software function vectors, including the following steps:
[0100] S1-5-1: Set software function vectorization rules for the function properties, function levels and function names of existing software function entities;
[0101] S1-5-2: According to the software function vectorization rule, software function vectorization is performed on several existing software function entities of the same preprocessed existing software function specification to obtain coordinates of several existing software function points;
[0102] S1-5-3: adding nested dimension parameters to the coordinates of several existing software function points according to the existing software function entity relationships between different existing software function entities, to obtain several existing software function vectors;
[0103] S1-6: Matching a number of existing software function entities of the same preprocessed existing software function specification with code comments of the corresponding preprocessed existing software source code files to obtain a segment of the preprocessed existing software source code file corresponding to each existing software function entity;
[0104] S1-7: encapsulating the preprocessed existing software source code files corresponding to all existing software function entities of the same preprocessed existing software function specification in sections to obtain corresponding first existing software function components;
[0105] S1-8: Traversing all preprocessed existing software function specifications and all preprocessed existing software source code files, constructing a software function point list library consisting of a number of existing software function point lists, a software function vector library consisting of a number of existing software function vectors, and a preset software function component library consisting of a number of first existing software function components;
[0106] In addition to the software function component library constructed by crawling existing software from the Internet, in actual applications, the preset software function component library also includes a number of second existing software function components stored locally, that is, second existing software function components defined and set by the user for subsequent software function generation;
[0107] S2: Generate a software function generation sample set based on the software function point list library and the software function vector library, and build a software function generation model based on the software function generation sample set using a deep learning algorithm, including the following steps:
[0108] S2-1: extracting several existing software function point lists stored in the software function point list library and several existing software function vectors stored in the software function vector library;
[0109] S2-2: using several existing software function vectors of the same existing software as real software function labels of the corresponding existing software function point list to obtain software function generation samples with real software function labels;
[0110] S2-3: traverse all existing software function point lists to generate a software function generation sample set with real software function labels;
[0111] S2-4: Generate sample sets based on software functions and use deep learning algorithms to build software function generation models;
[0112] The software function generation model includes an input layer, a graph feature extraction module constructed based on a graph attention network (Graph Attention Network GAT, GAT) algorithm, a semantic feature extraction module constructed based on a convolutional neural network (Convolutional Neural Network, CNN) algorithm, a feature fusion module, a classifier, and an output layer. The input layer is connected to the graph feature extraction module and the semantic feature extraction module respectively. The graph feature extraction module and the semantic feature extraction module are both connected to the feature fusion module. The feature fusion module, the classifier, and the output layer are connected in sequence.
[0113] The GAT network is an extension of deep learning, focusing on processing graph structure data. In the GAT network, each node in the graph can have its own features, and the edges can also have features. The network iteratively summarizes the information of adjacent nodes and edges through graph convolution operations to update the representation of each node. These representations include not only the original node features, but also the edge features and global features. Therefore, the graph feature extraction module built based on the GAT algorithm can fully extract the graph features of the existing software function point list, including not only the node features of the software function points in the software function point list, but also the edge features of the software function point connection edges between different software function points.
[0114] CNN network is also an important component of deep learning and plays an important role in semantic feature extraction. Through its unique network structure and hierarchical feature learning capabilities, CNN network can automatically learn complex semantic feature representations from data and can extract the semantic features of software functional entities required in the software function point list to achieve deep feature extraction of different software functional entities required.
[0115] In addition to the above-mentioned GAT-CNN algorithm, you can also use deep learning Fully Connected Neural Network (FCNN), Deep Belief Networks (DBN), and Long Short-Term Memory (BILSTM) to build a software function generation model;
[0116] S3: Collecting the requirement information of the required software, and obtaining the software function point list according to the requirement information, to obtain the required software function point list, including the following steps:
[0117] S3-1: Collect the demand information about the required software uploaded by the user;
[0118] In this embodiment, for the data management software application scenario of an enterprise, the function of the demand information is mainly for data entry and management, including data query, date selection, data report, interface call and search box, etc.;
[0119] S3-2: Use the pre-trained functional entity extraction model to extract functional entities from the requirement information and obtain a number of corresponding required software functional entities;
[0120] The required software functional entities are: data, input, management, data query, date selection, data report, interface call and search box;
[0121] S3-3: Use the pre-trained entity relationship extraction model to extract entity relationships from a number of required software function entities, and obtain required software function entity relationships between different required software function entities;
[0122] S3-4: Generate corresponding required software function points according to the required software function entities;
[0123] S3-5: Generate a number of corresponding demand software function point connection edges according to the demand software function entity relationships between different demand software function entities;
[0124] S3-6: According to a number of required software function points and a number of required software function point connection edges, a software function point list is obtained to obtain a corresponding required software function point list;
[0125] S4: inputting the required software function point list into the software function generation model, performing software function generation, and obtaining a number of required software function vectors. Specifically, inputting the required software function point list into the software function generation model, performing software function generation, outputting a number of predicted software function labels, and obtaining a number of corresponding required software function vectors according to the number of predicted software function labels;
[0126] The demand software function vector is equivalent to coordinate processing of software functions, using coordinate points in multi-dimensional space to refer to software functions. Through the convenient demand software function vector representation, the directionality and portability of the demand software functions are improved without the need for text description;
[0127] S5: searching and matching in a preset software function component library according to the plurality of required software function vectors to obtain corresponding required software function components. Specifically, searching and matching in a plurality of first existing software function components and a plurality of second existing software function components in the preset software function component library according to the plurality of required software function vectors, and outputting the first / second existing software function component with the highest matching degree as the corresponding required software function component.
[0128] S6: If the corresponding required software function component does not exist in the software function component library, assemble the software function components according to the required software function vectors to obtain the corresponding newly added software function component. Specifically, send the required software function vectors to the software assembly background. In the software assembly background, assemble the software function components according to the first existing software function components and the second existing software function components in the preset software function component library to obtain the newly added software function component that meets the requirements of the required software function vectors, and add the newly added software function component to the software function component library.
[0129] S7: Perform software integration debugging according to the requirements / newly added software functional components, obtain the required software source code file of the required software, and generate the corresponding required software functional specification, including the following steps:
[0130] S7-1: According to the required software function point list, set the running order of the required software function points, as well as the nesting relationship and calling rules between different required software function points, and obtain the corresponding required software code engineering;
[0131] S7-2: Use the development tool corresponding to the required software to load the required software code project and set the calling function of the required software function point to obtain the corresponding required software source code;
[0132] S7-3: Based on the development tool corresponding to the required software, run and debug the required software source code, and output the required software source code file of the required software;
[0133] S7-4: Generate the corresponding required software function specification using the preset software function specification template according to the required software function point list;
[0134] In this embodiment, the required software function specification is:
[0135] 1. Enter data:
[0136] 1.1. Single entity entry:
[0137] 1.1.1, Text box: used to enter a single data value, such as name, address, etc.;
[0138] 1.1.2. Date: selector or input box, used to enter the date;
[0139] 1.1.3. Radio button: The user selects an answer from the preset options;
[0140] 1.1.4. Multiple-choice box: Users can select multiple answers from multiple options;
[0141] 1.1.5. Take photos: Use the device’s camera to take photos;
[0142] 1.1.6. Attachments: upload files, pictures and other additional information;
[0143] 1.1.7. Signature: handwritten signature input;
[0144] 1.1.8. Employee: Select employee information, often used to enter data related to employees; 1.2. Entity collection entry:
[0145] 1.2.1. Batch upload: upload multiple files at a time, often used to import data;
[0146] 1.2.2. Data template: a predefined format used to guide data entry;
[0147] 1.3. Multi-entity entry:
[0148] 1.3.1. Related forms: multiple different types of data are involved at the same time when entering data;
[0149] 1.3.2. Transaction processing: data entry and verification involving multiple steps or multiple departments; 2. Query data:
[0150] 2.1. Table: presents data in rows and columns, suitable for comparison and analysis;
[0151] 2.2. Details page: displays all relevant information of a single data entry;
[0152] 2.3. Progress bar: displays the completion status of a task or process;
[0153] 2.4. Ranking list: displays a sorted list of data, often used for competition or performance comparison;
[0154] 2.5. Gantt chart: shows the progress of tasks in a timeline;
[0155] 2.6. Calendar: Display events or data by day, week, or month;
[0156] 3. Data report:
[0157] 3.1. Text report: displays data in plain text;
[0158] 3.2. Chart reports: Use charts to visually display data trends and relationships;
[0159] 3.3. Print report: suitable for printing output, usually contains formatted data;
[0160] 4. Interface call:
[0161] 4.1. RESTful API: Interface design using REST principles;
[0162] 4.2, SOAP: XML-based communication protocol;
[0163] GraphQL: An interface that allows clients to request specific data.
[0164] 5. Other forms:
[0165] 5.1. Drop-down menu: Select from the preset options;
[0166] 5.2. Auto-completion: automatically provide matching options when inputting;
[0167] 5.3. Search box: search data by keywords.
[0168] Embodiment 2:
[0169] like Figure 2 As shown, this embodiment provides a software function generation system based on deep learning, which is used to implement a software function generation method. The system includes a database generation unit, a model construction unit, a software function point list acquisition unit, a software function generation unit, a component retrieval and matching unit, a component assembly unit, and a source code file generation unit connected in sequence;
[0170] A database generation unit, used to construct a software function point inventory library and a software function vector library according to existing software function specifications of several existing software in various application scenarios;
[0171] A model building unit, used to generate a software function generation sample set according to a software function point list library and a software function vector library, and to build a software function generation model according to the software function generation sample set by using a deep learning algorithm;
[0172] A software function point list acquisition unit is used to collect the requirement information of the required software, and acquire the software function point list according to the requirement information to obtain the required software function point list;
[0173] A software function generation unit, used for inputting a list of required software function points into a software function generation model, performing software function generation, and obtaining a number of required software function vectors;
[0174] A component search and matching unit is used to search and match a preset software function component library according to a number of required software function vectors to obtain corresponding required software function components;
[0175] A component assembly unit, used to assemble software function components according to a number of required software function vectors to obtain corresponding newly added software function components;
[0176] The source code file generating unit is used to perform software integration debugging according to the requirements / newly added software functional components, obtain the required software source code file of the required software, and generate the corresponding required software functional specification.
[0177] The present invention discloses a software function generation method and system based on deep learning. By organizing the existing software function specifications and existing software source code files of the existing software, a software function point list library, a software function vector library and a software function component library are constructed, so as to provide data support for the subsequent automatic generation of software functions, thereby improving the efficiency and practicability of software function generation and the compatibility with software with different requirements, reducing the labor cost investment and the workload of developers; by vectorizing the software functions and using the software function vectors to refer to the software functions without text description, the software function development efficiency is improved, the limitations and deficiencies of the software program in function design, implementation and optimization are eliminated, and the software operation effect and user experience are improved; the software function point list is used as a medium to describe the software function and architecture, and the construction of a software function generation model based on deep learning is realized, so that the software function prediction can be carried out according to the user demand information, the user's private customization is realized, and the accuracy and practicability of the software function generation are improved.
[0178] The present invention is not limited to the above optional implementations, and anyone can derive other various forms of products under the enlightenment of the present invention. The above specific implementations should not be understood as limiting the scope of protection of the present invention. The scope of protection of the present invention should be based on the definition in the claims, and the description can be used to interpret the claims.
Claims
1. A software function generation method based on deep learning, characterized in that: The steps include: According to the existing software function specifications and existing software source code files of several existing software in various application scenarios, a software function point list library, a software function vector library and a preset software function component library are constructed, including the following steps: Collect existing software function specifications and existing software source code files of several existing software in various application scenarios; Preprocessing a number of existing software function specifications and a number of corresponding existing software source code files to obtain a number of preprocessed existing software function specifications and a number of preprocessed existing software source code files; Extracting a number of existing software function entities and existing software function entity relationships between different existing software function entities in the existing software function specification after preprocessing; According to a plurality of existing software function entities of the same preprocessed existing software function specification and the existing software function entity relationships between different existing software function entities, a software function point list is obtained to obtain a corresponding existing software function point list, including the following steps: According to a plurality of existing software function entities of the same preprocessed existing software function specification, generating a plurality of corresponding existing software function points; According to the existing software function entity relationship between different existing software function entities in the same preprocessed existing software function specification, a corresponding number of existing software function point connection edges are generated; According to a plurality of existing software function points and a plurality of existing software function point connection edges of the same preprocessed existing software function specification, a software function point list is acquired to obtain a corresponding existing software function point list; According to a plurality of existing software function entities of the same preprocessed existing software function specification and the existing software function entity relationship between different existing software function entities, software function vectorization is performed to obtain a plurality of corresponding existing software function vectors, including the following steps: Setting software function vectorization rules for function properties, function levels and function names of existing software function entities; According to the software function vectorization rule, software function vectorization is performed on a plurality of existing software function entities of the same preprocessed existing software function specification to obtain coordinates of a plurality of existing software function points; According to the existing software function entity relationships between different existing software function entities, nested dimension parameters are added to the coordinates of several existing software function points to obtain several existing software function vectors; Matching a plurality of existing software function entities of the same preprocessed existing software function specification with code comments of the corresponding preprocessed existing software source code files to obtain a preprocessed existing software source code file segment corresponding to each existing software function entity; Packaging the preprocessed existing software source code files corresponding to all existing software function entities of the same preprocessed existing software function specification into segments to obtain corresponding first existing software function components; Traversing all preprocessed existing software function specifications and all preprocessed existing software source code files, constructing a software function point list library consisting of a number of existing software function point lists, a software function vector library consisting of a number of existing software function vectors, and a preset software function component library consisting of a number of first existing software function components; the preset software function component library also includes a number of second existing software function components stored locally; Generate a software function generation sample set based on the software function point list library and the software function vector library, and build a software function generation model based on the software function generation sample set using a deep learning algorithm; Collect the demand information of the required software, and obtain the software function point list based on the demand information to obtain the required software function point list; Input the required software function point list into the software function generation model to generate software functions and obtain several required software function vectors; According to a number of required software function vectors, searching and matching is performed in a preset software function component library to obtain corresponding required software function components; If the corresponding required software function component does not exist in the software function component library, assembling the software function components according to a number of required software function vectors to obtain the corresponding newly added software function component; According to the requirements / new software functional components, perform software integration debugging, obtain the required software source code file of the required software, and generate the corresponding required software functional specification, including the following steps: According to the required software function point list, set the running order of the required software function points, as well as the nesting relationship and calling rules between different required software function points, and obtain the corresponding required software code engineering; Use the development tools corresponding to the required software to load the required software code project and set the calling functions of the required software function points to obtain the corresponding required software source code; Based on the development tools corresponding to the required software, run and debug the required software source code, and output the required software source code file of the required software; According to the required software function point list, use the preset software function specification template to generate the corresponding required software function specification.
2. The method for generating software functions based on deep learning according to claim 1, characterized in that: Preprocessing a number of existing software function specifications and a number of corresponding existing software source code files to obtain a number of preprocessed existing software function specifications and a number of preprocessed existing software source code files includes the following steps: Performing data format conversion on several existing software function specifications to obtain several corresponding existing software function specifications after data format conversion; Perform duplicate data screening on several existing software function specifications after data format conversion to obtain several corresponding existing software function specifications after duplicate data screening; Eliminate erroneous data from the existing software function specifications after multiple duplicate data screening to obtain corresponding existing software function specifications after multiple preprocessing; The existing software source code files corresponding to the preprocessed existing software function specifications are retained, and the parameter names of the existing software source code files are unified to obtain the corresponding preprocessed existing software source code files.
3. The method for generating software functions based on deep learning according to claim 1, characterized in that: Extracting a number of existing software function entities and existing software function entity relationships between different existing software function entities in the existing software function specification after preprocessing, including the following steps: Dividing the plurality of preprocessed existing software function specifications into a first software function specification set and a second software function specification set according to a ratio of 2:8; Use crawler tools to crawl a number of basic software function words, and form a software function word library based on the basic software function words; According to the software function word library, each first software function specification in the first software function specification set is annotated with a software function entity to obtain an annotated software function specification set; According to the annotated software functional specification set, a functional entity extraction model and an entity relationship extraction model are constructed; Using the functional entity extraction model, extracting functional entities from the first software functional specification set and the second software functional specification set to obtain corresponding existing software functional entities; The entity relationship extraction model is used to extract entity relationships from several existing software function entities, and the existing software function entity relationships between different existing software function entities are obtained.
4. The method for generating software functions based on deep learning according to claim 1, characterized in that: Generate a software function generation sample set based on the software function point list library and the software function vector library, and build a software function generation model based on the software function generation sample set using a deep learning algorithm, including the following steps: Extracting several existing software function point lists stored in a software function point list library and several existing software function vectors stored in a software function vector library; Using several existing software function vectors of the same existing software as real software function labels of the corresponding existing software function point list to obtain software function generation samples with real software function labels; Traverse all existing software function point lists to generate a software function generation sample set with real software function labels; Generate sample sets based on software functions and use deep learning algorithms to build software function generation models.
5. The method for generating software functions based on deep learning according to claim 3, characterized in that: Collect the requirement information of the required software, and obtain the software function point list based on the requirement information to obtain the required software function point list, including the following steps: Collect demand information about required software uploaded by users; Use the pre-trained functional entity extraction model to extract functional entities from the requirement information and obtain a number of corresponding required software functional entities; Using a pre-trained entity relationship extraction model, perform entity relationship extraction on a number of required software function entities to obtain required software function entity relationships between different required software function entities; According to a number of required software functional entities, a number of corresponding required software functional points are generated; According to the demand software function entity relationship between different demand software function entities, a corresponding number of demand software function point connection edges are generated; According to a number of required software function points and a number of required software function point connecting edges, a software function point list is obtained to obtain a corresponding required software function point list.
6. A software function generation system based on deep learning, used to implement the software function generation method according to any one of claims 1 to 5, characterized in that: The system comprises a database generation unit, a model construction unit, a software function point list acquisition unit, a software function generation unit, a component search and matching unit, a component assembly unit and a source code file generation unit which are connected in sequence; A database generation unit, used to construct a software function point inventory library and a software function vector library according to existing software function specifications of several existing software in various application scenarios; A model building unit, used to generate a software function generation sample set according to a software function point list library and a software function vector library, and to build a software function generation model according to the software function generation sample set by using a deep learning algorithm; A software function point list acquisition unit is used to collect the requirement information of the required software, and acquire the software function point list according to the requirement information to obtain the required software function point list; A software function generation unit, used for inputting a list of required software function points into a software function generation model, performing software function generation, and obtaining a number of required software function vectors; A component search and matching unit is used to search and match a preset software function component library according to a number of required software function vectors to obtain corresponding required software function components; A component assembly unit, used to assemble software function components according to a number of required software function vectors to obtain corresponding newly added software function components; The source code file generating unit is used to perform software integration debugging according to the requirements / newly added software functional components, obtain the required software source code file of the required software, and generate the corresponding required software functional specification.
Citation Information
Patent Citations
Distributed software development compiling method based on cloud computing and software development platform
CN112394942A
Software architecture development system for aerospace embedded system
CN112416337A
Software bill of material generation method and device, computer equipment and medium
CN116166307A
Construction method, device and equipment of software bill of material library and readable medium
CN116974619A
Automatically Generating Machine Learning Models for Software Tools That Operate on Source Code
US20210132915A1
