Method, device and equipment for processing document data and computer readable medium

By dividing and building structured and textual data in the document database, the problem of slow retrieval of unstructured data is solved and fast retrieval of unstructured data in the data warehouse is achieved.

CN118535530AActive Publication Date: 2024-08-23CHINA CONSTRUCTION BANK +1

Patent Information

Application Number
CN202410810065.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-08-23
Estimated Expiration
2044-06-21

AI Technical Summary

Technical Problem

The data structure of unstructured data in the prior art is irregular, making it difficult to retrieve quickly.

Method used

Obtain unstructured data based on the identification of unstructured data in the document database, divide it into structured document data and textual document data according to the file structure and document content type, construct structured information format files and text format files, and Create text format files through document templates and store them in the data warehouse according to version identification to achieve rapid retrieval.

Benefits of technology

The retrieval speed of unstructured data is improved, and efficient query of unstructured data in the data warehouse is realized through structured storage and retrieval.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535530A
    Figure CN118535530A
Patent Text Reader

Abstract

The invention discloses a method, device and equipment for processing document data and a computer readable medium, and relates to the technical field of big data. The specific implementation mode of the method comprises the steps of obtaining unstructured data in a document database based on an identifier of the unstructured data, and dividing the unstructured data into structured document data and textualized document data according to a file structure and a document content type; constructing a structured information format file according to the identifier of the structured document data and the content of the structured document data, and establishing a text format file according to the identifier of the textualized document data and the content of the textualized document data; after the structured information format file is embedded into the text format file, a text format file of unstructured data is established through the document template, the text format file is stored in the data warehouse according to the version identifier of the text format file, and the structured data is stored in the data warehouse, so that the data is retrieved in the data warehouse. According to the embodiment, the speed of retrieving the unstructured data can be increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] At present, enterprise-level digital assets are mainly divided into structured data and unstructured data. Structured data is usually stored in a database and queried and maintained through an IT management system. Unstructured data is usually stored in a document library in a document format.

