EXCEL data processing method, device, equipment and storage medium
By matching and processing the KEY and VALUE areas in the EXCEL data table, it achieves efficient extraction and structured storage of field content in non-standard EXCEL data tables, solves the problem of complex data extraction, and improves data processing efficiency.
Patent Information
- Application Number
- CN202310758114.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-26
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2043-06-26
AI Technical Summary
In EXCEL data processing, when users manually fill in data, the VALUE area corresponding to KEY in the template is insufficient, resulting in complex data extraction after filling in, and low efficiency in extracting field content from non-standard EXCEL data tables.
By obtaining the KEY in the EXECL to be extracted, matching the target EXCEL template, determining the location of the KEY and the corresponding VALUE area, and performing data structuring processing, including word segmentation, text classification and image classification, to achieve the extraction and quantitative storage of field content.
It improves the efficiency of EXCEL data extraction, simplifies the field content extraction process in non-standard EXCEL data tables, and ensures structured storage of data for subsequent viewing and management.
Smart Images

Figure CN116861865B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to data processing technology, and in particular to an EXCEL data processing method, device, equipment and storage medium. Background Art
[0002] Currently, EXCEL data is widely used in all walks of life. When users manually fill in EXCEL data, they often encounter the situation where the area for filling in the VALUE corresponding to the KEY in the EXCEL template is insufficient. Usually, users tend to increase the area of the VALUE by inserting rows or columns to deal with the situation where the VALUE area is insufficient.
[0003] However, the manual insertion of rows or columns will change the layout of the EXCEL template (the EXCEL data table becomes a non-standard EXCEL data table with a different layout from the EXCEL template), that is, the area of the VALUE corresponding to the KEY will change. After the user completes the filling, if the field content in the filled-in EXCEL data table is to be extracted and stored, the extraction of the field content will become complicated due to the change of the area of the VALUE corresponding to the KEY.
[0004] Therefore, how to extract the field content in non-standard EXCEL data tables is an urgent problem to be solved. Summary of the invention
[0005] The present application provides an EXCEL data processing method, apparatus, device and storage medium to solve the problem of how to extract field contents in a non-standard EXCEL data table.
[0006] In a first aspect, the present application provides an EXCEL data processing method, comprising:
[0007] Obtain an EXECL to be extracted, wherein the EXECL to be extracted includes N first KEYs and N first VALUEs corresponding to the first KEYs;
[0008] According to the N first KEYs in the EXECL to be extracted, a target EXCEL template corresponding to the EXECL to be extracted is obtained, wherein the target EXCEL template contains N second KEYs matching the first KEYs and N second VALUEs corresponding to the second KEYs;
[0009] According to the target second KEY in the target EXCEL template and the second KEY adjacent to the target second KEY, determine the position of the target first KEY in the EXECL to be extracted and the position of the first KEY adjacent to the target first KEY; the content of the target first KEY is the same as that of the target second KEY, the second KEY adjacent to the target second KEY includes the second KEY1 adjacent to the right side of the target second KEY and the second KEY2 adjacent to the bottom side of the target second KEY, the first KEY adjacent to the target first KEY includes the first KEY1 adjacent to the right side of the target first KEY and the first KEY2 adjacent to the bottom side of the target first KEY, the content of the first KEY1 is the same as that of the second KEY1, and the content of the first KEY2 is the same as that of the second KEY2;
[0010] According to the position of the target first KEY in the EXECL to be extracted and the position of the first KEY adjacent to the target first KEY, determine the area of the target first VALUE corresponding to the target first KEY in the EXECL to be extracted;
[0011] According to the area of the target first VALUE, data structuring processing is performed on the target first VALUE.
[0012] Optionally, determining the area of the target first VALUE corresponding to the target first KEY in the EXECL to be extracted according to the position of the target first KEY in the EXECL to be extracted and the position of the first KEY adjacent to the target first KEY includes:
[0013] According to the position of the target first KEY, determine the position of the upper left vertex of the target first VALUE area;
[0014] Determine the position of the upper right vertex of the target first VALUE area according to the position of the first KEY1;
[0015] Determine the position of the lower left vertex of the target first VALUE area according to the position of the first KEY2;
[0016] The area of the first VALUE is determined according to the position of the upper left vertex, the position of the upper right vertex, and the position of the lower left vertex of the target first VALUE area.
[0017] Optionally, performing data structuring processing on the target first VALUE according to the area of the target first VALUE includes:
[0018] Acquire the attribute of the target first KEY, where the attribute of the target first KEY includes at least one of a long text attribute, a short text attribute, and an image attribute;
[0019] According to the attribute of the target first KEY and the area of the target first VALUE, data structuring processing is performed on the target first VALUE.
[0020] Optionally, the target first KEY is a long text attribute, and the data structuring processing of the target first VALUE according to the attribute of the target first KEY and the area of the target first VALUE includes:
[0021] Acquire the long text content of the target first VALUE from the area of the target first VALUE, and perform word segmentation processing on the long text content;
[0022] Generate a word vector from the result of the word segmentation processing;
[0023] Obtaining word segmentation and classification results according to the word vector and the text classification neural network model;
[0024] The target first VALUE is quantified and stored according to the word segmentation and classification result.
[0025] Optionally, the target first KEY is a short text attribute, and the data structuring processing of the target first VALUE according to the attribute of the target first KEY and the area of the target first VALUE includes:
[0026] Acquire the short text content of the target first VALUE from the area of the target first VALUE;
[0027] Determine the classification result of the short text content according to the short text content and a preset matching algorithm;
[0028] The target first VALUE is quantified and stored according to the classification result of the short text content.
[0029] Optionally, the target first KEY is an image attribute, the target first VALUE includes a selected area and an unselected area, and the data structuring processing of the target first VALUE according to the attribute of the target first KEY and the area of the target first VALUE includes:
[0030] Get the position of the first KEY of the target and the position of the first VALUE of the target;
[0031] Generate a first image including the target first KEY and the target first VALUE according to the position of the target first KEY and the position of the target first VALUE;
[0032] Determine a selected area of the target first VALUE according to the first image and a preset image classification model;
[0033] The selected area of the target first VALUE is quantized and stored.
[0034] Optionally, before obtaining the EXECL to be extracted, the following is also included:
[0035] Obtain an initial EXCEL template, in which there are N second KEYs and N second VALUEs;
[0036] Convert the initial EXCEL template into a target image, and obtain the position of each cell in the target image;
[0037] According to the position of each cell, obtain N second KEYs, N positions of the second KEYs, N second VALUEs, and N positions of the second VALUEs;
[0038] The target EXCEL template is generated according to the N second KEYs, the positions of the N second KEYs, the N second VALUEs, and the positions of the N second VALUEs.
[0039] In a second aspect, the present application provides an EXCEL data processing device, comprising:
[0040] An acquisition module, used for acquiring an EXECL to be extracted, wherein the EXECL to be extracted includes N first KEYs and N first VALUEs corresponding to the first KEYs;
[0041] A processing module, used for obtaining a target EXCEL template corresponding to the EXECL to be extracted according to the N first KEYs in the EXECL to be extracted; determining the position of the target first KEY and the position of the first KEY adjacent to the target first KEY in the EXECL to be extracted according to the target second KEY and the second KEY adjacent to the target second KEY in the target EXCEL template; determining the area of the target first VALUE corresponding to the target first KEY in the EXECL to be extracted according to the position of the target first KEY and the position of the first KEY adjacent to the target first KEY; there are N second KEYs matching the first KEY and N second VALUEs corresponding to the second KEYs in the target EXCEL template; the content of the target first KEY is the same as that of the target second KEY, the second KEY adjacent to the target second KEY includes the second KEY1 adjacent to the right side of the target second KEY and the second KEY2 adjacent to the bottom side of the target second KEY, the first KEY adjacent to the target first KEY includes the first KEY1 adjacent to the right side of the target first KEY and the first KEY2 adjacent to the bottom side of the target first KEY, the content of the first KEY1 is the same as that of the second KEY1, and the content of the first KEY2 is the same as that of the second KEY2;
[0042] A control module is used to perform data structuring processing on the target first VALUE according to the area of the target first VALUE.
[0043] In a third aspect, the present application provides an electronic device, comprising: a processor, a communication interface and a memory, wherein the processor is communicatively connected to the communication interface and the memory respectively;
[0044] The memory stores computer-executable instructions;
[0045] The communication interface communicates and interacts with external devices;
[0046] The processor executes the computer-executable instructions stored in the memory to implement the method as described in any one of the first aspects.
[0047] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the EXCEL data processing method as described in any one of the first aspects.
[0048] The EXCEL data processing method, device, equipment and storage medium provided by the present application obtain the EXECL to be extracted, and obtain the target EXCEL template corresponding to the EXECL to be extracted according to the N first KEYs in the EXECL to be extracted. According to the target second KEY in the target EXCEL template and the second KEY adjacent to the target second KEY, the position of the target first KEY and the position of the first KEY adjacent to the target first KEY in the EXECL to be extracted are determined. According to the position of the target first KEY in the EXECL to be extracted and the position of the first KEY adjacent to the target first KEY, the area of the target first VALUE corresponding to the target first KEY in the EXECL to be extracted is determined. According to the area of the target first VALUE, the target first VALUE is data structured, thereby realizing the extraction of field contents in non-standard EXCEL data tables, and data structured processing is performed on the field contents, thereby improving the efficiency of EXCEL data extraction. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0050] Figure 1 A flowchart of an EXCEL data processing method provided in an embodiment of the present application;
[0051] Figure 2 A flowchart of another EXCEL data processing method provided in an embodiment of the present application;
[0052] Figure 3 A flowchart of another EXCEL data processing method provided in an embodiment of the present application;
[0053] Figure 4 A flowchart of another EXCEL data processing method provided in an embodiment of the present application;
[0054] Figure 5 A flowchart of another EXCEL data processing method provided in an embodiment of the present application;
[0055] Figure 6 A flowchart of another EXCEL data processing method provided in an embodiment of the present application;
[0056] Figure 7 A schematic diagram of the structure of an EXCEL data processing device provided in an embodiment of the present application;
[0057] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0058] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0059] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0060] The execution subject of the EXCEL data processing method provided in the present application may be a terminal device with a data processing function, or a processing chip of the terminal device, or a software or program code for implementing the data processing method. When the execution subject is a terminal device with a data processing function, the terminal device may be, for example, a computing device such as a computer or a mobile phone with a computing function, and the computing device may be deployed with software or program code for running the data processing method, and the data structure in the business system is processed by the software or program code. The execution subject of the method may also be a cloud platform with a data processing function. When the execution subject is a cloud platform, the processing of the data structure in the method may be performed in the cloud. The cloud platform may be logically divided into multiple parts according to actual needs, and each part has different functions. The various parts in the data processing platform may be deployed in any two or three of the electronic device (located on the user side), the edge environment, and the cloud environment. The edge environment is an environment including a collection of edge electronic devices that are close to the electronic device, and the edge electronic device includes: an edge server, an edge station with computing power, etc. The various parts of the data processing platform deployed in different environments or devices collaborate to realize the functions of the data processing platform. It should be understood that this application does not restrictively divide which parts of the data processing platform are deployed in what specific environment. In actual application, it can be adaptively deployed according to the computing power of the electronic device, the resource usage of the edge environment and the cloud environment, or the specific application requirements.
[0061] Below, taking the execution subject as a terminal device with a data processing function that implements the method as an example, the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail through specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0062] Figure 1 A flowchart of an EXCEL data processing method provided in an embodiment of the present application.
[0063] like Figure 1 As shown, the method may include:
[0064] S101, obtaining the EXECL to be extracted.
[0065] The EXECL to be extracted includes N first KEYs and N first VALUEs corresponding to the first KEYs. The first KEY is a data classification, and the first VALUE is at least one value under the data classification corresponding to the first KEY. Exemplarily, the EXECL to be extracted can be shown in Table 1 below:
[0066] Table 1
[0067] KEY1 VALUE1-1 VALUE1-2 VALUE1-3 KEY2 VALUE2-1 VALUE2-2 VALUE2-3 KEY3 VALUE3-1 VALUE3-2 VALUE3-3 …… …… …… ……
[0068] The first KEY includes KEY1, KEY2, and KEY3, and the first VALUE1 corresponding to the KEY1 includes VALUE1-1, VALUE1-2, and VALUE1-3. For example, the KEY1 may be an amount, and VALUE1-1, VALUE1-2, and VALUE1-3 are multiple values corresponding to the amount.
[0069] The EXCEL to be extracted may be obtained from a storage medium of the terminal device, or may be obtained from other electronic devices.
[0070] S102, according to the N first KEYs in the EXECL to be extracted, obtain the target EXCEL template corresponding to the EXECL to be extracted,
[0071] The target EXCEL template contains N second keys matching the first key and N second values corresponding to the second keys. The N second keys correspond to the contents of the N first keys one by one. The terminal device pre-stores multiple EXCEL templates.
[0072] Match the N first KEYs in the EXECL to be extracted with multiple EXCEL templates. If there is an EXCEL template that includes N second KEYs that match the content of the first KEY, then the EXCEL template is used as the target EXCEL template. Alternatively, if there is an EXCEL template that includes more than a preset threshold of second KEYs that match the content of the first KEY, then the EXCEL template is used as the target EXCEL template. The preset threshold can be determined according to actual needs.
[0073] S103. Determine the position of the target first KEY and the position of the first KEY adjacent to the target first KEY in the EXECL template to be extracted according to the target second KEY and the second KEY adjacent to the target second KEY in the target EXCEL template.
[0074] Among them, the content of the target first KEY is the same as that of the target second KEY, the second KEY adjacent to the target second KEY includes the second KEY1 adjacent to the right side of the target second KEY and the second KEY2 adjacent to the bottom of the target second KEY, the first KEY adjacent to the target first KEY includes the first KEY1 adjacent to the right side of the target first KEY and the first KEY2 adjacent to the bottom of the target first KEY, the content of the first KEY1 is the same as that of the second KEY1, and the content of the first KEY2 is the same as that of the second KEY2.
[0075] Match the target first KEY corresponding to the target second KEY in the EXECEL to be extracted, and determine the position of the target first KEY in the EXCEL to be extracted, and match the first KEY adjacent to the target first KEY corresponding to the second KEY adjacent to the target second KEY in the EXECL to be extracted, and determine the position of the first KEY adjacent to the target first KEY in the EXCEL to be extracted.
[0076] A possible implementation method is to perform a match in the entire data table range of the EXECL to be extracted.
[0077] Another possible implementation method is to first match the target first KEY corresponding to the target second KEY in the EXECL to be extracted, and match the adjacent first KEY within a preset range near the target first KEY (for example, within the range of 10 rows above and below and 10 columns left and right), thereby reducing the amount of calculation and improving the calculation speed.
[0078] Exemplarily, the target EXCEL template may be as shown in Table 2 below:
[0079] Table 2
[0080] Target Second KEY 123 Second KEY1 231 Second KEY2 321 …… …… …… ……
[0081] The EXECL to be extracted may be shown in Table 3 below:
[0082] Table 3
[0083] Target First KEY 123 First KEY1 231 456 789 First KEY2 321 …… …… …… ……
[0084] This step can be done by matching the target second KEY in the target EXCEL template to the EXECL to be extracted to obtain the position of the target first KEY in the EXECL to be extracted, and then matching the second KEY1 in the target EXCEL template to the EXECL to be extracted to obtain the position of the first KEY1 in the EXECL to be extracted, and matching the second KEY2 in the target EXCEL template to the EXECL to be extracted to obtain the position of the first KEY2 in the EXECL to be extracted.
[0085] S104. Determine the area of the target first VALUE corresponding to the target first KEY in the EXECL to be extracted according to the position of the target first KEY in the EXECL to be extracted and the position of the first KEY adjacent to the target first KEY.
[0086] In a possible implementation, three vertices of the region of the target first VALUE are determined according to the position of the target first KEY and the position of the first KEY adjacent to the target first KEY, and the region of the target first VALUE is determined according to the three vertices.
[0087] Another possible implementation is to determine the width of the target first VALUE according to the position of the target first KEY and the position of the first KEY1; determine the height of the target first VALUE according to the position of the target first KEY and the position of the first KEY2. And determine the area of the target first VALUE according to the relative position relationship between the target second KEY and the target second VALUE, the width and the height.
[0088] S105 . Perform data structuring processing on the target first VALUE according to the area of the target first VALUE.
[0089] The content of the target first VALUE is extracted from the area of the target first VALUE, and the target first VALUE may include multiple pieces of data. According to the attribute of the target first KEY corresponding to the target first VALUE, at least one category of the content of the target first VALUE is determined for the extracted content of the target first VALUE according to the attribute, and the content of the target first VALUE is classified and structured stored according to the category. For example, the classified content can be stored in a database in the form of structured data to facilitate the subsequent review and viewing of the content of the target first VALUE.
[0090] The method provided in the embodiment of the present application obtains the target EXCEL template corresponding to the EXECL to be extracted by obtaining the EXECL to be extracted according to the N first KEYs in the EXECL to be extracted. According to the target second KEY in the target EXCEL template and the second KEY adjacent to the target second KEY, the position of the target first KEY and the position of the first KEY adjacent to the target first KEY in the EXECL to be extracted are determined. According to the position of the target first KEY in the EXECL to be extracted and the position of the first KEY adjacent to the target first KEY, the area of the target first VALUE corresponding to the target first KEY in the EXECL to be extracted is determined. According to the area of the target first VALUE, the target first VALUE is data structured, thereby realizing the extraction of field contents in a non-standard EXCEL data table, and data structured processing of the field contents is performed, thereby improving the efficiency of EXCEL data processing.
[0091] The following is a detailed description of how to determine the position of the first VALUE corresponding to the first KEY in the EXECL to be extracted according to the relative position relationship between each of the second KEY and the second VALUE in the target EXCEL template and the first KEY in step S103. Figure 2 The following is a flow chart of another EXCEL data processing method provided in the embodiment of the present application. Figure 2 As shown, the above step S103 may include:
[0092] S201. In the EXECL to be extracted, determine the position of the upper left vertex of the target first VALUE area according to the position of the target first KEY.
[0093] According to the relative position relationship between the target second KEY and the target second VALUE, the relative position relationship between the target first KEY and the target first VALUE is determined. According to the relative position relationship between the target first KEY and the target first VALUE, the position corresponding to the value of the first row in the first column of the target first VALUE area is determined, and the position is the position of the upper left vertex of the target first VALUE area.
[0094] S202 . Determine the position of the upper right vertex of the target first VALUE area according to the position of the first KEY1 .
[0095] Since the first KEY1 is the first first KEY adjacent to the right side of the target first KEY, the position of the first KEY1 is the position in the same row of the next column corresponding to the value of the last column in the first row of the target first VALUE area. Therefore, the position of the upper right vertex of the target first VALUE area can be inferred based on the position of the first KEY1.
[0096] S203 . Determine the position of the lower left vertex of the target first VALUE area according to the position of the first KEY2 .
[0097] Since the first KEY2 is the first first KEY adjacent to the lower side of the target first KEY, the position of the first KEY2 is the position in the same column of the next row corresponding to the value of the last row in the first column of the target first VALUE area. Therefore, the position of the lower left vertex of the target first VALUE area can be inferred based on the position of the first KEY2.
[0098] S204 , determining a first VALUE region according to the position of the upper left vertex, the position of the upper right vertex, and the position of the lower left vertex of the target first VALUE region.
[0099] Since the position of the upper left vertex, the upper right vertex, and the lower left vertex of the first VALUE area have been determined, and in the EXCEL data table, the first VALUE area is a rectangular area, the area of the first VALUE can be determined based on the position of the upper left vertex, the upper right vertex, and the lower left vertex of the target first VALUE area.
[0100] After the position of the first VALUE is determined, the data included in the first VALUE can be structured according to the position of the first VALUE. Below, taking the first KEY attribute including at least one of the long text attribute, the short text attribute, and the image attribute as an example, how to structure the data included in the first VALUE is described in detail.
[0101] Implementation method 1: The attributes of the first target KEY include long text attributes. Figure 3 The following is a flow chart of another EXCEL data processing method provided in the embodiment of the present application. Figure 3 As shown, the method may include:
[0102] S301 . Acquire the long text content of the target first VALUE from the region of the target first VALUE, and perform word segmentation processing on the long text content.
[0103] The long text content may include at least two keywords, which may represent the attributes of the long text content. By performing word segmentation on the long text content, at least two attributes of the long text content may be obtained. The word segmentation may be implemented by any existing word segmentation tool, such as Jieba word segmentation tool, SnowNLP word segmentation tool, HanNLP word segmentation tool, etc.
[0104] For example, taking the long text content as a company name, the long text content may be, for example, "Company A, Region B Branch". By performing word segmentation processing on the long text content, the word segmentation results of "Company A" and "Region B" may be obtained. The Company A may include the company type attributes of the company, such as a financial company, a law company, etc., and the Region B may represent the geographical location corresponding to the company name.
[0105] S302: Generate a word vector based on the result of the word segmentation processing.
[0106] Through the corpus training model, each word segmentation of the word segmentation processing result is vectorized to obtain a 1*K-dimensional word vector corresponding to each word segmentation, where K is an integer greater than or equal to 1, that is, each word segmentation is mapped to a vector corresponding to the word segmentation, and according to the M word segmentations included in the word segmentation result, where M is an integer greater than or equal to 1, the long text content can be converted into an M*K-dimensional array. The corpus training model can be, for example, a Word2vec model.
[0107] S303: Obtain word segmentation and classification results based on the word vector and the text classification neural network model.
[0108] The text classification neural network model may be, for example, a recurrent neural network (RNN) model, a text convolutional network (TextConventional Neural Network, TextCNN) model, etc. The following takes the text classification neural network model as an example of a TextCNN model to explain in detail how to obtain a word segmentation classification result based on the M*K dimensional array and the text classification neural network model.
[0109] First, the TextCNN model is trained through long text samples and preset annotation categories to obtain a trained TextCNN model. The long text samples and the preset annotation categories can be determined according to the actual needs of the user, and this application does not limit this. Each long text content in the long text sample is converted into an array of M*K dimensions, where x is the number of cells in the long text sample. i ∈R k is the word vector of the i-th word in the sentence, with a latitude of k. For example, the length of the long text content is n, and the long text content can be expressed as For the representation of the long text content, is the concatenation operator. i:i+j Represents x i ,x i+1 ,....,x i+j , that is, the word representation from sentence index i to i+j.
[0110] Secondly, the feature corresponding to the word segmentation representation is input into the convolution layer of the TextCNN model, and the convolution operation is performed on the feature according to the convolution kernel of the convolution layer to obtain the result of the convolution operation. For example, the convolution kernel can be w∈R hk , then the window size for sliding up and down in the convolution layer is h, for x i:i+h-1 The result of a single convolution operation on can be expressed as the following formula (1):
[0111] c i =f(w·x i:i+h-1 +b) (1)
[0112] Among them, b is the bias term, and f is a nonlinear operation, such as a tanh operation. According to the size h of the sliding window corresponding to the convolution layer, the feature can be 1:h ,x 2:h+1 ,...,x n-h+1,n} respectively, so that the feature map c = [c1, c2, ..., c n-h+1 ].
[0113] After completing the above convolution operation, enter the maximum pooling layer of the TextCNN model to further reduce the dimension of the information extracted by the convolution layer and reduce the amount of calculation. For each convolution kernel, you can get the scalar corresponding to the convolution kernel The scalar representation synchronizes the features corresponding to the word representations of different lengths in the long text content to features of the same dimension. The corresponding scalar can be determined according to the number of convolution kernels in the TextCNN model. For example, when the number of convolution kernels in the TextCNN model is m, after the long text sample passes through the maximum pooling layer, a set of scalars can be obtained: It should be understood that the number m of the convolution kernels can be determined according to actual needs, for example, it can be 3, and this application does not impose any limitation on this.
[0114] Finally, the feature map c = [c1, c2, ..., c n-h+1 ], through the fully connected layer of the TextCNN model, the mapping relationship between the feature vector of the long text sample and the preset annotation category is obtained, and the mapping relationship can be shown in the following formula (2):
[0115]
[0116] Among them, y is the probability distribution of each preset annotation category, w is the weight matrix of the feature vector of the long text sample, is the process of random dropout, where is an element-by-element operator, which represents the operation on the corresponding elements in λ and r, where λ is a Bernoulli random variable (i.e., a 0-1 variable whose value is 0 or 1), and b is a bias term.
[0117] Optionally, the fully connected layer of the TextCNN model can also be regularized to avoid overfitting of the long text content during training, thereby reducing the situation where the TextCNN model has a small loss function on the training data and a high prediction accuracy, but a large loss function on the test data and a low prediction accuracy. The process of regularizing the fully connected layer can refer to the prior art, and this application will not repeat it again.
[0118] By inputting the above M*K dimensional array into the trained text classification neural network model, the various attribute categories corresponding to the long text content can be determined.
[0119] S304: quantify and store the target first VALUE according to the word segmentation and classification result.
[0120] According to the multiple attribute categories of the word segmentation and classification results corresponding to the long text content, the long text content is stored in a database according to the multiple attribute categories to complete the data structuring processing and storage of the long text content.
[0121] Implementation method 2: The attribute of the first KEY of the target is a short text attribute. Figure 4 The following is a flow chart of another EXCEL data processing method provided in the embodiment of the present application. Figure 4 As shown, the method may include:
[0122] S401. Acquire the short text content of the target first VALUE from the area of the target first VALUE.
[0123] The contents of all VALUEs in the region of the target first VALUE are obtained, and the contents of all VALUEs are determined based on the contents of all VALUEs, which are VALUEs belonging to the short text content. The contents of all VALUEs belonging to the short text content are extracted.
[0124] S402: Determine a classification result of the short text content according to the short text content and a preset matching algorithm.
[0125] The matching algorithm may be any existing text matching algorithm, such as exact matching or fuzzy matching.
[0126] One possible implementation method may be to match the short text content by the word frequency, for example, by using the term frequency-inverse document frequency (TF-IDF) method to obtain the frequency of occurrence of the short text content in multiple preset dictionaries, and use the classification result corresponding to the dictionary with the highest frequency of occurrence as the classification result corresponding to the short text content.
[0127] Another possible implementation method is to use a pre-classified short text content set, wherein the classification combination includes a mapping relationship between the short text content and the classification result, and perform an exact match or a fuzzy match between the short text content and the short text content set to determine the classification result corresponding to the short text content.
[0128] S403: Quantify and store the target first VALUE according to the classification result of the short text content.
[0129] According to the classification result corresponding to the short text content determined by matching the short text content, the short text content is classified according to its classification result, and the short text contents of different classifications are stored in the database under corresponding different classifications to complete the data structuring processing and storage of the short text content.
[0130] Implementation method 3: The attributes of the target first KEY include image attributes, the target first VALUE includes a selected area and an unselected area, and the target first VALUE includes multiple selectable values. The user needs to determine the value corresponding to the target first VALUE by checking one of the selectable values. For example, the target first KEY is gender, and each target first VALUE includes two selectable values, male and female. The user can select one of the values by drawing a line, checking a box, or blacking out the box corresponding to the selectable value. In order to determine the selected cell of the target first VALUE corresponding to the target first KEY of the image attribute, this type of data can be structured using the following method.
[0131] Figure 5 The following is a flow chart of another EXCEL data processing method provided in the embodiment of the present application. Figure 5 As shown, the method may include:
[0132] S501. Obtain the position of the target first KEY and the position of the target first VALUE.
[0133] The method of obtaining the position of the target first KEY and the position of the target first VALUE is similar to the aforementioned steps S103 to S104. Please refer to the aforementioned steps S103 to S104, and this application will not repeat them here.
[0134] S502: Generate a first image including the target first KEY and the target first VALUE according to the position of the target first KEY and the position of the target first VALUE.
[0135] According to the position of the target first KEY and the position of the target first VALUE, the position and range of the first image to be generated are determined. According to the position and range of the first image to be generated, the area indicated by the position and range of the first image to be generated is converted into an image format through a tool capable of generating an image from a partial area of an EXCEL data table, thereby generating a first image including the target first KEY and the target first VALUE. The tool capable of generating an image from a partial area of an EXCEL data table may be, for example, an EXCEL2IMG tool, for example, it may be directly implemented on the EXCEL data table through the EXCEL2IMG toolkit, or it may be implemented by calling the EXCEL2IMG tool through a code program, etc.
[0136] S503: Determine a selected area of the target first VALUE according to the first image and a preset image classification model.
[0137] The preset image classification model can be any existing image classification model, for example, it can be a GoogleNet deep learning model, or other existing image classification models. This application does not impose any restrictions on this, as long as it can classify the content in the first image.
[0138] The first image is input into the trained preset image classification model, and the preset image classification model determines whether there are cells covered by selection lines (i.e., selected areas) in the first image. The selection lines can be, for example, any of the selection lines mentioned above, selected by the user by drawing a line, checking a box, or filling in a box corresponding to an selectable value.
[0139] The preset image classification model determines cells covered by selection lines as selected areas, and determines cells not covered by selection lines as unselected areas.
[0140] The training samples of the preset image classification model include positive samples with selected line coverage images and negative samples without selected line coverage. The number of positive samples and the number of negative samples can be determined according to actual needs, and this application does not limit this. For example, it can be 1000 positive samples and 3000 negative samples.
[0141] The image classification model is trained through the training sample. Taking the preset image classification model as the GoogleNet deep learning model as an example, the image of the training sample is passed through the convolution layer, Inception 3a layer, Inception 3b layer, Inception 4a / c / d / e layer, Inception 5a / b layer, fully connected layer, and output layer of the GoogleNet model to generate 1024-dimensional features, and the probability of positive samples and negative samples is obtained through the softmax activation function. The Inception a / b / c / d / e indicates that different convolution kernels have been passed. Among them, the input of the Inception structure is parallelly passed through 1*1 convolution, 3*3 convolution, 5*5 convolution, and 3*3 maximum pooling layer before channel fusion. The Inception structure uses convolution kernels of different sizes to achieve perception of different sizes, so that the GoogleNet deep learning model can obtain better image representation. Among them, the role of the 1*1 convolution kernel is to compress and reduce dimensionality, so as to reduce the number of model parameters and improve the depth, width, and feature extraction effect of the model network.
[0142] The image classification model generates a trained preset image classification model after multiple training iterations of the training sample to determine the selected area of the target first VALUE in the first image.
[0143] S504: Quantify and store the selected area of the target first VALUE.
[0144] The selected area of the target first VALUE is used as the content corresponding to each target first VALUE, and the content corresponding to the target first KEY and the target first VALUE is stored in the database.
[0145] The structured processing method provided in the embodiment of the present application extracts the target first VALUE of the long text content, the target first VALUE of the short text content, and the target first VALUE of the image attribute corresponding to the KEY of different attributes from the area of the target first VALUE, and performs structured processing on these contents, and stores the structured data of the target first VALUE after structured processing in a database to facilitate the user's subsequent backtracking and viewing of these data.
[0146] The following is a detailed description of how to create an EXCEL template before obtaining the target EXCEL template. Figure 6 The following is a flow chart of another EXCEL data processing method provided in the embodiment of the present application. Figure 6 As shown, the method may also include:
[0147] S601, obtaining an initial EXCEL template.
[0148] The initial EXCEL template contains N second KEYs and N second VALUEs. The initial EXCEL template is an EXCEL data table provided to the user for subsequent filling. The initial EXCEL template can be obtained from the storage medium of the terminal device.
[0149] S602: Convert the initial EXCEL template into a target image, and obtain the position of each cell in the target image.
[0150] The initial EXCEL template is saved in an image format to obtain the target image. For example, the initial EXCEL template can be converted into the target image using the aforementioned EXCEL2IMG tool. When the initial EXCEL template is converted into the target image using the EXCEL2IMG tool, optionally, the contents of the cells filled with values in the initial EXCEL template can be cleared, and the contents of these cells can be reassigned to preset characters, such as "1", so as to facilitate the use of the EXCEL2IMG tool to determine the border of the area in the initial EXCEL template that needs to be converted into the target image, so as to improve the efficiency of converting the initial EXCEL template into the target image.
[0151] Obtain a preset horizontal structural unit and a preset vertical structural unit, and eliminate the lines that divide the cells in the target image. For example, according to the preset horizontal structural unit (1,10), the horizontal lines that divide the cells in the target image can be eliminated by corrosion and expansion, and then each column of cells can be segmented by vertical projection; according to the preset vertical structural unit (10,1), the vertical lines that divide the cells in the target image can be eliminated by corrosion and expansion, and then each row of cells can be segmented by horizontal projection. According to the relationship between the column corresponding to each column of cells and the row corresponding to each row of cells, the target image is segmented into multiple regions composed of cells, and the row and column of each cell are determined. According to the row and column of each cell, the position of each cell is determined.
[0152] S603. According to the position of each cell, obtain the positions of N second KEYs and N second VALUEs.
[0153] Get the cell corresponding to each second KEY, and use the position of the cell as the position of the second KEY; get the cell corresponding to each second VALUE, and use the position of the cell as the position of the second VALUE. According to the position of each second KEY, determine the relative position of each second VALUE corresponding to each second KEY.
[0154] S604: Generate the target EXCEL template according to the N second KEYs, the positions of the N second KEYs, the N second VALUEs, and the positions of the N second VALUEs.
[0155] The target EXCEL template may also include an attribute list of each second KEY, which represents the attribute of the second VALUE corresponding to each second KEY, and the attribute may include at least one of the aforementioned long text attribute, short text attribute, image attribute, etc.
[0156] Figure 7 This is a schematic diagram of the structure of an EXCEL data processing device provided in an embodiment of the present application. Figure 7 As shown, the device may include: an acquisition module 11, a processing module 12, and a control module 13.
[0157] The acquisition module 11 is used to acquire the EXECL to be extracted, wherein the EXECL to be extracted includes N first KEYs and N first VALUEs corresponding to the first KEYs.
[0158] The processing module 12 is used to obtain the target EXCEL template corresponding to the EXECL to be extracted according to the N first KEYs in the EXECL to be extracted. According to the target second KEY in the target EXCEL template and the second KEY adjacent to the target second KEY, the position of the target first KEY and the position of the first KEY adjacent to the target first KEY in the EXECL to be extracted are determined. According to the position of the target first KEY in the EXECL to be extracted and the position of the first KEY adjacent to the target first KEY, the area of the target first VALUE corresponding to the target first KEY in the EXECL to be extracted is determined. There are N second KEYs matching the first KEY and N second VALUEs corresponding to the second KEY in the target EXCEL template. The content of the target first KEY is the same as that of the target second KEY, the second KEY adjacent to the target second KEY includes the second KEY1 adjacent to the right side of the target second KEY and the second KEY2 adjacent to the bottom side of the target second KEY, the first KEY adjacent to the target first KEY includes the first KEY1 adjacent to the right side of the target first KEY and the first KEY2 adjacent to the bottom side of the target first KEY, the content of the first KEY1 is the same as that of the second KEY1, and the content of the first KEY2 is the same as that of the second KEY2.
[0159] The control module 13 is used to perform data structuring processing on the target first VALUE according to the area of the target first VALUE.
[0160] In a possible implementation, the processing module 12 is specifically configured to determine the position of the upper left vertex of the target first VALUE area according to the position of the target first KEY. Determine the position of the upper right vertex of the target first VALUE area according to the position of the first KEY1. Determine the position of the lower left vertex of the target first VALUE area according to the position of the first KEY2. Determine the area of the first VALUE according to the position of the upper left vertex of the target first VALUE area, the position of the upper right vertex, and the position of the lower left vertex.
[0161] Optionally, the attribute of the target first KEY includes at least one of a long text attribute, a short text attribute, and an image attribute. The acquisition module 11 is specifically used to acquire the attribute of the target first KEY. The control module 13 is specifically used to perform data structuring processing on the target first VALUE according to the attribute of the target first KEY and the area of the target first VALUE.
[0162] In the above implementation, optionally, if the target first KEY is a long text attribute, the processing module 12 is specifically used to obtain the long text content of the target first VALUE from the area of the target first VALUE, and perform word segmentation on the long text content. The result of the word segmentation processing is used to generate a word vector. According to the word vector and the text classification neural network model, a word segmentation classification result is obtained. The control module 13 is specifically used to quantize and store the target first VALUE according to the word segmentation classification result.
[0163] In the above implementation, optionally, if the target first KEY is a short text attribute, the processing module 12 is specifically used to obtain the short text content of the target first VALUE from the area of the target first VALUE. According to the short text content and a preset matching algorithm, the classification result of the short text content is determined. The control module 13 is specifically used to quantify and store the target first VALUE according to the classification result of the short text content.
[0164] In the above implementation, optionally, if the target first KEY is an image attribute, and the target first VALUE includes a selected area and an unselected area, the processing module 12 is specifically used to obtain the position of the target first KEY and the position of the target first VALUE. According to the position of the target first KEY and the position of the target first VALUE, a first image including the target first KEY and the target first VALUE is generated. According to the first image and a preset image classification model, the selected area of the target first VALUE is determined. The control module 13 is specifically used to quantify and store the selected area of the target first VALUE.
[0165] In any of the aforementioned implementations, the acquisition module 11 is further used to acquire an initial EXCEL template before acquiring the EXECL to be extracted, wherein the initial EXCEL template contains N second KEYs and N second VALUEs. The processing module 12 is further used to convert the initial EXCEL template into a target image and acquire the position of each cell in the target image. According to the position of each cell, the N second KEYs, the positions of the N second KEYs, the N second VALUEs, and the positions of the N second VALUEs are acquired. According to the N second KEYs, the positions of the N second KEYs, the N second VALUEs, and the positions of the N second VALUEs, the target EXCEL template is generated.
[0166] The EXCEL data processing device provided in the embodiment of the present application can execute the EXCEL data processing method in the above method embodiment, and its implementation principle and technical effect are similar, which will not be described in detail here.
[0167] Figure 8 The following is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device is used to execute the aforementioned EXCEL data processing method, for example, it can be the aforementioned terminal device with data processing function. Figure 8 As shown, the electronic device 800 may include: at least one processor 801 , a memory 802 , and a communication interface 803 .
[0168] The memory 802 is used to store programs. Specifically, the programs may include program codes, and the program codes include computer operation instructions.
[0169] The memory 802 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0170] The processor 801 is used to execute the computer-executable instructions stored in the memory 802 to implement the method described in the above method embodiment. The processor 801 may be a CPU, or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0171] The processor 801 can communicate and interact with external devices through the communication interface 803. The external device can be, for example, the user's terminal device mentioned above. In a specific implementation, if the communication interface 803, the memory 802 and the processor 801 are implemented independently, the communication interface 803, the memory 802 and the processor 801 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc., but it does not mean that there is only one bus or one type of bus.
[0172] Optionally, in a specific implementation, if the communication interface 803, the memory 802 and the processor 801 are integrated on a chip, the communication interface 803, the memory 802 and the processor 801 can communicate through an internal interface.
[0173] The present application also provides a computer-readable storage medium, which may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes. Specifically, the computer-readable storage medium stores program instructions, and the program instructions are used in the methods in the above embodiments.
[0174] The present application also provides a program product, which includes an execution instruction, which is stored in a readable storage medium. At least one processor of a computing device can read the execution instruction from the readable storage medium, and at least one processor executes the execution instruction so that the computing device implements the above-mentioned EXCEL data processing method.
[0175] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. An EXCEL data processing method, characterized in that: include: Obtain an EXECL to be extracted, wherein the EXECL to be extracted includes N first KEYs and N first VALUEs corresponding to the first KEYs; According to the N first KEYs in the EXECL to be extracted, a target EXCEL template corresponding to the EXECL to be extracted is obtained, wherein the target EXCEL template contains N second KEYs matching the first KEYs and N second VALUEs corresponding to the second KEYs; According to the target second KEY in the target EXCEL template and the second KEY adjacent to the target second KEY, determine the position of the target first KEY in the EXECL to be extracted and the position of the first KEY adjacent to the target first KEY; the content of the target first KEY is the same as that of the target second KEY, the second KEY adjacent to the target second KEY includes the second KEY1 adjacent to the right side of the target second KEY and the second KEY2 adjacent to the bottom side of the target second KEY, the first KEY adjacent to the target first KEY includes the first KEY1 adjacent to the right side of the target first KEY and the first KEY2 adjacent to the bottom side of the target first KEY, the content of the first KEY1 is the same as that of the second KEY1, and the content of the first KEY2 is the same as that of the second KEY2; According to the position of the target first KEY in the EXECL to be extracted and the position of the first KEY adjacent to the target first KEY, determine the area of the target first VALUE corresponding to the target first KEY in the EXECL to be extracted; According to the area of the target first VALUE, performing data structuring processing on the target first VALUE; The step of determining the area of the target first VALUE corresponding to the target first KEY in the EXECL to be extracted according to the position of the target first KEY in the EXECL to be extracted and the position of the first KEY adjacent to the target first KEY includes: According to the position of the target first KEY, determine the position of the upper left vertex of the target first VALUE area; Determine the position of the upper right vertex of the target first VALUE area according to the position of the first KEY1; Determine the position of the lower left vertex of the target first VALUE area according to the position of the first KEY2; Determine the area of the first VALUE according to the position of the upper left vertex, the position of the upper right vertex, and the position of the lower left vertex of the target first VALUE area; The step of performing data structuring processing on the target first VALUE according to the area of the target first VALUE includes: Acquire the attribute of the target first KEY, where the attribute of the target first KEY includes at least one of a long text attribute, a short text attribute, and an image attribute; According to the attribute of the target first KEY and the area of the target first VALUE, perform data structuring processing on the target first VALUE; The target first KEY is a long text attribute, and the data structured processing is performed on the target first VALUE according to the attribute of the target first KEY and the area of the target first VALUE, including: Acquire the long text content of the target first VALUE from the area of the target first VALUE, and perform word segmentation processing on the long text content; Generate a word vector from the result of the word segmentation processing; Obtaining word segmentation and classification results according to the word vector and the text classification neural network model; Quantify and store the target first VALUE according to the word segmentation and classification result; The target first KEY is a short text attribute, and the data structuring processing is performed on the target first VALUE according to the attribute of the target first KEY and the area of the target first VALUE, including: Acquire the short text content of the target first VALUE from the area of the target first VALUE; Determine the classification result of the short text content according to the short text content and a preset matching algorithm; Quantitatively storing the target first VALUE according to the classification result of the short text content; The target first KEY is an image attribute, the target first VALUE includes a selected area and an unselected area, and the data structuring processing of the target first VALUE according to the attribute of the target first KEY and the area of the target first VALUE includes: Get the position of the first KEY of the target and the position of the first VALUE of the target; Generate a first image including the target first KEY and the target first VALUE according to the position of the target first KEY and the position of the target first VALUE; Determine a selected area of the target first VALUE according to the first image and a preset image classification model; Quantitatively storing the selected area of the target first VALUE; Before obtaining the EXECL to be extracted, it also includes: Obtain an initial EXCEL template, in which there are N second KEYs and N second VALUEs; Convert the initial EXCEL template into a target image, and obtain the position of each cell in the target image; According to the position of each cell, obtain N second KEYs, N positions of the second KEYs, N second VALUEs, and N positions of the second VALUEs; The target EXCEL template is generated according to the N second KEYs, the positions of the N second KEYs, the N second VALUEs, and the positions of the N second VALUEs.
2. An EXCEL data processing device, characterized in that: include: An acquisition module, used for acquiring an EXECL to be extracted, wherein the EXECL to be extracted includes N first KEYs and N first VALUEs corresponding to the first KEYs; A processing module, used for obtaining a target EXCEL template corresponding to the EXECL to be extracted according to the N first KEYs in the EXECL to be extracted; According to the target second KEY in the target EXCEL template and the second KEY adjacent to the target second KEY, determine the position of the target first KEY in the EXECL to be extracted and the position of the first KEY adjacent to the target first KEY; according to the position of the target first KEY in the EXECL to be extracted and the position of the first KEY adjacent to the target first KEY, determine the area of the target first VALUE corresponding to the target first KEY in the EXECL to be extracted; The target EXCEL template contains N second keys matching the first key and N second values corresponding to the second keys; the target first key has the same content as the target second key, the second key adjacent to the target second key includes a second key1 adjacent to the right side of the target second key and a second key2 adjacent to the bottom side of the target second key, the first key adjacent to the target first key includes a first key1 adjacent to the right side of the target first key and a first key2 adjacent to the bottom side of the target first key, the first key1 has the same content as the second key1, and the first key2 has the same content as the second key2; A control module, configured to perform data structuring processing on the target first VALUE according to the area of the target first VALUE; The step of determining the area of the target first VALUE corresponding to the target first KEY in the EXECL to be extracted according to the position of the target first KEY in the EXECL to be extracted and the position of the first KEY adjacent to the target first KEY includes: According to the position of the target first KEY, determine the position of the upper left vertex of the target first VALUE area; Determine the position of the upper right vertex of the target first VALUE area according to the position of the first KEY1; Determine the position of the lower left vertex of the target first VALUE area according to the position of the first KEY2; Determine the area of the first VALUE according to the position of the upper left vertex, the position of the upper right vertex, and the position of the lower left vertex of the target first VALUE area; The step of performing data structuring processing on the target first VALUE according to the area of the target first VALUE includes: Acquire the attribute of the target first KEY, where the attribute of the target first KEY includes at least one of a long text attribute, a short text attribute, and an image attribute; According to the attribute of the target first KEY and the area of the target first VALUE, perform data structuring processing on the target first VALUE; The target first KEY is a long text attribute, and the data structured processing is performed on the target first VALUE according to the attribute of the target first KEY and the area of the target first VALUE, including: Acquire the long text content of the target first VALUE from the area of the target first VALUE, and perform word segmentation processing on the long text content; Generate a word vector from the result of the word segmentation processing; Obtaining word segmentation and classification results according to the word vector and the text classification neural network model; Quantify and store the target first VALUE according to the word segmentation and classification result; The target first KEY is a short text attribute, and the data structuring processing is performed on the target first VALUE according to the attribute of the target first KEY and the area of the target first VALUE, including: Acquire the short text content of the target first VALUE from the area of the target first VALUE; Determine the classification result of the short text content according to the short text content and a preset matching algorithm; Quantitatively storing the target first VALUE according to the classification result of the short text content; The target first KEY is an image attribute, the target first VALUE includes a selected area and an unselected area, and the data structuring processing of the target first VALUE according to the attribute of the target first KEY and the area of the target first VALUE includes: Get the position of the first KEY of the target and the position of the first VALUE of the target; Generate a first image including the target first KEY and the target first VALUE according to the position of the target first KEY and the position of the target first VALUE; Determine a selected area of the target first VALUE according to the first image and a preset image classification model; Quantitatively storing the selected area of the target first VALUE; Before obtaining the EXECL to be extracted, it also includes: Obtain an initial EXCEL template, in which there are N second KEYs and N second VALUEs; Convert the initial EXCEL template into a target image, and obtain the position of each cell in the target image; According to the position of each cell, obtain N second KEYs, N positions of the second KEYs, N second VALUEs, and N positions of the second VALUEs; The target EXCEL template is generated according to the N second KEYs, the positions of the N second KEYs, the N second VALUEs, and the positions of the N second VALUEs.
3. An electronic device, characterized in that: include: A processor, a communication interface and a memory, wherein the processor is communicatively connected to the communication interface and the memory respectively; The memory stores computer-executable instructions; The communication interface communicates and interacts with external devices; The processor executes the computer-executable instructions stored in the memory to implement the method according to claim 1.
4. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the EXCEL data processing method according to claim 1 when executed by a processor.
