Document editing method, apparatus and device, and computer readable medium

By extracting and verifying structured data in online editing documents, the problem of abnormal integration of text data and non-text data is solved, and the success rate of editing documents is improved.

CN118607485APending Publication Date: 2024-09-06CHINA CONSTRUCTION BANK +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410845373.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

During the process of online document editing, data anomalies may easily occur when integrating text data and non-text data, leading to editing failure.

Method used

By receiving user input data in the document editing area, extract structured data and unstructured data, and store them in relational databases respectively, verify the structured data to ensure its validity, and then combine it with multimedia data rendering and display Edit the document.

Benefits of technology

By verifying structured data to ensure its validity, text data and non-text data can be quickly integrated to improve the success rate of document editing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118607485A
    Figure CN118607485A
Patent Text Reader

Abstract

The invention discloses a document editing method, device and equipment and a computer readable medium, and relates to the technical field of cloud computing. A specific embodiment of the method comprises the following steps: receiving edited document data input by a user in a document editing area; extracting structured data and unstructured data from the edited document data, storing the structured data into a relational database, and storing the unstructured data as multimedia data; in response to a document processing request, obtaining and successfully verifying the structured data in the relational database based on the structured data identifier in the document processing request; and combining multimedia data obtained by the document processing request with the successfully verified structured data, rendering to obtain an edited document corresponding to the document processing request, and displaying the edited document corresponding to the document processing request to receive a document editing operation. According to the embodiment, the text data and the non-text data can be rapidly integrated, and the document editing success rate is increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cloud computing technology, and in particular to a method, device, equipment and computer-readable medium for editing a document. Background Art

[0002] In the process of online document editing, users are not only required to fill in basic information on the page, but also need to use online document editing tools to edit the document.

