Document co-processing method and device, electronic equipment and storage medium

By dividing documents into sub-documents and synchronizing operations in real time in the shared interface, the editing conflict caused by information asymmetry in the document is solved, and collaboration efficiency is improved.

CN120045532APending Publication Date: 2025-05-27SHENZHEN LEXIN SOFTWARE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510128551.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-05
Publication Date
2025-05-27

AI Technical Summary

Technical Problem

During the process of multi-person collaborative processing of documents, information asymmetry leads to editing conflicts, affecting the quality of collaboration and work efficiency.

Method used

By receiving user requests, the target document is divided into sub-documents, and the user operations are synchronized in real time in the shared interface, the editing conflicts are detected and resolved, and the documents after collaborative operations are merged.

Benefits of technology

Real-time collaboration between multiple people editing documents online at the same time, effectively solving editing conflicts and improving the efficiency of team collaboration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120045532A_ABST
    Figure CN120045532A_ABST
Patent Text Reader

Abstract

The invention relates to the field of document processing, and discloses a document co-processing method, which comprises the following steps of: dividing a target document into a first sub-document and a second sub-document; displaying the first sub-document in a first preset area of the shared interface, and displaying the second sub-document in a second preset area of the shared interface; synchronizing and displaying the first operation of the first user to the interface of the second user, and synchronizing and displaying the second operation of the second user to the interface of the first user; and detecting whether the operations of the first user and the second user on the first sub-document and the second sub-document have editing conflicts, if so, guiding the first user and the second user to perform cooperative operation on the operations with the editing conflicts through preset reminding information, and merging the first document and the second document after the cooperative operation to obtain a modified target document. According to the method, multiple persons can edit the document online at the same time, and the editing conflict problem of processing the document is effectively solved by seeing operation data of other persons.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of document processing, and particularly to a method, device, electronic device and storage medium for collaborative document processing. Background Art

[0002] In the fintech industry, the demand for data processing and information sharing is increasing day by day, and efficient and accurate data processing and analysis capabilities have become one of the key factors determining the competitiveness of institutions. However, in actual work, traditional document editing methods face many challenges, especially when multiple people collaborate to complete a complex document.

[0003] During the process of multiple people collaborating to process a document, the work progress of each person is not synchronized, and others' ongoing operations cannot be viewed in real time, resulting in editing conflicts caused by information asymmetry among some team members. Resolving these editing conflicts often requires additional time and communication costs, and sometimes may even cause misunderstandings or omissions of important information, thus affecting the collaboration quality and work efficiency of the entire team.

[0004] Therefore, it is an urgent technical problem to solve the problem of editing conflicts caused by information asymmetry in collaborative document processing by multiple people. Summary of the Invention

[0005] In view of the above, it is necessary to provide a method for collaborative document processing, the purpose of which is to enable multiple people to edit a document online simultaneously, be able to view others' operation data in real time, and effectively solve the problem of editing conflicts in collaborative document processing.

[0006] The method for collaborative document processing provided by the present invention includes:

[0007] Receiving requests from a first user and a second user for collaborative processing of a target document, obtaining the target document from a preset database according to the identifier of the target document included in the request, obtaining a first user role of the first user for editing the target document according to the identifier of the first user, and obtaining a second user role of the second user for editing the target document according to the identifier of the second user;

[0008] Dividing the target document into a first sub-document and a second sub-document according to the first user role and the second user role, displaying the first sub-document in a first preset area of the shared interface, and displaying the second sub-document in a second preset area of the shared interface;

[0009] Receive and display the first operation performed by the first user on the first sub-document in the first preset area, synchronize and display the first operation to the interface of the second user, and receive and display the second operation performed by the second user on the second sub-document in the second preset area, synchronize and display the second operation to the interface of the first user;

[0010] Analyze the data of the first operation and the second operation, detect whether there is an editing conflict in the operations of the first user and the second user on the first sub-document and the second sub-document. If so, guide the first user and the second user to perform collaborative operations on the operations with editing conflicts through a preset reminder message. When it is detected that there is no editing conflict in the first document and the second document after the collaborative operation, merge the first document and the second document after the collaborative operation to obtain the modified target document.

[0011] Optionally, the dividing the target document into a first sub-document and a second sub-document according to the first user role and the second user role includes:

[0012] Identify the markup symbols in the target document, extract each paragraph of the target document according to the markup symbols, and extract the keywords of each paragraph;

[0013] Match the keywords with the editing tags corresponding to the first user role and the second user role respectively to obtain the first sub-document of the first user role and the second sub-document of the second user role.

[0014] Optionally, before displaying the first sub-document in the first preset area of the shared interface, it further includes:

[0015] Extract the identifiers of the first user and the second user, where the identifiers include authentication tokens and user IDs;

[0016] Query the preset access control list according to the identifiers to determine whether the first user and the second user have the editing permissions for the corresponding sub-documents. If so, obtain the content of the corresponding sub-documents and load and display them in the shared interface.

[0017] Optionally, after displaying the first sub-document in the first preset area of the shared interface, the method further includes:

[0018] Lock the operation permissions of the corresponding sub-documents according to the identifiers of the first user and the second user to obtain locking information;

[0019] Record the locking information in a preset locked document record table, where the preset locked document record table is used to record and track the editing status of each sub-document of the target document.

[0020] Optionally, the method further includes:

[0021] Setting a preset time interval, and regularly checking, according to the time interval, whether the first user and the second user are still performing a preset type of operation on the corresponding sub - document, where the preset type of operation includes editing, deleting, adding, refreshing, and saving;

