A project report writing method, device, equipment, medium and product
By building a database of project number and cursor position, dynamically adjusting the sort of prompt data, solving the problems of omission and inefficiency in project reports, and achieving the accuracy, completeness and efficient preparation of reports.
Patent Information
- Application Number
- CN202510668828.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-23
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2045-05-23
AI Technical Summary
In engineering construction project management, there are problems such as omissions, misalignment and low work efficiency during the writing of project reports, resulting in inaccurate and completeness of the report content.
By building a first database, matching all project files according to the project number, and building a second database according to the cursor position, determining and outputting prompt data from the second database based on the user input content, and using the row number or character difference sorting and dynamic adjustment mechanism, the most relevant prompt data are presented first.
It improves the accuracy and completeness of project reports, improves the compilation efficiency, reduces the risk of information omissions, promotes the comprehensiveness and diversity of report content, enhances the fluency and logic of writing, and realizes an efficient closed loop of information retrieval and writing.
Smart Images

Figure CN120179700B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a project report writing method, device, equipment, medium and product. Background Art
[0002] In engineering construction project management, preparing project reports is a crucial part of the project engineer's job. Traditionally, engineers must repeatedly review various technical documents, meeting minutes, contract terms, and other materials associated with the project number, integrating relevant content into the report through manual search and copy-and-paste.
[0003] However, in practice, it was found that this working mode had significant flaws. Engineers needed to perform cross-document searches in multiple file systems at the same time, which could easily lead to omissions or misplaced citations of key information, resulting in inaccurate and incomplete content in the compiled project reports. In addition, the frequent switching between different document windows seriously reduced the work efficiency of engineers. Summary of the Invention
[0004] The purpose of this application is to provide a project report writing method, device, equipment, medium and product, which can improve the accuracy and completeness of project reports and also improve the efficiency of project report preparation.
[0005] To achieve the above objectives, this application provides the following solutions:
[0006] First, this application provides a project report writing method, comprising:
[0007] Constructing a first database according to the project number of the project report; wherein the first database contains all project files matching the project number;
[0008] constructing 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 is located in the project report;
[0009] According to the input content obtained from the user, a plurality of prompt data are determined from the second database, and the prompt data are output.
[0010] Optionally, determining a plurality of prompt data from the second database according to the acquired input content input by the user, and outputting the prompt data specifically includes:
[0011] Get the input content entered by the user;
[0012] determining a plurality of prompt data matching the input content from the second database;
[0013] Determining a target number of rows for the project title in the target project file, and determining a current number of rows for each prompt data in the target project file;
[0014] Determine the difference between the current number of rows of each prompt data and the target number of rows;
[0015] Sort each prompt data based on the row number difference from small to large to obtain the first order of each prompt data;
[0016] Based on the first order, each prompt data is output.
[0017] Optionally, after obtaining the first sequence of each prompt data, the project report writing method further includes:
[0018] Obtaining the current prompt data of the first one in the first sequence;
[0019] Determine a first selection number and a second selection number of the current prompt data being selected within a first preset time period and a second preset time period; wherein the first preset time period is shorter than the second preset time period;
[0020] If the first selection number is greater than or equal to a preset number and the second selection number is not 0, the position of the current prompt data in the first sequence is shifted forward by a preset number of bits to obtain the current ranking of the current prompt data;
[0021] If the current ranking is not the first, then obtain the updated first order; and determine whether the current prompt data is the last one in the first order;
[0022] If the current ranking is the first, the current ranking of the current prompt data is adjusted to the second to obtain an updated first order; and it is determined whether the current prompt data is the last in the first order;
[0023] If the first selection number is less than the preset number or the second selection number is 0, determining whether the current prompt data is the last one in the first sequence;
[0024] If the current prompt data is not the last one in the first sequence, determining the prompt data next to the current prompt data in the first sequence as the current prompt data, and performing the steps of determining the first selection number and the second selection number of the current prompt data selected within the first preset time period and the second preset time period;
[0025] If the current prompt data is the last one in the first sequence, the first sequence is determined as the second sequence, and each prompt data is output based on the second sequence.
[0026] Optionally, after obtaining the first sequence of each prompt data, the project report writing method further includes:
[0027] Obtaining the current prompt data of the first one in the first sequence;
[0028] Determining a third selection number and a fourth selection number of the current prompt data being selected within a first preset time period and a second preset time period; wherein the first preset time period is shorter than the second preset time period;
[0029] If the third selection number is greater than or equal to the preset number and the fourth selection number is not 0, reducing the row number difference of the current prompt data in the first sequence by a preset value to obtain the current ranking of the current prompt data;
[0030] If the current ranking is not the first, then obtain the updated first order; and determine whether the current prompt data is the last one in the first order;
[0031] If the current ranking is the first, the current ranking of the current prompt data is adjusted to the second to obtain an updated first order; and it is determined whether the current prompt data is the last in the first order;
[0032] If the third selection number is less than the preset number or the fourth selection number is 0, determining whether the current prompt data is the last one in the first sequence;
[0033] If the current prompt data is not the last one in the first sequence, determining the prompt data next to the current prompt data in the first sequence as the current prompt data, and performing the steps of determining the first selection number and the second selection number of the current prompt data selected within the first preset time period and the second preset time period;
[0034] If the current prompt data is the last one in the first sequence, the first sequence is determined as the second sequence, and each prompt data is output based on the second sequence.
[0035] Optionally, if there are multiple target prompt data with the same row number difference in the first sequence of the prompt data, the project report writing method further includes:
[0036] Determine the classification label of each target prompt data;
[0037] Sort each target prompt data according to the preset order of the classification labels to obtain the label order of each target prompt data;
[0038] The prompt data are sorted based on the label order of the target prompt data and the row number difference from small to large to obtain a third order of the prompt data.
[0039] Optionally, after outputting the prompt data, the project report writing method further includes:
[0040] determining prompt data selected by a user from the prompt data;
[0041] determining a context sentence of the selected prompt data from the target project file;
[0042] Determining the context sentence as the contextual associative words of the selected prompt data;
[0043] Output the context-related words.
[0044] In a second aspect, the present application provides a project report writing device, comprising:
[0045] A first construction unit is configured to construct a first database according to a project number of a project report; wherein the first database contains all project files matching the project number;
[0046] a second constructing 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 is located in the project report;
[0047] The output unit is configured to determine a plurality of prompt data from the second database according to the input content obtained from the user, and output the prompt data.
[0048] In a third aspect, the present application provides 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 any one of the project report writing methods described above.
[0049] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the project report writing methods described above.
[0050] In a fifth aspect, the present application provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of any one of the above-mentioned project report writing methods.
[0051] In a sixth aspect, the present application provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction. When the processor executes the program or instruction, the steps of the project report writing method described above are implemented.
[0052] According to the specific embodiments provided in this application, this application discloses the following technical effects:
[0053] The present application provides a project report writing method, apparatus, 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 from the first database to the second database, so that the target project file in the second database matches the page title of the page where the cursor is located; and then, prompt data that best matches the input content entered by the user can be determined from the second database. By outputting the prompt data to the user, the user can quickly input the content to be compiled, thereby improving the efficiency of project report compilation while also improving the accuracy and completeness of the project report. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments. 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.
[0055] Figure 1 A flowchart of a project report writing method provided in one embodiment of the present application;
[0056] Figure 2 A schematic diagram of an input method interface provided in one embodiment of the present application;
[0057] Figure 3 A schematic diagram of the functional modules of a project report writing device provided in one embodiment of the present application;
[0058] Figure 4 A schematic diagram of the structure of a computer device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0059] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0060] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0061] In an exemplary embodiment, Figure 1 As shown, a project report writing method is provided, which is executed by a computer device, specifically, a computer device such as a terminal or a server, or a terminal and a server. In the embodiment of the present application, the method may include the following steps 101 to 103. Among them:
[0062] Step 101: construct a first database according to the project number of the project report.
[0063] In the embodiment 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 the project number in the folder, which is not limited in the embodiment of the present application.
[0064] In the embodiment of the present application, the first database may include data in the form of fields and / or segments, and the first database mainly contains data in the form of segments, and the first database is pre-stored.
[0065] For example, the first database may include the fields: pressure reducing valve;
[0066] The first database may further include a sentence segment: The pitting temperature of the inner surface of the pressure reducing valve should be ≥25°C.
[0067] Furthermore, the first database can also uniformly replace synonyms in all sentences and fields with the same word, and the specific replacement word can be determined based on the content input later;
[0068] For example, if pressure reducing valve is input into the input method, synonyms of pressure reducing valve may be pressure reducer, pressure regulating valve, etc. In the first database, all synonyms such as pressure reducer, pressure regulating valve, etc. may be replaced with pressure reducing valve.
[0069] In addition, the first database may also store project names, chapter names, etc. where the fields or segments are located.
[0070] Step 102: construct a second database from the first database according to the cursor position in the project report.
[0071] 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.
[0072] In an embodiment of the present application, the cursor is a mark used to indicate the input position in a computer interface or document when a user is writing a project report. For example, the flashing cursor in Word. When the user is typing, 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 that more matching data can be input. The cursor position in the project report can be the position where the cursor currently stops 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.
[0073] In this embodiment of the present application, the second database is created by deleting content irrelevant to the cursor position from the first database. Specifically, the cursor position within the project report is first determined; then, based on the cursor position, the page title corresponding to the page where the cursor is located is obtained. This removes content irrelevant to the page title from the first database to construct the second database.
[0074] 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 embodiment of the present application. The project report may be a Word document or a PPT.
[0075] Step 103: Determine a plurality of prompt data from the second database according to the acquired input content input by the user, and output the prompt data.
[0076] In the embodiment of the present application, the user can input content through a traditional input method. The traditional input method can be based on the Sogou input method, the palm input method, etc., or the pinyin input method, the Wubi input method, etc.
[0077] For example, the input could be "pressure reducing valve".
[0078] As an optional implementation, step 103 may include determining multiple prompt data from the second database based on the input content obtained from the user, and outputting the prompt data in the following manner:
[0079] Get the input content entered by the user;
[0080] determining a plurality of prompt data matching the input content from a second database;
[0081] Determine the target row number of the project title in the target project file, and determine the current row number of each prompt data in the target project file;
[0082] Determine the difference between the current number of rows and the target number of rows for each prompt data;
[0083] Sort each prompt data based on the row number difference from small to large to obtain the first order of each prompt data;
[0084] Based on the first order, each prompt data is output.
[0085] This implementation not only matches relevant prompt data based on the input content, but also prioritizes prompt data closest to the title (i.e., more logically related) by calculating the difference between the number of lines where each prompt data resides and the number of lines in the project title. This helps users quickly locate core information and reduces the time spent 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 relevant to the current report paragraph, significantly improving the efficiency and logic of report writing. It also increases the relevance of highly ranked prompt data to the user's actual needs and highly selected sentences, thereby reducing the risk of information omission.
[0086] For example, the input content may be "pressure reducing valve", the first character of the project title may be the sentence "the pitting corrosion temperature of the inner surface of the pressure reducing valve should be ≥25°C", and the target line number of "the pitting corrosion temperature of the inner surface of the pressure reducing valve should be ≥25°C" in the target project file may be the 89th sentence.
[0087] At this time, multiple prompt data matching the "pressure reducing valve" in the second database can be obtained; and the current line number of each prompt data in the target project file can be determined; for example, the prompt data may include "pressure reducing valve inner surface chemicals (ESCA / AES) Cr / Fe ≥ 1.5", "pressure reducing valve inner surface average defects (SEM) ≤ 10", etc., where ESCA is Electron Spectroscopy for Chemical Analysis, AES is Auger Electron Spectroscopy, and ESCA / AES indicates that the pressure reducing valve inner surface chemicals are obtained based on Electron Spectroscopy for Chemical Analysis and Auger Electron Spectroscopy.
[0088] The current line number of the obtained "pressure reducer inner surface chemicals (ESCA / AES) Cr / Fe ≥ 1.5" in the target project file may be the 85th sentence;
[0089] The current line number of the obtained "average defects (SEM) on the inner surface of the pressure reducer ≤ 10" in the target project file may be the 72nd sentence segment; wherein SEM is a scanning electron microscope (Scanning Electron Microscope), that is, the average defects on the inner surface of the pressure reducer are obtained based on the scanning electron microscope.
[0090] At this time, the difference between the current number of rows of each prompt data and the target number of rows can be calculated, that is, the difference between "Pressure reducer inner surface chemicals (ESCA / AES) Cr / Fe ≥ 1.5" and "Pressure reducing valve" in "Pressure reducing valve inner surface pitting temperature should be ≥ 25°C" is 4 rows; the difference between "Pressure reducing valve inner surface average defects (SEM) ≤ 10" and "Pressure reducing valve" in "Pressure reducing valve inner surface pitting temperature should be ≥ 25°C" is 17 rows.
[0091] Furthermore, the prompt data may be sorted in ascending order based on the row number difference, that is, the first order of the prompt data obtained above may be:
[0092] 1. Chemicals on the inner surface of the pressure reducer (ESCA / AES): Cr / Fe ≥ 1.5;
[0093] 2. The mean number of defects (SEM) on the inner surface of the pressure reducer is ≤ 10.
[0094] Furthermore, each presentation data may be output based on the first order.
[0095] Optionally, step 103 may further include determining multiple prompt data from the second database based on the input content obtained from the user, and outputting the prompt data:
[0096] Get the input content entered by the user;
[0097] determining a plurality of prompt data matching the input content from a second database;
[0098] determining a target character position of a first character of a project title in a target project file, and determining a current character position of a first character of each prompt data in the target project file;
[0099] Determine the character difference between the current character position of each prompt data and the target character position;
[0100] Sort each prompt data based on the character difference from small to large to obtain the first order of each prompt data;
[0101] Based on the first order, each prompt data is output.
[0102] In the embodiment of the present application, data matching the input content can be obtained from the second database as prompt data, and data matching synonyms of the input content can also be obtained from the second database as prompt data.
[0103] For example, the input content may be "pressure reducing valve", the project title may be the sentence "pitting temperature of the inner surface of the pressure reducing valve should be ≥25°C", and the first character of the project title may be the 93rd character position in the target project file.
[0104] At this time, multiple prompt data matching "pressure reducing valve" in the second database can be obtained; and the current character position of each prompt data in the target project file can be determined; for example, the prompt data may include "pressure reducing valve inner surface chemical (ESCA / AES) Cr / Fe ≥ 1.5", "pressure reducing valve inner surface average defect (SEM) ≤ 10", etc.
[0105] The current character position of the obtained "pressure reducer inner surface chemicals (ESCA / AES) Cr / Fe ≥ 1.5" in the target project file may be the 58th sentence segment;
[0106] The current character position of the obtained "mean defects (SEM) of the inner surface of the pressure reducer ≤ 10" in the target project file may be the 36th sentence segment;
[0107] At this time, the character difference between the current character position of each prompt data and the target character position can be calculated, that is, the difference between "pressure reducer inner surface chemicals (ESCA / AES) Cr / Fe ≥ 1.5" and "pressure reducing valve" in "pressure reducing valve inner surface pitting temperature should be ≥ 25°C" is 35 characters; the difference between "pressure reducer inner surface average defects (SEM) ≤ 10" and "pressure reducing valve" in "pressure reducing valve inner surface pitting temperature should be ≥ 25°C" is 57 lines.
[0108] Furthermore, the prompt data may be sorted in ascending order based on the row number difference, that is, the first order of the prompt data obtained above may be:
[0109] 1. Chemicals on the inner surface of the pressure reducer (ESCA / AES): Cr / Fe ≥ 1.5;
[0110] 2. The mean number of defects (SEM) on the inner surface of the pressure reducer is ≤ 10.
[0111] Furthermore, each presentation data may be output based on the first order.
[0112] In the embodiment of the present application, there can be multiple prompt data. Therefore, when outputting multiple prompt data, it is necessary to pre-sort the multiple prompt data and then output the multiple prompt data in sequence according to a predetermined first order. The number of prompt data can be no more than 100, and the number of prompt data output can be a preset number (for example, 5, 7, 9, etc.), which is not limited in the embodiment of the present application.
[0113] In the embodiment of the present application, if there are prompt data with the same difference in the number of rows, the prompt data with the same difference in the number of rows can be sorted in a random arrangement manner.
[0114] Optionally, after obtaining the first order of each prompt data, the following steps may be performed:
[0115] S201, obtaining the first current prompt data in the first order;
[0116] S202: Determine a first selection number and a second selection number of the current prompt data that are selected 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;
[0117] S203: If the first selection number is greater than or equal to the preset number and the second selection number is not 0, the position of the current prompt data in the first sequence is shifted forward by a preset number of digits to obtain the current ranking of the current prompt data;
[0118] S204: If the current ranking is not the first, obtain the updated first order; and determine whether the current prompt data is the last one in the first order;
[0119] S205: 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 in the first order;
[0120] S206: If the first selection number is less than the preset number or the second selection number is 0, determine whether the current prompt data is the last one in the first sequence;
[0121] S207: If the current prompt data is not the last one in the first sequence, the prompt data next to the current prompt data in the first sequence is determined as the current prompt data, and S202 is executed;
[0122] S208: If the current prompt data is the last one in the first sequence, the first sequence is determined as the second sequence, and each prompt data is output based on the second sequence.
[0123] This implementation automatically adjusts the ranking of the currently selected data based on how often users select it: When the data is frequently selected, it is moved forward to prioritize other potentially high-value information, preventing users from repeatedly filtering inefficient content. When the data is infrequently selected (indicating its relevance may be weak) or has never been selected (indicating that it meets current needs or is worth exploring), the original order is maintained to ensure that core information is presented first. This dynamic adjustment mechanism not only makes the ranking of the prompted data more relevant to the user's actual writing scenario, but also guides users to focus on more underutilized document content, thereby improving information retrieval efficiency while promoting the comprehensiveness and diversity of report content.
[0124] In addition, after obtaining the first order of each prompt data, the following steps may be performed:
[0125] S301, obtaining the last current prompt data in the first sequence;
[0126] S302: Determine a first selection number and a second selection number of the current prompt data that are selected 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;
[0127] S303: If the first selection number is greater than or equal to the preset number and the second selection number is not 0, the position of the current prompt data in the first sequence is shifted back by the preset number of digits to obtain an updated first sequence; and whether the current prompt data is the first position in the first sequence is determined;
[0128] S304: If the first selection number is less than the preset number or the second selection number is 0, determine whether the current prompt data is the first one in the first sequence;
[0129] S305: If the current prompt data is not the first one in the first sequence, the prompt data immediately preceding the current prompt data in the first sequence is determined as the current prompt data, and S302 is executed.
[0130] S306: If the current prompt data is the first one in the first order, the first order is determined as the second order, and each prompt data is output based on the second order.
[0131] This implementation automatically adjusts the ranking of the currently prompted data based on how often users select it. When the data is selected infrequently (indicating its potential relevance is weak), it is moved back to prioritize other potentially high-value information, preventing users from repeatedly filtering inefficient content. When the data is selected frequently or not at all (indicating it meets current needs or is worth exploring), the original order is maintained to ensure that core information is presented first. This dynamic adjustment mechanism not only makes the ranking of prompted data more relevant to the user's actual writing scenario, but also guides users to focus on more underutilized document content, thereby improving information retrieval efficiency while promoting the comprehensiveness and diversity of report content.
[0132] In the embodiment of the present application, the first preset time period can be a shorter time period, such as within 10 minutes before the user enters the input content. The second preset time period can be a longer time period, such as within 1 day before the user enters the input content.
[0133] In the embodiment of the present application, the preset number of times can be 3 times, 5 times, etc., which is not limited in the embodiment of the present application. If the number of times the user selects the current prompt data within a short period of time is less than the preset number, 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, which shows that the current prompt data is not frequently used. Therefore, if 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 user input efficiency can be achieved with a high probability.
[0134] In the embodiment 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. At this time, there is no need to adjust the ranking of the current prompt data, and the goal of improving user input efficiency can be achieved with a high probability.
[0135] In an embodiment 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, it can be considered that the current prompt data is data frequently used by the user. Therefore, the priority of the current prompt data should be higher. At this time, the ranking of the current prompt data needs to be adjusted forward, so that the current prompt data is ranked higher in the first order, thereby improving the user input efficiency.
[0136] 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 data frequently used by the user. Therefore, the ranking of the current prompt data can be adjusted backward to avoid the repetition of used data and improve the user input efficiency.
[0137] In the embodiment of the present application, when determining to adjust the ranking of the current prompt data, a preset number of bits may be obtained, and the preset number of bits may be the number of bits by which the current prompt data is shifted backward.
[0138] For example, the preset number of digits may be set to a, and a may be 1 to 10, preferably 3. The current position of the current prompt data may be the first position, and after the current prompt data is shifted back by 3 positions, the current position of the current prompt data is the fourth position.
[0139] Optionally, after obtaining the first order of each prompt data, the following steps may be performed:
[0140] S401, obtaining the first current prompt data in the first order;
[0141] S402: Determine a third selection number and a fourth selection number of the current prompt data selected within a first preset time period and a second preset time period; wherein the first preset time period is shorter than the second preset time period;
[0142] S403: If the third selection number is greater than or equal to the preset number and the fourth selection number is not 0, the row number difference of the current prompt data in the first sequence is reduced by a preset value to obtain a new row number difference of the current prompt data;
[0143] S404: If the new row number difference is not 1, then the updated first sequence is obtained; and it is determined whether the current prompt data is the last one in the first sequence;
[0144] S405: If the new row number difference is 1, the current ranking of the current prompt data is adjusted to the second position to obtain the updated first order; and it is determined whether the current prompt data is the last position in the first order;
[0145] S406: If the third selection number is less than the preset number or the fourth selection number is 0, determine whether the current prompt data is the last one in the first sequence;
[0146] S407: If the current prompt data is not the last one in the first sequence, the prompt data next to the current prompt data in the first sequence is determined as the current prompt data, and S402 is executed;
[0147] S408: If the current prompt data is the last one in the first sequence, the first sequence is determined as the second sequence, and each prompt data is output based on the second sequence.
[0148] Among them, this implementation method dynamically adjusts the difference in the number of associated rows based on the user's historical selection frequency of the first prompt data, so that low-frequency data is automatically moved forward in subsequent rounds, thereby giving priority to displaying potential high-value information.
[0149] In addition, after obtaining the first order of each prompt data, the following steps may be performed:
[0150] S501, obtaining the first current prompt data in the first order;
[0151] S502: Determine a third selection number and a fourth selection number of the current prompt data selected 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;
[0152] S503: If the third selection number is greater than or equal to the preset number and the fourth selection number is not 0, then the row number difference of the current prompt data in the first sequence is increased by a preset value to obtain an updated first sequence; and it is determined whether the current prompt data is the last digit in the first sequence;
[0153] S504: If the third selection number is less than the preset number or the fourth selection number is 0, determine whether the current prompt data is the last one in the first sequence;
[0154] S505: If the current prompt data is not the last one in the first sequence, the prompt data next to the current prompt data in the first sequence is determined as the current prompt data, and S502 is executed;
[0155] S506: If the current prompt data is the last one in the first sequence, the first sequence is determined as the second sequence, and each prompt data is output based on the second sequence.
[0156] This implementation dynamically adjusts the difference in the number of rows associated with the first suggested data item based on the user's historical selection frequency (indirectly lowering its sorting priority), automatically shifting low-frequency data to the back of the list in subsequent rounds, prioritizing the display of other potentially high-value information. This mechanism not only prevents users from repeatedly filtering inefficient content but also, through "exploratory adjustments," guides users to focus on underutilized document content. This improves the efficiency of core information retrieval while effectively balancing the depth and breadth of information utilization.
[0157] 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 may be increased, and the preset value of the increase may be a, which may be 1 to 10, preferably 3. After obtaining the new line number difference or the new character difference, the first order of the prompt data may be re-sorted to obtain an updated first order.
[0158] As an optional implementation, if there are multiple target prompt data with the same row number difference in the first sequence of each prompt data, the following steps may be further performed:
[0159] Determine the classification label of each target prompt data;
[0160] Sort each target prompt data according to the preset order of the classification labels to obtain the label order of each target prompt data;
[0161] The respective prompt data are sorted based on the label order of the respective target prompt data and the row number difference from small to large, to obtain a third order of the respective prompt data.
[0162] When multiple prompts have the same number of rows, the system performs a secondary sort based on the preset category tag priority to maximize content relevance. This sorting mechanism preserves the contextual coherence provided by physical location while enhancing the accuracy of information screening through the semantic weight of category tags. This reduces the need for users to manually switch between different categories of information, significantly improving the fluidity and logic of report writing.
[0163] Optionally, if the first order of each prompt data is determined based on the character difference, then when there are multiple target prompt data with the same line number difference in the first order of each prompt data, the following steps may be performed:
[0164] Determine the classification label of each target prompt data;
[0165] Sort each target prompt data according to the preset order of the classification labels to obtain the label order of each target prompt data;
[0166] The respective prompt data are sorted based on the label order of the respective target prompt data and the character difference value from small to large to obtain a third order of the respective prompt data.
[0167] In an embodiment of the present application, the classification labels of the prompt data can be predetermined when constructing the first database. The classification labels can be labels corresponding to the content that needs to be filled in the project report. The project report needs to include: work status, main problems solved, situation analysis, general technical standards, intellectual property status, economic effects and competitive product status. Therefore, the classification labels are also work status, main problems solved, situation analysis, general technical standards, intellectual property status, economic effects and competitive product status. And the order of the classification labels is predetermined and cannot be changed. Therefore, the target prompt data can be sorted according to the order of the classification labels, thereby solving the sorting problem of multiple target prompt data with the same difference in the number of rows.
[0168] Optionally, the user's identity information can also be obtained. If the user's identity information contains a specific classification label, the user can be considered as an engineer who specializes in writing content corresponding to the specific classification label. Therefore, all prompt data in the third order except the prompt data corresponding to the specific classification label can be deleted, thereby obtaining the fourth order of prompt data, and the prompt data can be output based on the fourth order, thereby more accurately outputting the prompt data that the current user needs to use.
[0169] In an 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., which is not limited in this embodiment of the present application.
[0170] Additionally, after outputting the prompt data, you can also perform the following steps:
[0171] Determining the prompt data selected by the user from the prompt data;
[0172] Determine the context statement for the selected prompt data from the target project file;
[0173] Determine the context sentence as the contextual associative words of the selected prompt data;
[0174] Output the context-related words.
[0175] In this implementation, when a user selects specific prompt data, the system automatically extracts the contextual sentences within the original file and outputs them as associated terms. This not only provides users with the source of the prompt data but also helps them quickly reference related descriptions or supplementary details, avoiding the inefficient process of manually searching through the original file line by line. This design not only enhances the contextual application value of prompt data but also guides users to focus on easily overlooked related information, thereby improving the rigor of the report's argumentation and the integrity of its content, achieving an efficient "click-associate-expand" writing cycle.
[0176] In the embodiment of the present application, the context sentence of the selected prompt data may be the sentence before and the sentence after the selected prompt data.
[0177] For example, if the project materials stored in the second database are:
[0178] 4 General technical requirements
[0179] 4.1 Inner surface roughness
[0180] The inner surface roughness of the pressure reducer is Ra≤0.13μm, wherein the average value of the surface roughness Avg.Ra≤0.25μm, and the maximum height roughness RyMax.≤2.50μm.
[0181] 4.2 Inner surface defects
[0182] The average number of defects (SEM) on the inner surface of the pressure reducer is ≤10, and the maximum number is ≤20.
[0183] 4.3 Internal surface contaminants
[0184] The inner surface of the pressure reducer cannot be detected by EDS except for the main alloying elements Fe, Cr, Ni, Mo and residual elements Mn and Si, as well as O and adsorbed C in the passivation layer. Other elements that should not be detected are not detected.
[0185] 4.4 Internal Surface Chemicals
[0186] Chemicals on the inner surface of the pressure reducer (ESCA / AES) Cr / Fe ≥ 1.5, CrO X / FeO X ≥2.0 (i.e., the ratio of chromium oxide to iron oxide is ≥2.0), oxide layer thickness ≥1.5nm (15Å), adsorbed carbon contaminants ≤30at%, and reduced to baseline levels within 1.5nm (15Å) of the original surface. On the original surface, S, P, N, and Si ≤2at%. All other contaminants ≤1at%.
[0187] 4.5 Pitting temperature
[0188] The pitting temperature of the inner surface of the pressure reducer should be ≥25℃.
[0189] 4.6 Particulate matter
[0190] When the input content is a pressure valve, the output prompt data and the contextual associative words can be shown in Table 1 below:
[0191] Table 1 Output prompt data and context association word list
[0192]
[0193] Please also refer to Figure 2 , Figure 2 This 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, based on the input content, the first prompt information can be determined from the project material as "pressure reducing valve", that is, all synonyms of pressure reducer in the project material can be replaced with pressure reducing valve. Other prompt data are determined from the project material, specifically:
[0194] Pressure reducing valve, pressure reducer inner surface roughness, pressure reducer inner surface average defects, pressure reducer inner surface detection using EDS, pressure reducer inner surface chemicals, pressure reducer inner surface pitting temperature. Implementing the above steps 101 to 103 can allow users to quickly input the content to be compiled, while improving the efficiency of project report compilation, it can also improve the accuracy and completeness of the project report. In addition, the present application can also significantly improve the efficiency and logic of report writing, and reduce the risk of information omission. In addition, the present application can also promote the comprehensiveness and diversity of report content while improving information retrieval efficiency. In addition, the present application can also effectively balance the "depth" and "breadth" of information utilization while improving the efficiency of core information retrieval. In addition, the present application can also significantly improve the fluency and logic of report writing. In addition, the present application can also improve the rigor of the report's argumentation and the completeness of the content, realizing an efficient writing closed loop of "click-association-expansion".
[0195] Based on the same inventive concept, the present application also provides a project report writing device for implementing the project report writing method described above. The solution provided by this device is similar to the solution described in the method described above. Therefore, the specific limitations of one or more project report writing device embodiments provided below can be found in the above-mentioned limitations of the project report writing method and will not be repeated here.
[0196] In an exemplary embodiment, Figure 3 As shown, a project report writing device is provided, comprising:
[0197] A first construction unit 301 is configured to construct a first database according to the project number of the project report; wherein the first database includes all project files matching the project number;
[0198] A second constructing unit 302 is 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 is located in the project report;
[0199] The output unit 303 is configured to determine a plurality of prompt data from the second database according to the acquired input content input by the user, and output the prompt data.
[0200] As an optional implementation manner, the output unit 303 determines multiple prompt data from the second database according to the input content input by the acquired user, and outputs the prompt data in the following manner:
[0201] Get the input content entered by the user;
[0202] determining a plurality of prompt data matching the input content from a second database;
[0203] Determine the target row number of the project title in the target project file, and determine the current row number of each prompt data in the target project file;
[0204] Determine the difference between the current number of rows and the target number of rows for each prompt data;
[0205] Sort each prompt data based on the row number difference from small to large to obtain the first order of each prompt data;
[0206] Based on the first order, each prompt data is output.
[0207] This implementation not only matches relevant prompt data to the input content but also prioritizes prompt data closest to the title (i.e., more logically related) by calculating the difference between the number of lines each prompt data resides in and the number of lines in the project title. This helps users quickly locate core information and reduces the time spent 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 relevant to the current report paragraph, significantly improving the efficiency and logic of report writing and reducing the risk of information omissions.
[0208] As an optional implementation manner, the output unit 303 is further configured to:
[0209] After obtaining the first order of each prompt data, obtaining the first current prompt data in the first order;
[0210] Determine a first selection number and a second selection number of the current prompt data being selected within a first preset time period and a second preset time period; wherein the first preset time period is shorter than the second preset time period;
[0211] If the first selection number is greater than or equal to a preset number and the second selection number is not 0, the position of the current prompt data in the first sequence is shifted forward by a preset number of bits to obtain the current ranking of the current prompt data;
[0212] If the current ranking is not the first, then obtain the updated first order; and determine whether the current prompt data is the last one in the first order;
[0213] If the current ranking is the first, the current ranking of the current prompt data is adjusted to the second to obtain an updated first order; and it is determined whether the current prompt data is the last in the first order;
[0214] If the first selection number is less than the preset number or the second selection number is 0, determining whether the current prompt data is the last one in the first sequence;
[0215] If the current prompt data is not the last one in the first sequence, determining the prompt data next to the current prompt data in the first sequence as the current prompt data, and performing the steps of determining the first selection number and the second selection number of the current prompt data selected within the first preset time period and the second preset time period;
[0216] If the current prompt data is the last one in the first sequence, the first sequence is determined as the second sequence, and each prompt data is output based on the second sequence.
[0217] This implementation automatically adjusts the ranking of the currently selected data based on how often users select it: When the data is frequently selected, it is moved forward to prioritize other potentially high-value information, preventing users from repeatedly filtering inefficient content. When the data is infrequently selected (indicating its relevance may be weak) or has never been selected (indicating that it meets current needs or is worth exploring), the original order is maintained to ensure that core information is presented first. This dynamic adjustment mechanism not only makes the ranking of the prompted data more relevant to the user's actual writing scenario, but also guides users to focus on more underutilized document content, thereby improving information retrieval efficiency while promoting the comprehensiveness and diversity of report content.
[0218] As an optional implementation manner, the output unit 303 is further configured to:
[0219] After obtaining the first order of each prompt data, obtaining the first current prompt data in the first order;
[0220] Determining a third selection number and a fourth selection number of the current prompt data being selected within a first preset time period and a second preset time period; wherein the first preset time period is shorter than the second preset time period;
[0221] If the third selection number is greater than or equal to the preset number and the fourth selection number is not 0, reducing the row number difference of the current prompt data in the first sequence by a preset value to obtain the current ranking of the current prompt data;
[0222] If the current ranking is not the first, then obtain the updated first order; and determine whether the current prompt data is the last one in the first order;
[0223] If the current ranking is the first, the current ranking of the current prompt data is adjusted to the second to obtain an updated first order; and it is determined whether the current prompt data is the last in the first order;
[0224] If the third selection number is less than the preset number or the fourth selection number is 0, determining whether the current prompt data is the last one in the first sequence;
[0225] If the current prompt data is not the last one in the first sequence, determining the prompt data next to the current prompt data in the first sequence as the current prompt data, and performing the steps of determining the first selection number and the second selection number of the current prompt data selected within the first preset time period and the second preset time period;
[0226] If the current prompt data is the last one in the first sequence, the first sequence is determined as the second sequence, and each prompt data is output based on the second sequence.
[0227] Among them, this implementation method dynamically adjusts the difference in the number of associated rows based on the user's historical selection frequency of the first prompt data, so that low-frequency data is automatically moved forward in subsequent rounds, thereby giving priority to displaying potential high-value information.
[0228] As an optional implementation manner, the output unit 303 is further configured to:
[0229] If there are multiple target prompt data with the same row number difference in the first order of each prompt data, determine the classification label of each target prompt data;
[0230] Sort each target prompt data according to the preset order of the classification labels to obtain the label order of each target prompt data;
[0231] The respective prompt data are sorted based on the label order of the respective target prompt data and the row number difference from small to large, to obtain a third order of the respective prompt data.
[0232] When multiple prompts have the same number of rows, the system performs a secondary sort based on the preset category tag priority to maximize content relevance. This sorting mechanism preserves the contextual coherence provided by physical location while enhancing the accuracy of information screening through the semantic weight of category tags. This reduces the need for users to manually switch between different categories of information, significantly improving the fluidity and logic of report writing.
[0233] As an optional implementation manner, the output unit 303 is further configured to:
[0234] After outputting the prompt data, determining that the user has selected prompt data from the prompt data;
[0235] Determine the context statement for the selected prompt data from the target project file;
[0236] Determine the context sentence as the contextual associative words of the selected prompt data;
[0237] Output the context-related words.
[0238] In this implementation, when a user selects specific prompt data, the system automatically extracts the contextual sentences within the original file and outputs them as associated terms. This not only provides users with the source of the prompt data but also helps them quickly reference related descriptions or supplementary details, avoiding the inefficient process of manually searching through the original file line by line. This design not only enhances the contextual application value of prompt data but also guides users to focus on easily overlooked related information, thereby improving the rigor of the report's argumentation and the integrity of its content, achieving an efficient "click-associate-expand" writing cycle.
[0239] The implementation of the above-mentioned embodiment allows users to quickly input the content to be compiled, which can improve the efficiency of project report compilation while also improving the accuracy and completeness of project reports. In addition, the present application can also significantly improve the efficiency and logic of report writing, reducing the risk of information omissions. In addition, the present application can also promote the comprehensiveness and diversity of report content while improving information retrieval efficiency. In addition, the present application can also effectively balance the "depth" and "breadth" of information utilization while improving the efficiency of core information retrieval. In addition, the present application can also significantly improve the fluency and logic of report writing. In addition, the present application can also improve the rigor of the report's argumentation and the completeness of its content, realizing an efficient writing closed loop of "click-association-expansion".
[0240] In an exemplary embodiment, a computer device is provided. The computer device may be a server or a terminal. The internal structure diagram thereof may be as follows: Figure 4As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O) and a communication interface. The processor, memory and input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. 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 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 an external device. 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, a project report writing method is implemented.
[0241] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0242] In an exemplary embodiment, a computer device is further provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps in the above method embodiments when executing the computer program.
[0243] In an exemplary embodiment, a computer-readable storage medium is provided, storing a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0244] In an exemplary embodiment, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0245] In an exemplary embodiment, a chip is provided, which includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the steps in the above-mentioned method embodiments and achieve the same technical effects. To avoid repetition, they are not described here.
[0246] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0247] 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 used 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 must comply with relevant regulations.
[0248] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the 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 above-mentioned embodiments. In particular, any reference to memory, database, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. 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), magnetic 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 may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0249] The databases involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processors involved in the various embodiments provided herein may include, but are not limited to, general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic units, data processing logic units based on quantum computing, and the like.
[0250] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, 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, they should be considered to be within the scope of this specification.
[0251] This document uses specific examples to illustrate the principles and implementation methods of this application. The description of the above examples is only intended to help understand the method and core concept of this application. At the same time, for those skilled in the art, based on the concept of this application, there may be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.
Claims
1. A project report writing method, characterized in that: The project report writing method includes: Constructing a first database according to the project number of the project report; wherein the first database contains all project files matching the project number; constructing 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 is located in the project report; determining a plurality of prompt data from the second database according to the input content input by the acquired user, and outputting the prompt data; The method of constructing the second database from the first database according to the cursor position in the project report is specifically as follows: Get the cursor position in the project report and get the cursor position; Obtaining the page title of the page where the cursor is located according to the cursor position; Eliminate the content irrelevant to the page title from the first database to construct a second database; Furthermore, determining a plurality of prompt data from the second database according to the input content input by the acquired user, and outputting the prompt data, specifically includes: Get the input content entered by the user; determining a plurality of prompt data matching the input content from the second database; Determining a target number of rows for the project title in the target project file, and determining a current number of rows for each prompt data in the target project file; Determine the difference between the current number of rows of each prompt data and the target number of rows; 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.
2. The project report writing method according to claim 1, characterized in that: After obtaining the first sequence of each prompt data, the project report writing method further includes: Obtaining the current prompt data of the first one in the first sequence; Determine a first selection number and a second selection number of the current prompt data being selected within a first preset time period and a second preset time period; wherein the first preset time period is shorter than the second preset time period; If the first selection number is greater than or equal to a preset number and the second selection number is not 0, the position of the current prompt data in the first sequence is shifted forward by a preset number of bits to obtain the current ranking of the current prompt data; If the current ranking is not the first, 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, the current ranking of the current prompt data is adjusted to the second to obtain an updated first order; and it is determined whether the current prompt data is the last in the first order; If the first selection number is less than the preset number or the second selection number is 0, determining whether the current prompt data is the last one in the first sequence; If the current prompt data is not the last one in the first sequence, determining the prompt data next to the current prompt data in the first sequence as the current prompt data, and performing the steps of determining the first selection number and the second selection number 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 sequence, the first sequence is determined as the second sequence, and each prompt data is output based on the second sequence.
3. The project report writing method according to claim 2, characterized in that: After obtaining the first sequence of each prompt data, the project report writing method further includes: Obtaining the current prompt data of the first one in the first sequence; Determining a third selection number and a fourth selection number of the current prompt data being selected within a first preset time period and a second preset time period; wherein the first preset time period is shorter than the second preset time period; If the third selection number is greater than or equal to the preset number and the fourth selection number is not 0, reducing the row number difference of the current prompt data in the first sequence by a preset value to obtain the current ranking of the current prompt data; If the current ranking is not the first, 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, the current ranking of the current prompt data is adjusted to the second to obtain an updated first order; and it is determined whether the current prompt data is the last in the first order; If the third selection number is less than the preset number or the fourth selection number is 0, determining whether the current prompt data is the last one in the first sequence; If the current prompt data is not the last one in the first sequence, determining the prompt data next to the current prompt data in the first sequence as the current prompt data, and performing the steps of determining the first selection number and the second selection number 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 sequence, the first sequence is determined as the second sequence, and each prompt data is output based on the second sequence.
4. The project report writing method according to claim 1, characterized in that: If there are multiple target prompt data with the same row number difference in the first order of the prompt data, the project report writing method further includes: Determine the classification label 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; The prompt data are sorted based on the label order of the target prompt data and the row number difference from small to large to obtain a third order of the prompt data.
5. The project report writing method according to claim 1, characterized in that: After outputting the prompt data, the project report writing method further includes: determining prompt data selected by a user from the prompt data; determining a context sentence of the selected prompt data from the target project file; Determining the context sentence as the contextual associative words of the selected prompt data; Output the context-related words.
6. A project report writing method, characterized in that: The project report writing method includes: Constructing a first database according to the project number of the project report; wherein the first database contains all project files matching the project number; constructing 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 is located in the project report; determining a plurality of prompt data from the second database according to the input content input by the acquired user, and outputting the prompt data; The method of constructing the second database from the first database according to the cursor position in the project report is specifically as follows: Get the cursor position in the project report and get the cursor position; Obtaining the page title of the page where the cursor is located according to the cursor position; Eliminate the content irrelevant to the page title from the first database to construct a second database; Furthermore, determining a plurality of prompt data from the second database according to the input content input by the acquired user, and outputting the prompt data, specifically includes: Get the input content entered by the user; determining a plurality of prompt data matching the input content from the second database; determining a target character position of a first character of the project title in the target project file, and determining a current character position of a first character of each prompt data in the target project file; Determine the character difference between the current character position of each prompt data and the target character position; Sort each prompt data based on the character difference from small to large to obtain the first order of each prompt data; Based on the first order, each prompt data is output.
7. A project report writing device, characterized in that: The project report writing device comprises: A first construction unit is configured to construct a first database according to a project number of a project report; wherein the first database contains all project files matching the project number; a second constructing 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 is located in the project report; an output unit, configured to determine a plurality of prompt data from the second database according to the input content input by the acquired user, and output the prompt data; The second construction unit constructs the second database from the first database according to the cursor position in the project report in the following manner: Get the cursor position in the project report and get the cursor position; Obtaining the page title of the page where the cursor is located according to the cursor position; Eliminate the content irrelevant to the page title from the first database to construct a second database; Furthermore, the output unit determines a plurality of prompt data from the second database according to the input content input by the acquired user, and outputs the prompt data in a manner as follows: Get the input content entered by the user; determining a plurality of prompt data matching the input content from the second database; Determining a target number of rows for the project title in the target project file, and determining a current number of rows for each prompt data in the target project file; Determine the difference between the current number of rows of each prompt data and the target number of rows; 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.
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 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the project report writing method according to any one of claims 1 to 6 are implemented.
10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the project report writing method according to any one of claims 1 to 6 are implemented.
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