Electronic spreadsheet data processing method, device, computer equipment and storage medium

By obtaining and dividing cell characteristics of a spreadsheet, combining the evaluation scores of candidate table combination strategies, forming subtables and extracting structured information, the problem of low spreadsheet processing efficiency in the existing technology is solved, and the complex tables is realized Efficient processing.

CN113553326BActive Publication Date: 2024-11-01SHENZHEN KINGDEE MIDDLEWARE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110685527.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-21
Publication Date
2024-11-01
Estimated Expiration
2041-06-21

AI Technical Summary

Technical Problem

Existing spreadsheet data processing methods are inefficient in processing tables with complex, flexible and variable structures, making it difficult to accurately process multi-level table headers and structures containing multiple subtables in a table.

Method used

By obtaining cell characteristics in the spreadsheet for region division, obtaining table evaluation scores in the candidate table combination strategy set, selecting strategies that meet the conditions for cell region combination, forming a subtable, and performing structured information extraction of the subtable.

Benefits of technology

It improves the efficiency and accuracy of spreadsheet processing, adapts to data extraction of complex tables, especially the structural layout of multi-level table headers and multi-subtables.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113553326B_ABST
    Figure CN113553326B_ABST
Patent Text Reader

Abstract

The present application relates to a method, device, computer equipment and storage medium for processing electronic table data. The method comprises: obtaining a target electronic table to be processed; obtaining cell features of each cell in the target electronic table, dividing the cells in the target electronic table into regions based on the cell features, and obtaining multiple target cell regions; obtaining table evaluation scores corresponding to each candidate table combination strategy in a candidate table combination strategy set, obtaining a candidate table combination strategy whose table evaluation score meets the table condition from the candidate table combination strategy set as the target table strategy; classifying the cells corresponding to the target electronic table according to the cell region association relationship corresponding to the target table strategy, obtaining the target sub-table corresponding to each category, extracting structured information from the target sub-table, and obtaining structured information corresponding to the target sub-table. The use of this method can improve the accuracy of electronic table data processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to an electronic spreadsheet data processing method, device, computer equipment and storage medium. Background Art

[0002] With the development of data processing technology, electronic spreadsheet data processing is an important branch of data processing technology and has also developed rapidly. Electronic spreadsheets can not only be used to input, output and display data in electronic devices, but also can be used to help users create various complex electronic spreadsheet documents, perform data calculations, and display complex calculations on the input data. Due to its convenience and efficiency, it has been widely used. How to accurately process electronic spreadsheet data is particularly important.

[0003] However, current electronic spreadsheets often contain multi-level headers, a table contains multiple sub-tables, and the structure is flexible and changeable. Traditional electronic spreadsheet data processing methods have the problem of low processing efficiency for tables with complex and flexible structures. Summary of the invention

[0004] Based on this, it is necessary to provide a spreadsheet data processing method, apparatus, computer equipment and storage medium that can improve the efficiency of spreadsheet data processing in response to the above technical problems.

[0005] A method for processing electronic table data, the method comprising: obtaining a target electronic table to be processed; obtaining cell features of each cell in the target electronic table, dividing the cells in the target electronic table into regions based on the cell features, and obtaining a plurality of target cell regions; obtaining table evaluation scores corresponding to each candidate table combination strategy in a candidate table combination strategy set, and obtaining a candidate table combination strategy whose table evaluation score meets a table condition from the candidate table combination strategy set as a target table strategy; the candidate table combination strategy set includes a plurality of candidate table combination strategies, and the candidate table combination strategy is a strategy for combining cell regions with associated relationships into a sub-table corresponding to the target electronic table; and classifying the cells corresponding to the target electronic table according to the cell region association relationships corresponding to the target table strategy, and obtaining target sub-tables corresponding to each category.

[0006] In one of the embodiments, the obtaining of cell features of each cell in the target electronic form and dividing the cells in the target electronic form into regions based on the cell features to obtain a plurality of target cell regions comprises: obtaining cell features of each cell in the target electronic form and determining, based on the cell features, a target cell category corresponding to the cell from a set of candidate cell categories; and merging consecutive cells with the same target cell category to obtain a plurality of target cell regions.

[0007] In one of the embodiments, the step of obtaining cell features of each cell in the target electronic form and determining, based on the cell features, a target cell category corresponding to the cell from a set of candidate cell categories includes: determining a current cell whose features are to be determined and adjacent cells corresponding to the current cell; comparing cell data attribute information of the current cell with cell data attribute information of the adjacent cells to obtain a comparison result; and obtaining cell features corresponding to the current cell based on the comparison result.

[0008] In one of the embodiments, the step of obtaining cell features of each cell in the target electronic spreadsheet and determining a target cell category corresponding to the cell from a set of candidate cell categories based on the cell features comprises: obtaining cell features of each cell in the target electronic spreadsheet and inputting the cell features into a cell category classification model, wherein the cell category classification model outputs a category possibility corresponding to each candidate cell category in the set of candidate cell categories; the set of candidate cell categories comprises at least one of a header category, a data category, a data group identifier category or an ancillary category; and screening a candidate cell category having a category possibility greater than a category possibility threshold from the set of candidate cell categories as the target cell category corresponding to the cell.

[0009] In one of the embodiments, obtaining the table evaluation score corresponding to each candidate table combination strategy in the candidate table combination strategy set includes: determining the current candidate table composition strategy; obtaining the current sub-table set corresponding to combining the cell areas using the current candidate table combination strategy; obtaining the current table evaluation score corresponding to each current sub-table in the current sub-table set; and performing statistics on the current table evaluation scores corresponding to the current sub-tables to obtain the current table evaluation score corresponding to the current candidate table combination strategy.

[0010] In one of the embodiments, the step of obtaining a candidate table combination strategy whose table evaluation score satisfies the table condition from the candidate table combination strategy set as a target table strategy includes: adjusting the current candidate table composition strategy in a direction that makes the current table evaluation score satisfy the table condition to obtain an updated current candidate table composition strategy; returning to the step of obtaining the current sub-table set corresponding to combining the cell areas using the current candidate table combination strategy until the table condition is satisfied, and using the current candidate table composition strategy that satisfies the table condition as the target table strategy.