[0022] If so, maintaining the locking of the operation permission for the corresponding sub - document in the locked document record table;

[0023] If not, releasing the locking of the operation permission for the corresponding sub - document from the locked document record table.

[0024] Optionally, the method further includes:

[0025] Monitoring the first user and the second user editing the corresponding sub - documents to obtain an edited document;

[0026] From the edited document, obtaining a first operation generated when the first user edits the first sub - document, and obtaining a second operation generated when the second user edits the second sub - document, where the first and second operations include the editing position, modified content, added or deleted text.

[0027] Optionally, analyzing the data of the first operation and the second operation to detect whether there is an editing conflict in the operations of the first user and the second user on the first sub - document and the second sub - document includes:

[0028] Obtaining a first preset content of the first sub - document edited by the first user, and obtaining a second preset content of the second sub - document edited by the second user;

[0029] Using a preset natural language processing model to analyze the coherence between the first preset content and the second preset content, and judging whether there is an editing conflict between the first sub - document and the second sub - document according to the analysis result.

[0030] To solve the above problems, the present invention further provides a document collaborative processing device, and the device includes:

[0031] A request module, configured to receive requests from a first user and a second user for collaborative processing of a target document, obtain the target document from a preset database according to the identifier of the target document included in the request, obtain a first user role of the first user editing the target document according to the identifier of the first user, and obtain a second user role of the second user editing the target document according to the identifier of the second user;

[0032] The first display module is configured to divide the target document into a first sub-document and a second sub-document according to the first user role and the second user role, display the first sub-document in a first preset area of the shared interface, and display the second sub-document in a second preset area of the shared interface;

[0033] The second display module is configured to receive and display a first operation performed by the first user on the first sub-document in the first preset area, synchronize and display the first operation to the interface of the second user, and receive and display a second operation performed by the second user on the second sub-document in the second preset area, synchronize and display the second operation to the interface of the first user;

[0034] The collaboration module is configured to analyze the data of the first operation and the second operation, detect whether there is an editing conflict in the operations of the first user and the second user on the first sub-document and the second sub-document. If so, guide the first user and the second user to perform collaborative operations on the operations with editing conflicts through a preset reminder message. When it is detected that there is no editing conflict in the first document and the second document after the collaborative operations, merge the first document and the second document after the collaborative operations to obtain the modified target document.

[0035] To solve the above problems, the present invention also provides an electronic device, which includes:

[0036] At least one processor; and,

[0037] A memory communicatively connected to the at least one processor; wherein,

[0038] The memory stores a document collaboration processing program executable by the at least one processor. The document collaboration processing program is executed by the at least one processor so that the at least one processor can execute the above document collaboration processing method.

[0039] To solve the above problems, the present invention also provides a computer-readable storage medium, on which a document collaboration processing program is stored. The document collaboration processing program can be executed by one or more processors to implement the above document collaboration processing method.

[0040] Compared with the prior art, the present invention divides the target document identifier into a first sub-document and a second sub-document, enabling a large document to be reasonably decomposed into small pieces for easy distribution to different team members. The first sub-document is displayed in a first preset area of the shared interface, and the second sub-document is displayed in a second preset area of the shared interface, allowing different users to perform parallel processing on different sub-documents of the target document at the same time, thereby improving the overall collaboration efficiency. The operation data of other users is displayed on the shared interface of each user to ensure that all participants can see the latest editing status.

[0041] When it is detected that an editing conflict occurs between the operation data of each user, a first user and a second user are guided through a preset reminder message to perform collaborative operations on the operations with editing conflicts. When it is detected that there is no editing conflict between the first document and the second document after the collaborative operation, the first document and the second document after the collaborative operation are merged to obtain the modified target document, solving the problems of information asymmetry and editing conflicts when multiple people edit the target document, reducing errors caused by poor communication, and improving the work efficiency of team collaboration. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a schematic flowchart of a document collaborative processing method provided by an embodiment of the present invention;

[0043] Figure 2 It is a schematic module diagram of a document collaborative processing device provided by an embodiment of the present invention;

[0044] Figure 3 It is a schematic structural diagram of an electronic device for implementing the document collaborative processing method provided by an embodiment of the present invention;

[0045] The implementation, functional features and advantages of the present invention will be further described in conjunction with the embodiments with reference to the accompanying drawings. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0046] In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0047] It should be noted that the descriptions involving "first", "second", etc. in the present invention are only for descriptive purposes, and should not be construed as indicating or implying their relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include at least one such feature. Additionally, the technical solutions between various embodiments may be combined with each other, but it must be based on the fact that those of ordinary skill in the art can implement it. When the combination of technical solutions results in contradictions or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0048] Referring to Figure 1 As shown, it is a schematic flowchart of a document collaborative processing method provided by an embodiment of the present invention. This method is executed by an electronic device.

[0049] In this embodiment, the document collaborative processing method includes:

[0050] S1. Receive requests from a first user and a second user for collaborative processing of a target document. According to the identifier of the target document included in the request, obtain the target document from a preset database. According to the identifier of the first user, obtain the first user role of the first user for editing the target document. According to the identifier of the second user, obtain the second user role of the second user for editing the target document;

[0051] In this embodiment, the collaborative processing platform receives requests from a first user and a second user for collaborative processing of a target document. According to the identifier of the target document included in the request, obtain the target document from a preset database. Collaborative processing means that multiple users will edit, view, or perform other operations on the target document simultaneously or sequentially.

[0052] The collaborative processing platform refers to a collaboration tool based on the Internet or an internal network, which can promote real-time communication and collaboration among multiple users or user groups to jointly process or edit a target document.

