Method, equipment, system and medium for electronically generating software cost

Run the cost plug-in in the document editor, load the demand document and display the cost report, solving the problem of low cost efficiency caused by users frequently switching programs, and realizing efficient calculation and report generation of software engineering costs.

CN113705239BActive Publication Date: 2024-10-22BEIJING MINGDE MICRO TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110761486.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-06
Publication Date
2024-10-22
Estimated Expiration
2041-07-06

AI Technical Summary

Technical Problem

Existing software engineering costing methods require users to frequently switch between costing programs and document editors, resulting in low costing efficiency and the inability to view the matching of requirements documents and cost reports on the same platform.

Method used

By running the cost plug-in in the document editor, loading the function point data in the demand document, and displaying the demand document and cost report side by side in the document editor, cost calculation and report generation are unified, reducing program switching and improving efficiency.

Benefits of technology

Users can view the matching between the cost report and the demand document without frequently switching programs, which significantly improves the efficiency and accuracy of software engineering cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113705239B_ABST
    Figure CN113705239B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, system and medium for electronically generating software cost, which belongs to the field of computer technology. The method comprises: using a document editor to load the requirement document of the software project, the document editor running a cost plug-in; adding the function point data in the requirement document to the cost plug-in, the function point data is data related to the function point in the software project; generating a cost report of the software project through the cost plug-in, the cost report is obtained by the cost plug-in based on the function point data; and displaying the requirement document and the cost report side by side in the document editor. The present application can improve the cost efficiency of software engineering.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a method, device, system and medium for electronically generating software cost. Background Art

[0002] Software engineering cost refers to the development cost of a computer software application or software project, which refers to the total amount of all expected or actual costs required to complete a set of application software or software project from development to delivery and launch.

[0003] In the related technology, the function point size measurement method, which is an international standard, has been applied in various industries. In the function point size measurement method, a special cost program is used to identify five types of function points in the software to be developed: ILF (Internal Logic File), EIF (External Interface File), EI (External Input), EO (External Output), and EQ (External Query). Then, the cost program will estimate the cost of the software project based on the identified function points.

[0004] The above method requires the use of a special cost estimation program. However, in the cost estimation process of software engineering, users need to switch back and forth between the cost estimation program and the document editor to determine whether the cost report matches the content of the requirement document. For example, in the cost estimation process, users need to open two different programs, the cost estimation program and the document editor. The cost estimation program displays the cost report, and the document editor displays the requirement document. When users are viewing the cost estimation report, if they have any questions about some of the content in the cost estimation report, they need to close the cost estimation program first and then open the document editor to confirm. The entire operation process is more cumbersome and the cost estimation efficiency is low. Summary of the invention

[0005] The present application provides a method, device, system and medium for electronically generating software cost, which can complete the cost calculation of software engineering based on the cost plug-in in the document editor, display the requirement document and cost report in the same document editor, and does not require the user to switch programs back and forth, which is convenient for users to view and improves the cost efficiency. The technical solution is as follows:

[0006] According to one aspect of the present application, a method for electronically generating software cost is provided, the method comprising:

[0007] Load the software engineering requirement document using a document editor, wherein the document editor runs a cost plug-in;

[0008] Adding the function point data in the requirement document to the cost plug-in, wherein the function point data is data related to the function points in the software project;

[0009] Generating a cost report of the software project through the cost plug-in, wherein the cost report is obtained by the cost plug-in based on the function point data;

[0010] The requirement document and the cost report are displayed side by side in the document editor.

[0011] According to another aspect of the present application, there is also provided an electronic software cost generation device, the device comprising:

[0012] An interactive module, used to load the requirement document of the software project using a document editor, wherein the document editor runs a cost plug-in;

[0013] The interaction module is further used to add the function point data in the requirement document to the cost plug-in, wherein the function point data is data related to the function point in the software project;

[0014] A generating module, used for generating a cost report of the software project through the cost plug-in, wherein the cost report is obtained by the cost plug-in based on the function point data;

[0015] A display module is used to display the requirement document and the cost report side by side in the document editor.

[0016] In an optional design of the present application, the interaction module is further used to add the target content as the function point data to the cost plug-in in response to a selection operation on the target content in the requirement document.

[0017] In an optional design of the present application, the interactive module is also used to respond to a selection operation on the target content in the requirement document, and through the cost plug-in, call a semantic recognition model to perform semantic recognition on the target content to obtain a semantic recognition result; based on the semantic recognition result, the content in the target content that meets the characteristics of the function point data is added to the cost plug-in as the function point data.

[0018] In an optional design of the present application, the interactive module is also used to perform semantic recognition on the requirement document through the cost plug-in to obtain a semantic recognition result; based on the semantic recognition result, the suggested function point data is displayed in the plug-in window of the cost plug-in; in response to an editing operation on the suggested function point data, the edited function point data is added to the cost plug-in.

[0019] In an optional design of the present application, the interaction module is also used to respond to a confirmation operation on the suggested function point data, add the suggested function point data to the cost plug-in; respond to a modification operation on the suggested function point data, add the modified function point data to the cost plug-in; respond to a new operation on the suggested function point data, add the function point data after the first data is added to the cost plug-in; respond to a deletion operation on the suggested function point data, add the function point data after the second data is deleted to the cost plug-in.

[0020] In an optional design of the present application, the interactive module is also used to respond to the editing operation on the recommended function point data, generate a retraining sample of the semantic recognition model according to the edited function point data; perform a secondary training on the semantic recognition model according to the retraining sample to obtain a personalized semantic recognition model, and the personalized semantic recognition model is a semantic recognition model dedicated to the requirement document; call the personalized semantic recognition model to perform semantic recognition on the remaining content of the requirement document to obtain an updated semantic recognition result; based on the updated semantic recognition result, update and display the recommended function point data in the plug-in window of the cost plug-in.

[0021] In an optional design of the present application, the interaction module is also used to generate the retraining sample of the semantic recognition model based on the edited function point data in response to the number of times the same editing operation is used to edit the same recommended function point data at different document locations reaching a number threshold.

[0022] In an optional design of the present application, the semantic recognition result includes at least one of the following: the name of the function point; the type of the function point; and the weight of the function point.

[0023] In an optional design of the present application, the interaction module is also used to record the document position of the function point data in the requirement document through the cost plug-in; and in response to a tracing operation on the function point data, locate the document position of the function point data in the requirement document in the document editor.

[0024] In an optional design of the present application, the interaction module is also used to automatically run the cost plug-in after the document editor is started; or, after the document editor is started, run the cost plug-in in response to a plug-in running operation.

[0025] According to another aspect of the present application, a computer device is provided, comprising: a processor and a memory, wherein the memory stores a computer program, and the computer program is loaded and executed by the processor to implement the electronic generation method of software cost as provided in the above aspect.

[0026] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and the computer program is loaded and executed by a processor to implement the electronic generation method of software cost as provided in the above aspect.

[0027] According to another aspect of the present application, a cost estimation system for software engineering is provided, the cost estimation system comprising: a computer device and a server, the computer device is the computer device as described above, and a cost estimation model is arranged in the server; the cost estimation plug-in in the computer device is used to call the cost estimation model to perform cost estimation on the function point data.

[0028] According to another aspect of the present application, a computer program product is provided, the computer program product comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the electronic generation method of software cost provided in the above aspect.

[0029] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:

[0030] The document editor loads the requirement document of the software project, and after adding the functional point data in the requirement document to the cost plug-in, the cost plug-in generates a cost report for the above software project. Since the cost report is generated by the cost plug-in, the operation and display of the cost plug-in are completed in the document editor. The user only needs to open the document editor to determine whether the cost report matches the content of the requirement document. There is no need to switch programs back and forth, thus improving cost efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions in 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 only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0032] Figure 1 is a structural block diagram of a computer system provided by an exemplary embodiment of the present application;

[0033] Figure 2It is a flowchart of a method for electronically generating software cost provided by an exemplary embodiment of the present application;

[0034] Figure 3 It is a schematic diagram of an interface of a method for electronically generating software cost estimates provided by an exemplary embodiment of the present application;

[0035] Figure 4 It is a flowchart of a method for electronically generating software cost provided by an exemplary embodiment of the present application;

[0036] Figure 5 It is a schematic diagram of an interface of a method for electronically generating software cost estimates provided by an exemplary embodiment of the present application;

[0037] Figure 6 It is a schematic diagram of an interface of a method for electronically generating software cost estimates provided by an exemplary embodiment of the present application;

[0038] Figure 7 is a model schematic diagram of a semantic recognition model provided by an exemplary embodiment of the present application;

[0039] Figure 8 It is a flowchart of a method for electronically generating software cost provided by an exemplary embodiment of the present application;

[0040] Fig. 9 It is a flowchart of a method for electronically generating software cost provided by an exemplary embodiment of the present application;

[0041] Fig.10 It is a structural schematic diagram of an electronic generation device for software cost provided by an exemplary embodiment of the present application;