[0011] In one of the embodiments, obtaining the current table evaluation score corresponding to each current subtable in the current subtable set includes: obtaining the current cell area set corresponding to the current subtable; obtaining the current cell category corresponding to each current cell area in the current cell area set; and obtaining the current table evaluation score corresponding to the current subtable based on the current cell data corresponding to the current cell category.

[0012] In one of the embodiments, the method further includes: obtaining a blank cell; and obtaining a cell category of the blank cell according to categories of non-blank cells surrounding the blank cell and a spatial relationship between the blank cell and the surrounding non-blank cells. A device for processing electronic table data, the device comprising: a target electronic table acquisition module, used to acquire a target electronic table to be processed; a plurality of target cell area acquisition modules, used to acquire cell features of each cell in the target electronic table, and divide the cells in the target electronic table into regions based on the cell features to obtain a plurality of target cell regions; a target table strategy acquisition module, used to acquire table evaluation scores corresponding to each candidate table combination strategy in a candidate table combination strategy set, and acquire a candidate table combination strategy whose table evaluation score meets a table condition from the candidate table combination strategy set as a target table strategy; the candidate table combination strategy set includes a plurality of candidate table combination strategies, and the candidate table combination strategy is a strategy for combining cell regions with associated relationships into a subtable corresponding to the target electronic table; a target subtable acquisition module, used to classify the cells corresponding to the target electronic table according to the cell region association relationship corresponding to the target table strategy, and obtain target subtables corresponding to each category; a structured information acquisition module, used to extract structured information from the target subtable, and obtain structured information corresponding to the target subtable.

[0013] In one of the embodiments, a module for obtaining multiple target cell regions is used to obtain cell features of each cell in the target electronic spreadsheet, and based on the cell features, determine the target cell category corresponding to the cell from a set of candidate cell categories; and merge consecutive cells with the same target cell category to obtain multiple target cell regions.

[0014] In one embodiment, a module is provided for obtaining multiple target cell areas, and is used to determine a current cell whose characteristics are to be determined and adjacent cells corresponding to the current cell; compare the cell data attribute information of the current cell with the cell data attribute information of the adjacent cells to obtain a comparison result; and obtain the cell characteristics corresponding to the current cell based on the comparison result.

[0015] In one of the embodiments, multiple target cell area acquisition modules are used to obtain cell features of each cell in the target electronic spreadsheet, input the cell features into a cell category classification model, and the cell category classification model outputs the category possibility corresponding to each candidate cell category in the candidate cell category set; the candidate cell category set includes at least one of a header category, a data category, a data group identification category, or an ancillary category; and a candidate cell category whose category possibility is greater than a category possibility threshold is screened from the candidate cell category set as the target cell category corresponding to the cell.

[0016] In one of the embodiments, the target table strategy acquisition module is used to determine the current candidate table composition strategy; obtain the current sub-table set corresponding to the combination of cell areas using the current candidate table combination strategy; obtain the current table evaluation score corresponding to each current sub-table in the current sub-table set; and count the current table evaluation scores corresponding to the current sub-tables to obtain the current table evaluation score corresponding to the current candidate table combination strategy.

[0017] In one of the embodiments, the target table strategy acquisition module is used to adjust the current candidate table composition strategy in the direction of making the current table evaluation score meet the table condition to obtain an updated current candidate table composition strategy; return to the step of obtaining the current sub-table set corresponding to the combination of cell areas using the current candidate table combination strategy until the table condition is met, and use the current candidate table composition strategy that meets the table condition as the target table strategy.

[0018] In one of the embodiments, the target table strategy acquisition module is used to obtain the current cell area set corresponding to the current sub-table; obtain the current cell category corresponding to each current cell area in the current cell area set; and obtain the current table evaluation score corresponding to the current sub-table based on the current cell data corresponding to the current cell category.

[0019] In one of the embodiments, the device is used to obtain a blank cell; and the cell category of the blank cell is obtained according to the categories of the non-blank cells surrounding the blank cell and the spatial relationship between the blank cell and the surrounding non-blank cells.

[0020] A computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the following steps when executing the computer program: obtaining a target electronic table to be processed; obtaining cell features of each cell in the target electronic table, and dividing the cells in the target electronic table into regions based on the cell features to obtain multiple target cell regions; obtaining table evaluation scores corresponding to each candidate table combination strategy in a candidate table combination strategy set, and obtaining a candidate table combination strategy whose table evaluation score meets a table condition from the candidate table combination strategy set as a target table strategy; the candidate table combination strategy set includes multiple candidate table combination strategies, and the candidate table combination strategy is a strategy for combining cell regions with associated relationships into a sub-table corresponding to the target electronic table; classifying the cells corresponding to the target electronic table according to the cell region association relationship corresponding to the target table strategy to obtain target sub-tables corresponding to each category; extracting structured information from the target sub-table to obtain structured information corresponding to the target sub-table. A computer-readable storage medium stores a computer program, which implements the following steps when executed by a processor: obtaining a target electronic table to be processed; obtaining cell features of each cell in the target electronic table, and dividing the cells in the target electronic table into regions based on the cell features to obtain multiple target cell regions; obtaining table evaluation scores corresponding to each candidate table combination strategy in a candidate table combination strategy set, and obtaining a candidate table combination strategy whose table evaluation score meets a table condition from the candidate table combination strategy set as a target table strategy; the candidate table combination strategy set includes multiple candidate table combination strategies, and the candidate table combination strategy is a strategy for combining cell regions with associated relationships into a sub-table corresponding to the target electronic table; classifying the cells corresponding to the target electronic table according to the cell region association relationship corresponding to the target table strategy to obtain target sub-tables corresponding to each category, extracting structured information from the target sub-table to obtain structured information corresponding to the target sub-table.