[0053] The first user and the second user refer to users participating in collaborative editing of the target document.

[0054] The organizer of the target document publishes the target document to the collaborative processing platform. The target user can also be the author, editor, reviewer, etc. of the target document. For example, in a financial institution, a project manager may need to jointly edit an investment report with team members. Therefore, the project manager can initiate a collaborative processing request as the organizer.

[0055] The target document includes, but is not limited to, documents, reports, posters, graphic works, presentations, emails, contracts, project plans, and models. In the following examples of the present invention, the target document will be illustrated with a document. In the present invention, the target document is divided into at least two sub-documents (a first sub-document and a second sub-document) according to a preset division criterion. In other embodiments, the target document can be divided into multiple sub-documents according to actual needs, and the present invention does not impose any limitation on the number of sub-documents into which the target document is divided.

[0056] The preset database is a database used to store the target document and its related information, including but not limited to document content, version history, user permissions, etc. It also contains other metadata related to user roles, access control lists (ACLs), and document editing and splitting.

[0057] Query the preset access control list (ACL) using the user identifier to determine the user role (such as project manager, market analyst, financial analyst, etc.) that the user has when editing the target document. The ACL is a database or configuration file that contains users and their corresponding roles.

[0058] S2. According to the first user role and the second user role, divide the target document into a first sub-document and a second sub-document, display the first sub-document in a first preset area of the sharing interface, and display the second sub-document in a second preset area of the sharing interface;

[0059] In this embodiment, multiple users participate in processing the target document. The first user refers to a certain user who participates in processing the target document. Verify the editing permission of the first user, and confirm that the first user has the editing permission for the first sub-document, and display the data of the first sub-document in the first preset area of the sharing interface. If the first user does not have the editing permission, return an error message or prompt the user that they do not have sufficient permissions. Thus, it is ensured that only users with corresponding permissions can view and edit the first sub-document, thereby guaranteeing the security and integrity of the first sub-document.

[0060] The sharing interface refers to an interface in an Internet environment that can be accessed and interacted with by multiple users simultaneously. The sharing interface can be a website, a web page, or a dedicated online platform that allows users in different geographical locations, using different devices, to view, edit, discuss, or share information in real time through a network connection.

[0061] In one embodiment, the dividing the target document into a first sub-document and a second sub-document according to the first user role and the second user role includes:

[0062] Identify the markup symbols in the target document, extract each paragraph of the target document according to the markup symbols, and extract the keywords of each paragraph;

[0063] Match the keywords with the editing tags corresponding to the first user role and the second user role respectively to obtain the first sub-document of the first user role and the second sub-document of the second user role.

[0064] Pre-define the editing tags corresponding to each user role, store the editing tags corresponding to each user role in the access control list (ACL), and define the editing permissions of each user role's editing tags in the target document. Include predefined chapters, paragraphs, or other logical units. For example: Project Manager: Can edit all parts, but mainly focus on the overall structure and final review. Market Analyst: Can only edit parts related to market analysis. Financial Analyst: Limited to editing financial data and analysis parts.

[0065] According to the identifier of the first user (such as username, user ID, etc.), query the preset access control list (ACL) to determine the user role (such as project manager, market analyst, financial analyst, etc.) that the first user has when editing the target document. Repeat the above process: Perform the same operation on the second user to obtain the user role of the second user when editing the target document.

[0066] Use a text parsing algorithm to identify the markup symbols (such as line breaks, blank lines, format tags, etc.) in the target document, extract each paragraph of the target document according to the markup symbols, extract the keywords of each paragraph, and match the keywords with the editing tags corresponding to the first user role and the second user role respectively. For each paragraph, calculate the similarity between its keywords and the editing tags of the user role through a preset similarity algorithm (such as Cosine Similarity, Jaccard Similarity, Levenshtein Distance, etc.). If the similarity exceeds the preset threshold, it is considered a successful match, and the paragraph is assigned to the corresponding role. Thus, the first sub-document of the first user role and the second sub-document of the second user role are obtained.

[0067] By dividing the target document into multiple sub-documents and assigning them to user roles with corresponding permissions, it can be ensured that each user only edits the part they are responsible for, reducing the conflicts that may occur when multiple people edit the same part simultaneously, thereby improving the efficiency and accuracy of collaborative work.

[0068] In one embodiment, before displaying the first sub-document in the first preset area of the shared interface, it further includes:

[0069] Extract the identifiers of the first user and the second user, where the identifiers include an authentication token and a user ID;

[0070] Query a preset access control list according to the identifiers to determine whether the first user and the second user have the editing permission for the corresponding sub - document. If so, obtain the content of the corresponding sub - document, load and display it in the shared interface.

[0071] Extract the identifiers of the first user and the second user from the request. The identifiers include an authentication token and a user ID. Use the identifiers to query a preset access control list, and the access control list contains a list of the access permissions of users and user groups for each sub - document of the target document.

[0072] Determine whether the first user has the permission to edit the first sub - document and whether the second user has the permission to edit the second sub - document by querying the access control list.

[0073] According to the query result of the access control list, if the first user has the editing permission, obtain the content of the first sub - document, load and display it in the first preset area in the shared interface. If the second user has the editing permission, obtain the content of the second sub - document, load and display it in the second preset area in the shared interface so that the first and second users can view and edit;

[0074] If the first and / or second user does not have the editing permission, return an error message or prompt the user that they do not have sufficient permissions. This ensures that only users with the corresponding permissions can view and edit the corresponding sub - documents, thus guaranteeing the security and integrity of the sub - documents.