[0042] Fig.11 It is a structural schematic diagram of an electronic generation device for software cost provided by an exemplary embodiment of the present application;

[0043] Fig.12 It is a structural diagram of a computer device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0044] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0045] It should be understood that the "several" mentioned in this article refers to one or more, and "multiple" refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0046] The cost of software engineering is affected by many factors. Among them, the main factor affecting the budget of software projects is the work content to be completed by the software projects. However, there are differences between different software projects. It is not possible to make a budget by referring to the cost amount of existing similar projects. For example, user 1 requires to add a "modify" function to application 1, and user 2 requires to add a "modify" function to application 2. Since application 1 and application 2 are two different applications, the cost required for application 1 and application 2 is also different for adding the "modify" function. Therefore, it is very necessary to estimate the cost of software engineering according to the actual situation. When the user's budget is insufficient, the software engineering cannot be completed on schedule, or the function of the software engineering does not meet the requirements, causing losses to the user. For another example, in an actual scenario, user A contracts a software engineering of user B. User B wants to determine whether the quotation provided by user A meets the actual cost of the software engineering. At this time, user B can request the service of estimating the cost of software engineering from user C. When there is a difference between the quotations given by user C and user A, user B can decide whether to continue to have user A contract the software engineering according to the actual situation.

[0047] First, the nouns involved in the embodiments of the present application are introduced:

[0048] Natural Language Processing (NLP): It is an important direction in the fields of computer science and artificial intelligence. It studies various theories and methods that can achieve effective communication between people and computers using natural language. Natural language processing is a science that integrates linguistics, computer science, and mathematics. Therefore, research in this field will involve natural language, that is, the language people use in daily life, so it is closely related to the study of linguistics. Natural language processing technology usually includes text processing, semantic understanding, machine translation, robot question answering, knowledge graph and other technologies.

[0049] Function Point (FP): A unit used to measure the scale of software functions when measuring the cost of software engineering. Function Point is a method of quantifying the functions that can be achieved by computer software applications or software projects from the perspective of logical design. For example, User 1 requires the design of a human resource management system that can realize the functions of adding and deleting data. Through the estimation of the function points of the human resource management system, it is found that the function points required to develop the human resource management system are "addition" and "deletion".

[0050] Semantic recognition: refers to the recognition of the meaning contained in the language. Semantics can be simply regarded as the meaning of the concepts represented by the objects in the real world corresponding to the data and the relationship between these meanings. It is the interpretation and logical representation of data in a certain field.

[0051] Figure 1 The schematic diagram of the structure of a computer system provided by an exemplary embodiment of the present application is shown. The computer system 100 includes: a computer device 120 and a server 140 .

[0052] The computer device 120 is installed with a text editor 121 and a cost plug-in 122. The document editor 121 will load the requirement document. The cost plug-in 122 runs in the text editor. The text editor 121 can call the cost plug-in 122 to estimate the cost of the software project, and the cost plug-in 122 is used to call the cost model 141 in the server 140 to perform cost calculation on the function point data. The method of loading the requirement document in the document editor 121 includes but is not limited to: opening the requirement document through the document editor, loading the requirement document into the document editor using the loading function of the document editor, and copying the requirement document into the document editor. The document editor 121 will provide an application program interface for the cost plug-in 122, and the document editor 121 provides a loading method for the cost plug-in 122, so that the cost plug-in 122 can be loaded into the document editor 121, thereby realizing data exchange between the document editor 121 and the cost plug-in 122. Optionally, the text editor may be an application with a text editing function such as Microsoft Word (a document editor developed by Microsoft), WPS (a document editor developed by Kingsoft Office Software), Microsoft Excel (a document editor developed by Microsoft), or Microsoft PowerPoint (a document editor developed by Microsoft). Exemplarily, the user estimates the cost of the software project through a text editor and a cost plug-in on the computer device 120. The computer device 120 is at least one of a smart phone, a tablet computer, an e-book reader, an MP3 player, an MP4 player, a laptop computer, and a desktop computer.

[0053] The computer device 120 is connected to the server 140 via a wireless network or a wired network.

[0054] The server 140 is provided with a cost model 141, which is used to calculate the cost of software engineering. The server 140 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. The server 140 is used to provide background services for the cost plug-in and send the cost report to the computer device 120. Optionally, the server 140 undertakes the main computing work and the computer device 120 undertakes the secondary computing work; or, the server 140 undertakes the secondary computing work and the computer device 120 undertakes the main computing work; or, the server 140 and the computer device 120 both adopt a distributed computing architecture for collaborative computing.

[0055] Figure 2 A flowchart of a method for electronically generating software cost provided by an exemplary embodiment of the present application is shown.

[0056] This method can be Figure 1 The computer device 120 shown is executed, and the method includes the following steps:

[0057] Step 202: Use a document editor to load the software engineering requirement document, and the document editor runs a cost plug-in.

[0058] The document editor is used to edit the document. Specifically, the user performs an editing operation on the document through the document editor. Optionally, the editing operation includes at least one of a deletion operation, an addition operation, a modification operation, and a move operation.

[0059] The requirement document is a document that describes all or part of the requirements of the software project. Optionally, the requirement document includes at least one of the scale, function, UI (User Interface) design, cost, completion time, and budget of the software project.

[0060] The cost plug-in is a program written based on the application program interface of the document editor and is used to estimate the cost of software engineering. The cost plug-in runs under the document editor and cannot run independently from the document editor. The document editor provides various services that enable the cost plug-in to apply, including but not limited to providing at least one of the loading service, deletion service, calculation service, and editing service, so that the cost plug-in can be loaded into the document editor to realize data exchange between the document editor and the cost plug-in.

[0061] Exemplarily, a computer device stores a requirement document in binary bytes. When a user opens a requirement document, the computer device automatically runs a document editor, and then the document editor converts the binary bytes into text content of the requirement document through a built-in conversion strategy, and displays the text content on a display screen of the computer device, thereby completing the loading of the requirement document. Optionally, there are at least two ways to start the cost plug-in: (1) automatically running the cost plug-in after the document editor is started; (2) automatically running the cost plug-in in response to a plug-in running operation after the document editor is started. Exemplarily, a cost plug-in runs in the document editor. When a user opens the document editor, the document editor automatically runs the cost plug-in, or, when a user opens the document editor, the user needs to manually start the cost plug-in.

[0062] The document editor will also provide an application program interface for the cost plug-in, which is used for data exchange between the document editor and the cost plug-in. For example, the cost plug-in reads the text content of the demand document from the document editor through the application program interface. For another example, the user performs a selection operation in the document editor and selects part of the text in the demand document. The cost plug-in reads the part of the text selected by the user through the application program interface. Exemplarily, the plug-in is based on vue (a progressive framework for building user interfaces), and the inter-program communication between the cost plug-in and the document editor is realized through the API (Application Programming Interface). In one case, the document editor is started and the cost plug-in is started; in another case, after the document editor is started, the cost plug-in icon is displayed in the toolbar, and the user clicks the cost plug-in icon to start the cost plug-in.

[0063] The cost plug-in evaluates and predicts the cost of software engineering by calling the cost model. Optionally, the cost model includes at least one of a cost index system, a cost index calculation formula and a parameter factor. The cost index system is a complete system for making an overall judgment on the cost of software engineering. Optionally, the cost index system is related to at least one factor in the development of the region, labor costs, and software development cost specifications; the cost index calculation formula is used to calculate various indicators in software engineering, such as workload, cost, etc.; the parameter factor represents the basic parameters in the cost model.

[0064] For example, Figure 3 As shown, after the user clicks the icon of the requirement document, the computer device automatically runs the document editor, which calls the requirement document 302 and converts the requirement document into text content 301, and displays the text content 301 on the display screen of the computer device.

[0065] Step 204: Add the function point data in the requirement document to the cost plug-in, where the function point data is data related to the function points in software engineering.

[0066] In the requirement document, function point data can be described by words. For example, the function point data is described by the word "increase". In other words, the word "increase" is used as the function point data. When the word "department increase" appears in the requirement document, since the word "department increase" includes the word "increase", "department increase" is added to the cost plug-in as function point data. In the actual operation process, different users will provide different requirement documents, and different function point data need to be provided based on the individual differences between different users.

[0067] Optionally, since in addition to the function point data, there are some words in the requirement document that have no effect on the software engineering cost, it is necessary to exclude these words to clarify the function point data. Therefore, in actual operation, the user will select the target content in the requirement document through the mouse or touch screen. In response to the selection operation on the target content in the requirement document, the target content is added to the cost plug-in as function point data. The selection operation is used to determine the target content from the requirement document. The selection operation can be performed by a signal generated by long pressing, clicking, double-clicking and / or sliding on a designated area of ​​a touch screen or an external device. Exemplary, such as Figure 3As shown, the user long presses the left mouse button to select text content 301 in the document editor, and the text content 301 is "department addition, modification". After completing the selection of the text content 301, the user clicks the right mouse button to display a dialog box 307, and clicks the add button 308 in the dialog box 307 to add the text content 301 as the target content to the cost plug-in. Optionally, after the function point data in the requirement document is added to the cost plug-in, the computer device stores the function point data.