[0021] The electronic table data processing method, device, computer equipment and storage medium are as follows: obtaining a target electronic table to be processed; obtaining the cell features of each cell in the target electronic table, dividing the cells in the target electronic table based on the cell features, and obtaining multiple target cell areas; obtaining the table evaluation scores corresponding to each candidate table combination strategy in the candidate table combination strategy set, and obtaining the candidate table combination strategy whose table evaluation score meets the table condition from the candidate table combination strategy set as the target table strategy; wherein the candidate table combination strategy set includes multiple candidate table combination strategies, and the candidate table combination strategy is a strategy for combining cell areas with associated relationships into a sub-table corresponding to the target electronic table; classifying the cells corresponding to the target electronic table according to the cell area association relationship corresponding to the target table strategy, and obtaining the target sub-table corresponding to each category. The target table combination strategy can be obtained by obtaining the candidate table combination strategy whose table evaluation score meets the table condition as the target table strategy, and the target sub-table corresponding to the target electronic table is obtained by the target table strategy, and the structured information of the target sub-table is extracted to obtain the structured information corresponding to the target sub-table. This makes it possible to segment a target electronic spreadsheet with a complex and flexible structure to obtain one or more complete sub-tables, and extract structured information from the sub-tables. It can adapt to complex tables, such as tables with multi-level headers, multiple sub-tables in one table, and data extraction from tables with changeable structural layouts, thereby improving the efficiency and accuracy of electronic spreadsheet processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 is an application environment diagram of an electronic spreadsheet data processing method in one embodiment;

[0023] Figure 2 is a flow chart of a method for processing electronic table data in one embodiment;

[0024] Figure 3 is a flow chart of a method for processing electronic table data in another embodiment;

[0025] Figure 4 is a flow chart of a method for processing electronic table data in another embodiment;

[0026] Figure 5 is a flow chart of a method for processing electronic table data in another embodiment;

[0027] Figure 6 A schematic flow chart of a step of obtaining a table evaluation score corresponding to each candidate table combination strategy in a candidate table combination strategy set in one embodiment;

[0028] Figure 7is a flow chart of a method for processing electronic table data in another embodiment;

[0029] Figure 8 is a flow chart of a method for processing electronic table data in another embodiment;

[0030] Fig. 9 is a flow chart of a method for processing electronic table data in another embodiment;

[0031] Fig.10 A parsing schematic diagram of a cell parsing module in one embodiment;

[0032] Fig.11 A schematic diagram of constructing a graph structure for a cell category in one embodiment;

[0033] Fig.12 A schematic diagram of sub-table identification in one embodiment; Fig.13 is a structural block diagram of an electronic spreadsheet data processing device in one embodiment;

[0034] Fig.14 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0035] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0036] The electronic table data processing method provided in this application can be applied to Figure 1In the application environment shown, it is specifically applied to an electronic table data processing system. The electronic table data processing system includes a terminal 102 and a server 104, wherein the terminal 102 communicates with the server 104 through a network. The server 104 executes an electronic table data processing method, specifically, the server 104 obtains a target electronic table to be processed from the terminal 102; obtains the cell features of each cell in the target electronic table, and divides the cells in the target electronic table based on the cell features to obtain multiple target cell areas; obtains the table evaluation score corresponding to each candidate table combination strategy in the candidate table combination strategy set, and obtains the candidate table combination strategy whose table evaluation score meets the table condition from the candidate table combination strategy set as the target table strategy; the candidate table combination strategy set includes multiple candidate table combination strategies, and the candidate table combination strategy is a strategy for combining cell areas with association relationships into sub-tables corresponding to the target electronic table; the cell areas association relationship corresponding to the target table strategy is used to classify the cells corresponding to the target electronic table, and the target sub-tables corresponding to each category are obtained. The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented as an independent server or a server cluster consisting of multiple servers. It is understandable that the above application environment is one of the application environments of this solution, and this solution is not limited to running in a terminal or a server.

[0037] In one embodiment, Figure 2 As shown, a method for processing electronic spreadsheet data is provided, which is applied to Figure 1 The server in the example is used to illustrate the following steps:

[0038] Step 202: Obtain a target electronic form to be processed.

[0039] Among them, a spreadsheet refers to a table with input, output and data display functions.

[0040] Specifically, before classifying the electronic forms, the server needs to obtain the target electronic forms sent by the terminal or stored locally on the server.

[0041] In one embodiment, the server may obtain the electronic form generated by the terminal in real time, and use the electronic form as the target electronic form to be processed.

[0042] Step 204 , obtaining cell features of each cell in the target electronic form, and dividing the cells in the target electronic form into regions based on the cell features to obtain a plurality of target cell regions.

[0043] Among them, the cell feature refers to the feature that represents the characteristics of the cell. For example, at least one of the position, size or number of characters of the cell. The cell area refers to the area of ​​the category to which the cell belongs. For example, the categories to which the cell belongs include the header, data, data group identification and ancillary categories, and the cell area includes the header area, data area, data group identification area and ancillary area.

[0044] Specifically, after obtaining the target spreadsheet to be processed, cell features are extracted for the target spreadsheet to obtain cell table features, and then the cells are classified based on the cell table features, and continuous cells of the same category are divided into the same area. A target cell area is an area corresponding to a cell category, and the cells in the target cell area are continuous.

[0045] In one embodiment, a cell feature extraction program can be used to obtain the cell features of each cell in the target electronic form. The cell feature extraction program can extract a variety of cell features; for example, cell content features, format features, attribute features, or neighboring cell features. After the above features are converted into digital types, they are input into the classification algorithm combination model to obtain the target cell area. It can be understood that the content features of the above cells include the data type of the cell (number, text, time, etc.), the number of characters, special character information, keyword information, etc.; the format features include the cell format, including cell border information, text alignment, font information, cell fill information, etc.; the attribute features include the location and size information of the cell, etc.; the neighboring cell features include the number of neighboring cells, font size comparison, content information, etc.

[0046] In one embodiment, the server converts the extracted multiple cell features into digital types and inputs them into the classification algorithm combination model to obtain the probability that each cell belongs to each category, and takes the category with the greatest probability as the category corresponding to the cell. Then, the cell is divided into regions based on the category corresponding to the cell to obtain the cell region.

[0047] In one embodiment, based on the features of each cell, adjacent cells of adjacent categories in each obtained cell region may be divided into the same region to obtain multiple target cell regions.

[0048] Step 206, obtaining a table evaluation score corresponding to each candidate table combination strategy in the candidate table combination strategy set, and obtaining a candidate table combination strategy whose table evaluation score satisfies the table condition from the candidate table combination strategy set as a target table strategy; wherein the candidate table combination strategy set includes a plurality of candidate table combination strategies, and the candidate table combination strategy is a strategy for combining cell areas with associated relationships into a sub-table corresponding to a target electronic table.