[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art: the data structure of unstructured data is irregular, which makes it difficult to quickly retrieve the unstructured data. Summary of the invention

[0004] In view of this, embodiments of the present invention provide a method, apparatus, device and computer-readable medium for processing document data, which can improve the speed of retrieving unstructured data.

[0005] To achieve the above object, according to one aspect of an embodiment of the present invention, a method for processing document data is provided, comprising: Acquire unstructured data in a document database based on the identifier of the unstructured data, and divide the unstructured data into structured document data and textual document data according to the file structure and document content type; Constructing a structured information format file with the identifier of the structured document data and the content of the structured document data, and establishing a text format file with the identifier of the textual document data and the content of the textual document data; After the structured information format file is embedded in the text format file, the text format file of the unstructured data is established through a document template, and the text format file is stored in a data warehouse according to the version identifier of the text format file. The data warehouse stores structured data to retrieve data in the data warehouse.

[0006] The method of acquiring the unstructured data in the document database based on the identifier of the unstructured data and dividing the unstructured data into structured document data and textual document data according to the file structure and the document content type includes: After acquiring the unstructured data based on the identifier of the unstructured data in the document database, parsing the unstructured data to obtain the document structure of the unstructured data, and splitting the unstructured data into a plurality of document structure data according to the document structure of the unstructured data; The structured document data and the textual document data are obtained by dividing the plurality of document structure data based on the document content type corresponding to the unstructured data.

[0007] The plurality of document structure data includes content titles, paragraphs, lists, image media, attribute groups, and attribute group lists; Constructing a structured information format file with the identifier of the structured document data and the content of the structured document data, and establishing a text format file with the identifier of the textual document data and the content of the textual document data, including: Creating the structured information format file with the identifiers of the attribute group and the attribute group list and the contents of the attribute group and the attribute group list; The text format file is constructed with the identifiers of the content title, the paragraph, the list, and the image media and the contents of the content title, the paragraph, the list, and the image media.

[0008] After embedding the structured information format file into the text format file, creating the text format file of the unstructured data through a document template includes: The text format file is parsed by a file parser to obtain a parsed text format file, and the structure format file is parsed by a structure parser to obtain a parsed structured information format file; By means of a document renderer, the parsed structured information format file is embedded into the text format file to obtain a rendered file; The rendering file is filled in according to the document template to create a text format file of the unstructured data.

[0009] Filling the rendering file according to the document template to create a text format file of the unstructured data includes: Filling the parsed structured information format file in the rendering file according to the structured data identifier in the document template; Filling the parsed text format file in the rendering file according to the unstructured data identifier in the document template; The document template file after the filling file is used as a text format file of the unstructured data.

[0010] After storing the text format file in the data warehouse according to the version identifier of the text format file, the method further includes: Acquire a corresponding text format file based on multiple version identifiers of the text format file; The text format files corresponding to the different version identifiers are compared to display the changed contents of the file formats corresponding to the different version identifiers.

[0011] The format of the structured information format file includes a text format with a structural attribute description; the format of the text format file includes a plain text file format.

[0012] According to a second aspect of an embodiment of the present invention, there is provided a device for processing document data, comprising: A partitioning module, used to obtain unstructured data in a document database based on the identifier of the unstructured data, and to partition the unstructured data into structured document data and textual document data according to the file structure and document content type; A building module, used to build a structured information format file with the identifier of the structured document data and the content of the structured document data, and to build a text format file with the identifier of the textual document data and the content of the textual document data; A processing module is used to embed the structured information format file into the text format file, establish the text format file of the unstructured data through a document template, and store the text format file in a data warehouse according to the version identifier of the text format file, wherein the structured data is stored in the data warehouse, so as to retrieve data in the data warehouse.

[0013] According to a third aspect of an embodiment of the present invention, there is provided an electronic device for processing document data, 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: unstructured data is obtained in a document database based on the identifier of the unstructured data, and the unstructured data is divided into structured document data and textual document data according to the file structure and document content type; a structured information format file is constructed with the identifier of the structured document data and the content of the structured document data, and a text format file is established with the identifier of the textual document data and the content of the textual document data; after the structured information format file is embedded in the text format file, a text format file of the unstructured data is established through a document template, and the text format file is stored in a data warehouse according to the version identifier of the text format file, and the structured data is stored in the data warehouse to retrieve data in the data warehouse. Unstructured data is stored in the data warehouse according to the version identifier, and the speed of retrieving unstructured data can be improved based on the version identifier.

[0017] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. 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 processing document data according to an embodiment of the present invention; Figure 2 is a schematic diagram of a process of dividing into structured document data and textual document data according to an embodiment of the present invention; Figure 3 is a schematic diagram of a process of constructing a structured information format file and a text format file according to an embodiment of the present invention; Figure 4 is a schematic diagram of a process of creating a text format file of unstructured data through a document template according to an embodiment of the present invention; Figure 5 is a schematic diagram of a process for establishing a text format file of unstructured data according to an embodiment of the present invention; Figure 6 is a schematic diagram of a process for displaying the changed contents of file formats corresponding to different version identifiers according to an embodiment of the present invention; Figure 7 is a schematic diagram of the main structure of a device for processing document data 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 order to solve the problem of difficulty in quickly retrieving unstructured data, the following technical solution in the embodiment of the present invention may be adopted.

[0021] See also Figure 1 , Figure 1 FIG. 1 is a schematic diagram of the main flow of a method for processing document data according to an embodiment of the present invention, wherein unstructured data is stored in a data warehouse with a version identifier. Figure 1 As shown in 100, the process specifically includes the following steps.

[0022] S101. Acquire unstructured data in a document database based on an identifier of the unstructured data, and divide the unstructured data into structured document data and textual document data according to a file structure and a document content type.

[0023] In an embodiment of the present invention, considering that the data structure of unstructured data is irregular, it is impossible to store unstructured data in a relational database. Usually, unstructured data is stored in a document database library in a preset document format. In order to increase the speed of retrieving unstructured data, unstructured data can be divided into structured document data and text document data. The basis for division is file structure and document content type.

[0024] See also Figure 2 That is 200, Figure 2 The flowchart of dividing the structured document data and the textual document data according to the embodiment of the present invention is shown in FIG.

[0025] S201. After acquiring unstructured data based on an identifier of the unstructured data in a document database, the unstructured data is parsed to obtain a document structure of the unstructured data, and the unstructured data is split into a plurality of document structure data according to the document structure of the unstructured data.

[0026] In an embodiment of the present invention, after acquiring unstructured data in a document database based on an identifier of the unstructured data, the unstructured data is parsed to obtain a preset document structure of the unstructured data, and the unstructured data is split into multiple document structure data based on the preset document structure.

[0027] As an example, the preset document structure of the unstructured data is obtained based on the identification of the unstructured data. For example, the identification of the unstructured data includes the identification of the unstructured data.

[0028] As another example, according to the document structure identifier of the preset document format, the unstructured data is parsed to obtain the document structure data of the unstructured data. For example, the document structure identifier includes content title, paragraph, table and image. The document structure data of the unstructured data includes: content title data, paragraph data, table data and image data. The content title data includes a plurality of hierarchical content title data.

[0029] S202: Divide the multiple document structure data into structured document data and textual document data based on the document content type corresponding to the unstructured data.

[0030] Document structure data is part of the unstructured data, and the document structure data has a corresponding document content type. Specifically, the document content type in the unstructured data is used as the document content type of the document structure data. As an example, the document content type includes: text, list, image, and attribute.

[0031] Specifically, the multiple document structure data are divided into structured document data and textual document data based on the document content type corresponding to the unstructured data.

[0032] As an example, among the plurality of file structure data, the document content type corresponding to the unstructured data includes words, lists or images, and the file structure data is divided into textual document data. The document content type corresponding to the unstructured data includes structure, and the file structure data is divided into structured document data.

[0033] exist Figure 2 In the embodiment, after parsing the unstructured data, the unstructured data is further divided into structured document data and textual document data, and then targeted processing is performed on different types of data.

[0034] S102: construct a structured information format file using the identifier of the structured document data and the content of the structured document data, and create a text format file using the identifier of the textual document data and the content of the textual document data.

[0035] In the embodiment of the present invention, corresponding processing methods are adopted for different document data. Specifically, a structured information format file is constructed with the identifier of the structured document data and the content of the textual document data, and a text format file is constructed with the identifier of the textual document data and the content of the textual document data.

[0036] See also Figure 3 That is 300, Figure 3 The flowchart of constructing a structured information format file and a text format file according to an embodiment of the present invention is shown in FIG.

[0037] S301: Create a structured information format file with the identifiers of the attribute group and the attribute group list and the contents of the attribute group and the attribute group list.

[0038] In one embodiment of the present invention, the plurality of document structure data includes content titles, paragraphs, lists, image media, attribute groups, and attribute group lists.

[0039] Content headers are used to identify chapters of a file. As an example, content headers include multi-level content headers. Paragraphs are used to carry text information in a file paragraph. Lists include ordered lists and unordered lists. Lists are used to carry item-style records. Image media are used to carry images or other media information.

[0040] The attribute group is used to record multiple attribute values ​​describing unstructured data. As an example, the attribute group includes: system basic attribute group, system name, system code, system level and system function description.

[0041] The attribute group list includes a list composed of multiple attribute groups, and is used to carry table information in the document. As an example, the attribute group list includes: a system context relationship table and an attribute group list composed of multiple attribute groups.

[0042] In the embodiment of the present invention, content titles, paragraphs, lists and image media are taken as structured document data; and attribute groups and attribute group lists are taken as text format files.

[0043] Specifically, the structured information format file is established with the attribute group and the attribute group list. As an example, the identifier of the attribute group and the identifier of the attribute group list are used as the identifier of the structured information format file; the content of the attribute group and the content of the attribute group list are used as the content of the structured information format file. That is, the structured information format file is established with the identifier of the attribute group and the attribute group list and the content of the attribute group and the attribute group list.

[0044] S302: Construct a text format file with the identifiers of the content title, paragraph, list, and image media and the content of the content title, paragraph, list, and image media.

[0045] In the embodiment of the present invention, a text format file is constructed with content titles, paragraphs, lists, and image media. Specifically, the identifier of the text format file is established with the identifier of the content title, the identifier of the paragraph, the identifier of the list, and the identifier of the image media. Then, the text format file is constructed with the content of the content title, the content of the paragraph, the content of the list, and the content of the image media. That is, the text format file is constructed with the identifier of the content title, paragraph, list, and image media and the content of the content title, paragraph, list, and image media.

[0046] exist Figure 3 In the embodiment, a corresponding format file is established based on the document data to achieve targeted processing of different types of document data.

[0047] In one embodiment of the present invention, the format of the structured information format file includes a text format with a description of structural attributes. As an example, the format of the structured information format file includes one or more of the following: YAML format, JSON format, and XML format. YAML format is a readable data serialization format. Its design goal is to provide a data representation method that is easy to read and write, suitable for configuration files, data storage, and data exchange formats.

[0048] The format of the text format file includes a plain text file format. As an example, the format of the text format file includes a Markdown format. Markdown is a lightweight markup language designed to write documents in plain text and simplify typesetting and formatting.

[0049] S103, after embedding the structured information format file into the text format file, establishing a text format file of unstructured data through a document template, and storing the text format file in a data warehouse according to a version identifier of the text format file, storing structured data in the data warehouse, and retrieving data in the data warehouse.

[0050] In an embodiment of the present invention, after the structured information format file and the text format file of the unstructured data are determined, it is necessary to embed the structured information format file into the text format file, and then establish the text format file of the unstructured data through the document template. The text format file of the unstructured data is marked with a version identifier, so that the text format file is stored in the data warehouse according to the version identifier of the text format file. In addition, structured data is stored in the data warehouse. Both structured data and unstructured data are stored in the data warehouse, and the retrieval of structured data and unstructured data is realized in the same data warehouse, that is, data is retrieved in the data warehouse.

[0051] See also Figure 4 That is 400, Figure 4The present invention is a flowchart of creating a text format file of unstructured data through a document template according to an embodiment of the present invention, which specifically includes the following steps.

[0052] S401, using a file parser to parse a text format file to obtain a parsed text format file, and using a structure parser to parse a structured format file to obtain a parsed structured information format file.

[0053] In the embodiment of the present invention, a parser is used to parse a file to obtain a parsed document. Specifically, a file parser is used to parse a text format file to obtain a parsed text format file, and a structure parser is used to parse a structure format file to obtain a parsed structured information format file.

[0054] S402: Using a document renderer, embed the parsed structured information format file into a text format file to obtain a rendered file.

[0055] In an embodiment of the present invention, in order to display unstructured data, the document renderer can embed the parsed structured information format file into the text format file to obtain a rendering file. The rendering file includes not only the structured information format file but also the text format file.

[0056] S403: Fill in the rendering file according to the document template to create a text format file of unstructured data.

[0057] In the embodiment of the present invention, in order to improve the speed of retrieving unstructured data, the rendering file needs to be stored according to the document template. Specifically, the rendering file is filled according to the document template to create a text format file of the unstructured data.

[0058] See also Figure 5 That is 500, Figure 5 The flowchart of establishing a text format file of unstructured data according to an embodiment of the present invention is shown in FIG.

[0059] S501: Fill the parsed structured information format file in the rendering file according to the structured data identifier in the document template.

[0060] A structured data identifier is preset in the document template, and the parsed structured information format file in the rendering file is filled according to the structured data identifier in the document template.

[0061] Document templates are pre-set. For different unstructured data, the same file template can be used to build text format files, thereby achieving a unified format for text format files.

[0062] S502: Fill the parsed text format file in the rendering file according to the unstructured data identifier in the document template.

[0063] According to the unstructured data identifier in the document template, the parsed text format file in the rendering file is filled.

[0064] S503: Use the document template file after the filling file as a text format file of unstructured data.

[0065] The parsed structured information format file and the parsed text format file are both filled in the document template to obtain a document template file. The above document template file is used as a text format file of unstructured data.

[0066] exist Figure 5 In the embodiment, a text format file of unstructured data is established through a document template to achieve structuring of unstructured data.

[0067] The following content is a schematic diagram of the document template file. Among them, yaml property-group is the property group, and yamlproperty-group-list is the property group list.

[0068] # Basic Information ```yaml property-group #[Basic information of the physical subsystem] No.: XXX Full name in Chinese: XXX Full English name: XXX ``` # Overall design ## Design Goals - Scalability: 1. XXX 2. XXX - Security: 1. XXX 2. XXX # Application Architecture ## Context ![XX architecture diagram]( / doc / XXX.jpg) 1. Description 1 2. Description 2 ```yaml property-group-list #[Context table] - Subsystem name: xxx Relationship Type: xxx Relationship description: xxx - Subsystem name: xxx Relationship Type: xxx Relationship description: xxx ```.

[0069] In the embodiment of the present invention, the format of the text format file of the unstructured data is constrained by the document template. Furthermore, the structured processing of the unstructured data is realized by setting the document template.

[0070] See also Figure 6 That is 600, Figure 6 The flowchart of displaying the changed contents of the file formats corresponding to different version identifiers according to an embodiment of the present invention includes the following steps.

[0071] S601: Acquire a corresponding text format file based on multiple version identifiers of the text format file.

[0072] In an embodiment of the present invention, a text format file representing different versions of the same unstructured data is represented by a version identifier.

[0073] The corresponding text format file is obtained based on the version identification of the text format file. Then, according to the version identifications of the multiple text format files, multiple corresponding text format files are obtained.

[0074] As an example, the version identifiers of the text format file include 1.0 and 2.0. According to 1.0, the corresponding text format file 1 is obtained, and according to 2.0, the corresponding text format file 2 is obtained.

[0075] S602: Compare text format files corresponding to different version identifiers to display the changed contents of the file formats corresponding to the different version identifiers.

[0076] Text format files are all created based on the same document template. By comparing each content in the document template, text format files corresponding to different version identifiers can be compared. Then, the changed content of the file format corresponding to the different version identifiers is displayed.

[0077] exist Figure 6 In the embodiment, version identification is used to compare text format files to achieve historical comparison of unstructured data.

[0078] In the above embodiment, unstructured data is obtained in a document database based on the identifier of the unstructured data, and the unstructured data is divided into structured document data and textual document data according to the file structure and document content type; a structured information format file is constructed with the identifier of the structured document data and the content of the structured document data, and a text format file is established with the identifier of the textual document data and the content of the textual document data; after the structured information format file is embedded in the text format file, a text format file of the unstructured data is established through a document template, and the text format file is stored in a data warehouse according to the version identifier of the text format file, and the structured data is stored in the data warehouse to retrieve data in the data warehouse. In the data warehouse, unstructured data is stored according to the version identifier, and the speed of retrieving unstructured data can be improved based on the version identifier.

[0079] Text format documents can be used to replace unstructured data, and a directory structure can be used to store text format documents in the data warehouse.

[0080] See also Figure 7 , Figure 7 is a schematic diagram of the main structure of an apparatus for processing document data according to an embodiment of the present invention. The apparatus for processing document data can implement a method for processing document data, such as Figure 7 As shown in 700, the device for processing document data specifically includes: A division module 701 is used to obtain unstructured data in a document database based on the identifier of the unstructured data, and divide the unstructured data into structured document data and text document data according to the file structure and document content type; A building module 702, configured to build a structured information format file using the identifier of the structured document data and the content of the structured document data, and to build a text format file using the identifier of the textual document data and the content of the textual document data; Processing module 703 is used to embed the structured information format file into the text format file, establish the text format file of the unstructured data through a document template, and store the text format file in a data warehouse according to the version identifier of the text format file. The data warehouse stores structured data to retrieve data in the data warehouse.

[0081] In one embodiment of the present invention, the division module 701 is specifically used to obtain unstructured data based on the identifier of the unstructured data in the document database, parse the unstructured data to obtain the document structure of the unstructured data, and divide the unstructured data into multiple document structure data according to the document structure of the unstructured data; The structured document data and the textual document data are obtained by dividing the plurality of document structure data based on the document content type corresponding to the unstructured data.

[0082] In one embodiment of the present invention, the plurality of document structure data includes content titles, paragraphs, lists, image media, attribute groups, and attribute group lists; The establishing module 702 is specifically used to establish the structured information format file with the identifiers of the attribute group and the attribute group list and the contents of the attribute group and the attribute group list; The text format file is constructed with the identifiers of the content title, the paragraph, the list, and the image media and the contents of the content title, the paragraph, the list, and the image media.

[0083] In one embodiment of the present invention, the processing module 703 is specifically used to parse the text format file using a file parser to obtain a parsed text format file, and parse the structured format file using a structure parser to obtain a parsed structured information format file; By means of a document renderer, the parsed structured information format file is embedded into the text format file to obtain a rendered file; The rendering file is filled in according to the document template to create a text format file of the unstructured data.

[0084] In one embodiment of the present invention, the processing module 703 is specifically configured to fill the parsed structured information format file in the rendering file according to the structured data identifier in the document template; Filling the parsed text format file in the rendering file according to the unstructured data identifier in the document template; The document template file after the filling file is used as a text format file of the unstructured data.

[0085] In one embodiment of the present invention, the processing module 703 is further configured to obtain a corresponding text format file based on multiple version identifiers of the text format file; The text format files corresponding to the different version identifiers are compared to display the changed contents of the file formats corresponding to the different version identifiers.

[0086] In one embodiment of the present invention, the format of the structured information format file includes a text format with a structural attribute description; the format of the text format file includes a plain text file format.

[0087] Figure 8 An exemplary system architecture 800 is shown to which the method for processing document data or the apparatus for processing document data according to the embodiments of the present invention can be applied.

[0088] 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.

[0089] 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).

