A specification-oriented catalog structure processing method, device and equipment
By identifying cost chapter titles in technical specifications that conform to a preset three-tier rule, and generating catalog structure data, the problem of low efficiency in manual identification is solved, and automated cost chapter extraction and catalog generation are achieved, improving efficiency and accuracy.
Patent Information
- Application Number
- CN202611044396.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-14
- Publication Date
- 2026-11-24
AI Technical Summary
The manual identification of each chapter in existing technical specifications is inefficient, resulting in low efficiency and high error rate in cost data screening and input. The lack of automated interfaces makes it difficult to achieve real-time synchronization of information silos.
By identifying cost chapter titles in technical specifications that conform to the preset three-level rules, and generating directory structure data based on text prefix features and position indexes, the system automatically extracts chapter titles applicable to cost estimation and establishes a directory structure.
It enables rapid location of cost-related chapters without manual intervention, improving efficiency and accuracy. The generated directory structure data retains the chapter hierarchy and location index, facilitating subsequent cost-related operations.
Smart Images

Figure CN123157706A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to a method, apparatus and device for structuring a catalog for technical specifications. Background Technology
[0002] Technical specifications are typically written in text form by engineers or designers to describe in detail the project's technical requirements, material specifications, and construction standards.
[0003] In related technologies, it is usually necessary to manually identify and divide the various chapters in the technical specifications document, and then extract the corresponding project functional information from the chapters to complete the project cost estimate. However, technical specifications documents contain a large amount of data, and manual identification of the various chapters is inefficient. Summary of the Invention
[0004] Therefore, it is necessary to provide a method, apparatus, and device for structuring the catalog of technical specifications in response to the above-mentioned technical problems.
[0005] Firstly, this application provides a method for structuring the catalog of technical specifications, including:
[0006] Based on the first user instruction, the content to be processed in the pre-acquired initial technical specification is determined, and an initial text dataset is formed based on the content to be processed. The initial text dataset includes multiple levels of specification chapters, and each specification chapter has a corresponding specification chapter title.
[0007] Based on the text prefix features of the chapter titles in the specification, identify the cost chapter titles in the initial text dataset that conform to the preset three-level rules of cost operation;
[0008] The position index of each cost chapter title is determined based on the initial text dataset, and the directory structure data is obtained based on the hierarchical order and position index of all cost chapter titles.
[0009] In one embodiment, an initial text dataset is formed based on the content to be processed, including:
[0010] Extract all text content from the content to be processed, and record the page number and line number information corresponding to each line of text content; the text content includes the main text and the chapter titles of the specification document;
[0011] Based on the text content and the corresponding page numbers and line numbers, an initial text dataset is formed, which includes the page numbers and line numbers corresponding to the chapter titles of each specification book.
[0012] In one embodiment, based on the text prefix features of the chapter titles in the specification document, cost chapter titles in the initial text dataset that conform to the preset three-level rules of cost operation are identified, including:
[0013] Based on the chapter titles of the specification document and the text prefix features of the chapter titles, the initial functional chapters in the initial text dataset are determined;
[0014] Based on the standard three-level rules and the content of the initial functional chapters, the titles of each initial functional chapter are mapped to the corresponding cost chapter titles.
[0015] In one embodiment, based on the standard three-tier rule and the content of the initial functional chapters, the titles of each initial functional chapter are mapped to corresponding cost chapter titles, including:
[0016] Based on the standard three-level rules and the content of the initial functional chapters, the titles of each initial functional chapter are mapped to the corresponding initial cost chapter titles.
[0017] The initial cost section title is adjusted based on the obtained second user instructions to obtain the cost section title.
[0018] In one embodiment, based on the standard three-tier rule and the content of the initial functional chapters, the titles of each initial functional chapter are mapped to corresponding cost chapter titles, including:
[0019] Based on the standard three-level rules and the content of the initial functional chapters, the titles of each initial functional chapter are mapped to the corresponding initial cost chapter titles.
[0020] Given the initial cost section title, create a new cost section title based on the obtained third-party user instructions;
[0021] In the technical specifications, determine the chapter titles of the newly constructed cost section that match the chapter titles of the new construction cost section;
[0022] Link the chapter titles of the newly created specification document with the chapter titles of the newly created construction cost document;
[0023] The cost section is obtained based on the adjusted initial functional section titles and the new cost section titles.
[0024] In one embodiment, the method further includes:
[0025] The directory structure data is displayed in the preset display module.
[0026] In one embodiment, the method further includes:
[0027] With the preset display module displaying the directory structure data, the fourth user instruction is obtained. The fourth user instruction represents the target title pointing to all cost chapter titles.
[0028] Based on the location index of the target title, the corresponding chapter title of the technical specification is determined in the technical specification and displayed in the display module.
[0029] Secondly, this application also provides a cataloging structure processing apparatus for technical specifications, comprising:
[0030] The acquisition module is used to determine the content to be processed in the pre-acquired initial technical specification document according to the first user instruction, and form an initial text dataset based on the content to be processed; the initial text dataset includes multiple levels of specification document chapters, and each specification document chapter has a corresponding specification document chapter title;
[0031] The identification module is used to identify cost chapter titles in the initial text dataset that conform to the preset three-level rules of cost operation based on the text prefix features of the chapter titles in the specification.
[0032] A module is established to determine the position index of each cost chapter title based on the initial text dataset, and to obtain the directory structure data based on the hierarchical order and position index of all cost chapter titles.
[0033] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0034] Based on the first user instruction, the content to be processed in the pre-acquired initial technical specification is determined, and an initial text dataset is formed based on the content to be processed. The initial text dataset includes multiple levels of specification chapters, and each specification chapter has a corresponding specification chapter title.
[0035] Based on the text prefix features of the chapter titles in the specification, identify the cost chapter titles in the initial text dataset that conform to the preset three-level rules of cost operation;
[0036] The position index of each cost chapter title is determined based on the initial text dataset, and the directory structure data is obtained based on the hierarchical order and position index of all cost chapter titles.
[0037] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:
[0038] Based on the first user instruction, the content to be processed in the pre-acquired initial technical specification is determined, and an initial text dataset is formed based on the content to be processed. The initial text dataset includes multiple levels of specification chapters, and each specification chapter has a corresponding specification chapter title.
[0039] Based on the text prefix features of the chapter titles in the specification, identify the cost chapter titles in the initial text dataset that conform to the preset three-level rules of cost operation;
[0040] The position index of each cost chapter title is determined based on the initial text dataset, and the directory structure data is obtained based on the hierarchical order and position index of all cost chapter titles.
[0041] The aforementioned method, apparatus, and device for structuring a catalog of technical specifications determine the content to be processed in a pre-acquired initial technical specification based on a first user instruction, and form an initial text dataset based on the content to be processed. The initial text dataset includes multi-level specification chapters, each with a corresponding chapter title. Based on the text prefix features of the specification chapter titles, cost-related chapter titles in the initial text dataset that conform to a preset three-level standard rule for cost estimation operations are identified. The position index of each cost-related chapter title is determined based on the initial text dataset, and catalog structure data is obtained based on the hierarchical order and position index of all cost-related chapter titles. Through this embodiment, all cost-related chapters can be quickly located without manual intervention; and the preset three-level standard rule maps cost-related chapter titles in the technical specification to cost-related chapter titles, thereby facilitating the establishment of catalog structure data for cost estimation. Furthermore, the final generated directory structure data not only lists the chapter titles applicable to cost estimation and preserves the hierarchical relationship between chapters, but also records the original position of each title in the technical specifications. This allows subsequent cost estimation software or data analysis tools to directly utilize this structured directory data for quick navigation and content searching, providing data support for subsequent cost estimation operations. The entire process requires no complex manual operation; only a few simple interactive actions are needed to automatically complete the generation of the directory structure data for cost estimation, improving the user experience. Attached Figure Description
[0042] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0043] Figure 1 This is a diagram illustrating the application environment of a directory structuring method in one embodiment.
[0044] Figure 2 This is a flowchart illustrating a directory structuring method in one embodiment;
[0045] Figure 3 This is a schematic diagram of the process for obtaining the initial text dataset in one embodiment;
[0046] Figure 4 This is a flowchart illustrating the process of obtaining the cost section title in one embodiment;
[0047] Figure 5 This is a flowchart illustrating the process of obtaining the cost section title in another embodiment;
[0048] Figure 6 This is a schematic diagram illustrating the adjustment of the initial cost section title in one embodiment;
[0049] Figure 7 This is a flowchart illustrating the process of obtaining the cost section title in another embodiment;
[0050] Figure 8 This is a schematic diagram illustrating the directory structure data in one embodiment;
[0051] Figure 9 This is a flowchart illustrating a directory structuring method in a preferred embodiment;
[0052] Figure 10 This is a structural block diagram of a directory structuring processing device in one embodiment. Detailed Implementation
[0053] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0054] The technical background of this application will be explained below.
[0055] Technical specifications (such as engineering design documents and project requirements specifications) are typically written by engineers or designers to describe in detail the project's technical requirements, material specifications, and construction standards. Technical specifications include a wealth of data and various types of information, among which information directly related to cost includes functional design specifications for the project.
[0056] Cost estimation systems are used to calculate project costs, primarily by using information such as functional design specifications in technical specifications. However, the filtering and input of this data often rely on manual identification from the technical specifications and manual input into the cost estimation system. This leads to the following problems: low efficiency and high error rates due to manual identification of chapters containing functional design specifications and manual input of chapter data into the cost estimation system; and the lack of an automated interface between the technical specifications and the cost estimation system results in information silos and makes real-time data synchronization difficult.
[0057] To address the aforementioned issues, this application provides a method for structuring the catalog of technical specifications. The method includes: determining the content to be processed in a pre-acquired initial technical specification based on a first user instruction; forming an initial text dataset based on the content to be processed; the initial text dataset includes multi-level specification chapters; identifying cost-related chapters in the initial text dataset that conform to a preset three-level standard rule for cost estimation operations based on the text prefix features of the specification chapters; each cost-related chapter having a corresponding cost-related chapter title; determining the position index of each cost-related chapter title based on the initial text dataset; and obtaining catalog structure data based on the hierarchical order and position index of all cost-related chapter titles. This application can automatically extract chapters suitable for engineering cost estimation from technical specifications without manual intervention, effectively improving efficiency and accuracy. See the following embodiments for details.
[0058] The table of contents structuring method for technical specifications provided in this application can be applied to, for example... Figure 1 In the application environment shown, terminal 102 communicates with server 104 via a network. A data storage system can store the data that server 104 needs to process. The data storage system can be integrated onto server 104, or it can be located on a cloud or other network server. Based on the first user instruction, the system determines the content to be processed in the pre-acquired initial technical specification, forming an initial text dataset. The initial text dataset includes multi-level specification chapters. Based on the text prefix features of the specification chapters, it identifies cost engineering chapters in the initial text dataset that conform to the preset three-level rules for cost engineering operations. Each cost engineering chapter corresponds to a cost engineering chapter title. The system determines the position index of each cost engineering chapter title based on the initial text dataset, and obtains directory structure data based on the hierarchical order and position index of all cost engineering chapter titles. Terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, etc. Server 104 can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.
[0059] In one exemplary embodiment, such as Figure 2As shown, a method for structuring the catalog of technical specifications is provided, which can be applied to... Figure 1 Taking the server in the example of this, the explanation includes:
[0060] S210, determine the content to be processed in the pre-acquired initial technical specification according to the first user instruction, and form an initial text dataset according to the content to be processed; the initial text dataset includes multiple levels of specification chapters, and each specification chapter has a corresponding specification chapter title.
[0061] The aforementioned initial technical specification refers to the original, unprocessed engineering technical document file. The first user instruction is a control signal input by the operator, used to define the content to be processed in the initial technical specification, that is, to limit the scope of processing. In practical applications, the first user instruction can be the range of page numbers to be processed (e.g., pages 1 to 50). The content to be processed in the initial technical specification can be defined through this first user instruction.
[0062] In this embodiment, the initial technical specification is uploaded to the cost estimation software via an interactive interface. The user inputs the page range to be processed via a first user instruction, thus determining the content in the initial technical specification that requires structured processing. Furthermore, if the first user instruction does not include a page range, the entire initial technical specification is processed by default. If the page number specified in the first user instruction is invalid (e.g., exceeding the actual number of pages in the initial technical specification, or a formatting error), the cost estimation software can create a window to prompt the user that the entered page number is incorrect (e.g., displaying "Invalid page range, please re-enter"), to facilitate user adjustments.
[0063] The user defines the scope to be extracted from the initial technical specification document using the first user command, and then invokes the built-in parsing tool of the cost estimation software to accurately extract all text content within that scope. Simultaneously, the page number and line number of each line of text are recorded. The extracted text undergoes preliminary formatting (such as removing redundant spaces and line breaks) to form the aforementioned initial text dataset. This initial text dataset includes multiple levels of specification document chapters, and each specification document chapter corresponds to a chapter title.
[0064] S220 identifies cost chapter titles in the initial text dataset that conform to the preset three-level rules of cost operation based on the text prefix features of the chapter titles in the specification.
[0065] The text prefix feature refers to a common character sequence with a fixed format at the beginning of each chapter title, for example, the prefix of a first-level chapter is "1", "一", "第一章", etc.; the prefix of a second-level chapter is "1、1", "(一)", etc.; the prefix of a third-level chapter is "1、1、1", "①", "(1)", etc. If it is detected that the characters in a certain line conform to the text prefix feature, it is determined that the line of characters is a title rather than body content.
[0066] The above preset standard three-level rule is a common three-level rule in cost calculation. Since this application extracts the content required for cost based on the technical specification, the extracted content also needs to meet the standard hierarchical structure in cost operations. Typically, in the standard three-level rule, the first level generally represents an independent and complete cost business unit, such as a bill of quantities, cost estimation, etc.; the second level generally belongs to the first level and represents different sub-parts in the cost unit. For example, under the factory quantity list, the second level can be civil engineering quantity, equipment list, etc.; the third level generally belongs to the second level and represents specific, indivisible cost items, such as the specification requirements, quantity requirements and unit price information of a specific equipment (such as a transformer).
[0067] In the embodiment of this application, the prefix of each line of text is matched with the above text prefix feature. If the matching is successful, the line is determined to be a chapter title (rather than body content), and it is further determined whether the chapter can be used for cost calculation (not every chapter content of the specification is applicable to cost calculation), that is, according to the prefix of the chapter title and the content of the chapter title, it is determined whether the specification chapter is a chapter required for cost operations. If so, the title of the specification chapter is mapped to a cost chapter title.
[0068] For example, by analyzing the text features of each chapter title in the specification and the content in the chapter, if it is determined that a certain chapter or several chapters (such as chapter 1.2.1.5, which represents that the chapter is a fourth-level chapter, and there is no three-level restriction on the chapter level in the technical specification) can be used for cost calculation, the specification chapter (chapter 1.2.1.5) is mapped to a cost chapter that conforms to the standard three-level rule (for example, the fourth-level specification chapter 1.2.1.5 should belong to the second-level cost chapter). Thus, the title of a specification chapter in the technical specification that is suitable for cost calculation is mapped to a cost chapter title that conforms to the standard three-level rule. In summary, the chapters in the specification that can be used for cost calculation are determined, and their chapter titles are mapped to cost chapter titles that conform to the three-level rule. At this time, the specification chapter titles and the cost chapter titles are in one-to-one correspondence, forming a corresponding relationship of "cost chapter title -- specification chapter title".
[0069] It should be noted that the purpose of this application is to identify the chapters in the technical specifications that can be used for cost calculation, and to establish a cost chapter directory based on these chapters, with each cost chapter title in the cost chapter directory corresponding to the chapter titles in the specifications, without changing the content of the technical specifications.
[0070] S230, determine the position index of each cost chapter title based on the initial text dataset, and obtain the directory structure data based on the hierarchical order and position index of all cost chapter titles.
[0071] The location index is a physical location that accurately and uniquely describes the location of a cost section title in its source document (i.e., the initial technical specification). For example, the location index can consist of page numbers and line numbers.
[0072] In this embodiment, for all identified and mapped cost chapter titles, their hierarchical order (such as which level in the standard three-level rule the title belongs to) and position index are determined. The cost chapter titles are sorted according to the hierarchical order, integrating core information such as chapter titles, levels, and position indexes to form a tree-like directory structure data. Each cost chapter title is bound to its position index information in the source document (i.e., the initial technical specification), thereby allowing the cost chapter titles to be mapped to the content in the technical specification.
[0073] This application's embodiments enable the rapid location of all cost-related chapters without manual intervention. Furthermore, by using a preset three-tiered standard rule, cost-related chapter titles in the technical specifications are mapped to cost chapter titles, facilitating the creation of a cost-related directory structure. The generated directory structure not only lists the chapter titles applicable to cost estimation and preserves the hierarchical relationships between chapters, but also records the original position of each title in the technical specifications. This allows subsequent cost estimation software or data analysis tools to directly utilize this structured directory data for quick navigation and content retrieval, providing data support for subsequent cost estimation operations. The entire process requires no complex manual intervention; only a few simple interactive actions are needed to automatically complete the identification and generation of the cost-related directory structure data, enhancing the user experience.
[0074] In one exemplary embodiment, such as Figure 3 As shown, an initial text dataset is formed based on the content to be processed, including:
[0075] S310, extract all text content from the content to be processed, and record the page number and line number information corresponding to each line of text content; the text content includes the main text and the chapter titles of the specification.
[0076] In this embodiment of the application, the text content of each line in the initial technical specification and its corresponding page number and line number information (e.g., a certain level of heading is on the 3rd line of page 10) are recorded, thereby also recording the page number and line number information of the chapter headings of each specification.
[0077] S320. Based on the text content and the corresponding page number and line number information, an initial text dataset is formed. The initial text dataset includes the page number and line number information corresponding to the chapter titles of each specification.
[0078] In this embodiment, text content, especially the chapter titles in the specification, is bound to corresponding page numbers and line numbers to form a "chapter title-location index" relationship. This ensures that each chapter can be accurately located to its specific position in the original technical specification using its page number and line number, avoiding confusion in chapter title positions and providing location data support for subsequent table of contents generation. Through this application, the location index information for each chapter title in the initial technical specification can be determined.
[0079] In one exemplary embodiment, such as Figure 4 As shown, based on the text prefix features of the chapter titles in the specification document, cost chapter titles in the initial text dataset that conform to the preset three-level rules of cost operation are identified, including:
[0080] S410, Based on the chapter titles of the specification document and the text prefix features of the chapter titles of the specification document, determine the initial functional chapters in the initial text dataset.
[0081] The initial functional chapters are those that will be used in subsequent cost calculations. It is understandable that the technical specifications contain a large amount of complex content, some of which will be directly applied to the subsequent cost calculations, while the rest are not directly related to the subsequent cost calculations. Therefore, in order to achieve subsequent cost calculations more efficiently and eliminate redundant content, the initial functional chapters that are directly related to cost calculations need to be determined first in this embodiment, such as the bill of quantities chapter, the equipment and materials list chapter, etc.
[0082] In this embodiment, the initial functional chapters directly related to cost calculation can be detected based on the content and prefix features of the chapter titles in the specification document. These initial functional chapters retain the hierarchical divisions of the original document and have not yet been aligned with the cost business rules.
[0083] S420 maps the titles of each initial functional chapter to the corresponding cost chapter titles, based on the standard three-level rules and the content of the initial functional chapters.
[0084] In this embodiment, the initial functional chapter titles need to be mapped to the corresponding cost chapter titles that conform to the standard three-level rule. It should be emphasized that this embodiment is still a mapping of chapter titles and does not involve any modification to the original initial technical specification. For example, if the original initial functional chapter titles are a and b, a and b are mapped to cost chapter titles A and B that conform to the three-level rule, and the original initial functional chapter titles a and b and their contents remain unchanged. A directory structure data is established based on the mapped cost chapter titles A and B, and the corresponding specification chapter titles and their contents in the original technical specification can also be determined based on the cost chapter titles in the directory structure data.
[0085] In this embodiment, the hierarchy of the cost section title can be determined according to a preset keyword mapping rule. For example, the preset mapping rule is as follows: if the title of the initial functional section contains content such as "Bill of Quantities," it is mapped to a first-level cost section title; if the title of the initial functional section contains keywords such as "excavation" or "backfilling," it is mapped to a second-level cost section title; if the title of the initial functional section contains specific materials or specifications, such as "concrete" or "column," it is mapped to a third-level cost section title. The specific mapping rule can be designed by relevant technical personnel according to actual needs.
[0086] Through the embodiments of this application, the initial functional chapter titles that are directly related to subsequent cost calculations can be mapped to the corresponding cost chapter titles.
[0087] In one exemplary embodiment, such as Figure 5 As shown, based on the standard three-tier rule and the content of the initial functional chapters, the titles of each initial functional chapter are mapped to the corresponding cost chapter titles, including:
[0088] S510, based on the standard three-level rules and the content of the initial functional chapters, maps the titles of each initial functional chapter to the corresponding initial cost chapter titles.
[0089] In this embodiment of the application, each initial functional chapter title is mapped to the corresponding initial cost chapter title, and the two have a one-to-one correspondence. At this time, the initial cost chapter title is the cost chapter title that the cost software automatically maps according to the mapping rules.
[0090] S520: Adjust the initial cost section title according to the obtained second user instruction to obtain the cost section title.
[0091] like Figure 6As shown in the figure, the cost estimation software automatically extracts and maps the initial cost estimation chapter titles to a standard three-tier system based on the technical specifications. For example, 6.1 in the figure is the mapped second-tier cost estimation chapter title "Operation Ticket Management," which conforms to the standard three-tier system; 6.1.1 in the figure is the mapped third-tier cost estimation chapter title "Operation Ticket Drawing Management," which conforms to the standard three-tier system. Other cost estimation chapter titles in the figure follow the same pattern. At this point, the initial cost estimation chapter titles can be displayed on the screen, and the software can receive second-user instructions. Based on these instructions, the initial cost estimation chapter titles can be adjusted. As shown in the figure, any title can be moved left (promoting its level, such as promoting a level 3 title to level 2), moved right (demoting its level, such as demoting a level 2 title to level 3), deleted, or deleted in batches.
[0092] After adjusting the initial cost section title according to the second user's instructions, the above cost section title was obtained.
[0093] In one exemplary embodiment, such as Figure 7 As shown, based on the standard three-tier rule and the content of the initial functional chapters, the titles of each initial functional chapter are mapped to the corresponding cost chapter titles, including:
[0094] S710, based on the standard three-level rules and the content of the initial functional chapters, maps the titles of each initial functional chapter to the corresponding initial cost chapter titles;
[0095] S720, having obtained the initial cost chapter title, creates a new cost chapter title based on the acquired third-party user instructions.
[0096] When the cost estimation software automatically generates the initial cost estimation chapter title according to the preset mapping rules and standard three-level rules, it obtains the third user's instruction and creates a new cost estimation chapter title in response to the third user's instruction. At this time, the new cost estimation chapter title is still a blank title.
[0097] S730, in the technical specification, determine the chapter title of the newly constructed specification that matches the chapter title of the newly constructed construction cost.
[0098] In this embodiment of the application, a user can directly select a chapter title in the technical specification document through a third user instruction, that is, create a new chapter title in the specification document.
[0099] S740 binds the title of a newly created specification section to the title of a newly created construction cost section.
[0100] S750, based on the adjusted initial functional chapter titles and the new construction cost chapter titles, the cost chapter is obtained.
[0101] After binding the title of the newly created specification chapter with the title of the newly created cost chapter, insert the title of the newly created cost chapter into a suitable position in the initial functional chapter titles. The specific insertion position can be adjusted by the user through a second user command.
[0102] This embodiment allows for manual inspection of the hierarchical content of cost section titles. If certain content in the technical specifications is not identified as a cost section title, it can be manually added, thus ensuring the correctness and comprehensiveness of the final cost section and improving the flexibility of cost section creation.
[0103] In one exemplary embodiment, the method further includes:
[0104] The directory structure data is displayed in the preset display module.
[0105] In one exemplary embodiment, the method further includes:
[0106] With the preset display module displaying the directory structure data, the fourth user instruction is obtained. The fourth user instruction represents the target title pointing to all cost chapter titles.
[0107] Based on the location index of the target title, the corresponding chapter title of the technical specification is determined in the technical specification and displayed in the display module.
[0108] In the embodiments of this application, Figure 8 This is a schematic diagram showing the directory structure data in one embodiment. The screenshot shows part of the cost estimation chapter titles and corresponding standard document chapter titles displayed in the cost estimation software. The directory structure data is displayed in the "Hierarchical Functions" section in the upper part of the figure. It can be seen that, for example, "Financial Standards Center" is the first level, "Data Monitoring Dashboard" is the second level, and "Data Analysis Interface" is the third level.
[0109] The fourth user instruction is a user-instructed view of a target title. In practical applications, this can be triggered by the user clicking on the target title. Responding to this fourth user instruction, the display module automatically scrolls, positions, and highlights the corresponding text block based on a pre-bound location index (page number, line number). Figure 8 As shown in the lower half, this enables bidirectional linkage between the cost section titles and the original specification section titles.
[0110] Furthermore, this application embodiment also provides technical status prompts, clearly indicating technical reasons such as inability to parse, page number exceeding the boundary, and unrecognized chapter when display / location is abnormal, so as to facilitate user correction.
[0111] This application also provides a preferred embodiment of a method for structuring the catalog of technical specifications. Figure 9This is a flowchart illustrating a directory structuring method in a preferred embodiment.
[0112] S910: Based on the acquired first user instruction, confirm the initial text dataset in the initial technical specification document. The first user instruction indicates the page range of text and its location information to be extracted from the initial technical specification document. In practical applications, the initial technical specification document can be directly uploaded or dragged and dropped into the cost estimation software, and the first user instruction can be input into the software.
[0113] S920, for the initial text dataset, distinguishes between chapter titles and body text, and binds each chapter title to a position index to ensure that each chapter title can be accurately located.
[0114] S930 identifies the initial functional chapters and their titles that are directly related to cost calculation.
[0115] S940 maps the initial function chapter titles to cost chapter titles.
[0116] S950 generates a corresponding tree-shaped directory structure data for the cost chapter titles based on the chapter hierarchy. It is understandable that the directory structure data includes pre-bound location indices (page numbers, line numbers).
[0117] S960 directly populates the function list page of the cost estimation software with the directory structure data for users to view and operate. Simultaneously, the client stores all processed data for easy review and secondary editing later. The chapter hierarchy is presented in a tree structure, with first-level chapters centered and bold, and second- and third-level chapters indented. Each directory node supports expansion / collapse, and clicking a node allows quick navigation to the specific location of that chapter in the technical specifications.
[0118] In this embodiment of the application, if the technical specification cannot be parsed, the page range is invalid, or no chapter is identified, the client will prompt specific error information (such as "Document cannot be parsed, please re-upload" or "No chapter was identified, please check the document content"), so that the user can adjust and re-initiate the request.
[0119] The following is a specific application scenario. For example, in this scenario, a user (such as a project assistant or product manager) is processing a technical specification document with multiple chapters. The document's table of contents is missing or not standardized. The client needs to automatically identify all chapters, record the precise location of each chapter, extract the title content directly related to cost calculation, and generate table of contents structure data for cost calculation. This facilitates subsequent project cost estimation, data retrieval, and document content modification, thereby improving work efficiency.
[0120] 1. Users upload the technical specifications to the cost estimation software through the client, enter the page range (e.g., pages 1-50), and initiate a table of contents generation request;
[0121] 2. The cost estimation software is started to extract all text within the corresponding page range, and the page number and line number corresponding to each line of text are recorded. After being organized, an initial text dataset is formed.
[0122] 3. Based on the text prefix features of the chapter titles in the specification document (such as "1. Document Overview, 1.1 Document Purpose, 2. Technical Specifications, 2.1.1 Interface Requirements"), the initial text dataset is analyzed line by line to automatically identify all chapter titles, title levels, and position indices in the specification document, thereby ensuring that each chapter can be accurately located.
[0123] 4. Determine the initial functional chapter titles in the specification that are directly related to cost calculation, and map the initial functional chapter titles to the corresponding cost chapter titles; understandably, the mapping operation only adjusts the level and title name of the initial functional chapter titles, without changing the content of the technical specification; and the cost chapter titles correspond one-to-one with the initial functional chapter titles;
[0124] 5. Generate a tree-shaped directory structure data according to the chapter hierarchy. Each directory node is labeled with a chapter title and carries the corresponding page number and line number (e.g., "2. Technical Specifications (carrying location index data: page 10, line 3)" "2.1.1 Interface Requirements (carrying location index data: page 12, line 4)"). This completes the generation of the directory structure data.
[0125] 6. The generated directory structure data is directly populated into the function list page of the cost estimation software to realize the cross-module data automatic mapping mechanism (from specification to cost estimation function list). The chapter hierarchy is presented in a tree structure, with the first-level chapters centered and bold, and the second- and third-level chapters indented. Each directory node supports expansion / collapse, and clicking on a node can quickly jump to the specific location of that chapter in the specification document.
[0126] 7. Furthermore, exception handling also includes: if the specification document cannot be parsed, the page number range is invalid, or no chapter is recognized, the client will display specific error messages (such as "The specification document cannot be parsed, please re-upload" or "No chapter was recognized, please check the document content"), so that the user can adjust and resubmit the request.
[0127] In summary, all operations described above are completed independently by the client, requiring no server collaboration. The process is streamlined and convenient, with core optimizations to text extraction accuracy, chapter recognition efficiency, and table of contents generation standardization. It primarily addresses the issues of cumbersome chapter location and non-standardized table of contents in technical specifications, adapting to various technical document scenarios. Users only need to upload the technical specification and specify the page range to automatically complete the entire process, eliminating the need for manual intervention in chapter recognition and table of contents organization, significantly improving work efficiency. Furthermore, the client supports viewing and exporting the generated table of contents to meet users' subsequent document management needs.
[0128] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0129] Based on the same inventive concept, this application also provides a directory structuring processing apparatus for implementing the directory structuring processing method described above. The solution provided by this apparatus is similar to the implementation scheme described in the above method; therefore, the specific limitations in one or more directory structuring processing apparatus embodiments provided below can be found in the limitations of the directory structuring processing method described above, and will not be repeated here.
[0130] In one exemplary embodiment, such as Figure 10 As shown, a directory structuring processing apparatus is provided, comprising:
[0131] The acquisition module 1001 is used to determine the content to be processed in the pre-acquired initial technical specification document according to the acquired first user instruction, and form an initial text dataset according to the content to be processed; the initial text dataset includes multi-level specification document chapters, and each specification document chapter has a corresponding specification document chapter title;
[0132] The recognition module 1002 is used to identify cost chapter titles in the initial text dataset that conform to the preset three-level rules of cost operation based on the text prefix features of the chapter titles in the specification.
[0133] Module 1003 is established to determine the position index of each cost chapter title based on the initial text dataset, and to obtain the directory structure data based on the hierarchical order and position index of all cost chapter titles.
[0134] Each module in the aforementioned directory structuring processing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.
[0135] In one exemplary embodiment, a computer device is provided, including a memory and a processor, the memory storing a computer program, the processor executing the computer program to implement any of the directory structuring methods described above.
[0136] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements any of the directory structuring methods described above.
[0137] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements any of the directory structuring methods described above.
[0138] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory 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 can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0139] The technical features of the above embodiments can be combined in any way. For the sake of brevity, 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 application.
[0140] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for structuring the catalog of technical specifications, characterized in that, The method includes: Based on the first user instruction, the content to be processed in the pre-acquired initial technical specification is determined, and an initial text dataset is formed based on the content to be processed; the initial text dataset includes multi-level specification chapters, and each specification chapter has a corresponding specification chapter title; Based on the text prefix features of the chapter titles in the specification, identify the cost chapter titles in the initial text dataset that conform to the preset three-level standard rules for cost operation; The position index of each cost chapter title is determined based on the initial text dataset, and the directory structure data is obtained based on the hierarchical order and position index of all cost chapter titles.
2. The method according to claim 1, characterized in that, The process of forming an initial text dataset based on the content to be processed includes: Extract all text content from the content to be processed, and record the page number and line number information corresponding to each line of text content; the text content includes the main text and the chapter titles of the specification. The initial text dataset is formed based on the text content and the corresponding page number and line number information. The initial text dataset includes the page number and line number information corresponding to the chapter titles of each specification.
3. The method according to claim 1 or 2, characterized in that, The method of identifying cost estimation chapter titles in the initial text dataset that conform to the preset three-level rules of cost estimation operation based on the text prefix features of the chapter titles in the specification includes: Based on the chapter titles of the specification document and the text prefix features of the chapter titles of the specification document, the initial functional chapters in the initial text dataset are determined; Based on the standard three-level rules and the content of the initial functional chapters, the titles of each initial functional chapter are mapped to the corresponding cost chapter titles.
4. The method according to claim 3, characterized in that, The process of mapping each initial functional chapter title to a corresponding cost chapter title based on the standard three-level rules and the initial functional chapter content includes: Based on the standard three-level rules and the content of the initial functional chapters, the titles of each initial functional chapter are mapped to the corresponding initial cost chapter titles. The initial cost section title is adjusted according to the obtained second user instruction to obtain the cost section title.
5. The method according to claim 3, characterized in that, The process of mapping each initial functional chapter title to a corresponding cost chapter title based on the standard three-level rules and the initial functional chapter content includes: Based on the standard three-level rules and the content of the initial functional chapters, the titles of each initial functional chapter are mapped to the corresponding initial cost chapter titles. Having obtained the initial cost section title, a new cost section title is created based on the obtained third user instructions; In the technical specification, determine the new specification chapter title that matches the new construction cost chapter title; Bind the title of the newly created specification document to the title of the newly created construction cost document; The cost section is obtained based on the adjusted initial functional section title and the newly constructed cost section title.
6. The method according to claim 1 or 2, characterized in that, The method further includes: The directory structure data is displayed in the preset display module.
7. The method according to claim 6, characterized in that, The method further includes: When the directory structure data is displayed in the preset display module, a fourth user instruction is obtained, which indicates that the target title is pointed to in all cost chapter titles; Based on the location index of the target title, the corresponding chapter title of the technical specification is determined and displayed in the display module.
8. A cataloging structure processing device for technical specifications, characterized in that, The device includes: The acquisition module is used to determine the content to be processed in the pre-acquired initial technical specification document according to the acquired first user instruction, and to form an initial text dataset based on the content to be processed; the initial text dataset includes multi-level specification document chapters, and each specification document chapter corresponds to a specification document chapter title; The identification module is used to identify cost chapter titles in the initial text dataset that conform to the preset three-level standard rules for cost operation, based on the text prefix features of the chapter titles in the specification document. A module is established to determine the position index of each cost chapter title based on the initial text dataset, and to obtain directory structure data based on the hierarchical order and position index of all cost chapter titles.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.