[0068] Step 206: Generate a cost report for the software project through the cost plug-in. The cost report is obtained by the cost plug-in based on the function point data. The cost report and the requirement document are displayed in the document editor at the same time.

[0069] The cost report is obtained by the cost plug-in based on the function point data. The cost report includes at least one of the function point scale, workload, overall cost, and hierarchical relationship. Optionally, the cost report may also include at least one of the development income, client, developer, third party, power point time rate, change cost, bid evaluation benchmark price, and integrity level. Optionally, the cost plug-in inputs the function point data into the cost model and outputs the cost report of the software project through the cost model.

[0070] For example, Figure 3 As shown, a cost report 306 of a software project is generated by a cost plug-in, wherein the software report includes the cost report 306 and further includes cost details 303, hierarchical relationship 304 and function point details 305, wherein the cost details 303 include at least one of the scale, workload and cost of the software project; the hierarchical relationship 304 is used to represent the functional hierarchical structure of the software project, and the functional hierarchical structure is obtained by merging and dividing the functions of the function points. For example, if the functions of the function points are "member addition" and "commodity addition", the functions of the function points are merged, and "member addition" and "commodity addition" are merged into the function point "addition"; the function point details 305 are used to represent the details of the function points used by the cost plug-in to generate the cost report, and the details include at least one of the type of function points, the scale of function points and the number of function points.

[0071] Step 208: Display the demand document and the cost report side by side in the document editor.

[0072] For example, Figure 3 As shown, after the cost plug-in generates the cost report 306, the requirement document 302 and the cost report are displayed side by side in the document editor. The user can view the requirement document and the cost report at the same time, which is convenient for user verification.

[0073] To summarize, in this embodiment, the document editor loads the requirement document of the software project, and after adding the function point data in the requirement document to the cost plug-in, the cost plug-in generates a cost report for the above-mentioned software project. Since the cost report is generated by the cost plug-in, the operation and display of the cost plug-in are completed in the document editor. The user only needs to open the document editor to determine whether the cost report matches the content of the requirement document, and there is no need to switch programs back and forth, thereby improving cost efficiency.

[0074] In the following optional embodiment, on the one hand, the function point data does not need to be manually selected by the user, and a method for automatically extracting function point data is provided, which can extract recommended function point data from the requirement document for the user to select; on the other hand, a mechanism for associating function point data, requirement document content and corresponding phrase positions is implemented, and the mechanism is defined as the traceability basis of software engineering cost, realizing the function of tracing the requirement document content from the software engineering cost details, thereby improving the traceability and credibility of the cost report.

[0075] Figure 4 A flowchart of a method for electronically generating software cost provided by an exemplary embodiment of the present application is shown.

[0076] This method can be Figure 1 The computer device 120 shown is executed, and the method includes the following steps:

[0077] Step 401: Use a document editor to load a software engineering requirement document.

[0078] The document editor is used to edit the document. Specifically, the user performs editing operations on the document through the document editor. Optionally, the editing operation includes at least one of a deletion operation, an addition operation, a modification operation, and a transposition operation. Specifically, when the user opens the demand document, the computer device automatically runs the document editor, and the document editor converts the binary bytes corresponding to the demand document into the text content of the demand document through the built-in conversion strategy, and displays the text content on the display screen of the computer device to complete the loading of the demand document. Optionally, the cost plug-in runs in the computer device.

[0079] Step 402: Through the cost plug-in, call the semantic recognition model to perform semantic recognition on the demand document to obtain a semantic recognition result.

[0080] Optionally, the requirement document is sent to the server through the cost plug-in; the server performs semantic recognition on the requirement document to obtain a semantic recognition result; and the server sends the semantic recognition result to the cost plug-in. Optionally, the cost plug-in performs semantic recognition on a selected portion of the requirement document to obtain a semantic recognition result. Optionally, the cost plug-in extracts a feature vector corresponding to the function point data in the requirement document through a semantic recognition model; and determines the semantic recognition result based on the feature vector. The semantic recognition result includes at least one of the name of the function point, the type of the function point, and the weight of the function point. Optionally, the semantic recognition result also includes a scale factor or a scale adjustment factor of the function point.

[0081] The name of the function point indicates the name of the semantics of the function point. It should be noted that in some scenarios, different words have the same semantics. For example, "add" and "increase" are different words, but these two words have the same semantics in some scenarios. Therefore, the name of the function point is divided according to the semantics of the function point, rather than the words corresponding to the function point data.

[0082] The type of a function point indicates the function of the function point in software engineering. For example, assuming there are function points "modify" and "add", the function point "modify" indicates modifying data, and the function point "add" indicates adding data.

[0083] The weight of a function point indicates the proportion of different function points in the total function points. For example, suppose there are function points "modify" and "add", and the weight value of the function point "modify" is 70%, and the weight value of the function point "add" is 30%.

[0084] The scale factor of a function point indicates the coverage scale of the function corresponding to the function point. Exemplarily, the function corresponding to the function point is "batch processing", then the scale factor of the function point here corresponds to the coverage range of the batch processed data, for example, a batch processing can process at most 20 data. Correspondingly, the scale adjustment factor of a function point indicates the adjustable range of the coverage scale of the function corresponding to the function point. Exemplarily, the function corresponding to the function point is "batch processing", then the scale factor of the function point here corresponds to the adjustable range of the coverage range of the batch processed data, for example, the user can choose whether a batch processing can process at most 20 data or at most 25 data.

[0085] Optionally, a semantic recognition model is established based on a neural network, and the semantic recognition model is used to recognize semantics. The cost plug-in performs semantic recognition on the demand document through the semantic recognition model, and outputs the semantic recognition result semantics. For example, Figure 7As shown, the recognition model includes an input embedding layer 701, an attention layer 702, and an output classification layer 703. The input embedding layer 701 is used to convert the text in the requirement document 704 into an embedding vector group. For example, the requirement document includes text 1 and text 2, and text 1 is represented in the form of a vector as an embedding vector A, and text 2 is represented in the form of a vector as an embedding vector B. The attention layer 702 extracts semantic features from the embedding vector group output by the input embedding layer 701 through the attention mechanism to obtain a semantic feature vector. The output classification layer 703 is used to normalize the semantic feature vector output by the attention layer 702 to obtain the function point data 705 of the requirement document 704.

[0086] Optionally, the cost plug-in inputs the requirement document into the semantic recognition model, and the semantic recognition model converts the segmented text in the requirement document into an embedded vector group; the semantic recognition model inputs the embedded vector group into the attention layer, and obtains a semantic feature vector based on the attention mechanism; the semantic recognition model normalizes the semantic recognition vector to obtain a prediction score for the segmented text; in response to the prediction score being higher than a preset threshold, the semantic recognition model determines the segmented text as function point data. Among them, the segmented text is obtained by segmenting the requirement document into segments, sentences, or words. The specific steps can refer to the following process, as shown below:

[0087] 1. The cost plug-in inputs the requirement document into the semantic recognition model, and the semantic recognition model converts the segmented text in the requirement document into an embedded vector group.

[0088] The semantic recognition model includes an input embedding layer, an attention layer, and an output classification layer. Optionally, the semantic recognition model converts the segmented text in the requirement document into an embedding vector group through natural language processing. The segmented text is any word, any sentence, or any text in the requirement document. Exemplarily, the requirement document includes a plurality of segmented texts arranged in order, and the embedding vector group includes a plurality of feature vectors arranged in order, and the segmented texts and the feature vectors correspond one to one.

[0089] 2. The semantic recognition model inputs the embedded vector group of the segmented text into the attention layer, and obtains the semantic feature vector of the segmented text based on the attention mechanism.

[0090] The semantic feature vector carries the semantic features of the requirement document. The attention mechanism can help the semantic recognition model assign different weights to the feature vectors in the input embedding vector group, extract more critical and important information in the embedding vector group, and enable the semantic recognition model to make more accurate judgments. For example, there are feature vectors 1, 2, and 3 in the embedding vector group. A weight value of 0.2 is assigned to feature vector 1, a weight value of 0.6 is assigned to feature vector 2, and a weight value of 0.2 is assigned to feature vector 3. The semantic recognition model believes that feature vector 2 includes more important information.

[0091] 3. The semantic recognition model normalizes the semantic recognition vector to obtain the prediction score of the segmented text.

[0092] Optionally, the semantic recognition model uses a softmax function (a normalization function) to normalize the semantic feature vector to obtain a prediction score for the segmented text. For example, assuming there is a semantic feature vector 1, the semantic feature vector 1 is normalized by the softmax function, and the prediction score for the segmented text is 0.75.

[0093] Optionally, after the semantic recognition vector is normalized, the prediction score obtained has a value range. Exemplarily, the prediction score belongs to the interval (0, 1), that is, the value of the prediction score is greater than 0 and less than 1.