[0049] Among them, the table evaluation score refers to the score for evaluating whether the combined cell areas can form a complete cell. The table evaluation score can be used to evaluate the accuracy of the candidate table combination strategy; when the cell evaluation score is a score used to evaluate whether the table is good, a high table evaluation score indicates that the candidate table combination strategy has high accuracy, and a low table evaluation score indicates that the candidate table combination strategy has low accuracy; similarly, when the cell evaluation score is a score used to evaluate whether the table is bad, a high table evaluation score indicates that the candidate table combination strategy has low accuracy, and a low table evaluation score indicates that the candidate table combination strategy has high accuracy. The table condition refers to the condition with the highest accuracy of the strategy that can combine the cell areas with associated relationships into the sub-table corresponding to the target electronic table.

[0050] Specifically, after obtaining multiple target cell areas, the server can use the candidate table combination strategy to combine multiple related target cell areas into sub-tables corresponding to the target electronic table for comparison, and use the candidate table combination strategy whose table evaluation score meets the table conditions as the target table strategy.

[0051] In one embodiment, the server obtains multiple candidate table evaluation scores by traversing each candidate table combination strategy in the candidate table combination strategy set, obtains the table evaluation score that meets the table condition from the multiple candidate table evaluation scores, and uses the candidate table combination strategy corresponding to the table evaluation score as the target table strategy. For example, when the cell evaluation score is a score used to evaluate whether the table is good, the candidate table combination strategy with the highest table evaluation score can be used as the target table strategy. When the cell evaluation score is a score used to evaluate whether the table is not good, the candidate table combination strategy with the lowest table evaluation score can be used as the target table strategy.

[0052] In one embodiment, a genetic algorithm is used to obtain each candidate table combination strategy in a candidate table combination strategy set, and a table evaluation score is obtained according to a functional relationship between the table combination strategy and the table evaluation score. Among the table evaluation scores corresponding to each candidate table combination strategy, a candidate table combination strategy whose table evaluation score meets the table condition is obtained as a target table strategy. For example, when the table combination strategy is E = [0, 0, 0], the table evaluation score is 0, and when the table combination strategy is E = [0, 0, 1], the table evaluation score is 2. When a high table evaluation score indicates that the candidate table combination strategy has high accuracy, the table combination strategy E = [0, 0, 0] is used as the target table strategy.

[0053] Step 208 , classify the cells corresponding to the target electronic table according to the cell area association relationship corresponding to the target table strategy, and obtain the target sub-tables corresponding to each category.

[0054] Among them, the association relationship refers to the association relationship between cell areas in the horizontal direction, vertical direction or adjacent direction. When an association relationship exists, it means that the cell areas are connected; the association relationship can include association or non-association, or the association relationship can be represented by numbers, for example, 1 represents association and 0 represents non-association.

[0055] Specifically, after obtaining the target table policy, the server classifies the cells corresponding to the target electronic table according to the corresponding association relationship in the target table policy to obtain the target sub-tables corresponding to each category.

[0056] In one embodiment, the server can use the target table strategy to obtain the cell area association relationship in the target table, and use the area corresponding to the cell to build a graph structure. In the graph structure, the area corresponding to the cell is used as the node of the graph, and the cell area association relationship corresponding to the target table strategy is used as the edge in the graph structure, so as to obtain the target sub-table corresponding to each category. It can be understood that in the above graph structure, there is a connection relationship between two nodes with an association relationship, and there is no connection relationship between two nodes without an association relationship.

[0057] Step 210: extract structured information from the target subtable to obtain structured information corresponding to the target subtable.

[0058] The structured information refers to information stored in the form of relationships between categories in a subtable. For example, the header area, data area, and data group ID area of ​​a target subtable are stored as a set of structured information, and the data area of ​​the target subtable can be uniquely identified through the header area of ​​the target subtable.

[0059] Specifically, after obtaining the target sub-table corresponding to each category, the server may extract structured information from the target sub-table to obtain structured information corresponding to the target sub-table, and store the structured information in a structured database.

[0060] In the above-mentioned electronic table data processing method, a target electronic table to be processed is obtained; cell features of each cell in the above-mentioned target electronic table are obtained, and the cells in the target electronic table are divided into regions based on the cell features to obtain multiple target cell regions; table evaluation scores corresponding to each candidate table combination strategy in the candidate table combination strategy set are obtained, and a candidate table combination strategy whose table evaluation score meets the table condition is obtained from the candidate table combination strategy set as the target table strategy; wherein the candidate table combination strategy set includes multiple candidate table combination strategies, and the candidate table combination strategy is a strategy for combining cell regions with associated relationships into a sub-table corresponding to the target electronic table; the cell regions associated with the target table strategy are classified into cells corresponding to the target electronic table to obtain target sub-tables corresponding to each category. The candidate table combination strategy whose table evaluation score meets the table condition can be obtained as the target table strategy, and the target sub-table corresponding to the target electronic table can be obtained through the target table strategy, and the structured information of the target sub-table is extracted to obtain the structured information corresponding to the target sub-table. This enables the classification processing of target electronic spreadsheets with complex, flexible and changeable structures, and the extraction of structured information from sub-tables. It can adapt to complex tables, such as tables with multi-level headers, multiple sub-tables in a table, and data extraction from tables with changeable structural layouts, thereby improving the accuracy of electronic spreadsheet processing.

[0061] In one embodiment, Figure 3 As shown, the cell features of each cell in the target electronic spreadsheet are obtained, and the cells in the target electronic spreadsheet are divided into regions based on the cell features, and multiple target cell regions are obtained, including:

[0062] Step 302 : obtaining cell features of each cell in the target electronic form, and determining a target cell category corresponding to the cell from a set of candidate cell categories based on the cell features.

[0063] The cell category refers to the category of the area to which the cell belongs; for example, if the cell area is the header area, the cell category is the header.

[0064] Specifically, the server obtains the cell features of each cell in the target electronic spreadsheet through a cell feature acquisition tool, and the target cell category corresponding to the cell can be determined through the above cell features.

[0065] In one embodiment, the server extracts cell features using a cell feature extraction tool, for example, based on a Python (computer programming language) open source framework, and determines the target cell category corresponding to the cell from the candidate cell category set by using the correspondence between the most obvious feature in the cell features and the cell category.

[0066] Step 304: merge consecutive cells of the same target cell category to obtain multiple target cell areas.