[0090] 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.

[0091] 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.

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

[0093] 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.

[0094] 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 processing document data provided by the embodiment of the present invention is implemented.

[0095] 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.

[0096] 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.

[0097] 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.

[0098] 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.

[0099] 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.

[0100] 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.

[0101] 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 a partitioning module, a building module and a processing module. The names of these modules do not constitute a limitation on the modules themselves in some cases, for example, the partitioning module may also be described as "for partitioning unstructured data into structured document data and textual document data according to file structure and document content type".

[0102] 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: Acquire unstructured data in a document database based on the identifier of the unstructured data, and divide the unstructured data into structured document data and textual document data according to the file structure and document content type; Constructing a structured information format file with the identifier of the structured document data and the content of the structured document data, and establishing a text format file with the identifier of the textual document data and the content of the textual document data; After the structured information format file is embedded in the text format file, the text format file of the unstructured data is established through a document template, and the text format file is stored in a data warehouse according to the version identifier of the text format file. The data warehouse stores structured data to retrieve data in the data warehouse.

[0103] According to the technical solution of the embodiment of the present invention, unstructured data is obtained in a document database based on the identifier of the unstructured data, and the unstructured data is divided into structured document data and textual document data according to the file structure and document content type; a structured information format file is constructed with the identifier of the structured document data and the content of the structured document data, and a text format file is established with the identifier of the textual document data and the content of the textual document data; after the structured information format file is embedded in the text format file, a text format file of the unstructured data is established through a document template, and the text format file is stored in a data warehouse according to the version identifier of the text format file, and the structured data is stored in the data warehouse to retrieve data in the data warehouse. In the data warehouse, unstructured data is stored according to the version identifier, and the speed of retrieving unstructured data can be improved based on the version identifier.