[0075] In one embodiment, after displaying the first sub - document in the first preset area of the shared interface, the method further includes:

[0076] Lock the operation permissions of the corresponding sub - document according to the identifiers of the first user and the second user to obtain lock information;

[0077] Record the lock information in a preset lock document record table, which is used to record and track the editing status of each sub - document of the target document.

[0078] To prevent other users from modifying or interfering with the first sub - document when the first user is operating on the first sub - document, or to prevent other users from modifying or interfering with the second sub - document when the second user is operating on the second sub - document, the operation permissions of the first and second sub - documents are locked.

[0079] Lock the operation permissions of the corresponding sub - documents according to the identifiers of the first user and the second user. After the locking operation is completed, the first locking information is generated. The locking information includes key information such as the identifier of the locked sub - document, the identifier of the locking user, the locking time, and the locking type. Record the locking information in a preset locking document record table to facilitate the system and other users to understand the current locking situation of the document by recording the locking status.

[0080] During the period of locking the sub - document, except for the users who have already obtained the editing permission of the sub - document, other users will not be able to perform any editing operations on the sub - document, which can effectively prevent multiple users from editing the same part of the content simultaneously, thus avoiding the problems of editing conflicts and data inconsistency.

[0081] If a current user performs any editing operation on the first sub - document and / or the second sub - document, then return the first preset reminder message to other users. For example, the first preset reminder message is: Hello, the current sub - document is locked by other users. Please use it later.

[0082] When the first user and / or the second user closes the shared interface on their own usage terminals, the locking of the sub - document is automatically released, or when the first user and / or the second user releases the locking of the sub - document from the preset locking document record table, so that other users can perform editing operations on the sub - document.

[0083] In one embodiment, the method further includes:

[0084] Set a preset time interval, and regularly check whether the first user and the second user are still performing preset types of operations on the corresponding sub - documents according to the time interval. The preset type of operations includes editing, deleting, adding, refreshing, and saving.

[0085] If so, maintain the locking of the operation permissions of the corresponding sub - document in the locking document record table.

[0086] If not, release the locking of the operation permissions of the corresponding sub - document from the locking document record table.

[0087] Set a preset time interval through a preset heartbeat mechanism, and regularly check whether the first user and the second user are still performing preset types of operations on the corresponding sub - documents according to the time interval. The preset type of operations includes editing, deleting, adding, refreshing, and saving.

[0088] The mechanism for detecting whether the first user and the second user are online and dynamically adjusting the locking status of the sub - document according to the operation activity of the first user and the second user on the sub - document helps to ensure that the document is correctly locked and unlocked when needed.

[0089] Every preset time period (for example, every 5 minutes), automatically detect whether the first user and the second user perform preset type operations on the sub - document. The preset type operations include, but are not limited to, editing, deleting, adding, refreshing, and saving.

[0090] For example, within the preset time period, if it is detected that the first user has performed any one of the preset type operations on the first sub - document, it is considered that the first user still needs to continue editing or processing the first sub - document, and the locked state of the operation permission for the first sub - document remains unchanged to ensure that the first user can complete the work without interference. If within the preset time period, it is not detected that the first user has performed any preset type operation on the first sub - document, it is considered that the first user may have completed the work or left the shared interface, and the locked operation permission for the first sub - document is released so that other users can access and edit the first sub - document. The above example also applies to the second user.

[0091] S3. Receive and display the first operation performed by the first user on the first sub - document in the first preset area, synchronize and display the first operation to the interface of the second user, and receive and display the second operation performed by the second user on the second sub - document in the second preset area, synchronize and display the second operation to the interface of the first user;

[0092] In this embodiment, monitor the first user's editing of the first sub - document, obtain the first operation generated when the first user edits the first sub - document, and display the first operation in the second preset area of the shared interface so that the second user can see the editing situation of the first sub - document by the first user in real - time, thus realizing real - time collaboration and communication.

[0093] At the same time, monitor the second user's editing of the second sub - document, obtain the second operation generated when the second user edits the second sub - document, and display the second operation in the second preset area of the shared interface so that the first user can see the editing situation of the second sub - document by the second user in real - time, thus realizing real - time collaboration and communication.

[0094] The first operation and the second operation respectively represent the editing behaviors of the first user and the second user, and these data are transmitted and displayed to the other party in real - time or near - real - time.

[0095] The first user and the second user can see each other's editing situations on the interfaces of their respective usage terminals and can respond according to the operations of the other party. For example, the first user can see the data of the second user's editing of the second sub - document on his own shared interface, thereby judging whether his editing of the first sub - document is appropriate, so as to modify his own plan or give opinions to the second user. Similarly, the second user can also make corresponding responses according to the first user's editing situation.

[0096] For example: Suppose in a fintech company, there is a cross - departmental project team jointly writing a market analysis report on the latest financial product. This report contains a large amount of data, charts, and text content, and requires the collaboration of multiple members.

[0097] The project team consists of product manager A, market salesman B, and market analyst C.

[0098] They are using a collaborative processing platform that supports real - time online editing to jointly complete this report. As the organizer, product manager A uploads the market analysis report to the collaborative processing platform for collaborative editing. The collaborative processing platform automatically identifies different parts of the market analysis report (such as overview, market trends, competitor analysis, etc.) and divides the report into several sub - documents according to the positions of these paragraphs. For example, "Overview" is the first sub - document, and "Market Trends" is the second sub - document.

[0099] Market salesman B is responsible for writing the "Overview" section. By sending an operation request through the interface, a dedicated area for editing the "Overview" is then allocated on the shared interface for market salesman B, and market salesman B starts to input or modify the text content in this area.

