Project report writing method, device, equipment, medium and product
By building a database that matches project numbers and a sub-database that matches cursor position, combining user input content, determining and outputting prompt data, the problems of omissions and inefficiency in traditional project report writing are solved, and more efficient and accurate report preparation is achieved.
Patent Information
- Application Number
- CN202510668828.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-23
- Publication Date
- 2025-06-20
- Estimated Expiration
- 2045-05-23
AI Technical Summary
In engineering construction project management, during the traditional project report writing process, engineers need to repeatedly review multiple file systems, resulting in the easy omission or misreference of key information, which reduces work efficiency.
By building a first database, all project files matching it are integrated according to the project number of the project report; then a second database is constructed according to the cursor position to match the project title of the target project file; finally, based on the user input content, the prompt data is determined and output from the second database.
It improves the accuracy and completeness of project reports, improves the efficiency of project reports, reduces the risk of information omissions, and improves the efficiency of information retrieval.
Smart Images

Figure CN120179700A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of data processing, and in particular, to a method, device, equipment, medium and product for writing a project report. Background Art
[0002] In the management of engineering construction projects, the compilation of project reports is an important task for project engineers. In the traditional report writing process, engineers need to repeatedly consult various technical documents, meeting minutes, contract terms and other documents associated with the project number, and integrate the relevant content into the report document by means of manual retrieval, copying and pasting.
[0003] However, in practice, it is found that this working mode has significant defects. Engineers need to conduct cross-document retrieval in multiple file systems at the same time, which is extremely easy to cause omission or misreference of key information, resulting in the inaccuracy and incompleteness of the compiled project report. Moreover, the operation mode of frequently switching different document windows seriously reduces the work efficiency of engineers. Summary of the Invention
[0004] The purpose of this application is to provide a method, device, equipment, medium and product for writing a project report, which can improve the accuracy and integrity of the project report, and can also improve the efficiency of compiling the project report.
[0005] To achieve the above purpose, this application provides the following solutions: In the first aspect, this application provides a method for writing a project report, including: Construct a first database according to the project number of the project report; wherein, all project files matching the project number are included in the first database; Construct a second database from the first database according to the cursor position in the project report; wherein, the project title of the target project file in the second database is the same as the page title of the page where the cursor position is located in the project report; Determine a plurality of prompt data from the second database according to the input content obtained from the user input, and output the prompt data.
[0006] Optionally, the determining a plurality of prompt data from the second database according to the input content obtained from the user input, and outputting the prompt data specifically includes: Obtain the input content input by the user; Determine a plurality of prompt data matching the input content from the second database; Determine the target line number of the project title in the target project file, and determine the current line numbers of each prompt data in the target project file; Determine the line number difference between the current line number of each prompt data and the target line number; Sort each prompt data based on the line number differences from small to large to obtain the first order of each prompt data; Output each prompt data based on the first order.
[0007] Optionally, after obtaining the first order of each prompt data, the project report writing method further includes: Obtain the current prompt data at the first position in the first order; Determine the first selection times and the second selection times of the current prompt data being selected within the first preset time period and the second preset time period; wherein, the first preset time period is less than the second preset time period; If the first selection times is greater than or equal to the preset times and the second selection times is not 0, then move the position of the current prompt data forward by a preset number of digits in the first order to obtain the current ranking of the current prompt data; If the current ranking is not the first position, then obtain the updated first order; and determine whether the current prompt data is the last one in the first order; If the current ranking is the first position, then adjust the current ranking of the current prompt data to the second position to obtain the updated first order; and determine whether the current prompt data is the last one in the first order; If the first selection times is less than the preset times or the second selection times is 0, then determine whether the current prompt data is the last one in the first order; If the current prompt data is not the last one in the first order, then determine the next prompt data of the current prompt data in the first order as the current prompt data, and execute the step of determining the first selection times and the second selection times of the current prompt data being selected within the first preset time period and the second preset time period; If the current prompt data is the last one in the first order, then determine the first order as the second order, and output each prompt data based on the second order.
[0008] Optionally, after obtaining the first order of each prompt data, the project report writing method further includes: Obtain the current prompt data at the first position in the first order; Determine the third selection times and the fourth selection times of the current prompt data being selected within the first preset time period and the second preset time period; wherein, the first preset time period is less than the second preset time period; If the number of third selections is greater than or equal to a preset number and the number of fourth selections is not 0, then reduce the line number difference of the current prompt data in the first order by a preset value to obtain the current ranking of the current prompt data. If the current ranking is not the first place, then obtain an updated first order; and determine whether the current prompt data is the last one in the first order. If the current ranking is the first place, then adjust the current ranking of the current prompt data to the second place to obtain an updated first order; and determine whether the current prompt data is the last one in the first order. If the number of third selections is less than the preset number or the number of fourth selections is 0, then determine whether the current prompt data is the last one in the first order. If the current prompt data is not the last one in the first order, then determine the next prompt data of the current prompt data in the first order as the current prompt data, and execute the step of determining the number of first selections and the number of second selections of the current prompt data selected within the first preset time period and the second preset time period. If the current prompt data is the last one in the first order, then determine the first order as the second order, and output each prompt data based on the second order.
[0009] Optionally, if there are multiple target prompt data with the same line number difference in the first order of each prompt data, the project report writing method further includes: Determine the classification labels of each target prompt data. Sort each target prompt data according to the preset order of the classification labels to obtain the label order of each target prompt data. Sort each prompt data based on the label order of each target prompt data and the line number difference from small to large to obtain the third order of each prompt data.
[0010] Optionally, after outputting the prompt data, the project report writing method further includes: Determine the selected prompt data of the user from the prompt data. Determine the context statement of the selected prompt data from the target project file. Determine the context statement as the context association word of the selected prompt data. Output the context association word.
[0011] In a second aspect, the present application provides a project report writing device, including: The first construction unit is used to construct a first database according to the project number of the project report; wherein, all project files matching the project number are included in the first database; The second construction unit is used to construct a second database from the first database according to the cursor position in the project report; wherein, the project title of the target project file in the second database is the same as the page title of the page where the cursor position is located in the project report; The output unit is used to determine a plurality of prompt data from the second database according to the input content obtained from the user input, and output the prompt data.
[0012] In a third aspect, the present application provides a computer device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor executes the computer program to implement the steps of the project report writing method described in any one of the above.
[0013] In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the project report writing method described in any one of the above are implemented.
[0014] In a fifth aspect, the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the project report writing method described in any one of the above are implemented.
[0015] In a sixth aspect, the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, the processor is used to run a program or an instruction, and when the processor executes the program or the instruction, the steps of the project report writing method described in any one of the above are implemented.
[0016] According to the specific embodiments provided by the present application, the following technical effects are disclosed in the present application: The present application provides a project report writing method, device, equipment, medium and product. By constructing a first database, all project files matching the project number of the project report can be added to the first database; and the target project file corresponding to the cursor position can be added to the second database from the first database, so that the target project file in the second database matches the page title of the page where the cursor position is located; furthermore, the prompt data most matching the input content input by the user can be determined from the second database, and by outputting the prompt data to the user, the user can quickly input the content that needs to be compiled, which can improve the efficiency of project report compilation while also improving the accuracy and integrity of the project report. Description of the Drawings
[0017] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the accompanying drawings required for use in the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can be obtained based on these drawings.
[0018] Figure 1 A flowchart diagram of a method for writing a project report provided by an embodiment of the present application; Figure 2 A schematic diagram of an input method interface provided by an embodiment of the present application; Figure 3 A schematic diagram of the functional modules of a device for writing a project report provided by an embodiment of the present application; Figure 4 A schematic diagram of the structure of a computer device provided by an embodiment of the present application. Detailed implementation manners
[0019] The following will clearly and completely describe the technical solutions in the embodiments of the present application in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, rather than all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present application.
[0020] To make the above objects, features, and advantages of the present application more obvious and understandable, the present application will be further described in detail below in conjunction with the accompanying drawings and specific implementation manners.
[0021] In an exemplary embodiment, as Figure 1 shown, a method for writing a project report is provided. This method is executed by a computer device, and specifically, it can be executed independently by a computer device such as a terminal or a server, or jointly executed by a terminal and a server. In the embodiments of the present application, the following steps 101 to 103 may be included. Among them: Step 101, construct a first database according to the project number of the project report.
[0022] In the embodiments of the present application, the first database contains all project files that match the project number. The project file can be a file with the project number in the title, or a file with this project number in the folder. In this regard, the embodiments of the present application do not make limitations.
[0023] In the embodiments of the present application, the first database may include data in the form of fields and / or sentence segments, and the first database mainly contains data in the form of sentence segments. The first database is pre-stored.
[0024] For example, the first database may include the fields: pressure reducing valve; The first database may also include a sentence: The pitting temperature of the inner surface of the pressure reducing valve should be ≥25°C.
[0025] Furthermore, the first database can also replace all synonyms in all sentences and fields with the same word, and the specific replacement word can be determined according to the content input later; For example, the input method inputs pressure reducing valve, and synonyms of pressure reducing valve may be pressure reducer, pressure regulating valve, etc. In the first database, all synonyms of pressure reducing valve, pressure regulating valve, etc. may be replaced with pressure reducing valve.
[0026] In addition, the first database may also store project names, chapter names, etc. where the fields or segments are located.
[0027] Step 102: construct a second database from the first database according to the cursor position in the project report.
[0028] In the embodiment of the present application, the project title of the target project file in the second database is the same as the page title of the page where the cursor is located in the project report.
[0029] In the embodiment of the present application, the cursor is a mark used to indicate the input position in the computer interface or document when the user is writing a project report. For example, the flashing cursor in Word. When the user is inputting, the font will appear at the cursor position. The present invention uses this position as a data screening method to facilitate matching a more suitable algorithm so as to input more matching data. The cursor position in the project report can be the position where the cursor currently stays in the project report. The project report can contain the content of multiple pages, each page can correspond to one or more page titles, and the project file can also contain a project title that is the same as the page title.
[0030] In the embodiment of the present application, the second database is obtained by deleting the content irrelevant to the cursor position in the first database. Specifically: first, the position of the cursor in the project report is obtained; then, according to the cursor position, the page title corresponding to the page where the cursor position is located is obtained, so as to remove the content irrelevant to the page title in the first database and construct the second database.
[0031] For example, the multiple page titles included in the project report may be title, abstract, content, technical field, etc., which is not limited in the present embodiment of the application. The project report may be a Word document or a PPT.
[0032] Step 103: determine a plurality of prompt data from a second database according to the input content input by the acquired user, and output the prompt data.
[0033] In the embodiment of the present application, the user can input content through a traditional input method, which can be based on the framework of Sogou input method, palm input method, etc., and the input method based on Pinyin input method, Wubi input method, etc.
[0034] For example, the input could be "pressure reducing valve".
[0035] As an optional implementation, step 103 may include determining multiple prompt data from the second database according to the input content input by the acquired user, and outputting the prompt data in the following manner: Get the input content entered by the user; Determine a plurality of prompt data matching the input content from the second database; Determine the target number of lines of the project title in the target project file, and determine the current number of lines of each prompt data in the target project file; Determine the difference between the current number of rows and the target number of rows for each prompt data; Sort each prompt data based on the row number difference from small to large to obtain the first order of each prompt data; Based on the first order, each prompt data is output.
[0036] Among them, the implementation of this implementation method can not only match the relevant prompt data according to the input content, but also prioritize the prompt data closest to the title position (i.e., more closely related logically) by calculating the difference between the number of lines where each prompt data is located and the number of lines of the project title, thereby helping users quickly locate core information and reducing the time of searching line by line in lengthy documents. This strategy of sorting by physical proximity not only meets the contextual coherence requirements of document writing, but also guides users to prioritize content that is highly related to the current report paragraph, significantly improving the efficiency and logic of report writing, and can also improve the relevance of the prompt data that is ranked higher with the sentences that users actually need and have a high selection rate, thereby reducing the risk of information omission.
[0037] For example, the input content may be "pressure reducing valve", the first character of the project title may be the sentence "pitting temperature of the inner surface of the pressure reducing valve should be ≥25°C", and the target line number of "pitting temperature of the inner surface of the pressure reducing valve should be ≥25°C" in the target project file may be the 89th sentence.
[0038] At this time, multiple hint data matching "pressure reducing valve" in the second database can be obtained; and the current line numbers of each hint data in the target project file can be determined; for example, the hint data can include "chemical substances on the inner surface of the pressure reducing valve (ESCA / AES) Cr / Fe≥1.5", "average defects on the inner surface of the pressure reducing valve (SEM)≤10", etc. Among them, ESCA is Electron Spectroscopy for Chemical Analysis, AES is Auger Electron Spectroscopy, and ESCA / AES indicates that the chemical substances on the inner surface of the pressure reducing valve are obtained based on the analysis of Electron Spectroscopy for Chemical Analysis and Auger Electron Spectroscopy.
[0039] The current line number of "chemical substances on the inner surface of the pressure reducing valve (ESCA / AES) Cr / Fe≥1.5" obtained in the target project file can be the 85th paragraph; The current line number of "average defects on the inner surface of the pressure reducing valve (SEM)≤10" obtained in the target project file can be the 72nd paragraph; where SEM is Scanning Electron Microscope, that is, the average defects on the inner surface of the pressure reducing valve are obtained based on the Scanning Electron Microscope.
[0040] At this time, the line number difference between the current line number of each hint data and the target line number can be calculated, that is, the line number difference between "chemical substances on the inner surface of the pressure reducing valve (ESCA / AES) Cr / Fe≥1.5" and "pressure reducing valve" in "the pitting corrosion temperature of the inner surface of the pressure reducing valve should be ≥25°C" is 4 line number differences; the line number difference between "average defects on the inner surface of the pressure reducing valve (SEM)≤10" and "pressure reducing valve" in "the pitting corrosion temperature of the inner surface of the pressure reducing valve should be ≥25°C" is 17 line number differences.
[0041] And, each hint data can be sorted based on the ascending order of the line number differences, that is, the first order of the above-obtained each hint data can be: 1. Chemical substances on the inner surface of the pressure reducing valve (ESCA / AES) Cr / Fe≥1.5; 2. Average defects on the inner surface of the pressure reducing valve (SEM)≤10.
[0042] Furthermore, each hint data can be output based on the first order.
[0043] Optionally, step 103 for determining multiple hint data from the second database according to the obtained user input content and outputting the hint data can also include: Obtain the input content entered by the user; Determine multiple pieces of hint data that match the input content from the second database; Determine the target character position of the first character of the project title in the target project file, and determine the current character position of the first character of each piece of hint data in the target project file; Determine the character difference between the current character position of each piece of hint data and the target character position; Sort each piece of hint data based on the character differences from small to large to obtain the first order of each piece of hint data; Output each piece of hint data based on the first order.
[0044] In the embodiments of the present application, data that matches the input content can be obtained from the second database as hint data, and data that matches the synonyms of the input content can also be obtained from the second database as hint data.
[0045] For example, the input content can be "pressure reducing valve", the project title can be the sentence segment "The pitting corrosion temperature on the inner surface of the pressure reducing valve should be ≥ 25°C", and the target character position of the first character of the project title in the target project file can be the 93rd character position.
[0046] At this time, multiple pieces of hint data that match "pressure reducing valve" can be obtained from the second database; and the current character position of each piece of hint data in the target project file can be determined; for example, the hint data can include "The chemical substances (ESCA / AES) on the inner surface of the pressure reducing valve, Cr / Fe ≥ 1.5", "The average defects (SEM) on the inner surface of the pressure reducing valve ≤ 10", etc.
[0047] The current character position of the obtained "The chemical substances (ESCA / AES) on the inner surface of the pressure reducing valve, Cr / Fe ≥ 1.5" in the target project file can be the 58th segment; The current character position of the obtained "The average defects (SEM) on the inner surface of the pressure reducing valve ≤ 10" in the target project file can be the 36th segment; At this time, the character difference between the current character position of each piece of hint data and the target character position can be calculated, that is, the 35-character difference between "The chemical substances (ESCA / AES) on the inner surface of the pressure reducing valve, Cr / Fe ≥ 1.5" and "pressure reducing valve" in "The pitting corrosion temperature on the inner surface of the pressure reducing valve should be ≥ 25°C"; the line difference between "The average defects (SEM) on the inner surface of the pressure reducing valve ≤ 10" and "pressure reducing valve" in "The pitting corrosion temperature on the inner surface of the pressure reducing valve should be ≥ 25°C" is 57 lines.
[0048] And, each piece of hint data can be sorted based on the order of the line differences from small to large, that is, the first order of each piece of hint data obtained above can be: 1. The chemical substances (ESCA / AES) on the inner surface of the pressure reducer, Cr / Fe ≥ 1.5; 2. The average number of defects (SEM) on the inner surface of the pressure reducer ≤ 10.
[0049] Furthermore, the respective hint data can be output based on the first order.
[0050] In the embodiments of the present application, the number of hint data can be multiple. Therefore, when outputting multiple hint data, it is necessary to sort the multiple hint data in advance, and then output the multiple hint data in sequence according to the predetermined first order. Among them, the number of hint data can be at most no more than 100, and the number of output hint data can be a preset number (for example, 5, 7, 9, etc.). In this regard, the embodiments of the present application do not make limitations.
[0051] In the embodiments of the present application, if there are hint data with the same line number difference, the hint data with the same line number difference can be sorted in a random arrangement manner.
[0052] Optionally, after obtaining the first order of each hint data, the following steps can also be executed: S201. Obtain the current hint data at the first position in the first order; S202. Determine the first selection times and the second selection times of the current hint data being selected within the first preset time period and the second preset time period; wherein, the first preset time period is less than the second preset time period; S203. If the first selection times is greater than or equal to the preset times and the second selection times is not 0, then move the position of the current hint data in the first order forward by a preset number of digits to obtain the current ranking of the current hint data; S204. If the current ranking is not the first position, then obtain the updated first order; and determine whether the current hint data is the last one in the first order; S205. If the current ranking is the first position, then adjust the current ranking of the current hint data to the second position to obtain the updated first order; and determine whether the current hint data is the last one in the first order; S206. If the first selection times is less than the preset times or the second selection times is 0, then determine whether the current hint data is the last one in the first order; S207. If the current hint data is not the last one in the first order, then determine the next hint data in the first order as the current hint data, and execute S202; S208. If the current hint data is the last one in the first order, then determine the first order as the second order, and output each hint data based on the second order.
[0053] Among them, when implementing this implementation method, the sorting position is automatically adjusted based on the selection frequency of the user for the current prompt data: when the data is selected frequently, it is moved forward to give priority to displaying other potentially high-value information, avoiding the user from repeatedly screening inefficient content; while when it is selected infrequently (indicating that its relevance may be weak) or not selected (indicating that it meets the current requirements or has exploration value), the original order is maintained to ensure that the core information is presented first. This dynamic adjustment mechanism not only makes the sorting of the prompt data more in line with the actual writing scenario of the user, but also guides the user to pay attention to more underutilized document content, thereby improving the information retrieval efficiency while promoting the comprehensiveness and diversity of the report content.
[0054] In addition, after obtaining the first order of each prompt data, the following steps can also be executed: S301. Obtain the current prompt data at the last position in the first order; S302. Determine the first selection times and the second selection times of the current prompt data within the first preset time period and the second preset time period; wherein, the first preset time period is less than the second preset time period; S303. If the first selection times are greater than or equal to the preset times and the second selection times are not 0, then move the position of the current prompt data in the first order backward by a preset number of digits to obtain the updated first order; and determine whether the current prompt data is the first one in the first order; S304. If the first selection times are less than the preset times or the second selection times are 0, then determine whether the current prompt data is the first one in the first order; S305. If the current prompt data is not the first one in the first order, then determine the previous prompt data of the current prompt data in the first order as the current prompt data, and execute S302; S306. If the current prompt data is the first one in the first order, then determine the first order as the second order, and output each prompt data based on the second order.
[0055] Among them, when implementing this implementation method, the sorting position is automatically adjusted based on the selection frequency of the user for the current prompt data: it can also be when the data is selected infrequently (indicating that its relevance may be weak), move it backward to give priority to displaying other potentially high-value information, avoiding the user from repeatedly screening inefficient content; while when it is selected frequently or not selected (indicating that it meets the current requirements or has exploration value), the original order is maintained to ensure that the core information is presented first. This dynamic adjustment mechanism not only makes the sorting of the prompt data more in line with the actual writing scenario of the user, but also guides the user to pay attention to more underutilized document content, thereby improving the information retrieval efficiency while promoting the comprehensiveness and diversity of the report content.
[0056] In the embodiments of the present application, the first preset time period may be a relatively short time period. For example, it may be within 10 minutes before the user inputs the input content. The second preset time period may be a relatively long time period. For example, it may be within 1 day before the user inputs the input content.
[0057] In the embodiments of the present application, the preset number of times may be 3 times, 5 times, etc. In this regard, the embodiments of the present application do not make any limitations. If within a short period of time, the number of times the user selects the current prompt data is less than the preset number of times, it can be considered that the current prompt data has been used by the user, but the frequency of use by the user is not high. It can be seen that the current prompt data is not a frequently used data. Therefore, in the case where the current prompt data has been used, there is no need to adjust the ranking of the current prompt data, and the goal of improving the user input efficiency can be achieved with a high probability.
[0058] In the embodiments of the present application, if the second selection number is 0, it can be considered that the current prompt data has not been used by the user yet. At this time, there is no need to adjust the ranking of the current prompt data, and the goal of improving the user input efficiency can be achieved with a high probability.
[0059] In the embodiments of the present application, if within a short period of time, the number of times the user selects the current prompt data is greater than or equal to the preset number of times, and the second selection number is not 0, then it can be considered that the current prompt data is a frequently used data by the user. Therefore, the priority of the current prompt data should be higher. At this time, it is necessary to adjust the ranking of the current prompt data forward, so that the current prompt data is ranked relatively high in the first order, and the goal of improving the user input efficiency is achieved.
[0060] In addition, if within a short period of time, the number of times the user selects the current prompt data is greater than or equal to the preset number of times, and the second selection number is not 0, then it can be considered that the current prompt data is a frequently used data by the user. Therefore, the ranking of the current prompt data can be adjusted backward, so as to avoid the repeated appearance of the used data and achieve the goal of improving the user input efficiency.
[0061] In the embodiments of the present application, when determining to adjust the ranking of the current prompt data, a preset number of digits can be obtained. The preset number of digits can be the number of digits by which the current prompt data is shifted backward.
[0062] For example, the preset number of digits can be set to a, and a can be 1 to 10, preferably 3. The current position of the current prompt data can be the first position. After shifting the current prompt data backward by 3 positions, the current ranking of the current prompt data is the 4th position.
[0063] Optionally, after obtaining the first order of each prompt data, the following steps can also be executed: S401. Obtain the current prompt data of the first one in the first order; S402. Determine the third selection times and the fourth selection times of the current prompt data within the first preset time period and the second preset time period; wherein, the first preset time period is less than the second preset time period; S403. If the third selection times is greater than or equal to the preset times and the fourth selection times is not 0, then reduce the line number difference of the current prompt data in the first order by a preset value to obtain the new line number difference of the current prompt data; S404. If the new line number difference is not 1, then obtain the updated first order; and determine whether the current prompt data is the last one in the first order; S405. If the new line number difference is 1, then adjust the current ranking of the current prompt data to the second place to obtain the updated first order; and determine whether the current prompt data is the last one in the first order; S406. If the third selection times is less than the preset times or the fourth selection times is 0, then determine whether the current prompt data is the last one in the first order; S407. If the current prompt data is not the last one in the first order, then determine the next prompt data of the current prompt data in the first order as the current prompt data, and execute S402; S408. If the current prompt data is the last one in the first order, then determine the first order as the second order, and output each prompt data based on the second order.
[0064] Among them, implementing this implementation method, based on the historical selection frequency of the first prompt data by the user, dynamically adjusts the associated line number difference, so that the low-frequency data automatically moves forward in subsequent rounds, thereby preferentially displaying potential high-value information.
[0065] In addition, after obtaining the first order of each prompt data, the following steps can also be executed: S501. Obtain the current prompt data of the first one in the first order; S502. Determine the third selection times and the fourth selection times of the current prompt data within the first preset time period and the second preset time period; wherein, the first preset time period is less than the second preset time period; S503. If the third selection times is greater than or equal to the preset times and the fourth selection times is not 0, then increase the line number difference of the current prompt data in the first order by a preset value to obtain the updated first order; and determine whether the current prompt data is the last one in the first order; S504. If the third selection times is less than the preset times or the fourth selection times is 0, then determine whether the current prompt data is the last one in the first order; S505. If the current prompt data is not the last one in the first order, determine the next prompt data in the first order as the current prompt data, and execute S502; S506. If the current prompt data is the last one in the first order, determine the first order as the second order, and output each prompt data based on the second order.
[0066] Among them, implementing this implementation mode, based on the historical selection frequency of the user for the first prompt data, dynamically adjusts the associated line number difference (that is, indirectly reduces its sorting priority), so that the low-frequency data automatically moves backward in subsequent rounds, thereby preferentially displaying other potentially high-value information. This mechanism not only avoids the user from repeatedly screening inefficient content, but also can guide the user to pay attention to the underutilized document content through "tentative adjustment", while improving the core information retrieval efficiency, effectively balancing the "depth" and "breadth" of information utilization.
[0067] In the embodiment of the present application, when determining to adjust the ranking of the current prompt data, the line number difference or character difference of the current prompt data can also be increased, and the preset value to be increased can be a, and a can be 1 to 10, preferably 3. After obtaining the new line number difference or new character difference, the first order of the prompt data can be re-sorted to obtain the updated first order.
[0068] As an optional implementation mode, if there are multiple target prompt data with the same line number difference in the first order of each prompt data, the following steps can also be executed: Determine the classification labels of each target prompt data; Sort each target prompt data according to the preset order of the classification labels to obtain the label order of each target prompt data; Sort each prompt data based on the label order of each target prompt data and the line number difference from small to large to obtain the third order of each prompt data.
[0069] Among them, implementing this implementation mode, when the line number differences of multiple prompt data are the same, the system further performs a secondary sorting according to the preset priority of the classification labels to ensure the maximization of content relevance. This sorting mechanism not only retains the context coherence brought by the physical position, but also strengthens the accuracy of information screening through the semantic weight of the classification labels, reduces the frequency of manual switching between different categories of information, and significantly improves the fluency and logic of report writing.
[0070] Optionally, if the first order of each prompt data is determined based on the character difference, the following steps can be executed in the case where there are multiple target prompt data with the same line number difference in the first order of each prompt data: Determine the classification labels of each target prompt data; Sort each target prompt data according to the preset order of the classification labels to obtain the label order of each target prompt data; Sort each prompt data based on the label order of each target prompt data and the character difference from small to large to obtain the third order of each prompt data.
[0071] In the embodiment of the present application, the classification labels of the prompt data can be determined in advance when constructing the first database. The classification labels can be the labels corresponding to the content that needs to be filled in the project report. The project report needs to include: work situation, main problems solved, situation analysis, general technical standards, intellectual property situation, economic effects, and competitor situation. Therefore, the classification labels are also the work situation, main problems solved, situation analysis, general technical standards, intellectual property situation, economic effects, and competitor situation. And the order of the classification labels is determined in advance and cannot be changed. Therefore, the sorting problem of multiple target prompt data with the same line number difference can be solved by sorting according to the order of the classification labels of the target prompt data.
[0072] Optionally, the identity information of the user can also be obtained. If the identity information of the user contains a specific classification label, then the user can be considered as an engineer who specifically writes the content corresponding to the specific classification label. Therefore, all the prompt data in the third order except the prompt data corresponding to the specific classification label can be deleted, and then the fourth order of the prompt data can be obtained, and the prompt data can be output based on the fourth order, so as to output the prompt data required by the current user more accurately.
[0073] In the embodiment of the present application, the first n prompt data in the first order / second order / third order can be output, and n can be a preset number, such as 7, 9, etc. In this regard, the embodiment of the present application does not make a limitation.
[0074] In addition, after outputting the prompt data, the following steps can also be executed: Determine the selected prompt data from the prompt data by the user; Determine the context statement of the selected prompt data from the target project file; Determine the context statement as the context association words of the selected prompt data; Output the context association words.
[0075] Among them, when implementing this implementation method, when the user selects specific prompt data, the system automatically extracts the context statements of this data in the original file as associated words for output. This not only provides the source basis for the prompt data for the user, but also helps the user quickly reference related descriptions or supplement details, avoiding the inefficient operation of manually returning to the original file to search line by line. This design not only strengthens the value of the scenario-based application of the prompt data, but also guides the user to pay attention to the associated information that is easily overlooked, thereby improving the argumentative rigor and content integrity of the report and realizing an efficient writing closed-loop of "click - association - expansion".
[0076] In the embodiment of the present application, the context statements of the selected prompt data can be the previous sentence and the next sentence of the selected prompt data.
[0077] For example, if the project materials stored in the second database are: 4 General technical requirements 4.1 Inner surface roughness The inner surface roughness Ra of the pressure reducer ≤ 0.13 μm, where the average surface roughness Avg.Ra ≤ 0.25 μm and the maximum height roughness RyMax. ≤ 2.50 μm.
[0078] 4.2 Inner surface defects The average inner surface defects (SEM) of the pressure reducer ≤ 10, and the maximum ≤ 20.
[0079] 4.3 Inner surface contaminants No other elements should be detected on the inner surface of the pressure reducer by EDS except for the main alloy elements Fe, Cr, Ni, Mo, the residual elements Mn and Si, and O in the passivation layer and adsorbed C; 4.4 Inner surface chemicals The inner surface chemicals (ESCA / AES) of the pressure reducer Cr / Fe ≥ 1.5, CrO X / FeO X ≥ 2.0 (that is, the ratio of chromium oxide to iron oxide is greater than or equal to 2.0), the oxide layer thickness ≥ 1.5 nm (15 Å), the adsorbed carbon contaminants ≤ 30 at%, and it drops to the reference level within the initial surface of 1.5 nm (15 Å). On the initial surface, S, P, N, and Si ≤ 2 at%. All other contaminants ≤ 1 at%.
[0080] 4.5 Pitting temperature The pitting temperature of the inner surface of the pressure reducer should ≥ 25 °C.
[0081] 4.6 Particulates When the input content is a pressure regulating valve, the output prompt data and the associated words before and after can be as shown in Table 1 below: Table 1 Output Hint Data and Context Association Word Table
[0082] Please refer to Figure 2 , Figure 2 which is a schematic diagram of an input method interface provided by an embodiment of the present application; wherein, the input content is "jian’ya’fa", that is, the first hint information can be determined as "pressure reducing valve" from the project materials according to the input content, and all the synonyms "pressure reducer" in the project materials can be replaced with "pressure reducing valve". And other hint data are determined from the project materials, specifically: The inner surface roughness of the pressure reducing valve and pressure reducer, the average defects on the inner surface of the pressure reducer, the EDS detection of the inner surface of the pressure reducer, the chemical substances on the inner surface of the pressure reducer, the pitting corrosion temperature on the inner surface of the pressure reducer. Implementing the above steps 101 to 103 can enable users to quickly input the content to be compiled, while improving the efficiency of project report compilation, and can also improve the accuracy and integrity of the project report. In addition, the present application can significantly improve the efficiency and logic of report writing, and reduce the risk of information omission. In addition, the present application can promote the comprehensiveness and diversity of report content while improving the information retrieval efficiency. In addition, the present application can effectively balance the "depth" and "breadth" of information utilization while improving the core information retrieval efficiency. In addition, the present application can significantly improve the fluency and logic of report writing. In addition, the present application can improve the argumentation rigor and content integrity of the report, and achieve an efficient writing closed-loop of "point selection - association - expansion".
[0083] Based on the same inventive concept, an embodiment of the present application also provides a project report writing device for implementing the above-mentioned project report writing method. The solution provided by this device to solve the problem is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the following project report writing device can refer to the limitations on the project report writing method in the above text, and will not be repeated here.
[0084] In an exemplary embodiment, as Figure 3 shown, a project report writing device is provided, including: A first construction unit 301, configured to construct a first database according to the project number of the project report; wherein, the first database contains all project files matching the project number; A second construction unit 302, configured to construct a second database from the first database according to the cursor position in the project report; wherein, the project title of the target project file in the second database is the same as the page title of the page where the cursor position is located in the project report; The output unit 303 is configured to determine multiple pieces of prompt data from the second database according to the input content entered by the user, and output the prompt data.
[0085] As an optional implementation manner, the manner in which the output unit 303 determines multiple pieces of prompt data from the second database according to the input content entered by the user and outputs the prompt data may specifically be: Obtain the input content entered by the user; Determine multiple pieces of prompt data matching the input content from the second database; Determine the target line number of the project title in the target project file, and determine the current line numbers of the respective pieces of prompt data in the target project file; Determine the line number differences between the current line numbers of the respective pieces of prompt data and the target line number; Sort the respective pieces of prompt data based on the line number differences from small to large to obtain the first order of the respective pieces of prompt data; Output the respective pieces of prompt data based on the first order.
[0086] Among them, implementing this implementation manner can not only match relevant prompt data according to the input content, but also calculate the differences between the line numbers where each piece of prompt data is located and the line number of the project title, and present the prompt data closest to the title position (i.e., more closely logically related) first, thereby helping the user quickly locate the core information and reducing the time for searching line by line in a long document. This sorting strategy based on physical position proximity not only meets the requirements of the context coherence of document writing, but also guides the user to preferentially process the content strongly related to the current report paragraph, significantly improving the efficiency and logic of report writing and reducing the risk of information omission.
[0087] As an optional implementation manner, the output unit 303 is further configured to: After obtaining the first order of the respective pieces of prompt data, obtain the current prompt data at the first position in the first order; Determine the first selection times and the second selection times of the current prompt data being selected within the first preset time period and the second preset time period; wherein, the first preset time period is less than the second preset time period; If the first selection times are greater than or equal to the preset times and the second selection times are not 0, then move the position of the current prompt data forward by a preset number of digits in the first order to obtain the current ranking of the current prompt data; If the current ranking is not the first position, then obtain the updated first order; and determine whether the current prompt data is the last position in the first order; If the current ranking is the first, adjust the current ranking of the current prompt data to the second to obtain an updated first order; and determine whether the current prompt data is the last one in the first order; If the first selection times is less than the preset times or the second selection times is 0, determine whether the current prompt data is the last one in the first order; If the current prompt data is not the last one in the first order, determine the next prompt data of the current prompt data in the first order as the current prompt data, and execute the step of determining the first selection times and the second selection times of the current prompt data selected within the first preset time period and the second preset time period; If the current prompt data is the last one in the first order, determine the first order as the second order, and output each prompt data based on the second order.
[0088] Among them, implementing this implementation method, based on the selection frequency of the user for the current prompt data, automatically adjusts its sorting position: when this data is selected frequently, move it forward to give priority to displaying other potentially high-value information, avoiding users from repeatedly screening inefficient content; while when it is selected less frequently (indicating that its relevance may be weak) or not selected (indicating that it meets the current needs or has exploration value), then maintain the original order to ensure that the core information is presented first. This dynamic adjustment mechanism not only makes the sorting of the prompt data more in line with the actual writing scenario of the user, but also guides the user to pay attention to more underutilized document content, thereby improving the information retrieval efficiency while promoting the comprehensiveness and diversity of the report content.
[0089] As an optional implementation method, the output unit 303 is further configured to: After obtaining the first order of each prompt data, obtain the current prompt data of the first place in the first order; Determine the third selection times and the fourth selection times of the current prompt data selected within the first preset time period and the second preset time period; where the first preset time period is less than the second preset time period; If the third selection times is greater than or equal to the preset times and the fourth selection times is not 0, reduce the line difference value of the current prompt data in the first order by a preset value to obtain the current ranking of the current prompt data; If the current ranking is not the first, obtain an updated first order; and determine whether the current prompt data is the last one in the first order; If the current ranking is the first, adjust the current ranking of the current prompt data to the second to obtain an updated first order; and determine whether the current prompt data is the last one in the first order; If the third selection times is less than the preset times or the fourth selection times is 0, determine whether the current prompt data is the last one in the first order; If the current prompt data is not the last one in the first order, determine the next prompt data of the current prompt data in the first order as the current prompt data, and execute the step of determining the first selection times and the second selection times of the current prompt data selected within the first preset time period and the second preset time period; If the current prompt data is the last one in the first order, determine the first order as the second order, and output each prompt data based on the second order.
[0090] Among them, implementing this implementation mode, based on the historical selection frequency of the first prompt data by the user, dynamically adjust the associated line number difference, so that the low-frequency data moves forward automatically in subsequent rounds, so as to preferentially display potential high-value information.
[0091] As an alternative implementation mode, the output unit 303 is further configured to: If there are multiple target prompt data with the same line number difference in the first order of each prompt data, determine the classification labels of each target prompt data; Sort each target prompt data according to the preset priority order of the classification labels to obtain the label order of each target prompt data; Sort each prompt data based on the label order of each target prompt data and the line number difference from small to large to obtain the third order of each prompt data.
[0092] Among them, implementing this implementation mode, when the line number differences of multiple prompt data are the same, the system further performs secondary sorting according to the preset priority of the classification labels to ensure the maximum content relevance. This sorting mechanism not only retains the context coherence brought by the physical position, but also strengthens the accuracy of information screening through the semantic weight of the classification labels, reduces the frequency of manual switching between different categories of information, and significantly improves the fluency and logic of report writing.
[0093] As an alternative implementation mode, the output unit 303 is further configured to: After outputting the prompt data, determine the selected prompt data from the prompt data by the user; Determine the context statement of the selected prompt data from the target project file; Determine the context statement as the context association word before and after the selected prompt data; Output context-related words before and after the input.
[0094] Among them, when implementing this implementation method, when the user selects specific prompt data, the system automatically extracts the context statements of this data in the original file as the output of context-related words. This not only provides the user with the source basis of the prompt data, but also can assist the user to quickly reference related descriptions or supplement details, avoiding the inefficient operation of manually returning to the original file to search line by line. This design not only strengthens the application value of the prompt data in the scenario, but also guides the user to pay attention to the related information that is easily overlooked, thereby improving the argumentative rigor and content integrity of the report, and realizing an efficient writing closed-loop of "point selection - association - expansion".
[0095] Implementing the above implementation method enables the user to quickly input the content to be compiled. While improving the efficiency of project report compilation, it can also improve the accuracy and integrity of the project report. In addition, this application can significantly improve the efficiency and logic of report writing, and reduce the risk of information omission. In addition, this application can also promote the comprehensiveness and diversity of the report content while improving the information retrieval efficiency. In addition, this application can effectively balance the "depth" and "breadth" of information utilization while improving the core information retrieval efficiency. In addition, this application can significantly improve the fluency and logic of report writing. In addition, this application can improve the argumentative rigor and content integrity of the report, and realize an efficient writing closed-loop of "point selection - association - expansion".
[0096] In an exemplary embodiment, a computer device is provided. The computer device can be a server or a terminal, and its internal structure diagram can be as Figure 4 shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O), and a communication interface. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store project report writing data. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it implements a project report writing method.
[0097] Those skilled in the art can understand, Figure 4The structure shown is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have a different component layout.
[0098] In an exemplary embodiment, a computer device is further provided, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, the steps in the above method embodiments are implemented.
[0099] In an exemplary embodiment, a computer-readable storage medium is provided, storing a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0100] In an exemplary embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0101] In an exemplary embodiment, a chip is provided. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the steps in the above method embodiments, and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0102] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-chip, system chip, chip system, or system-on-chip, etc.
[0103] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with relevant regulations.
[0104] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.
[0105] The databases involved in the embodiments provided in the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in the present application can be general-purpose processors, central processors, graphics processors, digital signal processors, programmable logics, data processing logics based on quantum computing, etc., without limitation.
[0106] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.
[0107] Specific examples are used in this article to elaborate on the principles and implementation manners of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application; at the same time, for those of ordinary skill in the art, according to the idea of the present application, there will be changes in the specific implementation manners and application scopes. In summary, the content of this specification should not be construed as a limitation to the present application.
Claims
1. A method for writing a project report, characterized in that, The method for writing the project report includes: Construct a first database according to the project number of the project report; wherein, all project files matching the project number are included in the first database; Construct a second database from the first database according to the cursor position in the project report; wherein, the project title of the target project file in the second database is the same as the page title of the page where the cursor position is located in the project report; Determine a plurality of prompt data from the second database according to the input content obtained from the user input, and output the prompt data.
2. The method for writing a project report according to claim 1, characterized in that, The step of determining a plurality of prompt data from the second database according to the input content obtained from the user input and outputting the prompt data specifically includes: Obtain the input content entered by the user; Determine a plurality of prompt data matching the input content from the second database; Determine the target line number of the project title in the target project file, and determine the current line numbers of each prompt data in the target project file; Determine the line number difference between the current line number of each prompt data and the target line number; Sort each prompt data based on the line number difference from small to large to obtain the first order of each prompt data; Output each prompt data based on the first order.
3. The method for writing a project report according to claim 2, characterized in that, After obtaining the first order of each prompt data, the method for writing the project report further includes: Obtain the current prompt data at the first position in the first order; Determine the first selection times and the second selection times of the current prompt data selected within the first preset time period and the second preset time period; wherein, the first preset time period is less than the second preset time period; If the first selection times is greater than or equal to the preset times and the second selection times is not 0, move the position of the current prompt data in the first order forward by a preset number of digits to obtain the current ranking of the current prompt data; If the current ranking is not the first position, obtain the updated first order; and determine whether the current prompt data is the last one in the first order; If the current ranking is the first position, adjust the current ranking of the current prompt data to the second position to obtain the updated first order; and determine whether the current prompt data is the last one in the first order; If the first selection times is less than the preset times or the second selection times is 0, determine whether the current prompt data is the last one in the first order; If the current prompt data is not the last one in the first order, determine the next prompt data of the current prompt data in the first order as the current prompt data, and execute the step of determining the first selection times and the second selection times of the current prompt data selected within the first preset time period and the second preset time period; If the current prompt data is the last one in the first order, determine the first order as the second order, and output each prompt data based on the second order.
4. The method for writing a project report according to claim 3, characterized in that, After obtaining the first order of each prompt data, the method for writing the project report further includes: Obtain the current hint data of the first position in the first order; Determine the third selection count and the fourth selection count of the current hint data within a first preset time period and a second preset time period; wherein, the first preset time period is less than the second preset time period; If the third selection count is greater than or equal to the preset count and the fourth selection count is not 0, then reduce the line number difference of the current hint data in the first order by a preset value to obtain the current ranking of the current hint data; If the current ranking is not the first position, then obtain the updated first order; and determine whether the current hint data is the last position in the first order; If the current ranking is the first position, then adjust the current ranking of the current hint data to the second position to obtain the updated first order; and determine whether the current hint data is the last position in the first order; If the third selection count is less than the preset count or the fourth selection count is 0, then determine whether the current hint data is the last position in the first order; If the current hint data is not the last position in the first order, then determine the next hint data of the current hint data in the first order as the current hint data, and execute the step of determining the first selection count and the second selection count of the current hint data within a first preset time period and a second preset time period; If the current hint data is the last position in the first order, then determine the first order as the second order, and output each hint data based on the second order.
5. The method for writing a project report according to claim 2, characterized in that, If there are multiple target hint data with the same line number difference in the first order of each hint data, the project report writing method further includes: Determine the classification labels of each target hint data; Sort each target hint data according to the preset sequence of the classification labels to obtain the label order of each target hint data; Sort each hint data based on the label order of each target hint data and the line number difference from small to large to obtain the third order of each hint data.
6. The method for writing a project report according to claim 1, wherein, After outputting the hint data, the project report writing method further includes: Determine the selected hint data of the user from the hint data; Determine the context statement of the selected hint data from the target project file; Determine the context statement as the context association word of the selected hint data; Output the context association word.
7. A device for writing a project report, wherein, The project report writing device includes: A first construction unit, configured to construct a first database according to the project number of the project report; wherein, the first database contains all project files matching the project number; A second construction unit, configured to construct a second database from the first database according to the cursor position in the project report; wherein, the project title of the target project file in the second database is the same as the page title of the page where the cursor position is located in the project report; An output unit, configured to determine multiple hint data from the second database according to the input content input by the user, and output the hint data.
8. A computer device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the project report writing method according to any one of claims 1-6.
9. A computer-readable storage medium, on which a computer program is stored, wherein, When the computer program is executed by the processor, it implements the steps of the project report writing method according to any one of claims 1-6.
10. A computer program product, comprising a computer program, wherein, When the computer program is executed by the processor, it implements the steps of the project report writing method according to any one of claims 1-6.
Citation Information
Patent Citations
Method and device for report generation, computer equipment and storage medium
CN111190946A
User identification generation method, user identification method and devices thereof
CN111400575A
Data collection method and device for cost data, and medium
CN114037304A
Report compiling and reviewing method and system
CN114638594A
Business system engineering management report generation method, device and system
CN118734824A