[0094] 4. In response to the prediction score of the segmented text being higher than a preset threshold, the semantic recognition model determines the segmented text as function point data.

[0095] Optionally, in response to the prediction score being higher than a preset threshold, the semantic recognition model does not determine the segmented text as function point data. Exemplarily, assuming that the preset threshold is set to 0.75, if the prediction score of segmented text 1 is 0.8, the semantic recognition model determines segmented text 1 as function point data; if the prediction score of segmented text 2 is 0.7, the semantic segmentation model does not determine segmented text 2 as function point data.

[0096] Optionally, the semantic recognition model is trained by:

[0097] 1. Construct a semantic recognition training set, which includes sample requirement documents and real annotations corresponding to the sample requirement documents.

[0098] The semantic recognition training set includes multiple groups of sample demand documents and real annotations corresponding to the multiple groups of sample demand documents.

[0099] The real annotation refers to the real function point data in the sample requirement document, and the function point data can be obtained by manual annotation by technical personnel.

[0100] 2. Input the target requirement document in the sample requirement document into the semantic recognition model and output the predicted annotation of the sample document.

[0101] The target requirement document is any requirement document in the semantic training set. Exemplarily, requirement document 1 in the semantic recognition training set is input into the semantic recognition model as the target requirement document. Optionally, the semantic recognition model performs the following processing on the target requirement document:

[0102] (1) The semantic recognition model converts the sample segmented text in the target requirement document into a sample embedding vector group.

[0103] The sample segmented text is any word, sentence or text in the target requirement document. Exemplarily, the target requirement document includes a plurality of segmented texts arranged in sequence, the sample embedding vector group includes a plurality of feature vectors arranged in sequence, and the segmented texts and feature vectors correspond one to one.

[0104] (2) The semantic recognition model inputs the sample embedding vector group of the sample segmented text into the attention layer, and obtains the sample semantic feature vector of the sample segmented text based on the attention mechanism.

[0105] The sample semantic feature vector carries the semantic features of the target requirement document. The attention mechanism helps the semantic recognition model assign different weights to the feature vectors in the input sample embedding vector group, extract more critical and important information in the sample embedding vector group, and enable the semantic recognition model to make more accurate judgments. For example, there are feature vectors 1, 2, and 3 in the sample embedding vector group. A weight value of 0.2 is assigned to feature vector 1, a weight value of 0.6 is assigned to feature vector 2, and a weight value of 0.2 is assigned to feature vector 3. The semantic recognition model believes that feature vector 2 includes more important information.

[0106] (3) The semantic recognition model normalizes the sample semantic feature vector to obtain the sample prediction score of the sample segmented text.

[0107] Optionally, the semantic recognition model uses a softmax function (a normalization function) to normalize the sample semantic feature vector to obtain a sample prediction score for the sample segmented text.

[0108] (4) In response to the sample prediction score of the sample segmented text being higher than a preset threshold, the semantic recognition model will determine it as the predicted annotation of the sample document.

[0109] Predictive annotation refers to the function point data output by the target requirement document through the semantic recognition model.

[0110] 3. Based on the error between the predicted annotations and the actual annotations, the semantic recognition model is trained.

[0111] Optionally, the semantic recognition model is trained based on the error between the predicted annotation and the actual annotation by an error back propagation algorithm. Optionally, in response to the error between the predicted annotation and the actual annotation reaching convergence, the training of the semantic recognition model is completed.

[0112] Step 403: Based on the semantic recognition result, the suggested function point data is displayed in the plug-in window of the cost plug-in.

[0113] The semantic recognition result includes the name of the function point, the type of the function point, the weight of the function point, and at least one of the scale factor or scale adjustment factor of the function point. The recommended function point data refers to the available function point data recommended by the cost plug-in to the user based on the semantic recognition result. The recommended function point data may have errors compared to the actual function point data.

[0114] Optionally, the function point data obtained through semantic recognition is not necessarily the recommended function point data. Furthermore, the cost plug-in generates recommended function point data based on the frequency of occurrence of the words corresponding to the function point data in the requirement document. Optionally, the function point data with a screening frequency or a screening frequency that reaches a preset threshold is used as the recommended function point data. Exemplarily, the word corresponding to function point data 1 is "modify", and the word corresponding to function point data 2 is "increase". The word "modify" appears 25 times in the requirement document, and the word "increase" appears 2 times in the document. Since the frequency of occurrence of the words corresponding to function point data 2 in the requirement document is lower, function point data 1 is considered to be the recommended function point data.

[0115] Optionally, based on the semantic recognition result and the preset function point data, the suggested function point data is displayed in the plug-in window of the cost plug-in. The preset function point data is the function point preset by the technician. Exemplarily, the semantic recognition result is function point data 1 and function point data 2, wherein function point data 1 is the function point preset by the technician, and function point data 2 is not the function point preset by the technician, then function point data 1 is confirmed as the suggested function point data.

[0116] For example, Figure 5 As shown, after the user starts the semantic recognition function of the cost plug-in, the cost plug-in performs semantic recognition on the entire requirement document, determines the recommended function point data from the requirement document based on the semantic recognition result, and then displays the recommended function point data in the plug-in window of the cost plug-in. Optionally, after the user starts the semantic recognition function of the cost plug-in, the cost plug-in performs semantic recognition on one or more pages of document content currently displayed in the document editor, or the cost plug-in performs semantic recognition on one or more paragraphs of document content currently displayed in the document editor.

[0117] Step 404: In response to the suggested editing operation on the function point data, the edited function point data is added to the cost plug-in.

[0118] Optionally, the editing operation includes but is not limited to at least one of the following situations:

[0119] 1. In response to a confirmation operation on the suggested function point data, the suggested function point data is added to the cost plug-in.

[0120] The confirmation operation is used to add the suggested function point data to the cost plug-in. The confirmation operation can be performed by pressing one or more preset physical buttons to add the suggested function point data to the cost plug-in, or the confirmation operation can be performed by a signal generated by long pressing, clicking, double clicking and / or sliding on a designated area of ​​a touch screen or an external device. Exemplarily, the suggested function point data obtained by the cost plug-in is "query". At this time, the user can click the confirmation control on the user interface to add the "query" as the function point data to the cost plug-in.

[0121] 2. In response to the suggested modification operation on the function point data, the modified function point data is added to the cost plug-in.

[0122] The modification operation is used to add the modified function point data to the cost plug-in. The modification operation may be to press one or more preset physical keys to add the modified function point data to the cost plug-in, or the modification operation may be performed by a signal generated by long pressing, clicking, double clicking and / or sliding on a designated area of ​​a touch screen or an external device. Exemplarily, the recommended function point obtained by the cost plug-in is "member query", "member query" is modified to "query", and "query" is added to the cost plug-in as function point data.

[0123] 3. In response to the suggested adding operation on the function point data, the function point data after the newly added first data is added to the cost plug-in.

[0124] The add operation is used to add new function point data to the cost plug-in. The add operation can be to press one or more preset physical buttons to add new function point data to the cost plug-in, or the add operation can be performed by a signal generated by long pressing, clicking, double clicking and / or sliding on a designated area of ​​a touch screen or an external device. Exemplarily, after the user clicks on the add control through the mouse or touch screen, clicks on the keyboard or touch screen to enter the word "query", and the word "query" is added as function point data to the cost plug-in.

[0125] 4. In response to the suggested deletion operation on the function point data, the function point data after deleting the second data is added to the cost plug-in.

[0126] The delete operation is used to delete existing function point data. The delete operation can be performed by pressing one or more preset physical buttons to delete the existing function point data, or the delete operation can be performed by a signal generated by long pressing, clicking, double clicking and / or sliding on a designated area of ​​a touch screen or an external device. Exemplarily, the word corresponding to the recommended function point data obtained by the cost plug-in is "query". The user deletes the function point data of "query" by clicking the delete control on the user interface. Exemplarily, Figure 5 As shown, after the cost plug-in generates the function point data, the window interface of the cost plug-in displays the suggested function point data. The user first selects the required function point data from the suggested function point data, and then clicks the generate control 501 to generate the function point data shown in FIG. Figure 3 If the user is not satisfied with the function point data generated this time, the user can click the regenerate control 502 to regenerate the function point data.

[0127] On the other hand, the embodiments of the present application also provide a personalized semantic recognition method for users. Since the content of each requirement document is different and the focus of each requirement document is also different, it is necessary to provide a personalized customized semantic recognition model for different requirement documents to generate recommended function point data to improve the accuracy of the generated function point data.

[0128] Exemplarily, the method comprises the following steps:

[0129] 1. In response to an editing operation on the suggested function point data, a retraining sample of the semantic recognition model is generated according to the edited function point data.

[0130] First, when the user uses the semantic recognition model in the embodiment of the present application for the first time, it is difficult to directly determine the personalized needs of the requirement document. Therefore, the recommended function point data will be generated based on the general semantic recognition model, and then the general semantic recognition model will be retrained according to the user's actual editing operations to obtain a customized semantic recognition model.