[0100] At the same time, market analyst C is assigned to update the "Market Trends". A request is sent to the collaborative processing platform, and the market analyst C gets his own editing area - that is, the "Market Trends" section in the report. Market analyst C adds the latest market data and trend forecasts in this area.

[0101] When obtaining the first operation of market salesman B editing the "Overview", all her changes will immediately be reflected in a specific area on the shared interface that can be seen by market analyst C and others; similarly, the second operation done by market analyst C will also immediately appear in the views of market salesman B and others. In this way, no matter what changes any member is making, the entire team can immediately be aware of it and accordingly adjust their work plans or directly participate in relevant discussions, thus greatly reducing the problems of communication barriers and information lag.

[0102] In one embodiment, the method further includes:

[0103] Monitoring the first user and the second user editing the corresponding sub - documents to obtain the edited documents;

[0104] From the edited documents, obtaining the first operation generated when the first user edits the first sub - document and obtaining the second operation generated when the second user edits the second sub - document. The first and second operations include editing positions, modified content, added or deleted text.

[0105] The editing behavior of the first user on the first sub - document is tracked in real - time or near - real - time through a monitoring mechanism, and the editing behavior of the first user is collected and processed to generate a series of first operations. The first operations record in detail the user's editing activities, including but not limited to:

[0106] Editing location: The specific location where the user makes the edit, such as which paragraph, line, or character in the document.

[0107] Modified content: The text content actually changed by the user, for example, changing "bicycle" to "car".

[0108] Adding or deleting text: Whether the user adds new text content or deletes existing text.

[0109] Format adjustment: The changes made by the user to the document format, such as font size, color, bold, italic, paragraph alignment, etc.

[0110] The first operations are displayed in the second preset area of the sharing interface for the second user to view.

[0111] The first preset area of the sharing interface is used to display the first sub - document, and the second preset area of the sharing interface is used to display the second operations of the second user on the second sub - document. As for the specific positions and sizes of the first preset area and the second preset area, they are adjusted according to actual needs. For example, the first preset area is on the left and the second preset area is on the right, or the first preset area is on the top and the second preset area is on the bottom, without any restrictions.

[0112] Similarly, the specific positions and sizes of the first preset area and the second preset area of the sharing interface are also adjusted according to actual needs. All the editing operations of the first user and the second user are recorded for subsequent review or backtracking, and different versions of each sub - document are automatically saved to ensure that every edit is traceable.

[0113] In step S3, the first user and the second user can see each other's editing situations in real - time on the interfaces of their respective usage ends, which promotes the collaboration efficiency, enables team members to immediately understand each other's work progress, and make corresponding adjustments or feedback according to the actual situation.

[0114] S4. Analyze the data of the first operations and the second operations, detect whether there are editing conflicts in the operations of the first user and the second user on the first sub - document and the second sub - document. If so, guide the first user and the second user to perform collaborative operations on the operations with editing conflicts through preset reminder information. When it is detected that there are no editing conflicts in the first document and the second document after the collaborative operations, merge the first document and the second document after the collaborative operations to obtain the modified target document.

[0115] In one embodiment, analyzing the data of the first operation and the second operation to detect whether an editing conflict occurs between the operations of the first user and the second user on the first sub-document and the second sub-document includes:

[0116] Obtaining first preset content of the first sub-document edited by the first user, and obtaining second preset content of the second sub-document edited by the second user;

[0117] Using a preset natural language processing model to analyze the coherence between the first preset content and the second preset content, and judging whether an editing conflict occurs between the first sub-document and the second sub-document according to the analysis result.

[0118] Obtain the first preset content of the first sub-document edited by the first user, and the first preset content includes the ending part of the first sub-document. Obtain the second preset content of the second sub-document edited by the second user, and the second preset content includes the beginning part of the second sub-document. The first preset content and the second preset content are directly adjacent, and their coherence directly affects the reading experience of the entire target document. In other embodiments, the first preset content may be a key paragraph, abstract, or summary in the first sub-document, and the second preset content is a key paragraph, abstract, or summary in the second sub-document.

[0119] Using a preset natural language processing model (such as NLP) to analyze the coherence between the first preset content and the second preset content, and the coherence includes topic consistency, semantic coherence, and logical relationship.

[0120] Topic consistency refers to using NLP technology to analyze whether the topics of the first preset content and the second preset content are the same or related. For example, a topic model (such as LDA) can be used to judge whether the first preset content and the second preset content are developed around the same topic.

[0121] Semantic coherence refers to checking whether the semantics between the first preset content and the second preset content are coherent. It can be achieved by calculating the similarity score between the first preset content and the second preset content, and the higher the score, the more coherent the first preset content and the second preset content are.

[0122] Logical relationship refers to analyzing whether the logical relationship between the first preset content and the second preset content is reasonable. For example, whether the first preset content raises a question and the second preset content provides an answer; or whether the first preset content introduces background information and the second preset content launches a specific discussion, etc.

[0123] Through the comprehensive analysis of the above three aspects of topic consistency, semantic coherence, and logical relationship, it is determined whether there is an editing conflict between the first sub-document and the second sub-document according to the analysis results. For example, if the analysis result is greater than or equal to the threshold (0.5), an editing conflict has occurred. The first user and the second user are guided through a preset reminder message to pay attention to these problems and are advised to take appropriate collaborative operations to resolve the conflict, such as direct communication, content coordination, or re-reviewing relevant parts.

