Intelligent bidding document compiling method and device based on Word-like editing technology
By intelligently identifying and automatically updating content blocks and data fields in the tender documents, the problem of tedious modifications and formatting errors during the tender document preparation process is solved, improving preparation efficiency and consistency, and reducing the risk of human error.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-28
- Publication Date
- 2026-03-10
AI Technical Summary
In the process of preparing tender documents, there are problems of tedious modifications and inefficient formatting, especially when data changes, omissions or errors are prone to occur, affecting the preparation efficiency.
This paper provides a method for intelligently preparing tender documents using Word-like editing technology. By parsing the target intelligent content blocks and data fields in the user's editing operations, it automatically identifies the intention to change, quickly locates the position to be updated, and performs intelligent updates based on the document format to ensure format consistency.
It has enabled efficient preparation of tender documents, reduced errors and repetitive work time caused by manual modification, shortened the preparation cycle, improved preparation efficiency, and reduced the risks caused by human factors.
Smart Images

Figure CN121638167A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of artificial intelligence, and particularly relates to a bidding document intelligent compiling method and device based on Word-like editing technology. BACKGROUND
[0002] In the traditional bidding document compiling process, a user usually manually writes by using a document editing tool such as Microsoft Word. Although Word has powerful editing functions, there is still a problem of low compiling efficiency in the bidding scenario.
[0003] A bidding document usually has strict format specifications such as font, paragraph, header and footer, numbering system, and the like. Manual adjustment is extremely prone to problems such as format disorder and style inconsistency. Moreover, a bidding document involves a large amount of repeated or associated data (such as company name, project leader, performance information, and the like), and once the data in a certain place is changed, the user needs to manually find and modify the full text, which is extremely prone to omission or error. The data change and format problem in the bidding document need to be manually corrected, which prolongs the compiling time of the bidding document and affects the compiling efficiency of the bidding document. SUMMARY
[0004] The present application provides a bidding document intelligent compiling method and device based on Word-like editing technology, which solves the technical problem of low efficiency caused by complicated modification and format disorder in the bidding document compiling process, and improves the compiling efficiency of the bidding document.
[0005] In a first aspect, the present application provides a bidding document intelligent compiling method based on Word-like editing technology, applied to an intelligent editor, the intelligent editor being an online Word-like editor compatible with Word software, the intelligent compiling method comprising the following steps: in response to an editing operation of a user on a bidding document in the intelligent editor, analyzing a target intelligent content block, a target data field, and modification content involved in the editing operation; based on the target data field, traversing the bidding document to determine a plurality of intelligent content blocks to be updated and a to-be-updated position; determining a document format of the plurality of intelligent content blocks, and based on the document format of each intelligent content block, the to-be-updated position, and the modification content, updating the bidding document to realize intelligent compiling.
[0006] In a possible implementation, in response to the editing operation of the user on the bid document in the intelligent editor, the target intelligent content block, the target data field, and the modified content involved in the editing operation are parsed, including: in response to the editing operation of the user on the bid document in the intelligent editor, identifying the document position at which the editing operation is located; determining the target intelligent content block based on the document position at which the editing operation is located; determining the target data field based on the target intelligent content block and the document position; and performing comparison analysis based on the target intelligent content block before the editing operation and the target intelligent content block after the editing operation to obtain the modified content.
[0007] In a possible implementation, based on the target data field, the bid document is traversed to determine the plurality of intelligent content blocks to be updated and the position to be updated, including: based on the target data field and a pre-established field-content block global mapping table, extracting the intelligent content block corresponding to the target data field to determine the plurality of intelligent content blocks to be updated; wherein the field-content block global mapping table includes a mapping relationship between a field and an intelligent content block; and traversing the plurality of intelligent content blocks to determine a text embedding position related to the target data field as the position to be updated.
[0008] In a possible implementation, based on the document format of each intelligent content block, the position to be updated, and the modified content, the bid document is updated to realize intelligent compilation, including: writing the modified content into the position to be updated of each intelligent content block according to the position to be updated; and based on the document format of each intelligent content block, intelligently typesetting the text of each position to be updated to obtain the updated bid document.
[0009] In a possible implementation, the method further includes: capturing operation instructions of any user on the same bid document in the intelligent editor in real time; based on the operation instructions, generating standardized operation events, the standardized operation events including user identification, a timestamp, and operation context information; based on the standardized operation events of a plurality of users, performing conflict detection and instruction fusion to obtain a sequential execution instruction sequence of the intelligent editor; and based on the sequential execution instruction sequence, updating the bid document in the intelligent editor and synchronizing to the client of each user.
[0010] In one possible implementation, conflict detection and instruction fusion are performed based on standardized operation events from multiple users to obtain a sequential execution instruction sequence for the intelligent editor. This includes: extracting the operation bit identifiers of each standardized operation event; identifying a potential conflict operation set based on the operation target location identifier, where the potential conflict operation set includes standardized operation events that overlap or are mutually exclusive within the same document region or data field; determining the global partial order relationship of each potential conflict operation in the potential conflict operation set based on the timestamps of each standardized operation event using a vector clock algorithm; determining the execution order of each standardized operation event on the logical timeline based on the global partial order relationship; performing conflict fusion processing on each standardized operation event based on the execution order to obtain a processed operation event sequence; and generating a sequential execution instruction sequence for the intelligent editor based on the processed operation event sequence.
[0011] In one possible implementation, based on the execution order, conflict fusion processing is performed on each standardized operation event to obtain a processed sequence of operation events, including: for text insertion conflicts, when the target positions of multiple insertion operations overlap, the operation parameters of subsequent insertion positions are dynamically adjusted to ensure that all text content is preserved and the logical order is correct; for formatting conflicts, when multiple formatting operations apply to the same text range, conflicting formatting attributes are merged and overridden according to predefined formatting attribute priority rules; for data field modification conflicts, when there are multiple modification operations on the same bound field, the latest valid modification operation result on the logical timeline is taken as the standard based on the partial order relationship.
[0012] In one possible implementation, the method further includes: detecting whether the tender document meets archiving conditions, including completing key editing nodes or reaching preset saving conditions; if the tender document meets the archiving conditions, then structurally storing the complete content, format metadata, and operation context of the current document, as well as the storage time, as a historical version corresponding to the storage time; responding to the user's version comparison command, performing a full-element analysis on the two or more historical versions selected in the version comparison command to determine the comparison results, including differences in text content, format attributes, and data fields; based on the comparison results and the tender document, extracting key points and generating navigation information; and displaying the comparison results and navigation information of the two or more historical versions on the display interface of the intelligent editor.
[0013] In one possible implementation, the method further includes: parsing the user-imported tender document; extracting key clauses, technical requirements, and scoring criteria from the tender document using natural language processing technology; generating a structured review rule base based on the key clauses, technical requirements, and scoring criteria; performing real-time matching and compliance analysis based on the edited tender document and the structured review rule base to determine the analysis results, including missing clauses, inconsistencies, and potential risk points; revising the edited tender document based on the analysis results to obtain a revised tender document; and generating a compliance review report based on the revised tender document and the analysis results.
[0014] Secondly, embodiments of the present invention provide a Word-like intelligent bid document preparation device, applied to an intelligent editor. The intelligent editor is an online Word-like editor compatible with Word software. The intelligent preparation device includes: a communication module and a processing module. The communication module is used to monitor the user's editing operations on the bid document in the intelligent editor. The processing module is used to respond to the user's editing operations on the bid document in the intelligent editor, parse the target intelligent content blocks, target data fields, and modified content involved in the editing operations; based on the target data fields, traverse the bid document to determine multiple intelligent content blocks to be updated and their update positions; determine the document format of the multiple intelligent content blocks, and update the bid document based on the document format, update position, and modified content of each intelligent content block, thereby realizing intelligent preparation.
[0015] Thirdly, embodiments of the present invention provide an electronic device including a memory and a processor. The memory stores a computer program, and the processor is configured to call and run the computer program stored in the memory to perform the steps of the method as described in the first aspect and any possible implementation thereof.
[0016] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, it implements the steps of the method as described in the first aspect and any possible implementation thereof.
[0017] This invention provides a method and apparatus for intelligent bid document preparation using Word-like editing technology. By analyzing the target intelligent content blocks, target data fields, and modified content during user editing operations, this invention accurately identifies the intent to change, avoiding errors or omissions caused by blind manual modifications. Then, based on the target data fields, it automatically traverses the bid document, quickly locating all intelligent content blocks and their positions to be updated, achieving synchronous updates of data at multiple locations. This eliminates the tedious process of manually searching and modifying each block, reducing repetitive work time. Finally, it intelligently maintains the document format during the update process, preventing formatting errors caused by manual adjustments. This invention solves the technical problems of tedious modifications and formatting errors leading to low efficiency in bid document preparation, shortens the preparation cycle, reduces the risks associated with human factors, and improves the efficiency of bid document preparation. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 This is a flowchart illustrating a method for intelligently compiling tender documents using a Word-like editing technology, as provided in an embodiment of the present invention. Figure 2 This is a schematic diagram of the structure of a Word-like intelligent bid document preparation device provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0020] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of the invention. However, those skilled in the art will understand that the invention can be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods are omitted so as not to obscure the description of the invention with unnecessary detail.
[0021] In the description of this invention, unless otherwise stated, " / " means "or". For example, A / B can mean A or B. The term "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. Furthermore, "at least one" and "more than one" refer to two or more. The terms "first," "second," etc., do not limit the quantity or order of execution, and "first," "second," etc., do not necessarily imply differences.
[0022] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner to facilitate understanding.
[0023] Furthermore, the terms "comprising" and "having," and any variations thereof, used in the description of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or modules is not limited to the steps or modules listed, but may optionally include other steps or modules not listed, or may optionally include other steps or modules inherent to such process, method, product, or device.
[0024] To make the objectives, technical solutions, and advantages of the present invention clearer, the following description will be provided in conjunction with the accompanying drawings and specific embodiments.
[0025] like Figure 1 As shown, this embodiment of the invention provides a method for intelligently preparing tender documents using Word-like editing technology. Applied to an intelligent editor, which is an online Word-like editor compatible with Word software, the method includes steps S101-S103.
[0026] S101. In response to the user's editing operation on the tender document in the smart editor, parse the target smart content block, target data field, and modified content involved in the editing operation.
[0027] In some embodiments, the intelligent editor is a web-based online document editing tool that simulates the interface and functions of Word (such as text formatting and table insertion), but possesses intelligent processing capabilities (such as data binding and automatic updates). It is compatible with Word software, supports importing / exporting .docx format files, and allows for real-time collaborative editing.
[0028] In some embodiments, the tender document is divided into multiple smart content blocks in the smart editor. The target smart content block is any one of these smart content blocks. A smart content block is a structured data unit in the tender document marked as "smart," such as a company profile, technical proposal, or price quotation. Each content block has a unique identifier (such as an ID), predefined data fields, and formatting rules, allowing for dynamic updates and cross-document synchronization.
[0029] In some embodiments, the target data field refers to a specific data item in the smart content block (such as "project name", "bid amount", "contact person's phone number"). These fields are bound to the backend database or template, and modifying one place will automatically update all related locations.
[0030] In some embodiments, the modification content refers to the specific changes made by the user to the target data field (such as text insertion, deletion, or formatting), including information on the differences between the old and new values.
[0031] In some embodiments, document format refers to the layout attributes of smart content blocks, including font, font size, color, paragraph spacing, table style, etc., to ensure that the document style remains consistent after the update.
[0032] As one possible implementation, step S101 can be specifically implemented as steps S1011-S1014.
[0033] S1011. In response to the user's editing operation on the tender document in the smart editor, identify the document location where the editing operation is performed.
[0034] For example, embodiments of the present invention can obtain the start / end index of the current cursor or selection area through browser APIs (such as the Selection object). The physical position is mapped to the logical structure of the document (such as through XML parsing or a custom coordinate system) to distinguish areas such as the main text, header / footer.
[0035] S1012. Determine the target intelligent content block based on the document location where the editing operation is performed.
[0036] For example, embodiments of the present invention can query the content block registry (which stores the start / end markers of each content block) based on the document location to locate the content block instance to which the operation belongs. It then checks whether the content block is editable (e.g., a non-read-only area) and records its metadata (e.g., content block type, version number).
[0037] S1013. Based on the target intelligent content block and document location, determine the target data fields.
[0038] For example, embodiments of the present invention can find the data field corresponding to the document location based on predefined field binding rules (such as JSON configuration) of the content block (e.g., when the cursor is in the "price table", it is bound to the price field). If the field is not explicitly bound, natural language processing (NLP) techniques (such as keyword extraction) are used to infer the potential field (e.g., inputting "¥1000" automatically associates the "amount" field).
[0039] S1014. Based on the target intelligent content block before the editing operation and the target intelligent content block after the editing operation, a comparative analysis is performed to obtain the modified content.
[0040] For example, embodiments of the present invention can save the initial state of the content block (memory snapshot) before the operation and capture the new state after the operation. Difference algorithm application: A text difference algorithm (such as Myers difference algorithm or LCS-based methods) is used to calculate change details and output a structured modification record. If multiple edit operations exist simultaneously, the Last Write Wins (LWW) strategy is prioritized to ensure data consistency.
[0041] S102. Based on the target data field, traverse the tender document to determine the multiple smart content blocks to be updated and the locations to be updated.
[0042] As one possible implementation, step S102 can be specifically implemented as steps S1021-S1022.
[0043] S1021. Based on the target data field and the pre-established field-content block global mapping table, extract the smart content blocks corresponding to the target data field and determine them as multiple smart content blocks to be updated.
[0044] The field-content block global mapping table includes the mapping relationship between fields and smart content blocks.
[0045] In some embodiments, the field-content block global mapping table refers to a relational index structure pre-built and stored in memory or a database during system initialization or document loading. This structure, in the form of key-value pairs or relational tables, systematically records the association between the unique identifiers of target data fields and the unique identifiers of one or more smart content blocks in the document. Its core function is that when a data field changes, this mapping table can be queried to quickly and comprehensively locate all smart content blocks in the entire tender document that need to be updated synchronously, thereby achieving a smart linkage effect of "one change, everywhere updated".
[0046] For example, in this embodiment of the invention, the unique identifier of the target data field can be used as the query keyword to perform a retrieval operation on the field-content block global mapping table. From the mapping table, the unique identifiers of all smart content blocks that are bound to the target data field are parsed and obtained, forming a set of smart content blocks to be processed. Based on the obtained set of smart content block identifiers, the specific document nodes or instance objects corresponding to these smart content blocks are traversed and located in the document object model structure or equivalent document logic tree structure of the current tender document. The output of this step is a well-defined list of multiple smart content block instances to be updated.
[0047] S1022. Traverse multiple smart content blocks and determine the text embedding position related to the target data field as the position to be updated.
[0048] In some embodiments, a text embedding location refers to a logical location or physical area within a smart content block specifically designed to carry and display the specific value or content of a particular target data field. This location is typically identified within the content block template by predefined, machine-readable markers, such as specific placeholder symbols, text paragraphs with specific styles, or form controls associated with field bindings. This location is the specific target point for performing content replacement or insertion operations.
[0049] For example, for each smart content block instance to be updated identified in the previous stage, its internal structure is traversed and scanned. During traversal, all text embedding location markers associated with the target data field are identified and matched. This process includes parsing the semantics of placeholders, matching style identifiers or binding properties of confirmation form controls to ensure that the located location precisely corresponds to the target data field currently being processed. For each successfully identified text embedding location, its precise location information in the document is recorded. This location information can be represented as a node path in the document object model, a character offset range in the text stream, or logical position coordinates defined by a custom coordinate system. Finally, one or more precise descriptions of the corresponding update locations are generated for each smart content block to be updated.
[0050] S103. Determine the document format of multiple intelligent content blocks, and based on the document format of each intelligent content block, the location to be updated, and the content to be modified, update the tender document to achieve intelligent preparation.
[0051] As one possible implementation, step S103 can be specifically implemented as steps S1031-S1032.
[0052] S1031. Based on the location to be updated, write the modified content to the location to be updated in each smart content block.
[0053] In some embodiments, writing refers to the specific operation of filling or replacing the text data of the modified content into the location to be updated. This process is not a simple text overwrite, but a data injection that follows the document structure rules. Its goal is to preserve the original functional markers and structural integrity of the location to the greatest extent possible while changing the content.
[0054] For example, embodiments of the present invention can navigate and lock onto specific target nodes or text ranges within the Document Object Model or equivalent document logical structure based on the determined update location information for each smart content block. Before writing, a status check is performed on the location to ensure it is in a modifiable state. The text data of the modified content is then carried to the target location. This write operation varies depending on the location attributes: for plain text placeholders, a text replacement operation is performed; for rich text regions, text nodes with basic semantics are injected. The entire process must ensure that the structural integrity of the parent container such as the paragraph, list, or table to which the location belongs is not compromised.
[0055] S1032. Based on the document format of each intelligent content block, intelligently format the text at each location to be updated to obtain the updated tender document.
[0056] In some embodiments, intelligent typesetting refers to a series of automated formatting adjustments and optimizations performed after the text content writing operation is completed. This process uses predefined document formatting rules for intelligent content blocks as a benchmark, and through dynamic calculation and adaptation, ensures that the newly written content maintains consistency with the overall format of the surrounding text and content blocks in terms of visual style and structural layout, thereby preserving the document's professionalism and readability.
[0057] In some embodiments, an updated tender document refers to a new version of the tender document that includes the latest modifications and has a standardized format, formed after writing and intelligent typesetting processes. This document is presented as a complete and usable document entity in both its logical structure and physical storage.
[0058] For example, embodiments of the present invention can trigger a format matching process immediately after content is written. The document format rule library associated with the current smart content block is read. This rule library defines style attributes such as font, font size, color, line spacing, alignment, and indentation. The read format rules are applied to the newly written text. This application process is context-aware; for example, if the newly written text is in a title content block, it automatically applies bolding and font size at the title level; if it is inserted into a table cell, it automatically adapts to the table's font and alignment. The format integration of the new content with surrounding text is handled. For format attributes not defined in the new content, the existing format of its direct container is inherited by default; for potential format conflicts, intelligent adjudication and overriding are performed according to predefined style priorities to ensure visual consistency. After completing the micro-formatting settings, layout calculations and rearrangements are performed on the smart content block and its potentially affected surrounding areas to eliminate problems such as page layout errors, table crossovers, or image overlaps caused by changes in content length. Finally, an updated tender document with standardized formatting and stable layout is generated.
[0059] This invention provides an intelligent method for preparing tender documents using Word-like editing technology. By analyzing the target intelligent content blocks, target data fields, and modified content in the user's editing operations, it accurately identifies the intention to change, avoiding errors or omissions caused by blind manual modifications. Then, based on the target data fields, it automatically traverses the tender document, quickly locating all intelligent content blocks and their positions to be updated, achieving synchronous updates of data at multiple locations. This eliminates the tedious process of manually searching and modifying each block, reducing repetitive work time. Finally, it intelligently maintains the document format during the update process, preventing formatting errors caused by manual adjustments. This invention solves the technical problems of tedious modifications and formatting errors leading to low efficiency in tender document preparation, shortens the preparation cycle, reduces the risks associated with human factors, and improves the efficiency of tender document preparation.
[0060] Optionally, the intelligent bid document preparation method using Word-like editing technology provided in this embodiment of the invention further includes steps S201-S204.
[0061] S201. Real-time capture of any user's operation commands on the same tender document in the intelligent editor.
[0062] In some embodiments, an operation instruction refers to an atomic action triggered by a user on a client interface to modify the content or format of a tender document, such as inserting characters, deleting text, or setting font format.
[0063] S202. Generate standardized operation events based on operation instructions.
[0064] In some embodiments, a standardized operation event includes a user identifier, a timestamp, and operation context information. A standardized operation event refers to a data structure formed by standardizing and encapsulating the original operation instructions, suitable for transmission over a network and logical processing on the server side. It eliminates the differences in client environments and includes a globally unique user identifier, a timestamp indicating the logical moment the event occurred, and operation context information describing the specific goal and content of the operation.
[0065] For example, embodiments of the present invention can intercept all user editing actions on a document in real time through an event listening module deployed on the client. The captured raw operation parameters (such as key values, cursor position, and selection range) are bound with the current user's identity information and logical time information obtained from the collaborative server, and jointly encapsulated to generate a standardized operation event with a unified structure.
[0066] S203. Based on standardized operation events from multiple users, perform conflict detection and instruction fusion to obtain the sequential execution instruction sequence of the intelligent editor.
[0067] In some embodiments, conflict detection and instruction fusion refers to the process of analyzing standardized operation events from different users that overlap in time or space in a multi-user collaborative editing scenario, identifying potential conflicts that may cause inconsistencies in document status, and sorting, adjusting or merging these operation events according to preset rules to form a logically consistent and conflict-free sequential execution instruction sequence.
[0068] In some embodiments, the sequential execution instruction sequence refers to a queue of operation instructions arranged in a globally logical order after conflict resolution. The instructions in this sequence have a definite execution order in terms of document state, ensuring that all clients, after executing in this sequence, will eventually reach the same document state.
[0069] For example, embodiments of the present invention can continuously send standardized operation events generated by all clients to a central collaborative server. The server maintains an event buffer queue and scans newly arriving events. The core of conflict detection lies in identifying the correlation between operation events, particularly determining whether there is an overlap in the target positions of different events, or whether non-collaborative modifications have been made to the same data field. For the identified set of potentially conflicting operations, a technique based on operation transformation or a state fusion strategy is used to resolve the conflict. For example, for operations that insert text in close proximity, their relative positions are adjusted to preserve the editing intentions of all users. Based on the event timestamps and conflict resolution results, a sequence of sequential execution instructions is constructed, in which all related operation events have been properly sorted and adjusted.
[0070] For example, step S203 can be specifically implemented as steps S2031-S2036.
[0071] S2031. Extract the operation bit identifiers of each standardized operation event.
[0072] In some embodiments, the operation bit identifier refers to encoded or path information used to uniquely identify the specific location in the document where the standardized operation event is performed. It can be an XPath path, a character offset within a content block, or a custom range descriptor used to precisely describe the logical address where the operation occurs.
[0073] For example, embodiments of the present invention can parse each standardized operation event and extract the core operation bit identifier from its operation context information as the main basis for subsequent conflict determination.
[0074] S2032. Based on the operation target location identifier, identify the set of potential conflicting operations.
[0075] In some embodiments, a potentially conflicting set of operations includes standardized operation events that overlap or are mutually exclusive within the same document region or the same data field. A potentially conflicting set of operations refers to a collection of standardized operation events where any two or more events within this set have overlapping document regions indicated by their operation bit identifiers, or they perform potentially interfering modification operations on the same data field.
[0076] For example, embodiments of the present invention can perform pairwise comparisons of all extracted operation bit identifiers, or match them with a shared conflict rule base. Based on the comparison results, events whose operation regions overlap (such as overlapping cursor ranges) or whose targets are the same bound field are categorized into the same potential conflict operation set.
[0077] S2033. Based on the timestamps of each standardized operation event, a vector clock algorithm is used to determine the global partial order relationship of each potential conflict operation in the potential conflict operation set.
[0078] In some embodiments, the vector clock algorithm is a logical clock mechanism used in distributed systems to characterize causal relationships between events. Each event is associated with a vector clock, and by comparing these vectors, the global partial order relationship between events can be inferred, that is, whether the events occur sequentially, concurrently, or have a causal dependency.
[0079] In some embodiments, a global partial order relationship refers to a globally consistent, partially ordered logical temporal relationship established for all standardized operation events in a distributed collaborative editing environment. It clarifies which events must be executed before others, thus providing a temporal basis for resolving concurrency conflicts.
[0080] For example, embodiments of the present invention can maintain a vector clock for each user or client and update its vector clock value when each standardized operation event is generated. When it is necessary to determine the order of events within a potentially conflicting operation set, the global partial order relationship between these concurrent events can be accurately determined by comparing the vector clock values they carry and applying the comparison rules of the vector clocks.
[0081] S2034. Based on the global partial order relationship, determine the execution order of each standardized operation event on the logical timeline.
[0082] For example, embodiments of the present invention can assign a unique or deterministic execution order on the global logical timeline to all events within a potentially conflicting set of operations based on an established global partial order relationship. For events with causal dependencies, their sequential order is maintained; for truly concurrent events, a predetermined deterministic rule (such as lexicographical order of user identifiers) is used for determination.
[0083] S2035. Based on the execution order, conflict fusion processing is performed on each standardized operation event to obtain the processed operation event sequence.
[0084] For example, embodiments of the present invention can adjust and merge operations with concentrated conflicts at the semantic level according to a determined logical execution order. For instance, for concurrent text insertion, the cursor position after insertion is recalculated according to its logical order; for concurrent attribute modifications, they are merged according to priority.
[0085] For example, step S2035 can be specifically implemented as steps A1-A3.
[0086] A1. In case of text insertion conflict, when the target positions of multiple insertion operations overlap, the operation parameters of the subsequent insertion positions are dynamically adjusted to ensure that all text content is preserved and the logical order is correct.
[0087] For example, when overlapping target positions of multiple insertion operations are detected, the subsequent operations are not simply discarded. Instead, the target position parameters of the second and subsequent insertion operations are dynamically recalculated based on the logical execution order of these operations in the global partial order relation. For instance, the logically later-executed operation will be inserted at an offset after the text inserted by the earlier-executed operation. This operational transformation ensures that all text content intended to be inserted by the user is preserved in the document in the correct logical order.
[0088] A2. Regarding formatting conflicts, when multiple formatting operations are applied to the same text range, conflicting formatting attributes are merged or overridden according to predefined formatting attribute priority rules.
[0089] For example, when multiple formatting operations apply to the same text range, predefined formatting attribute priority rules are invoked for adjudication. This rule set might specify that later operations override earlier ones; character-level formatting takes precedence over paragraph-level formatting; or that formatting settings by a specific user (such as a project manager) have higher weight. Based on these rules, conflicting formatting attributes are intelligently merged and overridden to generate a final, comprehensive formatting effect, which is then used as the definitive format for that text range.
[0090] A3. In case of data field modification conflicts, when there are multiple modification operations on the same bound field, the latest valid modification operation result on the logical timeline shall prevail based on the partial order relationship.
[0091] For example, when the same data field receives multiple concurrent modification operations, the conflict resolution strategy is relatively straightforward and crucial. It strictly relies on the global partial order relationship determined through mechanisms such as vector clocks to identify the valid modification operation that is latest in the logical timeline. Ultimately, the modification content carried by this latest operation is taken as the final value of the data field, while concurrent modifications to this field before this timeline are considered outdated and ignored, thus ensuring eventual data consistency.
[0092] S2036. Based on the processed sequence of operation events, generate a sequence of sequential execution instructions for the intelligent editor.
[0093] For example, embodiments of the present invention can sort all operation events that have undergone conflict fusion processing and have eliminated ambiguity together with non-conflicting ordinary operation events according to the global logical timeline, and finally assemble them into a sequence of sequential execution instructions that can guarantee eventual consistency.
[0094] S204. Based on the sequential execution instruction sequence, update the tender documents in the intelligent editor and synchronize them to each user's client.
[0095] For example, embodiments of the present invention can broadcast the generated sequential execution instruction sequence to all online clients editing the same document. Each client executes each instruction in the sequence strictly in the same order, thereby keeping the distributed local copies of the document of each user synchronized with the central server, ultimately achieving a WYSIWYG collaborative editing experience for all users.
[0096] Thus, the core conflict resolution mechanism and consistency guarantee scheme adopted by the embodiments of the present invention in realizing highly complex real-time collaborative editing by multiple people demonstrate the invention's advanced nature and systematic approach.
[0097] Optionally, the intelligent bid document preparation method using Word-like editing technology provided in this embodiment of the invention further includes steps S301-S305.
[0098] S301. Check whether the tender documents meet the archiving requirements.
[0099] In some embodiments, archiving conditions include completing key editing nodes or meeting preset saving conditions.
[0100] In some embodiments, archiving conditions refer to the rules or states that trigger automatic or semi-automatic saving of version snapshots of tender documents. Key editing nodes may include user-performed specific operations (such as confirming completion of a section), project phase milestones (such as passing internal review), or fulfillment of business rules (such as all required fields being filled); preset saving conditions may include reaching a fixed time interval, a cumulative editing threshold, or a change in document size.
[0101] For example, embodiments of the present invention can continuously monitor the document's editing status and a predefined rule base. Through event listening or periodic checks, it can determine whether a key editing node has been reached (e.g., the user clicks the "Chapter Complete" button) or whether preset saving conditions are met (e.g., a set time interval has elapsed since the last save). Once the conditions are met, the version archiving process is automatically triggered without manual user intervention.
[0102] S302. If the tender document meets the archiving conditions, the complete content, format metadata, operation context, and storage time of the current document will be structured and stored as a historical version corresponding to the storage time.
[0103] In some embodiments, a historical version refers to a complete, structured snapshot of the overall state of a tender document at a point in time when archiving conditions are met. It not only captures the complete content of the document but also associates and saves the format metadata (such as style and layout), operational context (such as the last editor and modification summary) and storage time at that point in time, forming a data unit that can be independently traced and recovered.
[0104] For example, embodiments of the present invention can capture the complete state of the current tender document. This includes: all text and embedded objects of the document object (complete content); style definitions and layout parameters at all levels (format metadata); and relevant operation information that triggered this archiving (operation context). The above data is bound to a precise timestamp (storage time), and a structured data packet is formed using serialization technology, which is then stored as an independent historical version in the version repository. Each version is uniquely identified by its storage time or the generated version number.
[0105] S303. In response to the user's version comparison command, perform a full-element analysis on the two or more historical versions selected in the version comparison command and determine the comparison results.
[0106] In some embodiments, the comparison results include differences in text content, formatting attributes, and data fields.
[0107] In some embodiments, a version comparison command refers to an interactive command issued by a user through the smart editor interface, requesting a differential analysis of two or more specified historical versions. This command contains a unique identifier for the versions to be compared.
[0108] In some embodiments, full-feature analysis refers to a multi-dimensional, in-depth differential comparison process of selected historical versions. Its analysis scope is not limited to plain text content, but extends to the identification of differences in format attributes (such as changes in font and color) and data fields (such as updates to bound field values).
[0109] For example, embodiments of the present invention can, in response to a user's version comparison command, retrieve two or more historical version data packages specified in the command from the version repository. A full-element analysis is then performed on these versions. This process includes: using a differential algorithm to perform line-level or word-level difference comparison; traversing the document object model to identify additions, deletions, and modifications to format attributes; and comparing changes in the values of bound data fields. Finally, a comprehensive comparison result is synthesized.
[0110] S304. Based on the comparison results and the tender documents, extract key points and generate navigation information.
[0111] In some embodiments, navigation information refers to guiding data automatically generated based on comparison results to help users quickly locate and understand core changes. This information extracts the key differences and may exist in the form of a summary list, change categories, or direct jump links in the document view.
[0112] For example, embodiments of the present invention can intelligently process the above comparison results, filtering out irrelevant changes (such as space adjustments) and focusing on substantive modifications that users care about. Based on business logic, key points are extracted, such as "rewriting of technical solution chapters," "updating project budgets," and "addition of company qualification information." Subsequently, structured navigation information is generated, such as a list of change summaries sorted by importance, or a set of hyperlinks that allow users to jump to specific differences in the document with one click.
[0113] S305. The intelligent editor's display interface shows the comparison results and navigation information of two or more historical versions.
[0114] For example, embodiments of the present invention can create a dedicated view area in the display interface of the intelligent editor to intuitively display the comparison results of the selected versions in the form of side-by-side, overlay, or comprehensive reports. Simultaneously, the generated navigation information (such as a change summary list) is displayed in an auxiliary panel and interacts with the main document view. When the user clicks a navigation item, the main view automatically scrolls and highlights the corresponding document modification, enabling quick location and review.
[0115] Thus, the embodiments of the present invention can provide powerful version management and traceability capabilities for the preparation of tender documents, significantly improving team collaboration efficiency and the precision of document quality control.
[0116] Optionally, the intelligent bid document preparation method using Word-like editing technology provided in this embodiment of the invention further includes steps S401-S406.
[0117] S401. Parse the tender documents imported by the user.
[0118] S402. Based on natural language processing technology, extract key clauses, technical requirements and scoring criteria from the tender documents.
[0119] In some embodiments, key terms, technical requirements, and scoring criteria refer to the core structured information extracted from the tender documents. Key terms typically involve mandatory legal, commercial, and administrative provisions (such as qualification requirements, payment methods, and liability for breach of contract); technical requirements specify the technical parameters, performance indicators, and implementation standards that the product or service must meet; and scoring criteria quantify the weight and scoring details of various factors in the evaluation process.
[0120] For example, embodiments of the present invention can utilize natural language processing technology to perform deep semantic analysis on preprocessed text. Key terms such as "bidder qualifications" and "delivery period" are extracted using named entity recognition technology; explicit technical parameters and performance indicators are extracted using dependency parsing and terminology recognition; and scoring methods and score allocations are located and analyzed using rule matching and classification models.
[0121] S403. Generate a structured review rule base based on key clauses, technical requirements, and scoring criteria.
[0122] In some embodiments, a structured review rule base refers to a set of logical judgment rules that are formalized from extracted key clauses, technical requirements, and scoring criteria into a series of rules that can be recognized and executed by a computer. Each rule in this rule base includes a review item, judgment conditions, associated weights, and compliance standard values.
[0123] For example, embodiments of the present invention can transform the unstructured core elements extracted in the previous stage into a structured review rule base that can be queried and reasoned about by machines. A unique rule identifier is created for each review point; the requirements described in natural language are transformed into formalized logical judgment conditions (e.g., IF "Qualification Requirements" INCLUDES "ISO9001" THENPASS); and each rule is assigned its corresponding weight or priority in the evaluation criteria.
[0124] S404. Based on the edited tender documents and the structured review rule base, perform real-time matching and compliance analysis to determine the analysis results.
[0125] In some embodiments, the analysis results include missing clauses, discrepancies, and potential risks.
[0126] In some embodiments, real-time matching and compliance analysis refers to the process of automatically and instantly comparing the content of the edited tender document with the rules in the structured review rule base. This process aims to identify whether the tender document content comprehensively covers and actively responds to the requirements of the tender document, and outputs specific analysis results.
[0127] In some embodiments, the analysis results refer to the specific output of the compliance analysis process, which clearly identifies in the form of structured data the missing clauses (i.e., items that do not respond to the tender requirements at all), inconsistencies (i.e., items that respond but whose content deviates from the tender requirements), and potential risk points (i.e., vague responses that may cause ambiguity or deductions).
[0128] For example, embodiments of the present invention can initiate real-time matching and compliance analysis during or after a user edits a tender document. The text content of the edited tender document is compared one by one with the rules in the structured review rule base. This is typically achieved through keyword matching, semantic similarity calculation, or field filling checks based on predefined templates. Based on the comparison results, detailed analysis results are generated, accurately identifying missing clauses, inconsistencies (such as technical parameters falling below tender requirements), and potential risk points (such as the use of uncertain terms like "approximately" or "striving"), and providing visual prompts within the document interface.
[0129] S405. Based on the analysis results, the edited tender document is revised to obtain the revised tender document.
[0130] For example, this invention not only identifies problems but also provides auxiliary correction functions. For missing clauses, intelligent content blocks with standard response templates can be automatically inserted; for inconsistencies, suggested standard expressions or recommended parameters can be provided; for potential risk points, wording optimization suggestions can be given. Users modify the documents under the system's guidance, ultimately generating a revised tender document that achieves a higher degree of coverage and compliance with the tender document's requirements.
[0131] S406. Based on the revised tender documents and analysis results, generate a compliance review report.
[0132] In some embodiments, a compliance review report refers to a systematic, summary document automatically generated based on the analysis results and the final revised status of the tender documents. This report summarizes all issues identified during the review, the corrective actions taken, the overall compliance score, and improvement recommendations, providing decision-makers with the final basis for quality confirmation.
[0133] For example, embodiments of the present invention can automatically compile a compliance review report by integrating the entire analysis process and the final document status. This report includes: an overview of the review scope, a list of identified issues and their classification, the implementation status of corrective measures, a quantitative score for the overall response compliance rate, and improvement suggestions for similar future projects. This report can be exported as a standardized document as a quality record of the bidding process.
[0134] Thus, the embodiments of the present invention can transform the traditional bid document compliance review work, which relies on human experience, into an automated, intelligent, and traceable standardized process, significantly improving the efficiency of bid document quality preparation and bidding competitiveness.
[0135] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0136] The following are device embodiments of the present invention. For details not described in detail, please refer to the corresponding method embodiments described above.
[0137] Figure 2 This diagram illustrates the structure of a Word-like intelligent bid document editing device according to an embodiment of the present invention. The intelligent editing device 500 includes a communication module 501 and a processing module 502.
[0138] The communication module 501 is used to monitor the user's editing operations on the tender documents in the intelligent editor; The processing module 502 is used to respond to the user's editing operation on the tender document in the intelligent editor, parse the target intelligent content block, target data field and modified content involved in the editing operation; based on the target data field, traverse the tender document to determine multiple intelligent content blocks to be updated and the update position; determine the document format of multiple intelligent content blocks, and update the tender document based on the document format of each intelligent content block, the update position and the modified content, so as to realize intelligent compilation.
[0139] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. The electronic device 600 includes: a processor 601, a memory 602, and a computer program 603 stored in the memory 602 and executable on the processor 601. When the processor 601 executes the computer program 603, it implements the steps in the above-described method embodiments. Alternatively, when the processor 601 executes the computer program 603, it implements the functions of each module / unit in the above-described device embodiments.
[0140] For example, the computer program 603 may be divided into one or more modules / units, which are stored in the memory 602 and executed by the processor 601 to complete the present invention. The one or more modules / units may be a series of computer program instruction segments capable of performing specific functions, which describe the execution process of the computer program 603 in the electronic device 600.
[0141] The processor 601 may be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.
[0142] The memory 602 can be an internal storage unit of the electronic device 600, such as a hard disk or memory of the electronic device 600. The memory 602 can also be an external storage device of the electronic device 600, such as a plug-in hard disk, smart media card (SMC), secure digital card (SD) card, flash card, etc., equipped on the electronic device 600. Furthermore, the memory 602 can include both internal and external storage units of the electronic device 600. The memory 602 is used to store the computer program and other programs and data required by the terminal. The memory 602 can also be used to temporarily store data that has been output or will be output.
[0143] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.
Claims
1. A method for intelligent preparation of a bid document in a word-like editing technique, characterized in that, The application is applied to an intelligent editor which is an online word-like editor compatible with word software, and the intelligent compiling method comprises the following steps: In response to a user's editing operation on a bid document in the intelligent editor, the target intelligent content block, the target data field, and the modified content involved in the editing operation are parsed; Based on the target data field, the bid document is traversed to determine a plurality of intelligent content blocks to be updated and a position to be updated; The document format of the plurality of intelligent content blocks is determined, and based on the document format of each intelligent content block, the position to be updated, and the modified content, the bid document is updated to realize intelligent compiling.
2. The method of claim 1, wherein the method is characterized by, The response to a user's editing operation on a bid document in the intelligent editor, the target intelligent content block, the target data field, and the modified content involved in the editing operation comprises: In response to a user's editing operation on a bid document in the intelligent editor, the document position where the editing operation is located is identified; Based on the document position where the editing operation is located, the target intelligent content block is determined; Based on the target intelligent content block and the document position, the target data field is determined; Based on the target intelligent content block before the editing operation and the target intelligent content block after the editing operation, comparison analysis is performed to obtain the modified content.
3. The method of claim 1, wherein the method is characterized by, The response to a user's editing operation on a bid document in the intelligent editor, the target intelligent content block, the target data field, and the modified content involved in the editing operation comprises: Based on the target data field and a pre-established field-content block global mapping table, the intelligent content block corresponding to the target data field is extracted to determine the plurality of intelligent content blocks to be updated; wherein the field-content block global mapping table comprises the mapping relationship between the field and the intelligent content block; The text embedding position related to the target data field is determined as the position to be updated by traversing the plurality of intelligent content blocks.
4. The method of claim 1, wherein the method is characterized by, The response to a user's editing operation on a bid document in the intelligent editor, the target intelligent content block, the target data field, and the modified content involved in the editing operation comprises: According to the position to be updated, the modified content is written into the position to be updated of each intelligent content block; Based on the document format of each intelligent content block, the text in each position to be updated is intelligently typeset to obtain the updated bid document.
5. The method of claim 1, wherein the method of automatically preparing a bid document using a word processing technique is characterized by, The method further comprises: Real-time capture of any user's operation instruction on the same bid document in the intelligent editor; Based on the operation instruction, a standardized operation event is generated, which comprises a user identifier, a timestamp, and operation context information; Based on the standardized operation events of the plurality of users, conflict detection and instruction fusion are performed to obtain a sequential execution instruction sequence of the intelligent editor; Based on the sequential execution instruction sequence, the bid document in the intelligent editor is updated and synchronized to the client of each user.
6. The method of claim 5, wherein the word processing technique-based bid document intelligent preparation method is characterized by, The response to a user's editing operation on a bid document in the intelligent editor, the target intelligent content block, the target data field, and the modified content involved in the editing operation comprises: The operation bit identifier of each standardized operation event is extracted; Based on the operation target position identifier, a set of potential conflict operations is identified, the set of potential conflict operations including standardized operation events that exist in the same document region or the same data field and are overlapping or mutually exclusive; Based on the timestamps of the standardized operation events, a vector clock algorithm is used to determine a global partial order relationship of the potential conflict operations in the set of potential conflict operations; Based on the global partial order relationship, an execution order of the standardized operation events on a logical timeline is determined; Based on the execution order, conflict fusion processing is performed on the standardized operation events to obtain a processed operation event sequence; Based on the processed operation event sequence, a sequential execution instruction sequence of the intelligent editor is generated.
7. The method of claim 6, wherein the word processing technique-based bid document intelligent preparation method is characterized by, The conflict fusion processing on the standardized operation events based on the execution order to obtain the processed operation event sequence includes: For text insertion conflicts, when the target positions of multiple insertion operations overlap, operation parameters of subsequent insertion positions are dynamically adjusted to ensure that all text content is retained and the logical order is correct; For format setting conflicts, when multiple format operations act on the same text range, the conflicting format properties are combined and covered according to predefined format property priority rules; For data field modification conflicts, when there are multiple modification operations on the same bound field, the latest valid modification operation result on the logical timeline is used as a reference based on the partial order relationship. 8.The method of claim 1 to 7, wherein, The method further includes: detecting whether the bid document meets the archiving condition, the archiving condition including completing a key editing node or reaching a preset saving condition; if the bid document meets the archiving condition, the complete content, format metadata, and operation context of the current document, and a storage time are stored as a historical version corresponding to the storage time in a structured manner; in response to a version comparison instruction of a user, full-element analysis is performed on two or more historical versions selected in the version comparison instruction to determine a comparison result, the comparison result including differences in text content, format properties, and data fields; based on the comparison result and the bid document, key points are extracted and navigation information is generated; the comparison result of the two or more historical versions and the navigation information are displayed on a display interface of the intelligent editor. 9.The method of claim 1 to 7, wherein, The method further includes: parsing a user-imported bid document; based on natural language processing technology, key clauses, technical requirements, and scoring standards are extracted from the bid document; based on the key clauses, technical requirements, and scoring standards, a structured review rule library is generated; based on the edited bid document and the structured review rule library, real-time matching and compliance analysis are performed to determine an analysis result, the analysis result including missing clauses, inconsistent expressions, and potential risk points; based on the analysis result, the edited bid document is revised to obtain a revised bid document; based on the revised bid document and the analysis result, a compliance review report is generated.
10. A smart bid document preparation device using Word-like editing technology, characterized in that, The intelligent editor is applied to an intelligent editor compatible with word software, and the intelligent editor includes: The communication module is configured to monitor an editing operation of a user on a bidding document in the intelligent editor. The processing module is configured to, in response to the editing operation of the user on the bidding document in the intelligent editor, parse a target intelligent content block, a target data field, and modification content involved in the editing operation; based on the target data field, traverse the bidding document to determine a plurality of intelligent content blocks to be updated and a position to be updated; determine a document format of the plurality of intelligent content blocks, and based on the document format of each intelligent content block, the position to be updated, and the modification content, update the bidding document to realize intelligent compilation.