[0067] Specifically, after determining the target cell category corresponding to the cell, the server merges the cells with the same target cell category and which are continuous, obtains a merged cell category area, and uses the category area as the target cell area. For example, if the category of target cell 1 is table header, the category of target cell 2 is also table header, and target cell 1 and target cell 2 are continuous cells, then target cell 1 and target cell 2 are merged, and the target cell area is a category area with the category of table header.

[0068] In this embodiment, by obtaining the cell features of each cell in the target electronic spreadsheet, based on the cell features, the target cell category corresponding to the cell is determined from the candidate cell category set, and continuous cells with the same target cell category are merged to obtain multiple target cell areas, thereby achieving the purpose of merging cells with the same category to obtain multiple target cell areas.

[0069] In one embodiment, Figure 4 As shown, obtaining the cell features of each cell in the target electronic spreadsheet, and determining the target cell category corresponding to the cell from the candidate cell category set based on the cell features includes:

[0070] Step 402, determining the current cell whose features are to be determined and the adjacent cells corresponding to the current cell.

[0071] The adjacent cells refer to cells adjacent to the current cell.

[0072] Specifically, the server may determine the current cell whose features are to be determined and the adjacent cells corresponding to the current cell through positioning conditions, for example, row and column coordinate information of the current cell.

[0073] Step 404: compare the cell data attribute information of the current cell with the cell data attribute information of the adjacent cells to obtain a comparison result.

[0074] The data attribute information refers to the data-specific information, including the number of cells, font size, or content information.

[0075] Specifically, after determining the current cell whose characteristics are to be determined and the adjacent cells corresponding to the current cell, the comparison result can be obtained by comparing the cell data attribute information of the current cell with the cell data attribute information of the adjacent cells.

[0076] In one embodiment, the comparison result is obtained by performing correlation matching on the cell data attribute information of the current cell and the cell data attribute information of the adjacent cells. For example, the cell data attribute information of the current cell and the cell data attribute information of the adjacent cells are compared using a semantic matching method to obtain the comparison result.

[0077] In one embodiment, the server classifies the content information in the cell of the current cell and the content information in the adjacent cells by using a text classification algorithm to obtain the probability that the content information in the cell of the current cell and the content information in the adjacent cells belong to the same category, and based on the probability, obtains a comparison result of whether the content information in the cell of the current cell and the content information in the adjacent cells belong to the same category, that is, a comparison result of whether the current cell and the adjacent cells corresponding to the current cell belong to the same category. For example, assuming that the above probability threshold is 90%, when the above probability is 95%, it is determined that the content information in the current cell and the content information in the adjacent cells belong to the same category, that is, the current cell and the adjacent cells corresponding to the current cell belong to the same category.

[0078] In one embodiment, the server obtains a comparison result by comparing the font size in the current cell with the font size in the adjacent cell. For example, if the font sizes in the current cell and the adjacent cell corresponding to the current cell are the same, a comparison result is obtained that the current cell and the adjacent cell corresponding to the current cell belong to the same category.

[0079] Step 406, obtaining the cell feature corresponding to the current cell based on the comparison result.

[0080] Specifically, after obtaining the comparison result of the cell data attribute information of the current cell and the cell data attribute information of the adjacent cells, the cell features corresponding to the current cell can be obtained according to the cell features of the adjacent cells to the current cell.

[0081] In one embodiment, using the semantic matching method, the comparison result obtained is the same or similar, and similarity can be understood as the similarity reaching a preset similarity. For example, if the comparison result is the same font size and the same content information, then when the format features of the adjacent cells are that the cell border information is full border and the text alignment is centered, the cell feature corresponding to the current cell is also that the cell border information is full border and the text alignment is centered.

[0082] In this embodiment, by determining the current cell whose characteristics are to be determined and the adjacent cells corresponding to the current cell, the cell data attribute information of the current cell is compared with the cell data attribute information of the adjacent cells to obtain a comparison result, and the cell characteristics corresponding to the current cell are obtained based on the comparison result. This can achieve the purpose of determining the cell characteristics corresponding to the current cell through the comparison results between the cell data attribute information, thereby improving the accuracy of determining the current cell characteristics.

[0083] In one embodiment, Figure 5 As shown, obtaining the cell features of each cell in the target electronic spreadsheet, and determining the target cell category corresponding to the cell from the candidate cell category set based on the cell features includes:

[0084] Step 502, obtain cell features of each cell in the target electronic spreadsheet, input the cell features into a cell category classification model, and the cell category classification model outputs the category possibility corresponding to each candidate cell category in a candidate cell category set; the candidate cell category set includes at least one of a header category, a data category, a data group identification category, or an ancillary category.

[0085] The cell category classification model refers to a model that can classify cells. This model is a classification algorithm combination model. The category possibility refers to the possibility that a cell belongs to a certain cell category.

[0086] Specifically, the cell category classification model includes a set of candidate cell categories. The cell features of each cell are obtained by converting the data type into features represented by digital types, and the features are input into the above-mentioned cell category classification model to obtain the category possibility corresponding to each candidate cell category.

[0087] Step 504 , screening out candidate cell categories whose category probability is greater than a category probability threshold from the candidate cell category set as target cell categories corresponding to the cell.

[0088] The category possibility threshold refers to the critical value of the category possibility. If it is greater than or equal to the critical value, the candidate cell category is considered to be the target cell category corresponding to the cell, and if it is less than the critical value, the candidate cell category is considered not to be the target cell category corresponding to the cell.

[0089] Specifically, after obtaining the category probability corresponding to each candidate cell category, the target cell category corresponding to the cell is determined based on the comparison between the category probability and the category probability threshold. For example, when the obtained category probability is greater than the category probability threshold, the cell category corresponding to the category probability is used as the target cell category.

[0090] In this embodiment, by obtaining the cell features of each cell in the target electronic spreadsheet, the cell features are input into the cell category classification model, the cell category classification model outputs the category possibility corresponding to each candidate cell category in the candidate cell category set, and the candidate cell category whose category possibility is greater than the category possibility threshold is screened from the candidate cell category set as the target cell category corresponding to the cell, thereby achieving the purpose of accurately obtaining the target cell category corresponding to the cell.

[0091] In one embodiment, Figure 6 As shown, obtaining the table evaluation score corresponding to each candidate table combination strategy in the candidate table combination strategy set includes:

[0092] Step 602, determining the current candidate table composition strategy.