[0124] After the first user and the second user complete the necessary collaborative operations according to the guidance, the first sub-document and the second sub-document are checked again to confirm that the conflict has been resolved and there are no new editing conflicts. Once the verification is passed, the first sub-document and the second sub-document after collaborative processing are automatically merged to generate an updated target document to ensure the consistency and integrity of the document.

[0125] Specifically, it includes: receiving and analyzing the collaborative operation results of the first user and the second user, automatically performing conflict detection to ensure that all previously identified conflicts have been resolved. If there are no conflicts, the merge operation will be automatically executed to generate an updated target document and save the changes.

[0126] In one embodiment, the method further includes:

[0127] A chat function component is provided in the shared interface;

[0128] Through the chat function component, the first user and the second user can exchange opinions on the target document.

[0129] Real-time data sharing and the chat function component greatly shorten the communication time between team members, making collaboration more efficient. By viewing each other's editing situations in real time, team members can better understand each other's ideas and intentions through the chat function component, thereby reducing misunderstandings and conflicts. Users can flexibly adjust their work strategies according to real-time information to meet the overall needs of the team.

[0130] In steps S1 to S4, the present invention divides the target document identifier into a first sub-document and a second sub-document, enabling large documents to be reasonably decomposed into small pieces for easy distribution to different team members. The first sub-document is displayed in the first preset area of the shared interface, and the second sub-document is displayed in the second preset area of the shared interface, allowing different users to perform parallel processing on different sub-documents of the target document at the same time, improving the overall collaboration efficiency. The operation data of other users is displayed on the shared interface of each user to ensure that all participants can see the latest editing status.

[0131] When an edit conflict occurs between the operation data of each user, the first user and the second user are guided through a preset reminder message to perform collaborative operations on the operations with edit conflicts. When it is detected that there is no edit conflict between the first document and the second document after the collaborative operations, the first document and the second document after the collaborative operations are merged to obtain the modified target document, solving the problems of information asymmetry and edit conflicts when multiple people edit the target document, reducing errors caused by poor communication, and improving the work efficiency of team collaboration.

[0132] As Figure 2 shown, it is a schematic diagram of the modules of a document collaborative processing device provided by an embodiment of the present invention.

[0133] The document collaborative processing device 100 of the present invention can be installed in an electronic device. According to the functions achieved, the document collaborative processing device 100 can include a request module 110, a first display module 120, a second display module 130, and a collaborative module 140. The modules of the present invention can also be referred to as units, which refer to a series of computer program segments that can be executed by a processor of an electronic device and can complete fixed functions, and are stored in the memory of the electronic device.

[0134] In this embodiment, the functions of each module / unit are as follows:

[0135] The request module 110 is configured to receive requests from the first user and the second user for collaborative processing of the target document, obtain the target document from a preset database according to the identifier of the target document included in the request, obtain the first user role of the first user editing the target document according to the identifier of the first user, and obtain the second user role of the second user editing the target document according to the identifier of the second user;

[0136] The first display module 120 is configured to divide the target document into a first sub-document and a second sub-document according to the first user role and the second user role, display the first sub-document in a first preset area of the shared interface, and display the second sub-document in a second preset area of the shared interface;

[0137] The second display module 130 is configured to receive and display the first operation performed by the first user on the first sub-document in the first preset area, synchronize and display the first operation to the interface of the second user, and receive and display the second operation performed by the second user on the second sub-document in the second preset area, synchronize and display the second operation to the interface of the first user;

[0138] A collaboration module 140, which is used to analyze the data of the first operation and the second operation, detect whether there is an editing conflict in the operations of the first user and the second user on the first sub-document and the second sub-document. If so, guide the first user and the second user to perform collaborative operations on the operations with editing conflicts through a preset reminder message. When it is detected that there is no editing conflict in the first document and the second document after the collaborative operation, merge the first document and the second document after the collaborative operation to obtain the modified target document.

[0139] In one embodiment, the dividing the target document into a first sub-document and a second sub-document according to the first user role and the second user role includes:

[0140] Identify the markup symbols in the target document, extract each paragraph of the target document according to the markup symbols, and extract the keywords of each paragraph;

[0141] Match the keywords with the editing tags corresponding to the first user role and the second user role respectively to obtain the first sub-document of the first user role and the second sub-document of the second user role.

[0142] In one embodiment, before displaying the first sub-document in the first preset area of the shared interface, it further includes:

[0143] Extract the identifiers of the first user and the second user, and the identifiers include authentication tokens and user IDs;

[0144] Query a preset access control list according to the identifiers to determine whether the first user and the second user have the editing permissions for the corresponding sub-documents. If so, obtain the content of the corresponding sub-documents and load and display them in the shared interface.

[0145] In one embodiment, after displaying the first sub-document in the first preset area of the shared interface, the method further includes:

[0146] Lock the operation permissions of the corresponding sub-documents according to the identifiers of the first user and the second user to obtain lock information;

[0147] Record the lock information in a preset lock document record table, and the preset lock document record table is used to record and track the editing status of each sub-document of the target document.

[0148] In one embodiment, the method further includes:

[0149] Set a preset time interval, and regularly check whether the first user and the second user are still performing a preset type of operation on the corresponding sub - document according to the time interval. The preset type of operation includes editing, deleting, adding, refreshing, and saving;

[0150] If so, keep the operation permission of the corresponding sub - document locked in the locked document record table;

[0151] If not, release the lock on the operation permission of the corresponding sub - document from the locked document record table.

[0152] In one embodiment, the method further includes:

[0153] Monitor the first user and the second user editing the corresponding sub - document to obtain the edited document;