[0104] 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.

[0105] 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.

[0106] 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 processing document data, characterized in that: include: Acquire unstructured data in a document database based on the identifier of the unstructured data, and divide the unstructured data into structured document data and textual document data according to the file structure and document content type; Constructing a structured information format file with the identifier of the structured document data and the content of the structured document data, and establishing a text format file with the identifier of the textual document data and the content of the textual document data; After the structured information format file is embedded in the text format file, the text format file of the unstructured data is established through a document template, and the text format file is stored in a data warehouse according to the version identifier of the text format file. The data warehouse stores structured data to retrieve data in the data warehouse.

2. The method for processing document data according to claim 1, characterized in that: The method of acquiring the unstructured data in the document database based on the identifier of the unstructured data and dividing the unstructured data into structured document data and textual document data according to the file structure and the document content type includes: After acquiring the unstructured data based on the identifier of the unstructured data in the document database, parsing the unstructured data to obtain the document structure of the unstructured data, and splitting the unstructured data into a plurality of document structure data according to the document structure of the unstructured data; The structured document data and the textual document data are obtained by dividing the plurality of document structure data based on the document content type corresponding to the unstructured data.

3. The method for processing document data according to claim 2, characterized in that: The plurality of document structure data includes content titles, paragraphs, lists, image media, attribute groups, and attribute group lists; Constructing a structured information format file with the identifier of the structured document data and the content of the structured document data, and establishing a text format file with the identifier of the textual document data and the content of the textual document data, including: Creating the structured information format file with the identifiers of the attribute group and the attribute group list and the contents of the attribute group and the attribute group list; The text format file is constructed with the identifiers of the content title, the paragraph, the list, and the image media and the contents of the content title, the paragraph, the list, and the image media.