[0093] The table composition strategy refers to a strategy for combining cell regions into a table. The strategy may be a strategy obtained by the association relationship between each cell region. For example, the table composition strategy is E=[1,1,0,1,0] or E=[1,1,0], etc.

[0094] Specifically, based on the number of elements in the table composition strategy, the current candidate table composition strategy is obtained through a genetic algorithm. For example, the number of elements in the table composition strategy is n, and the value of each element is 0 or 1. The current candidate table composition strategy can be obtained by using a genetic algorithm as 2 n kind.

[0095] Step 604: Obtain the current sub-table set corresponding to combining the cell areas using the current candidate table combination strategy.

[0096] Specifically, after the server determines the current candidate table composition strategy, the server can combine the various cell regions using the current candidate table composition strategy to obtain multiple sub-tables and a current sub-table set corresponding to the multiple sub-tables.

[0097] In one embodiment, the server may display the composition of the cell area using the current candidate table combination strategy, use the cell areas that are spatially adjacent and fully or partially aligned in the horizontal or vertical direction as nodes in the graph, use the association relationship between the cell areas in the current candidate table combination strategy to build the association relationship between the nodes, actually connect the nodes with a connected association relationship, virtually connect the nodes with an unconnected association relationship, consider the nodes with an actual connection relationship to be nodes of the same sub-table, and consider the nodes with an unconnected association relationship to be not nodes of the same sub-table.

[0098] Step 606: Obtain the current table evaluation score corresponding to each current sub-table in the current sub-table set.

[0099] Specifically, after acquiring the current sub-table set, the server may use the judgment attribute information of each current sub-table and combine the weight corresponding to the judgment attribute information to form the current table evaluation score.

[0100] In one embodiment, the current table evaluation score can be expressed as the product of the judgment attribute information and the weight corresponding to the judgment attribute information. For example, the judgment attribute information of the subtable is expressed as Fi, the weight corresponding to the judgment attribute information is Ai, and the current table evaluation score is expressed as Obiective Function, then Obiective Function is expressed as the formula:

[0101]

[0102] Step 608 , statistics are collected on the current table evaluation score corresponding to the current sub-table to obtain the current table evaluation score corresponding to the current candidate table combination strategy.

[0103] Specifically, after obtaining the current table evaluation scores corresponding to each current subtable in the current subtable set, statistical processing is performed on the current table evaluation scores corresponding to the above-mentioned current subtables, and the current table evaluation scores after statistical processing are used as the current table evaluation scores corresponding to the current candidate table combination strategy.

[0104] In one embodiment, the current table evaluation scores corresponding to the above-mentioned current sub-tables are statistically processed to obtain the average value of the current table evaluation scores, and the current table evaluation score with the smallest difference from the above-mentioned average value is used as the current table evaluation score corresponding to the current candidate table combination strategy.

[0105] In this embodiment, by determining the current candidate table composition strategy, obtaining the current sub-table set corresponding to the combination of cell areas using the current candidate table combination strategy, obtaining the current table evaluation score corresponding to each current sub-table in the current sub-table set, and performing statistics on the current table evaluation scores corresponding to the current sub-tables, the current table evaluation score corresponding to the current candidate table combination strategy is obtained, thereby achieving the purpose of accurately obtaining the current table evaluation score.

[0106] In one embodiment, Figure 7 As shown, the candidate table combination strategy whose table evaluation score meets the table condition is obtained from the candidate table combination strategy set, and the target table strategy includes:

[0107] Step 702 , adjusting the current candidate table composition strategy in a direction that makes the current table evaluation score satisfy the table condition, and obtaining an updated current candidate table composition strategy.

[0108] The direction of satisfying the table conditions refers to adjusting the candidate table composition strategy to make the current table evaluation score closer and closer to the table forming conditions. Assuming that the smaller the table score, the more accurate the table formed, the adjustment direction is to lower the table score; assuming that the higher the table score, the more accurate the table formed, the adjustment direction is to increase the table score.

[0109] Specifically, a genetic algorithm is used to continuously solve the current candidate table composition strategy to obtain an updated current candidate table composition strategy.

[0110] Step 704, returning to the step of obtaining the current sub-table set corresponding to combining the cell areas using the current candidate table combination strategy until the table condition is satisfied, and taking the current candidate table combination strategy satisfying the table condition as the target table strategy.

[0111] Specifically, after obtaining the updated current candidate table composition strategy, the process returns to step 604 until the table condition is satisfied, and the current candidate table composition strategy satisfying the table condition is used as the target table strategy.

[0112] In this embodiment, the current candidate table composition strategy is adjusted in the direction of making the current table evaluation score meet the table conditions to obtain an updated current candidate table composition strategy, and the step of obtaining the current sub-table set corresponding to combining the cell area using the current candidate table combination strategy is returned until the table conditions are met. The current candidate table composition strategy that meets the table conditions is used as the target table strategy, which can achieve the purpose of accurately obtaining the target table strategy, thereby improving the accuracy of electronic table data processing.

[0113] In one embodiment, Figure 8As shown, obtaining the current table evaluation score corresponding to each current subtable in the current subtable set includes:

[0114] Step 802, obtaining the current cell area set corresponding to the current subtable.

[0115] Specifically, the cell features in the current subtable are obtained through a cell feature acquisition tool, the obtained cell features are input into a combined classification model to obtain the category of the current cell, and adjacent cells of the same category are merged to obtain the current cell area set.

[0116] Step 804, obtaining the current cell category corresponding to each current cell region in the current cell region set.

[0117] Specifically, the cell area and the current cell category have a one-to-one correspondence, the cell area can determine the corresponding cell category, and the cell category can determine the cell area. For example, if the cell area is a header area, the cell category is a header.

[0118] Step 806 , obtaining a current table evaluation score corresponding to the current subtable based on the current cell data corresponding to the current cell category.

[0119] Among them, cell data refers to data related to the cell category. For example, cell data is data related to the table header, which is represented by F1. F1 is the ratio of the number of columns occupied by the "table header" in the calculated subtable to the number of columns occupied by the subtable. When F1 is 1, the corresponding current table evaluation score is closer to the table condition. When F1 is not 1, the corresponding current table evaluation score is farther away from the table condition. For example, the table condition is that the table evaluation score is greater than or equal to 90 points. When F1 is 1, the corresponding current table evaluation score is 85 points, and when F1 is not 1, the corresponding current table evaluation score is 70 points.