[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art: document data not only involves text data, but also includes non-text data, such as image data. The integration of text data and non-text data is prone to data anomalies, resulting in failure in editing documents. Summary of the invention

[0004] In view of this, embodiments of the present invention provide a method, apparatus, device and computer-readable medium for editing a document, which can quickly integrate text data and non-text data and improve the success rate of editing a document.

[0005] To achieve the above object, according to one aspect of an embodiment of the present invention, a method for editing a document is provided, characterized in that it includes: Receiving editing document data input by a user in a document editing area; Extracting structured data and unstructured data from the edited document data, storing the structured data in a relational database, and storing the unstructured data as multimedia data; In response to the document processing request, acquiring and successfully verifying structured data in the relational database based on the structured data identifier in the document processing request; The multimedia data acquired by the document processing request is combined with the successfully verified structured data to render an edit document corresponding to the document processing request, and the edit document corresponding to the document processing request is displayed to receive a document editing operation.

[0006] The step of receiving the editing document data input by the user in the document editing area includes: Setting the document editing area using the area identifier, and displaying the document editing area on the user terminal; The document editing data input by the user is received in the document editing area, and the document editing area is updated according to a preset period.

[0007] The step of extracting structured data and unstructured data from the edited document, storing the structured data in a relational database, and storing the unstructured data as multimedia data includes: Generate an online edit document, and store the edit document data in the online edit document; The structured data and the unstructured data are extracted from the online edited document, the structured data are stored in a relational database, and the unstructured data are stored as multimedia data.

[0008] The step of acquiring and successfully verifying structured data in the relational database based on the structured data identifier in the document processing request in response to the document processing request includes: receiving a document processing request at a user end, and acquiring structured data in the relational database based on a structured data identifier and a current time point in the document processing request; The structured data is obtained from the relational database according to the structured data stored in the user end, and the structured data after successful verification is obtained.

[0009] The step of obtaining structured data from the relational database according to the structured data stored on the user end to obtain the structured data after successful verification includes: If the structured data stored in the user terminal is the same as the structured data obtained from the relational database, the structured data obtained from the relational database is used as the structured data after successful verification; If the structured data stored in the user terminal is different from the structured data obtained from the relational database, and the operation time of the structured data stored in the user terminal is later than the operation time of obtaining the structured data from the relational database, the structured data stored in the user terminal is regarded as the structured data after successful verification; If the structured data stored in the user terminal is different from the structured data obtained from the relational database, and the operation time of the structured data stored in the user terminal is earlier than the operation time of obtaining the structured data from the relational database, the structured data obtained from the relational database is used as the structured data after successful verification; If the structured data stored in the user end is empty, the structured data obtained from the relational database is used as the structured data after successful verification.

[0010] The combining the multimedia data obtained by the document processing request with the successfully verified structured data to render an edit document corresponding to the document processing request, and displaying the edit document corresponding to the document processing request to receive a document editing operation includes: Filling the successfully verified structured data and the multimedia data obtained by the document processing request in the document template of the successfully verified structured data, to obtain an edited document corresponding to the document processing request; The editing document corresponding to the document processing request is displayed on the user side, and the document editing operation is received in the document editing area.

[0011] The document editing operation includes a document searching operation; The method further comprises: Extracting structured data and unstructured data from the edited document corresponding to the document processing request, and performing the document search operation in the structured data to obtain document search results; The structured data, the extracted unstructured data and the document search result are extracted from the edit document corresponding to the document processing request, and the edit document corresponding to the document search operation is rendered.

[0012] According to a second aspect of an embodiment of the present invention, there is provided a device for editing a document, comprising: The editing module is used to receive the editing document data input by the user in the document editing area; A storage module, used for extracting structured data and unstructured data from the edited document data, storing the structured data in a relational database, and storing the unstructured data as multimedia data; A verification module, configured to, in response to a document processing request, obtain and successfully verify structured data in the relational database based on a structured data identifier in the document processing request; An operation module is used to combine the multimedia data obtained by the document processing request with the successfully verified structured data, render the editing document corresponding to the document processing request, and display the editing document corresponding to the document processing request to receive a document editing operation.

[0013] According to a third aspect of an embodiment of the present invention, there is provided an electronic device for editing a document, comprising: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the above method.

[0014] According to a fourth aspect of an embodiment of the present invention, there is provided a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, the method as described above is implemented.

[0015] According to a fifth aspect of an embodiment of the present invention, a computer program product is provided, including a computer program, and when the program is executed by a processor, the method as described above provided by an embodiment of the present invention is implemented.

[0016] One embodiment of the above invention has the following advantages or beneficial effects: receiving the editing document data input by the user in the document editing area; extracting structured data and unstructured data from the editing document data, storing the structured data in a relational database, and storing the unstructured data as multimedia data; in response to a document processing request, obtaining and successfully verifying structured data in the relational database based on the structured data identifier in the document processing request; combining the multimedia data obtained by the document processing request with the successfully verified structured data, rendering the editing document corresponding to the document processing request, and displaying the editing document corresponding to the document processing request to receive the document editing operation. By verifying the structured data, the validity of the structured data is ensured, and on this basis, the text data and non-text data can be quickly integrated to improve the success rate of editing documents.

[0017] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with specific implementation examples. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention. Figure 1 is a schematic diagram of the main flow of a method for editing a document according to an embodiment of the present invention; Figure 2 is a schematic diagram of a process of receiving editing document data input by a user in a document editing area according to an embodiment of the present invention; Figure 3 is a schematic diagram of a process of extracting and storing structured data and unstructured data according to an embodiment of the present invention; Figure 4 is a schematic diagram of a process of acquiring and successfully verifying structured data in a relational database according to an embodiment of the present invention; Figure 5 is a schematic diagram of a process of rendering and displaying an edited document corresponding to a document processing request according to an embodiment of the present invention; Figure 6 is a schematic diagram of a flow chart of executing a document search operation according to an embodiment of the present invention; Figure 7 is a schematic diagram of the main structure of a device for editing a document according to an embodiment of the present invention; Figure 8 is an exemplary system architecture diagram to which embodiments of the present invention may be applied; Fig. 9 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0019] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description. The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.

[0020] In the process of online document editing, there are two types of document data processed by computers. One is structured data, such as data in MySQL Oracle database, including strings, numbers and dates. The other is unstructured data, such as pictures. Structured data is convenient for statistical analysis, while unstructured data is convenient for viewing, archiving, printing and satisfying offline activities. Among them, unstructured data can be used as non-text data; structured data can be used as text data.