[0131] Optionally, the editing operation includes at least one of a deletion operation, a confirmation operation, a new addition operation and a modification operation.

[0132] Optionally, the method for adjusting the training samples of the semantic recognition model includes at least one of deleting the training samples, adding new training samples, and modifying the training samples. The method for adjusting the training samples of the semantic recognition model is related to the editing operation. For example, when the editing operation is a deletion operation, the method for adjusting the training samples of the semantic recognition model is to delete the training samples.

[0133] Exemplarily, when the user edits the suggested function point data, if the function point data A is deleted, all training samples related to the function point data A in the training samples of the semantic recognition model are deleted. Exemplarily, when the user edits the suggested function point data, if the function point data A is modified to function point data B, all function point data A in the training samples of the semantic recognition model are modified to function point data B to obtain retraining samples.

[0134] Optionally, in response to the number of times the same editing operation is used to edit the same suggested function point data at different document positions reaching a number threshold, a retraining sample of the semantic recognition model is generated based on the edited function point data. The preset number of times can be set by a technician or a user. Exemplarily, assuming that the number threshold is 2, there are 1000 training samples of the semantic recognition model, and when the user edits the suggested function point data, the function point data A is deleted at both document position 1 and document position 2 of the requirement document. Then, the training samples related to the function point data A in the training samples of the semantic recognition model are deleted to generate a retraining sample.

[0135] 2. Perform secondary training on the semantic recognition model based on the retraining samples to obtain a personalized semantic recognition model.

[0136] The personalized semantic recognition model is a semantic recognition model dedicated to the requirements document. Since the training samples of the semantic recognition model have been adjusted, the model parameters of the obtained personalized semantic recognition model will change. Therefore, the personalized semantic recognition model is related to the requirements document, and different requirements documents correspond to different personalized semantic recognition models.

[0137] Optionally, the semantic recognition model is trained again according to the adjusted training samples through an error back propagation algorithm to obtain a personalized semantic recognition model.

[0138] 3. Call the personalized semantic recognition model to perform semantic recognition on the remaining content of the requirement document to obtain updated semantic recognition results.

[0139] The remaining content of the requirement document refers to the document content after the edited function point data in the requirement document.

[0140] For example, if the user deletes the function point data at point A in the requirement document, the cost plug-in will call the customized semantic recognition model to perform semantic recognition on the document content after point A in the requirement document to obtain an updated semantic recognition result.

[0141] 4. Based on the updated semantic recognition results, the recommended function point data is updated and displayed in the plug-in window of the cost plug-in.

[0142] For example, if the original semantic recognition results are function point data A, function point data B, function point data C, and function point data D, and the customized semantic recognition results are function point data A, function point data B, and function point data C, then function point data D is canceled from display, and function point data A, function point data B, and function point data C are retained from display.

[0143] Step 405: Record the document location of the function point data in the requirement document through the cost plug-in.

[0144] The computer equipment records the document location of the function point data in the requirement document through the cost plug-in.

[0145] Optionally, the cost plug-in encodes the document position of the function point data in the requirement document to obtain a coding sequence, and the coding sequence is used to record the document position of the function point data in the requirement document. Exemplarily, the function point data is on the 4th line of page 7 of the requirement document, and is the 4th to 7th character in this row, then the function point data is encoded to obtain a coding sequence of "7-4-4-7", wherein the first digit indicates that the function point data is on page 7 of the requirement document, the second digit indicates that the function point data is on the 4th line of page 7 of the requirement document, and the third and fourth digits indicate that the function point data is the 4th to 7th character in the 4th line. Optionally, the cost plug-in records the coding sequence in a table.

[0146] Optionally, the cost plug-in generates an identifier at the function point data, which is used to record the document position of the function point data in the requirement document. For example, assuming there are function point data 1 and function point data 2, identifier A is generated for function point data 1, and identifier B is generated for function point data 2.

[0147] Step 406: In response to the tracing operation on the function point data, locate the document position of the function point data in the requirement document in the document editor.

[0148] The traceability operation is used to locate the position of the function data point in the requirement document based on the existing function point data. The traceability operation can be to press one or more preset physical buttons to locate the position of the function data point in the requirement document based on the existing function point data, or the traceability operation can be performed by a signal generated by long pressing, clicking, double-clicking and / or sliding on a designated area of ​​a touch screen or an external device. Exemplarily, assuming that the existing function point data is "modified", the user clicks the traceability control on the user interface, and finds that the function point data "modified" is on the first page and second row of the requirement document, and jumps to display in the requirement document in the document editor.

[0149] Optionally, to help the user understand the specific location of the function point, in response to the tracing operation on the function point data, the document location of the function point data in the requirement document is located in the document editor, and the document location where the function point data is located is highlighted. Optionally, the highlighting method includes at least one of highlighting, bolding, italicizing, and underlining.

[0150] Step 407: Generate a cost report for the software project through the cost plug-in.

[0151] The cost report is obtained by the cost plug-in based on the function point data. The cost report includes at least one of the function point scale, workload, overall cost, and hierarchical relationship. Optionally, the cost report may also include at least one of the development income, client, developer, third party, power point time rate, change cost, bid evaluation benchmark price, and integrity level.

[0152] Optionally, the cost plug-in generates cost result data through a cost model based on the function point data, and the cost result data includes but is not limited to at least one of daily workload data, cost data, and function point data; the cost plug-in generates a cost report based on the cost result data. Optionally, the computer device stores a cost report template; the cost plug-in generates cost result data through a cost model based on the function point data; the cost plug-in fills the function point data into the cost report template to obtain a cost report.

[0153] Optionally, after the cost report of the software project is generated by the cost plug-in, in response to the generation evaluation operation, the evaluation result of the cost report is displayed. Optionally, the evaluation result includes at least one of the evaluation party, evaluation time, and update time. For example, Figure 6 As shown, the user clicks the evaluation control in the document editor to display the evaluation results, which are represented by a list, that is, Figure 6 The evaluation list 601 in the figure shows the evaluator, creation time and update time. The user can click the activation control 602 to activate the evaluation result; the user can also click the new control 603 to generate a new evaluation result.

[0154] To summarize, in this embodiment, the document editor loads the requirement document of the software project, and after adding the function point data in the requirement document to the cost plug-in, the cost plug-in generates a cost report for the above-mentioned software project. Since the cost report is generated by the cost plug-in, the operation and display of the cost plug-in are completed in the document editor. The user only needs to open the document editor to determine whether the cost report matches the content of the requirement document, and there is no need to switch programs back and forth, thereby improving cost efficiency.

[0155] The function point data is determined through an automated method. The entire process does not require much user intervention, and the human-computer interaction efficiency is high. The function of tracing the content of the requirement document from the software engineering cost details is realized, which greatly improves the traceability and credibility of the cost results. It is beneficial for users to self-check and compare the cost details with the content of the requirement document, which greatly improves the cost efficiency and reduces the possibility of miscalculation.

[0156] In the following optional embodiment, the user selects which contents in the requirement document are needed to extract function points, thereby increasing operability and allowing the user to select corresponding requirement document contents according to actual needs to estimate the cost of software engineering.

[0157] Figure 8 A flowchart of a method for electronically generating software cost provided by an exemplary embodiment of the present application is shown.

[0158] This method can be Figure 1 The computer device 120 shown is executed, and the method includes the following steps:

[0159] Step 801: Use a document editor to load a software engineering requirement document.

[0160] The document editor is used to edit the document. Specifically, the user performs an editing operation on the document through the document editor. Optionally, the editing operation includes at least one of a deletion operation, an addition operation, a modification operation, and a transposition operation.

[0161] The requirement document is a document including the requirements of the software project. Optionally, the requirement document includes at least one of the scale, function, UI design, cost, and completion time of the software project.

[0162] The cost plug-in evaluates and predicts the cost of software engineering by calling the cost model. Optionally, the cost model includes at least one of a cost index system, a cost index calculation formula, and a parameter factor.

[0163] Optionally, the cost estimation plug-in runs in a computer device.

[0164] Step 802: In response to the selection operation of the target content in the requirement document, the cost plug-in performs semantic recognition on the target content to obtain a semantic recognition result.

[0165] In an optional implementation, the requirement document is sent to the server through the cost plug-in; the server performs semantic recognition on the requirement document to obtain a semantic recognition result; and the server sends the semantic recognition result to the cost plug-in. Optionally, semantic recognition is performed on a selected portion of the requirement document through the cost plug-in to obtain a semantic recognition result. Optionally, the feature vector corresponding to the requirement document is extracted through the cost plug-in; the semantic recognition result is determined based on the feature vector. The semantic recognition result includes at least one of the name of the function point, the type of the function point, and the weight of the function point. Optionally, the semantic recognition result also includes a scale factor or a scale adjustment factor of the function point. Optionally, semantic recognition is performed through a semantic recognition model.

[0166] Step 803: Add the semantic recognition result as function point data to the cost plug-in.