[0120] Specifically, different cell data can obtain different table evaluation scores. Through the functional relationship between cell data and table evaluation scores, the current table evaluation score corresponding to the current subtable can be obtained through the current cell data corresponding to the current cell category.

[0121] In this embodiment, by obtaining the current cell area set corresponding to the current subtable, obtaining the current cell category corresponding to each current cell area in the current cell area set, and obtaining the current table evaluation score corresponding to the current subtable based on the current cell data corresponding to the current cell category, the purpose of obtaining the current table evaluation score corresponding to the current subtable through the current cell data in the current subtable can be achieved, thereby improving the accuracy of electronic table data processing.

[0122] In one embodiment, spreadsheet data processing can be performed by Fig. 9 Specifically, the server receives the loaded spreadsheet, and in the cell parsing module, as shown in Fig.10 As shown, the cells in the above spreadsheet are feature extracted, the extracted features are input into the classification algorithm, the cell category is output, and after post-processing, accurate cell features and cell categories are obtained. The cell category is input into the layout reasoning module, the graph structure is constructed, and the sub-table is identified based on the graph search of the optimization algorithm, and the identified sub-table is input into the information extraction module, the sub-table is converted into structured data, and the structured data is input into the field parsing module to complete the writing of the spreadsheet into the database.

[0123] In one embodiment, the post-processing process can be implemented by the following steps. The appearance of blank cells is due to the absence of data in the cells, and the classification algorithm cannot classify them. To obtain the above-mentioned blank cells, in the post-processing process, first, based on the categories of the non-blank cells surrounding the blank cells, and the spatial relationship between the blank cells and the surrounding non-blank cells, the cell category of the blank cells is inferred. Secondly, the blank cells are merged with the adjacent cells of the same cell category to obtain an accurate category area.

[0124] In one embodiment, Fig.11 As shown, a graph structure is constructed according to the cell category. The edge of the graph structure is represented by E, the node is represented by V, and the graph structure is represented by G. Then G can be represented by the formula G=(E, V). There are 8 nodes in the graph structure, namely V1, ..., V8, among which the node representing the table header is represented by 1, the node representing the data group ID (Identify) is represented by 2, and the node representing the data is represented by 3. In the above graph structure, there are 11 edges, namely E1, ..., E11. Each edge has two values, 0 and 1. A value of 0 represents that there is no connecting edge between the two nodes, and a value of 1 represents that there is a connecting edge between the two nodes. For example, when E1=0, it means that there is no connecting edge between V1 and V2, and when E1=1, it means that there is a connecting edge between V1 and V2. For each type of connecting edge relationship between nodes in the graph structure, the corresponding objective function value can be calculated, that is, given the value of E, the objective function value can be calculated. The sub-objective function of the sub-table is represented by F i , the weight of the sub-objective function is expressed as A i , the above objective function is expressed as ObjectiveFunction, then ObjectiveFunction is expressed as formula:

[0125]

[0126] The optimal subtable identification result can be obtained by minimizing the above objective function value and obtaining the value of E, that is, obtaining the connection edge relationship between nodes. Fig.12 As shown, when E4, E5, E6 and E11 are 0 and the values ​​of other edges are 1, the above objective function value is the smallest and 3 sub-tables are identified.

[0127] In one embodiment, the header, data group ID, data and attachment of the cell category correspond to the fields, indexes, records and database names of the database, respectively. In the field parsing module, the extracted structured information is stored in the database, and the database library name, field, field type, index and record need to be provided in the process of storing in the database. Through the cell category, the fields, indexes and records in the structured information can be determined. Through semantic analysis and fuzzy matching, database library name matching or field matching can be achieved. For example, the field "Guangdong Province" and the field "Guangdong" have the same semantics, so they can be matched together; the library names "Guangdong Province Income and Expenditure Table" and "Guangdong Income and Expenditure Table" have the same semantics, and they can also be matched together, thereby reducing redundancy and improving the efficiency of electronic spreadsheet data processing.

[0128] It should be understood that although Figure 2-8 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-8 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0129] In one embodiment, Fig.13As shown, a spreadsheet data processing device 1300 is provided, comprising: a target spreadsheet acquisition module 1302, a plurality of target cell area acquisition modules 1304, a target table strategy acquisition module 1306, a target subtable acquisition module 1308 and a structured information acquisition module 1310, wherein: the target spreadsheet acquisition module 1302 is used to acquire a target spreadsheet to be processed; the plurality of target cell area acquisition modules 1304 are used to acquire cell features of each cell in the target spreadsheet, and divide the cells in the target spreadsheet into regions based on the cell features to obtain a plurality of target cell regions; the target table strategy acquisition module 1306 is used to acquire the target subtables of the candidate table combination strategy set. A table evaluation score corresponding to each candidate table combination strategy is obtained, and a candidate table combination strategy whose table evaluation score meets the table condition is obtained from the candidate table combination strategy set as a target table strategy; the candidate table combination strategy set includes multiple candidate table combination strategies, and the candidate table combination strategy is a strategy for combining cell areas with associated relationships into a sub-table corresponding to a target electronic table; a target sub-table obtaining module 1308 is used to classify the cell area association relationship corresponding to the target table strategy with the cells corresponding to the target electronic table, and obtain target sub-tables corresponding to each category; a structured obtaining module 1310 is used to extract structured information from the target sub-table, and obtain structured information corresponding to the target sub-table.

[0130] In one embodiment, the multiple target cell area obtaining module 1304 is used to obtain the cell features of each cell in the target electronic spreadsheet, and based on the cell features, determine the target cell category corresponding to the cell from the candidate cell category set; merge consecutive cells with the same target cell category to obtain multiple target cell areas.

[0131] In one embodiment, a module 1304 is provided for obtaining multiple target cell areas, and is used to determine a current cell of a feature to be determined and adjacent cells corresponding to the current cell; compare the cell data attribute information of the current cell with the cell data attribute information of adjacent cells to obtain a comparison result; and obtain the cell feature corresponding to the current cell based on the comparison result.

[0132] In one embodiment, a module 1304 for obtaining multiple target cell areas is used to obtain cell features of each cell in a target electronic spreadsheet, input the cell features into a cell category classification model, and the cell category classification model outputs the category possibility corresponding to each candidate cell category in a candidate cell category set; the candidate cell category set includes at least one of a header category, a data category, a data group identification category, or an ancillary category; and a candidate cell category whose category possibility is greater than a category possibility threshold is screened from the candidate cell category set as the target cell category corresponding to the cell.