[0021] When editing documents online, online editing tools are often used to upload attachments and collaborate on editing. When you need to edit a document online, add a new document to the server.

[0022] The backend server pushes documents, and multiple people edit documents online, but cannot extract the edited documents, which indirectly causes inconsistency between the document data stored in the database and the actual document data. The integration of text data and non-text data is prone to data anomalies, resulting in failure to edit documents.

[0023] In order to solve the problem of data anomalies causing document editing failure, the following technical solution in the embodiment of the present invention may be adopted.

[0024] See also Figure 1 , Figure 1 1 is a schematic diagram of the main flow of the method for editing a document according to an embodiment of the present invention, which extracts structured data and unstructured data, stores the data separately to implement structured data verification, and then renders the edited document to implement the received document editing operation. Figure 1 As shown in 100, the following steps are specifically included.

[0025] S101: receiving editing document data input by a user in a document editing area.

[0026] In an embodiment of the present invention, interaction with a user is achieved through a user terminal. The user terminal may be set in a mobile terminal. As an embodiment, the user terminal is an application (APP). As another example, the user terminal is logged in through a browser. The browser includes a browser on a computer and a browser on a mobile terminal.

[0027] The document editing area is an area where the document can be edited, and the document non-editing area is an area where the document cannot be edited. The document editing area is set to receive the editing document data input by the user. As an example, the editing document data includes characters input by the user.

[0028] See also Figure 2 That is 200, Figure 2 The present invention is a flowchart of receiving document editing data input by a user in a document editing area according to an embodiment of the present invention, which specifically includes the following steps.

[0029] S201. Set a document editing area using an area identifier, and display the document editing area on a user terminal.

[0030] In an embodiment of the present invention, a document editing area is displayed on a user terminal. As an example, the user terminal displays the document editing area through a browser plug-in. The document editing area is set using an area identifier. The area identifier is used to divide the document editing area and the non-document editing area. As an example, the area identifier includes preset characters, such as: {} or [].

[0031] The document editing data input by the user can be received in the document editing area. The document editing data input by the user is not received in the non-document editing area.

[0032] S202: receiving document editing data input by a user in a document editing area, and updating the document editing area according to a preset period.

[0033] The document editing area can receive the editing document data input by the user. In other words, the user edits the document in the document editing area by editing the document data.

[0034] In one embodiment of the present invention, considering that multiple users may edit documents at the same time during the actual editing process of a document, the document editing area may be adjusted, so that the document editing area may be updated according to a preset period. In this way, users can process document data in the latest document editing area.

[0035] In addition, the document editing area is updated according to a preset period, and if it is known that the updated document editing area is different from the updated document editing area, the document editing area before the update and the document editing area after the update can be marked with colors to remind the user that the document editing area has changed.

[0036] exist Figure 2 In the embodiment, by setting the document editing area, the range of input editing document data is controlled, thereby improving the efficiency of document editing.

[0037] S102: extracting structured data and unstructured data from the edited document data, storing the structured data in a relational database, and storing the unstructured data as multimedia data.

[0038] After the user completes editing the document, structured data and unstructured data can be extracted from the edited document data. As an example, structured data includes characters and logos. Unstructured data includes pictures, videos, and audio.

[0039] In view of the fact that structured data has fixed formats and rules, the structured data is stored in a relational database, and the unstructured data is stored as multimedia data. As an example, the unstructured data is stored in a multimedia database.

[0040] See also Figure 3 That is 300, Figure 3 The flowchart of extracting and storing structured data and unstructured data according to an embodiment of the present invention is shown in FIG. The flowchart specifically includes the following steps.

[0041] S301: Generate an online editing document, and store the editing document data in the online editing document.

[0042] In an embodiment of the present invention, an online editing document is generated in the background, so that the editing document data input by the front end, ie the user end, is stored in the online editing document. The online editing document is generated in the background by using software.

[0043] When the user terminal is accessing the document, the backend generates a file stream of the online editing document, and the user terminal can download the online editing document when accessing the online editing document.