[0167] Optionally, based on the semantic recognition result, the target content is added as function point data to the cost plug-in through the cost plug-in. Optionally, in response to the semantic recognition result meeting a preset condition, the target content is added as function point data to the cost plug-in. The preset condition can be set by the technician.

[0168] Step 804: Record the document location of the function point data in the requirement document through the cost plug-in.

[0169] The computer device records the document location of the function point data in the requirement document through the cost plug-in.

[0170] Optionally, the cost plug-in encodes the document position of the function point data in the requirement document to obtain a coding sequence, which is used to record the document position of the function point data in the requirement document. Optionally, the cost plug-in generates an identifier at the function point data, which is used to record the document position of the function point data in the requirement document.

[0171] Step 805: In response to the tracing operation on the function point data, locate the document position of the function point data in the requirement document in the document editor.

[0172] The traceability operation is used to locate the position of the function data point in the requirement document based on the existing function point data. The traceability operation can be to press one or more preset physical buttons to locate the position of the function data point in the requirement document based on the existing function point data, or the traceability operation can be performed by a signal generated by long pressing, clicking, double-clicking and / or sliding on a designated area of ​​a touch screen or an external device. Exemplarily, assuming that the existing function point data is "modified", the user clicks the traceability control on the user interface and finds that the function point data "modified" is on the second row of page 1 of the requirement document.

[0173] To facilitate users to query the location of function point data in the requirement document. Optionally, in response to the tracing operation on the function point data, the document location of the function point data in the requirement document is located in the document editor, and the document location of the function point data is highlighted. Optionally, the highlighting method includes at least one of highlighting, bolding, italicizing, and underlining.

[0174] Optionally, the cost plug-in encodes the document position of the function point data in the requirement document to obtain a coding sequence, which is used to record the document position of the function point data in the requirement document. Optionally, the cost plug-in generates an identifier at the function point data, which is used to record the document position of the function point data in the requirement document.

[0175] Step 806: Generate a cost report for the software project through the cost plug-in.

[0176] The cost report is obtained by the cost plug-in based on the function point data. The cost report includes at least one of the function point scale, workload, overall cost, and hierarchical relationship. Optionally, the cost report may also include at least one of the development income, client, developer, third party, power point time rate, change cost, bid evaluation benchmark price, and integrity level.

[0177] To summarize, in this embodiment, the document editor loads the requirement document of the software project, and after adding the function point data in the requirement document to the cost plug-in, the cost plug-in generates a cost report for the above-mentioned software project. Since the cost report is generated by the cost plug-in, the operation and display of the cost plug-in are completed in the document editor. The user only needs to open the document editor to determine whether the cost report matches the content of the requirement document, and there is no need to switch programs back and forth, thereby improving cost efficiency.

[0178] Furthermore, users can choose which contents in the requirements document are needed to extract function points, which increases operability and enables users to select corresponding requirements document contents according to actual needs to estimate the cost of software engineering.

[0179] In the following embodiment, the cost plug-in in the computer device and the server jointly complete the electronic generation method of the software cost, which not only expands the function of the document editor but also reduces the computing pressure of the server.

[0180] Fig. 9 A flowchart of a method for electronically generating software cost provided by an exemplary embodiment of the present application is shown.

[0181] This method can be Figure 1 The computer system 100 shown in the figure executes the method, which includes the following steps:

[0182] Step 901: Build a cost model for the server.

[0183] The cost model includes at least one of a cost index system, a cost index calculation formula and a parameter factor. The cost index system is a complete system for making an overall judgment on the cost of software engineering. Optionally, the cost index system is related to at least one factor of regional development, labor cost, and software development cost specification; the cost index calculation formula is used to calculate various indicators in software engineering, such as workload, cost, etc.; the parameter factor represents the basic parameters in the cost model.

[0184] Optionally, the server downloads the cost model from the Internet, or a technician manually constructs the cost model.

[0185] Step 902: The computer device uses a document editor to load a software engineering requirement document.

[0186] The document editor is used to edit the document. Specifically, the user performs an editing operation on the document through the document editor. Optionally, the editing operation includes at least one of a deletion operation, an addition operation, a modification operation, and a transposition operation.

[0187] The requirement document is a document including the requirements of the software project. Optionally, the requirement document includes at least one of the scale, function, UI design, cost, and completion time of the software project.

[0188] The cost plug-in evaluates and predicts the cost of software engineering by calling the cost model. Optionally, the cost model includes at least one of a cost index system, a cost index calculation formula, and a parameter factor.

[0189] Optionally, the cost estimation plug-in runs in a computer device.

[0190] Step 903: The computer device sends a request for an associated cost model to the server through the cost plug-in.

[0191] The associated cost model request is used to request the server to send the candidate function point data stored in the server. The candidate function point data is determined by the server based on the historical function point data. For example, at a certain historical moment, the cost model determines that word A is function point data, and then word A is stored as function point data.

[0192] Step 904: The server returns candidate function point data to the computer device according to the associated cost model request.

[0193] The candidate function point data is stored in the server. The candidate function point data is stored based on the historical function point data. For example, at a certain historical moment, the user uses a document editor to load the software engineering requirement document and determines function point data 1 and function point data 2 from the requirement document. At this time, function point data 1 and function point data 2 are saved in the server as candidate function point data.

[0194] It should be noted that the candidate function point data means that when a word corresponding to the candidate function point data appears in the requirement document, the word may belong to the function point data of the requirement document. For example, if the candidate function point data is the word "add", when the word "add" appears in the requirement document, it means that the "add" here is very likely to be the function point data of the requirement document.

[0195] Step 905: Determine the function point data based on the candidate function point data and the selection operation on the target content in the requirement document.

[0196] Optionally, the selection operation is used to select target content from the requirement document, and the target content is any text content in the requirement document. The selection operation may be pressing one or more preset physical keys to determine the target content from the requirement document, or the selection operation may be performed by a signal generated by long pressing, clicking, double clicking and / or sliding on a designated area of ​​a touch screen or an external device.

[0197] In an optional implementation, the cost plug-in is used to compare whether there are words corresponding to the candidate function point data in the target content. If there are words corresponding to the candidate function point data in the target content, the words corresponding to the candidate function point data are determined as the function point data. For example, if the candidate function point data is the word "deletion", and the word "deletion" appears in the target content, the word "deletion" appearing in the target content is used as the function point data of the requirement document.

[0198] Optionally, semantic recognition is performed on the requirement document through a cost plug-in to obtain a semantic recognition result; based on the semantic recognition result, the suggested function point data is displayed in the plug-in window of the cost plug-in; in response to an edit operation on the suggested function point data, the edited function point data is determined as the function point data. Furthermore, semantic recognition is performed through a semantic recognition model. Exemplarily, the requirement document is input into a semantic recognition model, and a feature vector corresponding to the requirement document is output; based on the feature vector, a semantic recognition result is determined. Among them, the method for determining the semantic recognition result can be to query the feature vector-function point data correspondence, or to restore the feature vector to the word corresponding to the function point data through a decoder, and this application does not make specific limitations on this.

[0199] To facilitate users to query the location of function point data in the requirement document. Optionally, in response to the traceability operation for the function point data, the document location of the function point data in the requirement document is located in the document editor. The traceability operation is used to locate the position of the function data point in the requirement document based on the existing function point data. The traceability operation can be pressing one or more preset physical buttons to locate the position of the function data point in the requirement document based on the existing function point data, or the traceability operation can be performed by a signal generated by long pressing, clicking, double-clicking and / or sliding on a designated area of ​​a touch screen or an external device to perform the traceability operation. Exemplarily, assuming that the existing function point data is "modified", the user clicks the traceability control on the user interface and finds that the function point data "modified" is in the second row of page 1 of the requirement document.

[0200] Optionally, the cost plug-in encodes the document position of the function point data in the requirement document to obtain a coding sequence, and the coding sequence is used to record the document position of the function point data in the requirement document. Exemplarily, the function point data is on the 4th line of page 7 of the requirement document, which is the 4th to the 7th character in this row, then the function point data is encoded to obtain a coding sequence of "7-4-4-7", wherein the first digit indicates the page number of the function point data in the requirement document, the second digit indicates the line number of the function point data in the requirement document, and the third and fourth digits indicate the specific position of the function point data in the current line number. Optionally, the cost plug-in generates an identifier at the function point data, and the identifier is used to record the document position of the function point data in the requirement document.

[0201] Optionally, in response to the tracing operation for the function point data, the document position of the function point data in the requirement document is located in the document editor, and the document position where the function point data is located is highlighted. Optionally, the highlighting method includes but is not limited to at least one of highlighting, bolding, italics, and underlining.

[0202] Step 906: The computer device adds the function point data in the requirement document to the cost plug-in.