4. The method for processing document data according to claim 1, characterized in that: After embedding the structured information format file into the text format file, creating the text format file of the unstructured data through a document template includes: The text format file is parsed by a file parser to obtain a parsed text format file, and the structure format file is parsed by a structure parser to obtain a parsed structured information format file; By means of a document renderer, the parsed structured information format file is embedded into the text format file to obtain a rendered file; The rendering file is filled in according to the document template to create a text format file of the unstructured data.

5. The method for processing document data according to claim 4, characterized in that: Filling the rendering file according to the document template to create a text format file of the unstructured data includes: Filling the parsed structured information format file in the rendering file according to the structured data identifier in the document template; Filling the parsed text format file in the rendering file according to the unstructured data identifier in the document template; The document template file after the filling file is used as a text format file of the unstructured data.

6. The method for processing document data according to claim 1, characterized in that: After storing the text format file in the data warehouse according to the version identifier of the text format file, the method further includes: Acquire a corresponding text format file based on multiple version identifiers of the text format file; The text format files corresponding to the different version identifiers are compared to display the changed contents of the file formats corresponding to the different version identifiers.

7. The method for processing document data according to claim 1, characterized in that: The format of the structured information format file includes a text format with a structural attribute description; the format of the text format file includes a plain text file format.

8. A device for processing document data, characterized in that: include: A partitioning module, used to obtain unstructured data in a document database based on the identifier of the unstructured data, and to partition the unstructured data into structured document data and textual document data according to the file structure and document content type; A building module, used to build a structured information format file with the identifier of the structured document data and the content of the structured document data, and to build a text format file with the identifier of the textual document data and the content of the textual document data; A processing module is used to embed the structured information format file into the text format file, establish the text format file of the unstructured data through a document template, and store the text format file in a data warehouse according to the version identifier of the text format file, wherein the structured data is stored in the data warehouse, so as to retrieve data in the data warehouse.

9. An electronic device for processing document data, 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

Patent Citations

  • Information input method and device, electronic equipment and storage medium

    CN111352917A

  • Document structure conversion method and device, storage medium and electronic equipment

    CN111859863A

  • Financial data visualization method and device, computer equipment and storage medium

    CN112149387A

  • Text structured processing method and device, computer equipment, medium and product

    CN114692573A

  • Document content retrieval method, retrieval device and document retrieval system

    CN117076392A

Cited By

  • Text detection method and system

    CN119149738A