[0044] S302: extract structured data and unstructured data from the online edited document, store the structured data in a relational database, and store the unstructured data as multimedia data.

[0045] After the online document is edited, the user's instruction to save the document is received and the online document is saved. Specifically, structured data and unstructured data are extracted from the online document, the structured data is stored in a relational database, and the unstructured data is stored as multimedia data.

[0046] As an example, a sampling algorithm is used to extract structured data and unstructured data from an online edited document. The sampling algorithm uses a multimedia filtering method to save only structured data. The structured data is stored in a relational database, and the remaining unstructured data is stored as multimedia data. In the case where the structured data is stored in a relational database, a summary of the structured data can also be generated, and the summary of the structured data is stored in the relational database.

[0047] As an example, the online editing document includes an online application form. The online application form includes: name, age, contact information and user picture. Extract structured data and unstructured data. Structured data includes: name, age and contact information. Unstructured data includes: user picture. Structured data is stored in a relational database, and unstructured data is stored as multimedia data.

[0048] As an example, the online editing text includes name, document title, document number, visa information, photo and stamp image. Extract structured data and unstructured data. Structured data includes: name, document title, document number and visa information. Unstructured data includes: photo and stamp image. Structured data is stored in a relational database, and unstructured data is stored as multimedia data.

[0049] Among them, structured data is represented by structured data identifiers. Unstructured data is represented by unstructured data identifiers. The structured data identifiers can be used to obtain the corresponding structured data in the relational database. The unstructured data identifiers can be used to obtain the corresponding unstructured data in the multimedia database.

[0050] exist Figure 3 In an embodiment of the present invention, structured data and unstructured data are stored in corresponding databases respectively to improve the efficiency of data retrieval.

[0051] S103: In response to the document processing request, structured data is acquired and successfully verified in a relational database based on the structured data identifier in the document processing request.

[0052] In an embodiment of the present invention, a user sends a document processing request through a user terminal. As an example, the document processing request includes a structured data identifier. The user displays and edits the document on the user terminal by sending the document processing request. The prerequisite for editing the document is to successfully verify the structured data to ensure the accuracy of the structured data.

[0053] See also Figure 4 That is 400, Figure 4 The flowchart of obtaining and successfully verifying structured data in a relational database according to an embodiment of the present invention specifically includes the following steps.

[0054] S401: Receive a document processing request at a user end, and obtain structured data in a relational database based on a structured data identifier in the document processing request and a current time point.

[0055] In an embodiment of the present invention, structured data is stored in a relational database. When multiple users edit a document, the structured data will change accordingly. In order to obtain the latest structured data, after receiving a document processing request at the user end, the structured data is obtained in the relational database based on the structured data identifier in the document processing request and the current time point.

[0056] As an example, the relational database includes structured data 1, structured data 2, and structured data 3 corresponding to the structured data identifier. The structured data identifier includes: data a. The storage time point of structured data 1 is 12:00 on January 1; the storage time point of structured data 2 is 13:00 on January 1; the storage time point of structured data 3 is 14:00 on January 1.

[0057] After receiving the document processing request, the user end obtains structured data 3 in the relational database that is closest to the current time point based on the structured data identifier in the document processing request and the current time point: 10:00 on January 2.

[0058] S402: Verify the structured data stored on the user end and obtain the structured data from the relational database to obtain the successfully verified structured data.

[0059] In the embodiment of the present invention, considering that multiple users edit and store structured data in a relational database, it is necessary to verify whether the acquired structured data is the same as the structured data stored on the user side, so as to obtain successfully verified structured data.

[0060] Specifically, the stored data of the document editing area is extracted from the structured data stored in the user end, and the acquired data of the document editing area is extracted from the structured data acquired from the relational database. By comparing the stored data and the acquired data, the successfully verified structured data is obtained.

[0061] Case 1: The stored data and the obtained data are the same, that is, the structured data stored on the user side is the same as the structured data obtained from the relational database, then the structured data obtained from the relational database is regarded as the structured data after successful verification.