[0203] In the actual operation process, different users will provide different requirement documents. Based on the individual differences between different users, different function point data need to be provided. Optionally, in response to the selection operation of the target content in the requirement document, the target content is added to the cost plug-in as function point data. The selection operation is used to determine the target content from the requirement document. The selection operation can be performed by a signal generated by long pressing, clicking, double clicking and / or sliding on a designated area of ​​a touch screen or an external device.

[0204] Step 907: The computer device sends the function point data to the server through the cost plug-in.

[0205] Step 908: The server generates a cost report based on the function point data and the cost model.

[0206] Optionally, the cost report includes at least one of the function point scale, workload, overall cost, hierarchical relationship, and working time. Figure 3 As shown, the cost details 303 show the words "Scale: 8 function points" to indicate the scale of function points. The cost details 303 also show the words "Unadjusted workload: 8.59 man-days" and "Adjusted workload: 10.31 man-days", both of which indicate workload, where the former indicates the workload before optimization and the latter indicates the workload after optimization. The cost details 303 also show the words "Overall cost: 13,700 yuan" to indicate the overall cost, indicating that the development of software engineering according to the requirements document will cost 13,700 yuan.

[0207] Optionally, the server generates cost result data based on the function point data through a cost model, and the cost result data includes but is not limited to at least one of daily workload data, cost data, and function point data; the server generates a cost report based on the cost result data.

[0208] Optionally, the server stores a cost report template; the server generates cost result data through a cost model according to the function point data; the server fills the function point data into the cost report template to obtain a cost report.

[0209] Step 909: The computer device receives the cost report sent by the server through the cost plug-in.

[0210] Step 910: The computer device displays the cost report through the document editor.

[0211] The cost report is obtained by the cost plug-in based on the function point data. The cost report includes at least one of the function point scale, workload, overall cost, and hierarchical relationship.

[0212] Optionally, the cost report may further include at least one of development income, client, developer, third party, power point time rate, change cost, bid evaluation benchmark price, and integrity level. Optionally, the cost report is displayed in a plug-in window of the cost plug-in. Optionally, the cost report is displayed in a new window of the document editor.

[0213] To summarize, the document editor loads the requirement document of the software project, and after adding the function point data in the requirement document to the cost plug-in, the cost plug-in generates a cost report for the above software project. Since the cost report is generated by the cost plug-in, the requirement document and cost calculation are implemented in the same document interface, and the operation and display of the cost plug-in are completed in the document editor. The user only needs to open the document editor to determine whether the cost report matches the content of the requirement document, and there is no need to switch programs back and forth, thereby improving cost efficiency.

[0214] It also realizes the function of tracing the content of the requirement document from the software engineering cost details, which greatly improves the traceability and credibility of the cost results, facilitates users to check and compare the cost details with the content of the requirement document, improves cost efficiency, reduces the possibility of miscalculation, expands the function of the document editor, and reduces the computing pressure of the server.

[0215] The following is an embodiment of the device of the present application. For details not described in detail in the embodiment of the device, reference can be made to the corresponding records in the above method embodiment, and they will not be repeated herein.

[0216] Fig.10 The schematic diagram of the structure of the electronic generation device of software cost provided by an exemplary embodiment of the present application is shown. The device can be implemented as all or part of a computer device through software, hardware or a combination of both. The device 1000 includes:

[0217] An interactive module 1001 is used to load the software engineering requirement document using a document editor, wherein the document editor runs a cost plug-in;

[0218] The interaction module 1001 is further used to add the function point data in the requirement document to the cost plug-in, wherein the function point data is data related to the function point in the software engineering;

[0219] The generation module 1002 is used to generate a cost report of the software project through the cost plug-in. The cost report is obtained by the cost plug-in based on the function point data. The cost report and the requirement document are displayed in the document editor at the same time.

[0220] The display module 1003 is used to display the requirement document and the cost report side by side in the document editor.

[0221] In an optional design of the present application, the interaction module 1001 is further used to respond to a selection operation on the target content in the requirement document and add the target content as the function point data to the cost plug-in.

[0222] In an optional design of the present application, the interaction module 1001 is also used to respond to a selection operation on the target content in the requirement document, perform semantic recognition on the target content through the cost plug-in, and obtain a semantic recognition result; and add the semantic recognition result as the function point data to the cost plug-in.

[0223] In an optional design of the present application, the interaction module 1001 is also used to call the semantic recognition model through the cost plug-in to perform semantic recognition on the requirement document to obtain a semantic recognition result; based on the semantic recognition result, the suggested function point data is displayed in the plug-in window of the cost plug-in; in response to an editing operation on the suggested function point data, the edited function point data is added to the cost plug-in.

[0224] In an optional design of the present application, the interaction module 1001 is also used to respond to a confirmation operation on the suggested function point data, add the suggested function point data to the cost plug-in; respond to a modification operation on the suggested function point data, add the modified function point data to the cost plug-in; respond to a new operation on the suggested function point data, add the function point data after the first data is added to the cost plug-in; respond to a deletion operation on the suggested function point data, add the function point data after the second data is deleted to the cost plug-in.

[0225] In an optional design of the present application, the interaction module 1001 is also used to respond to the editing operation on the recommended function point data, generate a retraining sample of the semantic recognition model according to the edited function point data; perform a secondary training on the semantic recognition model according to the retraining sample to obtain a personalized semantic recognition model, and the personalized semantic recognition model is a semantic recognition model dedicated to the requirement document; call the personalized semantic recognition model to perform semantic recognition on the remaining content of the requirement document to obtain an updated semantic recognition result; the display module 1003 is also used to update and display the recommended function point data in the plug-in window of the cost plug-in based on the updated semantic recognition result.

[0226] In an optional design of the present application, the interaction module 1001 is also used to generate the retraining sample of the semantic recognition model based on the edited function point data in response to the number of times the same editing operation is used to edit the same recommended function point data at different document locations reaching a number threshold.

[0227] In an optional design of the present application, the semantic recognition result includes at least one of the following: the name of the function point; the type of the function point; the weight of the function point; the scale factor or scale adjustment factor of the function point.

[0228] In an optional design of the present application, the interaction module 1001 is also used to record the document position of the function point data in the requirement document through the cost plug-in; and in response to a tracing operation on the function point data, locate the document position of the function point data in the requirement document in the document editor.

[0229] In an optional design of the present application, the interaction module 1001 is also used to automatically run the cost plug-in after the document editor is started; or, after the document editor is started, run the cost plug-in in response to the plug-in running operation.

[0230] To summarize, the document editor loads the requirement document of the software project, and after adding the function point data in the requirement document to the cost plug-in, the cost plug-in generates a cost report for the above software project. Since the cost report is generated by the cost plug-in, the requirement document and cost calculation are implemented in the same document interface. Users can perform cost calculation while reading the requirement document, thereby improving cost efficiency.

[0231] Fig.11 The schematic diagram of the structure of the electronic software cost generation device provided by an exemplary embodiment of the present application is shown. The device is based on a computer device 112 and a server 114.

[0232] In an illustrative example, a document editor 1121 is running in the computer device 112, and a cost plug-in 1122 is running in the document editor 1121. The cost plug-in 1122 includes a cost front-end interaction module 1123, a cost detail display module 1124, a cost report generation and export module 1125, and a front-end local storage module 1126. The cost plug-in 1122 is a plug-in of the document editor 1121.

[0233] The cost front-end interaction module 1123 is used to associate the cost model in the server 114, and can obtain function point data from the demand document in the document editor 1121, and send the function point data to the cost detail display module 1124. The cost front-end interaction module 1123 is also used to send the function point data to the front-end local storage module 11126 for storage. The cost front-end interaction module 1123 is also used to send the function point data and data related to the function point data to the server 114 for storage.

[0234] The cost detail display module 1124 is used to display function point data and cost reports. The content of the displayed function point data includes but is not limited to at least one of the function point name, function point type, and function point number.

[0235] The cost report generation and export module 1125 is used to call the cost model in the server 114 to generate a cost report and store it in the server. The cost report generation and export module 1125 is also used to export the generated cost report file from the server 114 and call the cost front-end interaction module 1123 to drive the document editor 1121 to open the cost report.

[0236] The front-end local storage module 1126 is used to store the function point data in the computer device 112. The document editor 1121 is used to provide a window for the user to edit the document and drive the display of the computer device 112 to display the document content.

[0237] In an illustrative example, the server 114 includes a cost model acquisition module 1141 , a cost summary calculation module 1142 , a cost report management module 1143 and a background server storage module 1144 .

[0238] Among them, the cost model acquisition module 1141 is used to build the above-mentioned cost model 1145 by defining the index system, cost index calculation formula and parameter factors required for cost summary calculation in the cost model. The cost index system is used to make an overall judgment on the cost of software engineering according to different standards. In the actual operation process, different regions or countries may use different standards to estimate the cost of software engineering. For example, cost index system 1 is used to estimate the cost of software engineering in region A, and cost index system 2 is used to estimate the cost of software engineering in region B. The cost index calculation formula is also used to calculate various indicators in software engineering, such as workload, cost, etc. The parameter factors represent the basic parameters in the cost model 1145. The cost model acquisition module 1141 is also used to set the specific data of the parameter factors involved in the cost summary calculation. The cost model acquisition module 1141 is also used to call the background server storage module 1144 to save the cost model data in the server.