[0133] In one embodiment, the target table strategy acquisition module 1306 is used to determine the current candidate table composition strategy; obtain the current sub-table set corresponding to the combination of cell areas using the current candidate table combination strategy; obtain the current table evaluation score corresponding to each current sub-table in the current sub-table set; and count the current table evaluation scores corresponding to the current sub-tables to obtain the current table evaluation score corresponding to the current candidate table combination strategy.

[0134] In one embodiment, the target table strategy acquisition module 1306 is used to adjust the current candidate table composition strategy in the direction of making the current table evaluation score meet the table condition, and obtain the updated current candidate table composition strategy; return to the step of obtaining the current sub-table set corresponding to the combination of cell areas using the current candidate table combination strategy until the table condition is met, and use the current candidate table composition strategy that meets the table condition as the target table strategy.

[0135] In one embodiment, the target table strategy acquisition module 1306 is used to obtain the current cell area set corresponding to the current sub-table; obtain the current cell category corresponding to each current cell area in the current cell area set; and obtain the current table evaluation score corresponding to the current sub-table based on the current cell data corresponding to the current cell category.

[0136] The specific definition of the electronic spreadsheet data processing device can be found in the definition of the electronic spreadsheet data processing method above, which will not be repeated here. Each module in the above electronic spreadsheet data processing device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.

[0137] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.14As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store electronic spreadsheet data processing data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for processing electronic spreadsheet data is implemented.

[0138] Those skilled in the art will understand that Fig.14 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0139] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0140] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0141] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0142] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0143] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for processing electronic spreadsheet data, characterized in that: The method comprises: Get the target spreadsheet to be processed; Obtaining cell features of each cell in the target electronic table, and determining a target cell category corresponding to the cell from a set of candidate cell categories based on the cell features; merging consecutive cells with the same target cell category to obtain multiple target cell regions; the cell features refer to features representing cell characteristics; Obtaining table evaluation scores corresponding to each candidate table combination strategy in the candidate table combination strategy set, and obtaining a candidate table combination strategy whose table evaluation score satisfies a table condition from the candidate table combination strategy set as a target table strategy; the candidate table combination strategy set includes a plurality of candidate table combination strategies, and the candidate table combination strategy is a strategy for combining cell areas with an associated relationship into a subtable corresponding to the target electronic table; Classifying the cells corresponding to the target electronic form according to the cell area association relationship corresponding to the target form strategy to obtain target sub-forms corresponding to each category; Structural information is extracted from the target subtable to obtain structural information corresponding to the target subtable.

2. The method according to claim 1, characterized in that The step of obtaining the cell features of each cell in the target electronic table includes: Determine a current cell whose feature is to be determined and adjacent cells corresponding to the current cell; Comparing the cell data attribute information of the current cell with the cell data attribute information of the adjacent cell to obtain a comparison result; A cell feature corresponding to the current cell is obtained based on the comparison result.

3. The method according to claim 1, characterized in that The step of obtaining the cell features of each cell in the target electronic table includes: A cell feature extraction program is used to obtain the cell features of each cell in the target electronic table; the cell feature extraction program can extract a variety of cell features.

4. The method according to claim 3, characterized in that The step of determining the target cell category corresponding to the cell from a set of candidate cell categories based on the cell feature includes: After the multiple cell features of the cell are extracted and converted into digital types, they are input into the classification algorithm combination model to obtain the possibility of each candidate cell category, and the candidate cell category with the largest possibility is used as the target cell category corresponding to the cell.

5. The method according to claim 1, characterized in that The step of obtaining the table evaluation score corresponding to each candidate table combination strategy in the candidate table combination strategy set includes: Determine the current candidate table composition strategy; Get the current sub-table set corresponding to combining the cell area using the current candidate table combination strategy; Get the current table evaluation score corresponding to each current sub-table in the current sub-table set; The current table evaluation score corresponding to the current subtable is counted to obtain the current table evaluation score corresponding to the current candidate table combination strategy.

6. The method according to claim 5, characterized in that The step of obtaining a candidate table combination strategy whose table evaluation score satisfies the table condition from the candidate table combination strategy set as a target table strategy includes: Adjust the current candidate table composition strategy in a direction that makes the current table evaluation score satisfy the table condition, and obtain an updated current candidate table composition strategy; Return to the step of obtaining the current sub-table set corresponding to combining the cell area using the current candidate table combination strategy until the table condition is met, and use the current candidate table combination strategy that meets the table condition as the target table strategy.

7. The method according to claim 5, characterized in that The step of obtaining the current table evaluation score corresponding to each current sub-table in the current sub-table set includes: Get the current cell area set corresponding to the current subtable; Obtain the current cell category corresponding to each current cell area in the current cell area set; A current table evaluation score corresponding to the current subtable is obtained based on the current cell data corresponding to the current cell category.

8. The method according to claim 1, characterized in that The method further comprises: Get blank cells; The cell category of the blank cell is obtained according to the categories of the non-blank cells surrounding the blank cell and the spatial relationship between the blank cell and the surrounding non-blank cells.

9. An electronic spreadsheet data processing device, characterized in that: The device comprises: A target electronic form acquisition module is used to acquire a target electronic form to be processed; A module for obtaining multiple target cell regions, for obtaining cell features of each cell in the target electronic form, and determining the target cell category corresponding to the cell from a set of candidate cell categories based on the cell features; merging consecutive cells with the same target cell category to obtain multiple target cell regions; the cell features refer to features representing cell characteristics; A target table strategy acquisition module is used to obtain table evaluation scores corresponding to each candidate table combination strategy in a candidate table combination strategy set, and obtain a candidate table combination strategy whose table evaluation score meets the table condition from the candidate table combination strategy set as the target table strategy; the candidate table combination strategy set includes multiple candidate table combination strategies, and the candidate table combination strategy is a strategy for combining cell areas with associated relationships into a subtable corresponding to the target electronic table; A target subtable obtaining module is used to classify the cells corresponding to the target electronic table according to the cell area association relationship corresponding to the target table strategy, and obtain the target subtable corresponding to each category; The structured information obtaining module is used to extract structured information from the target subtable to obtain structured information corresponding to the target subtable.

10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.