[0062] Case 2: Storing data is different from obtaining data. The operation time of structured data stored on the user side is later than obtaining structured data from the relational database, which means that the structured data stored on the user side is the latest data.

[0063] That is, if the structured data stored on the user end is different from the structured data obtained from the relational database, and the operation time of the structured data stored on the user end is later than the operation time of obtaining the structured data from the relational database, then the structured data stored on the user end is regarded as the structured data after successful verification.

[0064] Case 3: Storing data is different from obtaining data. The operation time of structured data stored on the user side is earlier than obtaining structured data from the relational database, which means that the structured data obtained from the relational database is the latest data.

[0065] That is, if the structured data stored on the user end is different from the structured data obtained from the relational database, and the operation time of the structured data stored on the user end is earlier than that of obtaining the structured data from the relational database, the structured data obtained from the relational database will be regarded as the structured data after successful verification.

[0066] Case 4: The structured data stored on the user side is empty, which means that the user side does not store structured data. This means that the structured data obtained from the relational database is the latest data.

[0067] That is, if the structured data stored on the user end is empty, the structured data will be obtained from the relational database as the structured data after successful verification.

[0068] exist Figure 4 In the embodiment, by obtaining structured data from the relationship database, the timeliness and accuracy of the data displayed on the user side can be improved.

[0069] S104: Combine the multimedia data obtained by the document processing request with the successfully verified structured data, render an edit document corresponding to the document processing request, and display the edit document corresponding to the document processing request to receive a document editing operation.

[0070] Based on the successfully verified structured data, combined with the multimedia data obtained by the document processing request, the editing document corresponding to the document processing request is rendered. The editing document corresponding to the document processing request can be displayed on the user side, and then the document editing operation sent by the user is received.

[0071] See also Figure 5 That is 500, Figure 5 The present invention is a flowchart of rendering and displaying an edited document corresponding to a document processing request according to an embodiment of the present invention, which specifically includes the following steps.

[0072] S501. Fill the successfully verified structured data and the multimedia data obtained by the document processing request in the document template of the successfully verified structured data to obtain the edited document corresponding to the document processing request.

[0073] In an embodiment of the present invention, structured data and multimedia data are filled in a document template to obtain an edited document. Specifically, a document template of successfully verified structured data is obtained in a database based on an identifier of successfully verified structured data. In the document template of successfully verified structured data, the successfully verified structured data and multimedia data obtained by the document processing request are filled to obtain an edited document corresponding to the document processing request.

[0074] S502: Display the editing document corresponding to the document processing request on the user side, and receive the document editing operation in the document editing area.

[0075] The editing document corresponding to the document processing request is displayed on the user side, and the editing document includes structured data and multimedia data. Among them, multimedia data is unstructured data. The structured data in the editing document is the data after successful verification, so the accuracy and real-time performance of the editing document are greatly improved compared with the existing technology.

[0076] The user sends a document editing operation through the user terminal, so that the document editing operation can be received in the document editing area.

[0077] exist Figure 5 In an embodiment of the present invention, successfully verified structured data and multimedia data are filled in the document template to improve the accuracy of editing the document.

[0078] See also Figure 6 That is 600, Figure 6 The flowchart of executing the document search operation according to an embodiment of the present invention includes the following steps.

[0079] S601. Extract structured data and unstructured data from the edited document corresponding to the document processing request, and perform a document search operation in the structured data to obtain document search results.

[0080] In one embodiment of the present invention, document search can be implemented in document editing. Specifically, the document editing operation includes a document search operation.

[0081] The edited document includes structured data and unstructured data, and the document search needs to search in the structured data. As an example, the document search operation includes: keyword: Zhang San.

[0082] Therefore, after extracting structured data and unstructured data from the edited document corresponding to the document processing request, a document search operation is performed in the structured data to obtain document search results.

[0083] S602: extracting structured data, extracted unstructured data and document search results from the edit document corresponding to the document processing request, and rendering to obtain an edit document corresponding to the document search operation.

[0084] The document search results need to be fed back to the user. As an example, the document search results are marked with an underline in the edited document.