[0239] The cost summary calculation module 1142 is used to call the cost model stored in the server to perform cost summary calculation. The data involved in the cost summary calculation includes parameter factor data and function point data in the cost model. The cost summary calculation module 1142 is also used to send the cost result data to the background server storage module for storage.

[0240] The cost report management module 1143 is used to generate a cost report file based on the cost result data and function point data stored in the server. The cost report management module 1143 is also used to send the cost report file to the backend server storage module 1144 to be stored in the server 114. The cost report management module 1143 is also used to extract the generated cost report from the server 114 and return it to the computer device 112.

[0241] The backend server storage module 1144 is used to store the function point data from the computer device 112 and the cost model data, cost summary calculation result data and cost report from the server 114 .

[0242] Fig.12 1 is a schematic diagram of the structure of a computer device provided by an embodiment of the present application. Specifically, the computer device 1200 includes a central processing unit (CPU) 1201, a system memory 1204 including a random access memory (RAM) 1202 and a read-only memory (ROM) 1203, and a system bus 1205 connecting the system memory 1204 and the central processing unit 1201. The computer device 1200 also includes a basic input / output system (I / O system) 1206 that helps transmit information between various devices in the computer, and a large-capacity storage device 1207 for storing an operating system 1213, application programs 1214 and other program modules 1215.

[0243] The basic input / output system 1206 includes a display 1208 for displaying information and an input device 1209 such as a mouse and a keyboard for user inputting information. The display 1208 and the input device 1209 are connected to the central processing unit 1201 through an input / output controller 1211 connected to the system bus 1205. The basic input / output system 1206 may also include an input / output controller 1210 for receiving and processing inputs from a plurality of other devices such as a keyboard, a mouse, or an electronic stylus. Similarly, the input / output controller 1210 also provides output to a display screen, a printer, or other types of output devices.

[0244] The mass storage device 1207 is connected to the central processing unit 1201 through a mass storage controller (not shown) connected to the system bus 1205. The mass storage device 1207 and its associated computer readable medium provide non-volatile storage for the computer device 1200. That is, the mass storage device 1207 may include a computer readable medium (not shown) such as a hard disk or a read-only optical disk (English: Compact Disc Read-Only Memory, referred to as: CD-ROM) drive.

[0245] Without loss of generality, computer-readable media may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), flash memory or other solid-state storage technologies, CD-ROM, Digital Versatile Disc (DVD) or other optical storage, cassettes, tapes, disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that computer storage media are not limited to the above. The above-mentioned system memory 1204 and mass storage device 1207 may be collectively referred to as memory.

[0246] According to various embodiments of the present application, the computer device 1200 can also be connected to a remote computer on the network through a network such as the Internet. That is, the computer device 1200 can be connected to the network 1212 through the network interface unit 1211 connected to the system bus 1205, or the network interface unit 1211 can be used to connect to other types of networks or remote computer systems (not shown).

[0247] The present application also provides a computer-readable storage medium, in which at least one instruction, at least one program, a code set or an instruction set is stored. The at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the method for electronically generating software cost provided in the above method embodiment.

[0248] Optionally, the present application also provides a computer program product, the computer program product includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the electronic generation method of software cost provided by the above aspect.

[0249] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0250] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0251] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for electronically generating software cost, characterized in that: The method comprises: Load the software engineering requirement document using a document editor, wherein the document editor runs a cost plug-in; The demand document is input into a semantic recognition model through the cost plug-in, and the semantic recognition model converts the segmented text in the demand document into an embedded vector group; The semantic recognition model inputs the embedding vector group of the segmented text into the attention layer, and obtains the semantic feature vector of the segmented text based on the attention mechanism; The semantic recognition model normalizes the semantic feature vector to obtain a prediction score for the segmented text; In response to the prediction score of the segmented text being higher than a prediction threshold, the semantic recognition model determines the segmented text as function point data; Generate suggested function point data according to the frequency of occurrence of words corresponding to the function point data in the requirement document, wherein the suggested function point data is function point data whose frequency of occurrence reaches a preset threshold; Displaying the suggested function point data in a plug-in window of the cost plug-in; In response to the number of times that the same editing operation is used to edit the same recommended function point data at different document positions reaches a number threshold, a retraining sample of the semantic recognition model is generated according to the edited function point data, wherein the editing operation includes a deletion operation and / or a modification operation; in the case where the editing operation is a deletion operation for first function point data, the retraining sample includes a training sample obtained by deleting a training sample related to the first function point data; in the case where the editing operation is a modification operation for modifying second function point data into third function point data, the retraining sample includes a training sample obtained by modifying a training sample related to the second function point data into a training sample related to the third function point data; Performing secondary training on the semantic recognition model according to the retraining sample to obtain a personalized semantic recognition model, wherein the personalized semantic recognition model is a semantic recognition model dedicated to the demand document, and different demand documents correspond to different personalized semantic recognition models; Calling the personalized semantic recognition model to perform semantic recognition on the remaining content of the demand document to obtain an updated semantic recognition result; Based on the updated semantic recognition result, updating and displaying the suggested function point data in the plug-in window of the cost plug-in; In response to an edit operation on the suggested function point data, adding the edited function point data to the cost plug-in, the function point data being data related to the function point in the software project; Generating a cost report of the software project through the cost plug-in, wherein the cost report is obtained by the cost plug-in based on the function point data; The requirement document and the cost report are displayed side by side in the document editor.

2. The method according to claim 1, characterized in that The method further comprises: In response to a selection operation on target content in the requirement document, the target content is added to the cost plug-in as the function point data.

3. The method according to claim 2, characterized in that In response to the selection operation of the target content in the requirement document, adding the target content as the function point data to the cost plug-in includes: In response to a selection operation on target content in the demand document, the cost plug-in performs semantic recognition on the target content to obtain a semantic recognition result; Based on the semantic recognition result, the content in the target content that meets the characteristics of the function point data is added to the cost plug-in as the function point data.

4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Recording the document location of the function point data in the requirement document through the cost plug-in; In response to a tracing operation on the function point data, the document position of the function point data in the requirement document is located in the document editor.

5. A device for electronically generating software cost, characterized in that: The device comprises: An interactive module, using a document editor to load the software engineering requirement document, wherein the document editor runs a cost plug-in; The interaction module is further used to input the demand document into the semantic recognition model through the cost plug-in, and the semantic recognition model converts the segmented text in the demand document into an embedded vector group; The semantic recognition model inputs the embedding vector group of the segmented text into the attention layer, and obtains the semantic feature vector of the segmented text based on the attention mechanism; The semantic recognition model normalizes the semantic feature vector to obtain a prediction score for the segmented text; The interaction module is further configured to, in response to the prediction score of the segmented text being higher than a prediction threshold, determine the segmented text as function point data by the semantic recognition model; The interaction module is further configured to generate suggested function point data according to the frequency of occurrence of words corresponding to the function point data in the requirement document, wherein the suggested function point data is function point data whose frequency of occurrence reaches a preset threshold; The interactive module is further used to display the suggested function point data in the plug-in window of the cost plug-in; The interaction module is further configured to generate a retraining sample of the semantic recognition model according to the edited function point data in response to the number of times the same editing operation is used to edit the same recommended function point data at different document positions reaching a number threshold, wherein the editing operation includes a deletion operation and / or a modification operation; in a case where the editing operation is a deletion operation for first function point data, the retraining sample includes a training sample obtained by deleting a training sample related to the first function point data from the retraining sample; in a case where the editing operation is a modification operation for modifying second function point data into third function point data, the retraining sample includes a training sample obtained by modifying a training sample related to the second function point data into a training sample related to the third function point data; The interaction module is further used to perform secondary training on the semantic recognition model according to the retraining sample to obtain a personalized semantic recognition model, wherein the personalized semantic recognition model is a semantic recognition model dedicated to the demand document, and different demand documents correspond to different personalized semantic recognition models; The interaction module is further used to call the personalized semantic recognition model to perform semantic recognition on the remaining content of the demand document to obtain an updated semantic recognition result; The interaction module is further used to update and display the suggested function point data in the plug-in window of the cost plug-in based on the updated semantic recognition result; The interaction module is further configured to respond to an edit operation on the suggested function point data and add the edited function point data to the cost plug-in, wherein the function point data is data related to the function point in the software project; A generating module, used for generating a cost report of the software project through the cost plug-in, wherein the cost report is obtained by the cost plug-in based on the function point data; A display module is used to display the requirement document and the cost report side by side in the document editor.

6. A computer device, characterized in that: The device comprises: a processor and a memory, wherein the memory stores a computer program, and the computer program is loaded and executed by the processor to implement the electronic generation method of software cost as claimed in any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is loaded and executed by a processor to implement the electronic generation method of software cost as described in any one of claims 1 to 4.