[0154] From the edited document, obtain the first operation generated when the first user edits the first sub - document, and obtain the second operation generated when the second user edits the second sub - document. The first and second operations include the editing position, modified content, added or deleted text.

[0155] In one embodiment, analyzing the data of the first operation and the second operation to detect whether there is an editing conflict in the operations of the first user and the second user on the first sub - document and the second sub - document includes:

[0156] Obtain the first preset content of the first sub - document edited by the first user, and obtain the second preset content of the second sub - document edited by the second user;

[0157] Use a preset natural language processing model to analyze the coherence between the first preset content and the second preset content, and judge whether there is an editing conflict between the first sub - document and the second sub - document according to the analysis result.

[0158] As Figure 3 shown, it is a schematic structural diagram of an electronic device for implementing a document collaborative processing method provided by an embodiment of the present invention.

[0159] In this embodiment, the electronic device 1 includes, but is not limited to, a memory 11, a processor 12, and a network interface 13 that can communicate with each other through a system bus. A document collaborative processing program 10 is stored in the memory 11, and the document collaborative processing program 10 can be executed by the processor 12. Figure 3 Only the electronic device 1 with components 11 - 13 and the document collaborative processing program 10 is shown. Those skilled in the art can understand that, Figure 3The shown structure does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown, or combine certain components, or have different component arrangements.

[0160] Among them, the memory 11 includes a memory and at least one type of readable storage medium. The memory provides a cache for the operation of the electronic device 1; the readable storage medium can be a non-volatile storage medium such as flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the readable storage medium can be an internal storage unit of the electronic device 1; in other embodiments, the non-volatile storage medium can also be an external storage device of the electronic device 1, such as a plug-in hard disk equipped on the electronic device 1, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc. In this embodiment, the readable storage medium of the memory 11 is generally used to store the operating system installed on the electronic device 1 and various application software, such as storing the code of the document collaborative processing program 10 in an embodiment of the present invention. In addition, the memory 11 can also be used to temporarily store various data that have been output or will be output.

[0161] In some embodiments, the processor 12 can be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips. The processor 12 is generally used to control the overall operation of the electronic device 1, such as performing control and processing related to data interaction or communication with other devices. In this embodiment, the processor 12 is used to run the program code stored in the memory 11 or process data, such as running the document collaborative processing program 10.

[0162] The network interface 13 can include a wireless network interface or a wired network interface, and this network interface 13 is used to establish a communication connection between the electronic device 1 and a terminal (not shown in the figure).

[0163] Optionally, the electronic device 1 may further include a user interface, which may include a display, an input unit such as a keyboard. Optionally, the user interface may further include a standard wired interface and a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch liquid crystal display, and an OLED (Organic Light-Emitting Diode) toucher, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display the information processed in the electronic device 1 and to display a visual user interface.

[0164] It should be understood that the above embodiments are only for illustrative purposes and are not limited by this structure in the scope of the patent application.

[0165] The document collaboration processing program 10 stored in the memory 11 of the electronic device 1 is a combination of multiple instructions. When running in the processor 12, it can implement:

[0166] Receiving requests from a first user and a second user for collaborative processing of a target document, obtaining the target document from a preset database according to the identifier of the target document included in the request, obtaining a first user role of the first user for editing the target document according to the identifier of the first user, and obtaining a second user role of the second user for editing the target document according to the identifier of the second user;

[0167] Dividing the target document into a first sub-document and a second sub-document according to the first user role and the second user role, displaying the first sub-document in a first preset area of the shared interface, and displaying the second sub-document in a second preset area of the shared interface;

[0168] Receiving and displaying a first operation performed by the first user on the first sub-document in the first preset area, synchronizing and displaying the first operation to the interface of the second user, and receiving and displaying a second operation performed by the second user on the second sub-document in the second preset area, synchronizing and displaying the second operation to the interface of the first user;

[0169] Analyzing the data of the first operation and the second operation, detecting whether there is an editing conflict in the operations of the first user and the second user on the first sub-document and the second sub-document. If so, guiding the first user and the second user to perform collaborative operations on the operations with editing conflicts through a preset reminder message. When it is detected that there is no editing conflict in the first document and the second document after the collaborative operation, merging the first document and the second document after the collaborative operation to obtain a modified target document.

[0170] Specifically, for the specific implementation method of the above document collaborative processing program 10 by the processor 12, reference can be made to Figure 1 the description of the relevant steps in the corresponding embodiments, which will not be elaborated here.

[0171] Furthermore, if the modules / units integrated in the electronic device 1 are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. The computer-readable medium can be non-volatile or non-volatile. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disc, computer memory, read-only memory (ROM, Read-Only Memory).

[0172] The document collaborative processing program 10 is stored on the computer-readable storage medium, and the document collaborative processing program 10 can be executed by one or more processors. The specific implementation manner of the computer-readable storage medium of the present invention is basically the same as that of the above-described document collaborative processing methods in various embodiments, and will not be elaborated here.

[0173] In several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules is only a logical function division, and there can be other division methods in actual implementation.

[0174] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0175] In addition, in each embodiment of the present invention, the functional modules can be integrated in one processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0176] For those skilled in the art, it is obvious that the present invention is not limited to the details of the above exemplary embodiments, and can be implemented in other specific forms without departing from the spirit or basic characteristics of the present invention.

[0177] Therefore, from any perspective, the embodiments should be regarded as exemplary and non-limiting. The scope of the present invention is defined by the appended claims rather than the above description. Therefore, all changes falling within the meaning and scope of the equivalent elements of the claims are intended to be encompassed by the present invention. Any reference signs in the claims should not be construed as limiting the claims concerned.