[0085] Specifically, structured data, extracted unstructured data and document search results are extracted from the edit document corresponding to the document processing request, and the edit document corresponding to the document search operation is rendered.

[0086] exist Figure 6 In the embodiment, in order to perform a document search operation, it is necessary to first split the edited document to extract structured data, implement the document search operation in the structured data, and then render the edited document corresponding to the document search operation.

[0087] In the above-mentioned embodiment of the present invention, the editing document data input by the user is received in the document editing area; structured data and unstructured data are extracted from the editing document data, the structured data are stored in a relational database, and the unstructured data is stored as multimedia data; in response to a document processing request, structured data is obtained and successfully verified in the relational database based on the structured data identifier in the document processing request; the multimedia data obtained by the document processing request is combined with the successfully verified structured data to render the editing document corresponding to the document processing request, and the editing document corresponding to the document processing request is displayed to receive the document editing operation. By verifying the structured data, the validity of the structured data is ensured, and on this basis, the text data and non-text data can be quickly integrated to improve the success rate of editing documents.

[0088] See also Figure 7 , Figure 7 is a schematic diagram of the main structure of an apparatus for editing a document according to an embodiment of the present invention. The apparatus for editing a document can implement a method for editing a document, such as Figure 7 As shown in 700, the device for editing a document specifically includes: The editing module 701 is used to receive the editing document data input by the user in the document editing area; A storage module 702 is used to extract structured data and unstructured data from the edited document data, store the structured data in a relational database, and store the unstructured data as multimedia data; A verification module 703 is used to obtain and successfully verify structured data in the relational database based on the structured data identifier in the document processing request in response to the document processing request; The operation module 704 is used to combine the multimedia data obtained by the document processing request with the successfully verified structured data, render the editing document corresponding to the document processing request, and display the editing document corresponding to the document processing request to receive a document editing operation.

[0089] In one embodiment of the present invention, the editing module 701 is specifically used to set the document editing area using the area identifier and display the document editing area on the user terminal; The document editing data input by the user is received in the document editing area, and the document editing area is updated according to a preset period.

[0090] In one embodiment of the present invention, the storage module 702 is specifically used to generate an online edit document and store the edit document data in the online edit document; The structured data and the unstructured data are extracted from the online edited document, the structured data are stored in a relational database, and the unstructured data are stored as multimedia data.

[0091] In one embodiment of the present invention, the verification module 703 is specifically configured to receive a document processing request at a user end, and obtain structured data in the relational database based on a structured data identifier and a current time point in the document processing request; The structured data is obtained from the relational database according to the structured data stored in the user end, and the structured data after successful verification is obtained.

[0092] In one embodiment of the present invention, the verification module 703 is specifically configured to, if the structured data stored in the user terminal is the same as the structured data obtained from the relational database, use the structured data obtained from the relational database as the structured data after successful verification; If the structured data stored in the user terminal is different from the structured data obtained from the relational database, and the operation time of the structured data stored in the user terminal is later than the operation time of obtaining the structured data from the relational database, the structured data stored in the user terminal is regarded as the structured data after successful verification; If the structured data stored in the user terminal is different from the structured data obtained from the relational database, and the operation time of the structured data stored in the user terminal is earlier than the operation time of obtaining the structured data from the relational database, the structured data obtained from the relational database is used as the structured data after successful verification; If the structured data stored in the user end is empty, the structured data obtained from the relational database is used as the structured data after successful verification.

[0093] In one embodiment of the present invention, the operation module 704 is specifically configured to fill the successfully verified structured data and the multimedia data obtained by the document processing request in the document template of the successfully verified structured data, so as to obtain an edited document corresponding to the document processing request; The editing document corresponding to the document processing request is displayed on the user side, and the document editing operation is received in the document editing area.

[0094] In one embodiment of the present invention, the document editing operation includes a document searching operation; An operation module 704 is specifically used to extract structured data and unstructured data from the edited document corresponding to the document processing request, and to perform the document search operation in the structured data to obtain document search results; The structured data, the extracted unstructured data and the document search result are extracted from the edit document corresponding to the document processing request, and the edit document corresponding to the document search operation is rendered.

[0095] Figure 8 An exemplary system architecture 800 is shown to which the method for editing a document or the apparatus for editing a document according to the embodiments of the present invention may be applied.

[0096] like Figure 8 As shown, system architecture 800 may include terminal devices 801, 802, 803, a network 804, and a server 805. Network 804 is used to provide a medium for communication links between terminal devices 801, 802, 803 and server 805. Network 804 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0097] Users can use terminal devices 801, 802, and 803 to interact with server 805 through network 804 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 801, 802, and 803, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).

[0098] The terminal devices 801 , 802 , and 803 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0099] The server 805 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 801, 802, and 803. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as target push information, product information - only an example) to the terminal device.

[0100] It should be noted that the method for editing a document provided in the embodiment of the present invention is generally executed by the server 805 , and accordingly, the device for editing a document is generally disposed in the server 805 .

[0101] It should be understood that Figure 8 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0102] A computer program product according to an embodiment of the present invention includes a computer program, and when the program is executed by a processor, the method for editing a document provided by the embodiment of the present invention is implemented.

[0103] Reference below Fig. 9 , which shows a schematic diagram of the structure of a computer system 900 of a terminal device suitable for implementing an embodiment of the present invention. Fig. 9 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0104] like Fig. 9 As shown, the computer system 900 includes a central processing unit (CPU) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage part 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the system 900 are also stored. The CPU 901, the ROM 902, and the RAM 903 are connected to each other through a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0105] The following components are connected to the I / O interface 905: an input section 906 including a keyboard, a mouse, etc.; an output section 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN card, a modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed, so that a computer program read therefrom is installed into the storage section 908 as needed.

[0106] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 909, and / or installed from the removable medium 911. When the computer program is executed by the central processing unit (CPU) 901, the above-mentioned functions defined in the system of the present invention are executed.

[0107] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0108] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0109] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, it may be described as: a processor includes an editing module, a storage module, a verification module and an operation module. The names of these modules do not constitute a limitation on the modules themselves in some cases, for example, the editing module may also be described as "used to receive editing document data input by a user in a document editing area".

[0110] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: Receiving editing document data input by a user in a document editing area; Extracting structured data and unstructured data from the edited document data, storing the structured data in a relational database, and storing the unstructured data as multimedia data; In response to the document processing request, acquiring and successfully verifying structured data in the relational database based on the structured data identifier in the document processing request; The multimedia data acquired by the document processing request is combined with the successfully verified structured data to render an edit document corresponding to the document processing request, and the edit document corresponding to the document processing request is displayed to receive a document editing operation.

[0111] According to the technical solution of the embodiment of the present invention, the editing document data input by the user is received in the document editing area; structured data and unstructured data are extracted from the editing document data, the structured data are stored in a relational database, and the unstructured data are stored as multimedia data; in response to a document processing request, structured data is obtained and successfully verified in the relational database based on the structured data identifier in the document processing request; the multimedia data obtained by the document processing request is combined with the successfully verified structured data to render the editing document corresponding to the document processing request, and the editing document corresponding to the document processing request is displayed to receive the document editing operation. By verifying the structured data, the validity of the structured data is ensured, and on this basis, the text data and non-text data can be quickly integrated to improve the success rate of editing documents.

[0112] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

[0113] It should be noted that in the technical solution of the present invention, the collection, analysis, use, transmission, storage and other aspects of user personal information involved are in compliance with the provisions of relevant laws and regulations, are used for legal and reasonable purposes, are not shared, leaked or sold outside of these legal uses, and are subject to supervision and management by regulatory authorities. Necessary measures should be taken for user personal information to prevent illegal access to such personal information data, ensure that persons who have access to personal information data comply with the provisions of relevant laws and regulations, and ensure the security of user personal information. Once these user personal information data are no longer needed, the risks should be minimized by limiting or even prohibiting data collection and / or deleting data.

[0114] When applicable, including in certain relevant applications, protect user privacy by de-identifying data, such as by removing specific identifiers (e.g., date of birth, etc.) when applicable, controlling the amount or specificity of data stored (e.g., collecting location data at a city level rather than at a specific address level), controlling how data is stored, and / or other de-identification methods.