[0178] In addition, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of elements or devices recited in the system claims can also be implemented by one element or device through software or hardware. The terms such as "second" are used to denote names and do not denote any particular order.

[0179] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of the present invention.

Claims

1. A document collaborative processing method, characterized in that: The method comprises: Receive a request from a first user and a second user to collaboratively process a target document, obtain the target document from a preset database according to an identifier of the target document included in the request, obtain a first user role of the first user editing the target document according to the identifier of the first user, and obtain a second user role of the second user editing the target document according to the identifier of the second user; According to the first user role and the second user role, the target document is divided into a first sub-document and a second sub-document, the first sub-document is displayed in a first preset area of ​​the sharing interface, and the second sub-document is displayed in a second preset area of ​​the sharing interface; receiving and displaying a first operation performed by the first user on the first sub-document in the first preset area, synchronizing and displaying the first operation on the interface of the second user, and receiving and displaying a second operation performed by the second user on the second sub-document in the second preset area, synchronizing and displaying the second operation on the interface of the first user; The data of the first operation and the second operation are analyzed to detect whether editing conflicts occur between the operations performed by the first user and the second user on the first sub-document and the second sub-document; if so, the first user and the second user are guided to perform collaborative operations on the operations causing editing conflicts through preset reminder information; when it is detected that no editing conflicts exist between the first document and the second document after the collaborative operation, the first document and the second document after the collaborative operation are merged to obtain a modified target document.

2. The document collaborative processing method according to claim 1, characterized in that: The step of dividing the target document into a first sub-document and a second sub-document according to the first user role and the second user role includes: Identify the markup symbols in the target document, extract each paragraph of the target document according to the markup symbols, and extract keywords from each paragraph; The keywords are matched with the edit tags corresponding to the first user role and the second user role respectively to obtain a first sub-document of the first user role and a second sub-document of the second user role.

3. The document collaborative processing method according to claim 1, characterized in that: Before displaying the first sub-document in the first preset area of ​​the sharing interface, the method further includes: Extracting identifiers of the first user and the second user, wherein the identifiers include authentication tokens and user IDs; A preset access control list is queried according to the identifier to determine whether the first user and the second user have editing authority for the corresponding sub-document. If so, the content of the corresponding sub-document is obtained, loaded and displayed in the sharing interface.

4. The document collaborative processing method according to claim 1, characterized in that: After displaying the first sub-document in the first preset area of ​​the sharing interface, the method further includes: Locking the operation permission of the corresponding sub-document according to the identifiers of the first user and the second user to obtain locking information; The locking information is recorded in a preset locking document record table, and the preset locking document record table is used to record and track the editing status of each sub-document of the target document.

5. The document collaborative processing method according to claim 4, characterized in that: The method further comprises: Setting a preset time interval, and regularly checking whether the first user and the second user are still performing preset type operations on the corresponding sub-documents according to the time interval, wherein the preset type operations include editing, deleting, adding, refreshing and saving; If so, the operation permission of the corresponding sub-document is locked in the locked document record table; If not, unlocking the operation permission of the corresponding sub-document from the locked document record table.

6. The document collaborative processing method according to claim 1, characterized in that: The method further comprises: Monitoring the first user and the second user editing corresponding sub-documents to obtain edited documents; From the edited document, a first operation generated when the first user edits the first sub-document is obtained, and a second operation generated when the second user edits the second sub-document is obtained, wherein the first and second operations include editing position, modifying content, and adding or deleting text.

7. The document collaborative processing method according to claim 1, characterized in that: The analyzing the data of the first operation and the second operation to detect whether the operations of the first user and the second user on the first sub-document and the second sub-document cause editing conflicts includes: Acquire first preset content of a first sub-document edited by the first user, and acquire second preset content of a second sub-document edited by the second user; The coherence between the first preset content and the second preset content is analyzed using a preset natural language processing model, and whether an editing conflict occurs between the first sub-document and the second sub-document is determined based on the analysis result.

8. A document collaborative processing device, characterized in that: The device comprises: A request module, configured to receive a request from a first user and a second user to collaboratively process a target document, obtain the target document from a preset database according to an identifier of the target document included in the request, obtain a first user role of the first user editing the target document according to the identifier of the first user, and obtain a second user role of the second user editing the target document according to the identifier of the second user; A first display module, configured to divide the target document into a first sub-document and a second sub-document according to the first user role and the second user role, display the first sub-document in a first preset area of ​​a sharing interface, and display the second sub-document in a second preset area of ​​the sharing interface; A second display module is configured to receive and display a first operation performed by the first user on the first sub-document in the first preset area, synchronize and display the first operation on the interface of the second user, and receive and display a second operation performed by the second user on the second sub-document in the second preset area, synchronize and display the second operation on the interface of the first user; The collaborative module is used to analyze the data of the first operation and the second operation, detect whether the operations of the first user and the second user on the first sub-document and the second sub-document have any editing conflicts, and if so, guide the first user and the second user to perform collaborative operations on the operations having the editing conflicts through preset reminder information, and when it is detected that there is no editing conflict between the first document and the second document after the collaborative operation, merge the first document and the second document after the collaborative operation to obtain a modified target document.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a document collaborative processing program executable by the at least one processor, and the document collaborative processing program is executed by the at least one processor so that the at least one processor can execute the document collaborative processing method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a document collaborative processing program, and the document collaborative processing program can be executed by one or more processors to implement the document collaborative processing method according to any one of claims 1 to 7.