Claims

1. A method for editing a document, characterized in that: include: Receiving editing document data input by a user in a document editing area; Extracting structured data and unstructured data from the edited document data, storing the structured data in a relational database, and storing the unstructured data as multimedia data; In response to the document processing request, acquiring and successfully verifying structured data in the relational database based on the structured data identifier in the document processing request; The multimedia data acquired by the document processing request is combined with the successfully verified structured data to render an edit document corresponding to the document processing request, and the edit document corresponding to the document processing request is displayed to receive a document editing operation.

2. The method for editing a document according to claim 1, characterized in that: The step of receiving the editing document data input by the user in the document editing area includes: Setting the document editing area using the area identifier, and displaying the document editing area on the user terminal; The document editing data input by the user is received in the document editing area, and the document editing area is updated according to a preset period.

3. The method for editing a document according to claim 1, characterized in that: The step of extracting structured data and unstructured data from the edited document, storing the structured data in a relational database, and storing the unstructured data as multimedia data includes: Generate an online edit document, and store the edit document data in the online edit document; The structured data and the unstructured data are extracted from the online edited document, the structured data are stored in a relational database, and the unstructured data are stored as multimedia data.

4. The method for editing a document according to claim 1, characterized in that: The step of acquiring and successfully verifying structured data in the relational database based on the structured data identifier in the document processing request in response to the document processing request includes: receiving a document processing request at a user end, and acquiring structured data in the relational database based on a structured data identifier and a current time point in the document processing request; The structured data is obtained from the relational database according to the structured data stored in the user end, and the structured data after successful verification is obtained.

5. The method for editing a document according to claim 4, characterized in that: The step of obtaining structured data from the relational database according to the structured data stored on the user end to obtain the structured data after successful verification includes: If the structured data stored in the user terminal is the same as the structured data obtained from the relational database, the structured data obtained from the relational database is used as the structured data after successful verification; If the structured data stored in the user terminal is different from the structured data obtained from the relational database, and the operation time of the structured data stored in the user terminal is later than the operation time of obtaining the structured data from the relational database, the structured data stored in the user terminal is regarded as the structured data after successful verification; If the structured data stored in the user terminal is different from the structured data obtained from the relational database, and the operation time of the structured data stored in the user terminal is earlier than the operation time of obtaining the structured data from the relational database, the structured data obtained from the relational database is used as the structured data after successful verification; If the structured data stored in the user end is empty, the structured data obtained from the relational database is used as the structured data after successful verification.

6. The method for editing a document according to claim 1, characterized in that: The combining the multimedia data obtained by the document processing request with the successfully verified structured data to render an edit document corresponding to the document processing request, and displaying the edit document corresponding to the document processing request to receive a document editing operation includes: Filling the successfully verified structured data and the multimedia data obtained by the document processing request in the document template of the successfully verified structured data, to obtain an edited document corresponding to the document processing request; The editing document corresponding to the document processing request is displayed on the user side, and the document editing operation is received in the document editing area.

7. The method for editing a document according to claim 1, characterized in that: The document editing operation includes a document searching operation; The method further comprises: Extracting structured data and unstructured data from the edited document corresponding to the document processing request, and performing the document search operation in the structured data to obtain document search results; The structured data, the extracted unstructured data and the document search result are extracted from the edit document corresponding to the document processing request, and the edit document corresponding to the document search operation is rendered.

8. A device for editing a document, characterized in that: include: The editing module is used to receive the editing document data input by the user in the document editing area; A storage module, used for extracting structured data and unstructured data from the edited document data, storing the structured data in a relational database, and storing the unstructured data as multimedia data; A verification module, configured to, in response to a document processing request, obtain and successfully verify structured data in the relational database based on a structured data identifier in the document processing request; An operation module is used to combine the multimedia data obtained by the document processing request with the successfully verified structured data, render the editing document corresponding to the document processing request, and display the editing document corresponding to the document processing request to receive a document editing operation.

9. An electronic device for editing documents, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Data storage method and device for online document, electronic equipment and storage medium

    CN121029806A