WO2021027162A1 - Non-full-cell table content extraction method and apparatus, and terminal device - Google Patents

Non-full-cell table content extraction method and apparatus, and terminal device Download PDF

Info

Publication number
WO2021027162A1
WO2021027162A1 PCT/CN2019/118650 CN2019118650W WO2021027162A1 WO 2021027162 A1 WO2021027162 A1 WO 2021027162A1 CN 2019118650 W CN2019118650 W CN 2019118650W WO 2021027162 A1 WO2021027162 A1 WO 2021027162A1
Authority
WO
WIPO (PCT)
Prior art keywords
keyword
cell
matched
keywords
target
Prior art date
Application number
PCT/CN2019/118650
Other languages
French (fr)
Chinese (zh)
Inventor
唐志辉
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2021027162A1 publication Critical patent/WO2021027162A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases

Definitions

  • This application belongs to the field of computer technology, and in particular relates to a method, device and terminal device for extracting the content of a non-full grid table.
  • the current table data analysis for a typical table, that is, a full grid table, the content of each cell in the table can be read out separately. But for tables with merged cells (merged cells can be merged rows, merged columns, and include merged rows and merged columns at the same time), that is, non-full grid tables, although full grid tables can be obtained by reading non-full grid tables, However, the content of each cell in the full grid table cannot be successfully read, because when there is content in the merged cell that has undergone the merge operation, the read results except for the upper left or upper right corner of the merged cell (depending on The content in the cell in the current view direction is retained, and the data in the remaining cells of the merged cell is empty, which is deleted.
  • the embodiments of the present application provide a method, device, and terminal device for extracting the content of a non-full grid table, so as to solve the problem that the existing content of each cell of a non-full grid table cannot be read completely and cannot be established with high accuracy.
  • Technical issues of the database
  • the first aspect of the embodiments of the present application provides a method for extracting the content of a non-full grid table, including:
  • each cell belonging to the merged cell is filled with the data of the header cell.
  • the second aspect of the embodiments of the present application provides a device for extracting the content of a non-full grid table, including:
  • An obtaining module for obtaining an original form the original form being a non-full grid form
  • the reading module is used to read the original table to obtain a full table, and determine each cell belonging to the same merged cell;
  • the determination module is used to obtain the data of each cell from the full grid table in turn, determine whether the cell whose data is not empty belongs to the header cell or the content cell, and compare the header cell and the content cell mark;
  • the filling module is configured to, if the merged cell includes a header cell, fill each cell belonging to the merged cell with the data of the header cell.
  • a third aspect of the embodiments of the present application provides a terminal device, including a memory and a processor.
  • the memory stores computer-readable instructions that can run on the processor.
  • the processor executes the computer When reading instructions, the following steps are implemented:
  • each cell belonging to the merged cell is filled with the data of the header cell.
  • the fourth aspect of the embodiments of the present application provides a computer-readable storage medium that stores computer-readable instructions, and the computer-readable instructions implement the following steps when executed by a processor:
  • each cell belonging to the merged cell is filled with the data of the header cell.
  • the embodiment of the application has the beneficial effect that: through the embodiment of the application, the non-full grid table is regularized into a full grid table, so that the data of each cell can be accurately read, and The title cell and content cell are marked, which improves the accuracy of subsequent data sorting and lays a solid foundation for helping to build a more accurate database.
  • FIG. 1 is a schematic flowchart of a method for extracting the content of a non-full grid table in an embodiment of the application
  • Figure 2 is a schematic flowchart of another method for extracting the content of a non-full grid table in an embodiment of the application
  • FIG. 3 is a schematic flowchart of another method for extracting the content of a non-full grid table in an embodiment of the application
  • FIG. 4 is a schematic flowchart of another method for extracting the content of a non-full grid table in an embodiment of the application
  • FIG. 5 is a schematic structural diagram of a device for extracting the content of a non-full grid table in an embodiment of the application
  • Fig. 6 is a schematic block diagram of a terminal device in an embodiment of the application.
  • FIG. 1 shows the implementation process of a method for extracting the content of a non-full grid table provided by an embodiment of the present application.
  • the process of the method includes steps S101 to S104. This method is suitable for situations that need to read data from non-full grid tables.
  • the method is executed by a non-full grid form content extraction device, which is configured in a terminal device and can be implemented by software and/or hardware.
  • the specific implementation principle of each step is as follows.
  • the terminal device obtains the original table, which is a non-full grid table, and then performs data extraction on the non-full grid table to complete the process of regularizing the non-full grid table into a full grid table.
  • a non-full grid table is a table that includes merged cells.
  • the merged cell can be a merged row, and/or parallel, and/or a merged cell that includes both merged rows and merged columns.
  • Non-full grid table is a concept opposite to full grid table.
  • a full grid table is a table that does not include merged cells.
  • the non-full grid table is processed, it is only required that the original table is a non-full grid table, and the style and content of the non-full grid table are not limited.
  • S102 Read the original table to obtain a full table, and determine each cell belonging to the same merged cell.
  • POI technology is used to read the original table to obtain a full grid table, and each cell belonging to the same merged cell is determined. That is to say, the full grid table is obtained by reading the non-full grid table through the POI technology, and each cell belonging to the same merged cell in the full grid table is determined. It should be noted that if there is data in the merged cell in the non-full grid table before reading, then in the read result, the data in the upper left or upper right corner of the corresponding merged cell is retained, and the data in the remaining cells The data is empty.
  • the POI is Apache POI, which is an open source library of the Apache Software Foundation.
  • the POI provides APIs for Java programs to read and write Microsoft Office format files.
  • the cell When using the POI technology to read the original table, determine whether the cell belongs to the merged cell and determine the cells included in the merged cell. For example, through getMergedRegion() to obtain the merged area, that is, merged cells, through getFirstRow(), getLastRow(), getFirstColumn(), and getLastColumn() to obtain the starting row, ending row, and starting column of the merged cell, respectively. And the end column, which determines the firstRow, lastRow, firstCol, and lastCol of each merged cell.
  • the number of merged cells can also be obtained, for example, the number of merged cells can be obtained by getNumMergedRegions(). This application does not exclude these situations.
  • the cell with "null" read result in the full grid table has empty data.
  • the cell in the first row and the first column and the cell in the second row and the first column belong to the merged cell of the same merged column; the first row and second column
  • the cell in the second row and the second column belong to the merged cell of the same merged column;
  • the cell in the first row, third column and the first row and fourth column belong to the merged cell of the same merge row Cell;
  • the cell in the first row and fifth column and the cell in the first row and sixth column belong to the merged cell of the same merged row.
  • S103 Obtain the data of each cell from the full grid table in sequence, determine whether the cell whose data is not empty belongs to a header cell or a content cell, and mark the header cell and the content cell.
  • the non-full grid table is read as a full grid table, and the data of each cell is read, even if it includes cells with empty data. After that, determine whether the cell whose data is not empty belongs to the header cell or the content cell, and mark the header cell and the content cell.
  • the title cell and the content cell are distinguished, which provides an accurate data basis for subsequent data combing, and improves table-based data To establish the accuracy of the database.
  • the process of determining whether a cell whose data is not empty in step 103 belongs to a title cell or a content cell includes the following steps 201 to 203.
  • the title keyword database is a thesaurus composed of keywords extracted in advance from the title cells of multiple tables.
  • the TF-IDF algorithm can be used to extract the title keyword database of a table from multiple, for example, 100 tables to be extracted.
  • the TF-IDF algorithm is used to extract the preset title keyword database from multiple tables as a thesaurus composed of keywords such as amount, serial number, establishment, time, registered capital, and quantity.
  • the cell data is subjected to word segmentation processing to obtain a number of keywords to be matched, and similar keywords that are similar to the keywords to be matched in the preset title keyword library are filtered out.
  • word segmentation processing to obtain a number of keywords to be matched, and similar keywords that are similar to the keywords to be matched in the preset title keyword library are filtered out.
  • the embodiments of this application do not limit the specific word segmentation processing methods, and all existing word segmentation processing methods can be used to implement this application.
  • filtering out similar keywords that are similar to the keywords to be matched that exist in a preset title keyword database including:
  • unmatched target keywords from the title keyword database match the target keywords with the keywords to be matched obtained after word segmentation processing to obtain the matching degree, continue to obtain the next unmatched target keywords and The target keyword is matched with the keyword to be matched to obtain the matching degree, until there is no unmatched target keyword in the title keyword library, and the target keyword with the highest matching degree and meeting the preset condition is regarded as the similar keyword.
  • each keyword in the title keyword library is matched with the keyword to be matched to obtain a matching degree, and the target keyword with the highest matching degree and meeting preset conditions is taken as the similarity key word.
  • the preset condition may be that the matching degree is greater than or equal to a preset threshold.
  • the preset threshold is an empirical value, which can be set according to requirements. For example, if the similarity is used to characterize the matching degree, the preset threshold can be 0.8 or 0.9, or it can be any value in the range of the two, and it can also be a number greater than 0.9 and less than or equal to 1. The description is only exemplary, and this application does not specifically limit this.
  • matching the target keyword with the keyword to be matched obtained after word segmentation processing to obtain the matching degree includes the following steps 301 to 302.
  • S301 Pre-make a dictionary containing a large number of characters as a preset character set, and each character in the character set is represented by an N-dimensional vector representing its position in the character set, where N is the number of words in the character set.
  • each character in this character set is arranged in sequence and has a corresponding arrangement position in the character set.
  • the embodiment of this application collects a large number of articles in advance, and counts the words contained in these articles, calculates the appearance frequency corresponding to each word, and finally stores the words contained in these articles in the descending order of appearance frequency
  • the word set in the embodiment of this application is generated.
  • the character set contains 6 characters, it should be noted that there are far more than 6 characters in the character set that are actually used.
  • S302 Split the target keyword and the keyword to be matched into several words, and combine to form the target keyword vector corresponding to the target keyword and the key to be matched of the keyword to be matched by searching the N-dimensional vector of each word
  • the word vector calculates the vector similarity between the target keyword vector and the keyword vector to be matched, and uses the vector similarity as the matching degree between the target keyword and the keyword to be matched.
  • each target keyword is divided into target keywords, and the N-dimensional vector of each target keyword is searched to form the target keyword vector; the same processing method , Split each keyword to be matched into keywords to be matched, and combine to form a keyword vector to be matched by searching the N-dimensional vector of each keyword to be matched. Then, the similarity between the target keyword vector and the keyword vector to be matched is calculated, and the similarity is taken as the degree of matching between the target keyword and the keyword to be matched.
  • the vector similarity calculation formula can be:
  • the target keyword vector is A
  • the element composition is Ai
  • the keyword vector to be matched is B
  • the element composition is B i
  • the vector similarity calculation method may also use the similarity calculation method in the prior art, which is not specifically limited in this application.
  • the N-dimensional vectors of the two keywords are [1, 0, 0, 0, 0, 0] and [0, 1, 0, 0]. ,0,0], the combination of the target keyword vector is [1,1,0,0,0,0]; if the keyword to be matched is split into two keywords to be matched, find the two keywords to be matched.
  • the N-dimensional vectors are [0, 1, 0, 0, 0] and [0, 0, 1, 0, 0, 0], and the combination to form the keyword vector to be matched is [0, 1, 1, 0, 0,0]. Calculate the vector similarity between [1, 1, 0, 0, 0, 0] and [0, 1, 1, 0, 0, 0] as 0.5.
  • S202 Calculate the similarity between a first keyword set composed of a number of keywords to be matched with respect to a second keyword set composed of similar keywords.
  • step 202 includes the following steps 401 to 403.
  • a number of keywords to be matched are formed into a first keyword set; similar keywords are formed into a second keyword set; and a number of keywords to be matched and similar keywords are formed into a target set.
  • S402 Calculate a first word frequency vector of the first keyword set relative to the target set, and calculate a second word frequency vector of the second keyword set relative to the target set.
  • S403 Calculate the similarity between the first word frequency vector and the second word frequency vector as the similarity between the first keyword set and the second keyword set.
  • the first keyword set ⁇ total, amount ⁇ composed of several keywords to be matched, and the second keyword set composed of similar keywords is ⁇ amount ⁇ ;
  • the keywords to be matched ⁇ total, amount ⁇ and similar keys The target set of words ⁇ amount ⁇ is ⁇ total, amount ⁇ ;
  • the preset threshold in step 203 is an empirical value, which can be set according to requirements.
  • the preset threshold value can be 0.8 or 0.9, or it can be any value in the range of the two, it can also be a number smaller than 0.8, or a number larger than 0.9 and less than or equal to 1. This is only an exemplary description, and this application does not specifically limit this.
  • the embodiment of the application provides a quantitative way to accurately distinguish whether a cell is a title cell or a content cell, which provides an accurate data basis for subsequent database establishment.
  • S104 If the merged cell includes a header cell, all cells belonging to the merged cell are filled with data of the header cell.
  • step 102 it is determined in step 102 which cells belong to the same merged cell, and in step 103, it is determined whether each cell belongs to a header cell or a content cell. Therefore, in step 104, when the merged cell includes a header cell In the case of a cell, each cell belonging to the merged cell is filled with the data of the header cell. In other words, for a cell with non-empty data in a merged cell, if the cell is a header cell, fill the header cell with data that belongs to the same merged cell and the data is empty In the cell.
  • the merged cell only the data of the merged cell including the header cell is filled, that is, when the merged cell includes the header cell, the header cell is filled until the merged cell includes In the remaining cells.
  • the header cell and the content cell do not belong to the same merged cell, and multiple content cells do not belong to the same merged cell. Therefore, in this embodiment of the application, the merged cell only includes the content unit In the case of grids, the data in the remaining cells are not filled because it may be caused by data upload errors, so as to avoid further filling of data, which will cause greater deviations in subsequent database creation.
  • step 103 determines that "serial number”, “shareholder name”, "before merger” and “after merger” are header cells, and it is determined that "serial number” and "name of shareholder” belong to the merger unit of the merger bank Grid; "Before absorption and merge” and “After absorption and merge” belong to the merged cells of the merged column. Fill each cell after the split with the corresponding header cell, as follows:
  • the non-full grid table is normalized into a full grid table, so that the data of each cell can be accurately read, and the title cell and content cell are marked, which improves The accuracy rate of subsequent data sorting has been improved, which lays a solid foundation for helping to establish a more accurate database.
  • FIG. 5 shows a schematic structural diagram of a device for extracting the content of a non-full grid table provided by an embodiment of the present application.
  • the device for extracting the content of the non-full grid table includes:
  • the obtaining module 51 is configured to obtain an original form, and the original form is a non-full grid form;
  • the reading module 52 is configured to read the original table to obtain a full grid table and determine each cell belonging to the same merged cell;
  • the judging module 53 is used to sequentially obtain the data of each cell from the full grid table, determine whether the cell whose data is not empty belongs to a header cell or a content cell, and compare the header cell and the content cell Mark
  • the filling module 54 is configured to, if the merged cell includes a header cell, fill each cell belonging to the merged cell with the data of the header cell.
  • whether the cell for determining whether the data is not empty belongs to a title cell or a content cell, including:
  • the cell is a title cell; otherwise, the cell is a content cell.
  • the calculating the similarity of the first keyword set composed of several keywords to be matched with respect to the second keyword set composed of similar keywords includes:
  • Group several keywords to be matched into a first keyword set Group similar keywords into a second keyword set; Group several keywords to be matched and similar keywords into a target set;
  • the similarity between the first word frequency vector and the second word frequency vector is calculated as the similarity between the first keyword set and the second keyword set.
  • the filtering out similar keywords existing in a preset title keyword library that are similar to the keywords to be matched includes:
  • unmatched target keywords from the title keyword database match the target keywords with the keywords to be matched obtained after word segmentation processing to obtain the matching degree, continue to obtain the next unmatched target keywords and The target keyword is matched with the keyword to be matched to obtain the matching degree, until there is no unmatched target keyword in the title keyword library, and the target keyword with the highest matching degree and meeting the preset condition is regarded as the similar keyword.
  • the matching the target keyword with the keyword to be matched obtained after word segmentation processing to obtain the matching degree includes:
  • a dictionary containing a large number of characters as a preset character set Pre-create a dictionary containing a large number of characters as a preset character set.
  • Each character in the character set is represented by an N-dimensional vector representing its position in the character set, where N is the number of words in the character set;
  • FIG. 6 shows a schematic block diagram of a terminal device provided by an embodiment of the present application. For ease of description, only parts related to the embodiment of the present application are shown.
  • the terminal device 6 may be a local terminal device or a cloud terminal device.
  • the terminal device 6 may include a processor 60, a memory 61, and computer-readable instructions 62 that are stored in the memory 61 and can run on the processor 60.
  • the processor 60 executes the computer-readable instructions 62, the steps of the above embodiments of the method for extracting the content of a non-full grid table are implemented, or the processor 60 implements the above virtual devices when the computer-readable instructions 62 are executed
  • the functions of each module/unit in the embodiment are, for example, the functions of the modules 501 to 504 shown in FIG. 5.
  • the computer-readable instructions 62 may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 61 and executed by the processor 60, To complete this application.
  • the one or more modules/units may be a series of computer-readable instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer-readable instructions 62 in the terminal device 6.
  • the processor 60 may be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the memory 61 may be an internal storage unit of the terminal device 6, such as a hard disk or memory of the terminal device 6.
  • the memory 61 may also be an external storage device of the terminal device 6, such as a plug-in hard disk equipped on the terminal device 6, a smart memory card (Smart Media Card, SMC), or a Secure Digital (SD) Card, Flash Card, etc. Further, the memory 61 may also include both an internal storage unit of the terminal device 6 and an external storage device.
  • the memory 61 is used to store the computer-readable instructions and other instructions and data required by the terminal device 6.
  • the memory 61 can also be used to temporarily store data that has been output or will be output.
  • Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • ROM read only memory
  • PROM programmable ROM
  • EPROM electrically programmable ROM
  • EEPROM electrically erasable programmable ROM
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • each unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the integrated module/unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • this application implements all or part of the procedures in the above-mentioned embodiments and methods, and can also be completed by instructing relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium.
  • the computer-readable instruction is executed by the processor, the steps of the foregoing method embodiments can be implemented.

Abstract

A non-full-cell table content extraction method and apparatus, and a terminal device. The method comprises: obtaining an original table, wherein the original table is a non-full-cell table (S101); reading the original table to obtain a full-cell table, and determining all the cells belonging to the same merged cell (S102); sequentially obtaining the data of each cell from the full-cell table, determining whether the cell with the data being not empty is a title cell or a content cell, and marking the title cell and the content cell (S103); and if the merged cell comprises the title cell, filling each cell of the merged cell with the data of the title cell (S104). By means of the method, the non-full-cell table is regularized into the full-cell table, thereby realizing the accurate reading of the data of each cell, and marking the title cell and the content cell.

Description

一种非满格表格内容提取方法、装置及终端设备Method, device and terminal equipment for extracting content of non-full grid table
本申请要求于2019年8月9日提交中国专利局、申请号为201910744823.8、发明名称为“一种非满格表格内容提取方法、装置及终端设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on August 9, 2019, the application number is 201910744823.8, and the title of the invention is "a method, device and terminal equipment for extracting the content of a non-full form form", and its entire content Incorporated in this application by reference.
技术领域Technical field
本申请属于计算机技术领域,尤其涉及一种非满格表格内容提取方法、装置及终端设备。This application belongs to the field of computer technology, and in particular relates to a method, device and terminal device for extracting the content of a non-full grid table.
背景技术Background technique
目前的表格数据解析,对于典型的表格,即满格表格可以将表格中每个单元格的内容分别读出来。但是对于存在合并单元格(合并单元格可以为合并行、合并列、以及同时包括合并行与合并列)的表格,即非满格表格,虽然可以通过读取非满格表格获得满格表格,但是却无法成功读取出满格表格中每个单元格的内容,因为在进行了合并操作的合并单元格存在内容时,读取的结果中,除了合并单元格中左上角或右上角(取决于当前的视图方向)的单元格中的内容被保留,合并单元格的其余单元格的数据为空,即被删除。The current table data analysis, for a typical table, that is, a full grid table, the content of each cell in the table can be read out separately. But for tables with merged cells (merged cells can be merged rows, merged columns, and include merged rows and merged columns at the same time), that is, non-full grid tables, although full grid tables can be obtained by reading non-full grid tables, However, the content of each cell in the full grid table cannot be successfully read, because when there is content in the merged cell that has undergone the merge operation, the read results except for the upper left or upper right corner of the merged cell (depending on The content in the cell in the current view direction is retained, and the data in the remaining cells of the merged cell is empty, which is deleted.
另外,在无法预知表格的形式的时候,无从确定哪一个单元格是表的标题,哪一个单元格是表的内容,无法准确地进行数据梳理从而导致建立的数据库准确度不高。In addition, when the form of the table cannot be predicted, it is impossible to determine which cell is the title of the table and which cell is the content of the table, and data cannot be combed accurately, resulting in low accuracy of the established database.
发明概述Summary of the invention
技术问题technical problem
有鉴于此,本申请实施例提供了一种非满格表格内容提取方法、装置及终端设备,以解决现有的无法完全读取非满格表格各单元格的内容,无法建立精准度高的数据库的技术问题。In view of this, the embodiments of the present application provide a method, device, and terminal device for extracting the content of a non-full grid table, so as to solve the problem that the existing content of each cell of a non-full grid table cannot be read completely and cannot be established with high accuracy. Technical issues of the database.
问题的解决方案The solution to the problem
技术解决方案Technical solutions
本申请实施例的第一方面提供了一种非满格表格内容提取方法,包括:The first aspect of the embodiments of the present application provides a method for extracting the content of a non-full grid table, including:
获取原始表格,所述原始表格为非满格表格;Obtaining an original form, the original form being a non-full grid form;
对所述原始表格进行读取,得到满格表格,并确定出属于同一个合并单元格的各单元格;Read the original table to obtain a full table, and determine each cell belonging to the same merged cell;
依次从所述满格表格中获取各个单元格的数据,判定数据不为空的单元格是属于标题单元格,还是属于内容单元格,并将标题单元格和内容单元格进行标记;Obtain the data of each cell from the full grid table in turn, determine whether the cell whose data is not empty belongs to a header cell or a content cell, and mark the header cell and the content cell;
若所述合并单元格中包括标题单元格,则将属于所述合并单元格的各单元格均用所述标题单元格的数据进行填充。If the merged cell includes a header cell, each cell belonging to the merged cell is filled with the data of the header cell.
本申请实施例的第二方面提供了一种非满格表格内容提取装置,包括:The second aspect of the embodiments of the present application provides a device for extracting the content of a non-full grid table, including:
获取模块,用于获取原始表格,所述原始表格为非满格表格;An obtaining module for obtaining an original form, the original form being a non-full grid form;
读取模块,用于对所述原始表格进行读取,得到满格表格,并确定出属于同一个合并单元格的各单元格;The reading module is used to read the original table to obtain a full table, and determine each cell belonging to the same merged cell;
判定模块,用于依次从所述满格表格中获取各个单元格的数据,判定数据不为空的单元格是属于标题单元格,还是属于内容单元格,并将标题单元格和内容单元格进行标记;The determination module is used to obtain the data of each cell from the full grid table in turn, determine whether the cell whose data is not empty belongs to the header cell or the content cell, and compare the header cell and the content cell mark;
填充模块,用于若所述合并单元格中包括标题单元格,则将属于所述合并单元格的各单元格均用所述标题单元格的数据进行填充。The filling module is configured to, if the merged cell includes a header cell, fill each cell belonging to the merged cell with the data of the header cell.
本申请实施例的第三方面提供了一种终端设备,包括存储器以及处理器,所述存储器中存储有可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时,实现如下步骤:A third aspect of the embodiments of the present application provides a terminal device, including a memory and a processor. The memory stores computer-readable instructions that can run on the processor. The processor executes the computer When reading instructions, the following steps are implemented:
获取原始表格,所述原始表格为非满格表格;Obtaining an original form, the original form being a non-full grid form;
对所述原始表格进行读取,得到满格表格,并确定出属于同一个合并单元格的各单元格;Read the original table to obtain a full table, and determine each cell belonging to the same merged cell;
依次从所述满格表格中获取各个单元格的数据,判定数据不为空的单元格是属于标题单元格,还是属于内容单元格,并将标题单元格和内容单元格进行标记;Obtain the data of each cell from the full grid table in turn, determine whether the cell whose data is not empty belongs to a header cell or a content cell, and mark the header cell and the content cell;
若所述合并单元格中包括标题单元格,则将属于所述合并单元格的各单元格均用所述标题单元格的数据进行填充。If the merged cell includes a header cell, each cell belonging to the merged cell is filled with the data of the header cell.
本申请实施例的第四方面提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,所述计算机可读指令被处理器执行时实现如下步骤:The fourth aspect of the embodiments of the present application provides a computer-readable storage medium that stores computer-readable instructions, and the computer-readable instructions implement the following steps when executed by a processor:
获取原始表格,所述原始表格为非满格表格;Obtaining an original form, the original form being a non-full grid form;
对所述原始表格进行读取,得到满格表格,并确定出属于同一个合并单元格的各单元格;Read the original table to obtain a full table, and determine each cell belonging to the same merged cell;
依次从所述满格表格中获取各个单元格的数据,判定数据不为空的单元格是属于标题单元格,还是属于内容单元格,并将标题单元格和内容单元格进行标记;Obtain the data of each cell from the full grid table in turn, determine whether the cell whose data is not empty belongs to a header cell or a content cell, and mark the header cell and the content cell;
若所述合并单元格中包括标题单元格,则将属于所述合并单元格的各单元格均用所述标题单元格的数据进行填充。If the merged cell includes a header cell, each cell belonging to the merged cell is filled with the data of the header cell.
发明的有益效果The beneficial effects of the invention
有益效果Beneficial effect
本申请实施例与现有技术相比存在的有益效果是:通过本申请实施例,将非满格表格规整化处理为满格表格,实现了将每个单元格的数据准确读取出来,并且标记了标题单元格和内容单元格,提高了后续数据梳理的准确率,为帮助建立更精准的数据库打好了基础。Compared with the prior art, the embodiment of the application has the beneficial effect that: through the embodiment of the application, the non-full grid table is regularized into a full grid table, so that the data of each cell can be accurately read, and The title cell and content cell are marked, which improves the accuracy of subsequent data sorting and lays a solid foundation for helping to build a more accurate database.
对附图的简要说明Brief description of the drawings
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only of the present application. For some embodiments, for those of ordinary skill in the art, other drawings can be obtained from these drawings without creative labor.
图1为本申请实施例中一种非满格表格内容提取方法的示意流程图;FIG. 1 is a schematic flowchart of a method for extracting the content of a non-full grid table in an embodiment of the application;
图2为本申请实施例中另一种非满格表格内容提取方法的示意流程图Figure 2 is a schematic flowchart of another method for extracting the content of a non-full grid table in an embodiment of the application
图3为本申请实施例中另一种非满格表格内容提取方法的示意流程图;3 is a schematic flowchart of another method for extracting the content of a non-full grid table in an embodiment of the application;
图4为本申请实施例中另一种非满格表格内容提取方法的示意流程图;4 is a schematic flowchart of another method for extracting the content of a non-full grid table in an embodiment of the application;
图5为本申请实施例中一种非满格表格内容提取装置的结构示意图;5 is a schematic structural diagram of a device for extracting the content of a non-full grid table in an embodiment of the application;
图6为本申请实施例中一种终端设备的示意框图。Fig. 6 is a schematic block diagram of a terminal device in an embodiment of the application.
发明实施例Invention embodiment
本发明的实施方式Embodiments of the invention
为了说明本申请所述的技术方案,下面通过具体实施例来进行说明。In order to illustrate the technical solutions described in the present application, specific embodiments are used for description below.
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that the embodiments in this application and the features in the embodiments can be combined with each other if there is no conflict. Hereinafter, the present application will be described in detail with reference to the drawings and in conjunction with embodiments.
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚,完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the solution of the application, the technical solutions in the embodiments of the application will be described clearly and completely in conjunction with the drawings in the embodiments of the application. Obviously, the described embodiments are only It is a part of the embodiments of this application, not all the embodiments. Based on the embodiments in this application, for those of ordinary skill in the art, all other embodiments obtained without creative labor should fall within the protection scope of this application.
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as a specific system structure and technology are proposed for a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from obstructing the description of this application.
需要说明的是,在本申请的说明书、权利要求书及附图中的术语中涉及“第一”或“第二”等的描述仅用于区别类似的对象,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量,也就是说,这些描述不必用于描述特定的顺序或先后次序。此外,应该理解这些描述在适当情况下可以互换,以便描述本申请的实施例。It should be noted that the descriptions involving “first” or “second” in the terms in the specification, claims, and drawings of this application are only used to distinguish similar objects, and cannot be understood as indicating or implying them. The relative importance or implicitly indicates the number of the indicated technical features, that is, these descriptions need not be used to describe a specific order or sequence. In addition, it should be understood that these descriptions can be interchanged under appropriate circumstances in order to describe the embodiments of the present application.
图1示出了本申请实施例提供的一种非满格表格内容提取方法的实现流程,该方法流程包括步骤S101至S104。该方法适用于需要对非满格表格进行数据读取的情形。该方法由非满格表格内容提取装置执行,所述非满格表格内容提取装置配置于终端设备,可由软件和/或硬件实现。各步骤的具体实现原理如下。FIG. 1 shows the implementation process of a method for extracting the content of a non-full grid table provided by an embodiment of the present application. The process of the method includes steps S101 to S104. This method is suitable for situations that need to read data from non-full grid tables. The method is executed by a non-full grid form content extraction device, which is configured in a terminal device and can be implemented by software and/or hardware. The specific implementation principle of each step is as follows.
S101,获取原始表格,所述原始表格为非满格表格。S101. Obtain an original table, where the original table is a non-full grid table.
其中,终端设备获取原始表格,原始表格为非满格表格,然后对非满格表格进行数据提取,以完成将非满格表格规整化处理成满格表格的过程。Among them, the terminal device obtains the original table, which is a non-full grid table, and then performs data extraction on the non-full grid table to complete the process of regularizing the non-full grid table into a full grid table.
需要说明的是,非满格表格为包括合并单元格的表格。合并单元格可以为合并行,和/或和并列,和/或同时包括合并行与合并列的合并单元格。非满格表格是与满格表格相对的概念。满格表格是不包括合并单元格的表格。It should be noted that a non-full grid table is a table that includes merged cells. The merged cell can be a merged row, and/or parallel, and/or a merged cell that includes both merged rows and merged columns. Non-full grid table is a concept opposite to full grid table. A full grid table is a table that does not include merged cells.
在本申请实施例中,因为仅对非满格表格进行处理,因此只要求原始表格为非满格表格即可,并不限制非满格表格的样式和内容。In the embodiment of the present application, because only the non-full grid table is processed, it is only required that the original table is a non-full grid table, and the style and content of the non-full grid table are not limited.
示例性地,原始表格为如下表1所示:Illustratively, the original table is as shown in Table 1 below:
表1:Table 1:
Figure PCTCN2019118650-appb-000001
Figure PCTCN2019118650-appb-000001
S102,对原始表格进行读取,得到满格表格,并确定出属于同一个合并单元格的各单元格。S102: Read the original table to obtain a full table, and determine each cell belonging to the same merged cell.
其中,利用POI技术对原始表格进行读取,得到满格表格,并确定出属于同一个合并单元格的各单元格。也就是说,通过POI技术读取非满格表格获得满格表格,并确定出满格表格中属于同一个合并单元格的各单元格。需要说明的是,若读取前非满格表格中的合并单元格存在数据,那么读取结果中,对应合并单元格中左上角或右上角的单元格内的数据被保留,其余单元格的数据为空。Among them, POI technology is used to read the original table to obtain a full grid table, and each cell belonging to the same merged cell is determined. That is to say, the full grid table is obtained by reading the non-full grid table through the POI technology, and each cell belonging to the same merged cell in the full grid table is determined. It should be noted that if there is data in the merged cell in the non-full grid table before reading, then in the read result, the data in the upper left or upper right corner of the corresponding merged cell is retained, and the data in the remaining cells The data is empty.
在本实施例中,POI为Apache POI,是Apache软件基金会的开放源码函式库,POI提供API给Java程序对Microsoft Office格式档案读和写的功能。In this embodiment, the POI is Apache POI, which is an open source library of the Apache Software Foundation. The POI provides APIs for Java programs to read and write Microsoft Office format files.
在利用POI技术读取原始表格时,判定单元格是否属于合并单元格并确定合并单元格包括的各单元格。例如,通过getMergedRegion()获得合并区域,即合并单元格,通过getFirstRow(),getLastRow(),getFirstColumn(),以及getLastColumn(),分别获得合并单元格的起始行,结束行,起始列,以及结束列,即确定每个 合并单元格的firstRow,lastRow,firstCol,以及lastCol。When using the POI technology to read the original table, determine whether the cell belongs to the merged cell and determine the cells included in the merged cell. For example, through getMergedRegion() to obtain the merged area, that is, merged cells, through getFirstRow(), getLastRow(), getFirstColumn(), and getLastColumn() to obtain the starting row, ending row, and starting column of the merged cell, respectively. And the end column, which determines the firstRow, lastRow, firstCol, and lastCol of each merged cell.
可以理解的是,通过POI技术读取原始表格,还可以获得合并单元格的数量,例如通过getNumMergedRegions()获得合并单元格的数量等,本申请并不排除这些情况。It is understandable that by reading the original table through the POI technology, the number of merged cells can also be obtained, for example, the number of merged cells can be obtained by getNumMergedRegions(). This application does not exclude these situations.
示例性地,延续步骤101的示例,利用POI技术读取所述原始表格,如表1,得到对应的满格表格为如下表2所示:Exemplarily, continuing the example of step 101, using POI technology to read the original table, as shown in Table 1, and the corresponding full grid table is obtained as shown in Table 2 below:
表2:Table 2:
[Table 1][Table 1]
序号Serial number 股东名称Shareholder name 吸收合并前Before the merger nullnull 吸收合并后After the merger nullnull
nullnull nullnull 出资额Contribution 股权比例Equity ratio 出资额Contribution 股权比例Equity ratio
11 XXX1XXX1 800800 33.34%33.34% 817817 33.34%33.34%
22 XXX2XXX2 800800 33.33%33.33% 816.5816.5 33.33%33.33%
33 XXX3XXX3 800800 33.33%33.33% 816.5816.5 33.33%33.33%
nullnull 合计total 24002400 100%100% 24502450 100%100%
其中,满格表格中读取结果为“null”的单元格,数据为空。Among them, the cell with "null" read result in the full grid table has empty data.
利用POI技术读取原始表格获得满格表格,将会确定第一行第一列的单元格和第二行第一列的单元格属于同一个合并列的合并单元格;第一行第二列的单元格和第二行第二列的单元格属于同一个合并列的合并单元格;第一行第三列的单元格和第一行第四列的单元格属于同一个合并行的合并单元格;第一行第五列的单元格和第一行第六列的单元格属于同一个合并行的合并单元格。Using POI technology to read the original table to obtain a full grid table, it will be determined that the cell in the first row and the first column and the cell in the second row and the first column belong to the merged cell of the same merged column; the first row and second column The cell in the second row and the second column belong to the merged cell of the same merged column; the cell in the first row, third column and the first row and fourth column belong to the merged cell of the same merge row Cell; the cell in the first row and fifth column and the cell in the first row and sixth column belong to the merged cell of the same merged row.
S103,依次从所述满格表格中获取各个单元格的数据,判定数据不为空的单元格是属于标题单元格,还是属于内容单元格,并将标题单元格和内容单元格进行标记。S103: Obtain the data of each cell from the full grid table in sequence, determine whether the cell whose data is not empty belongs to a header cell or a content cell, and mark the header cell and the content cell.
其中,经过步骤102之后,将非满格表格读取成满格表格,并且读取出了各个单元格的数据,即使其中包括数据为空的单元格。在此之后,判定数据不为空的单元格是属于标题单元格,还是属于内容单元格,并将标题单元格和内容单 元格进行标记。Among them, after step 102, the non-full grid table is read as a full grid table, and the data of each cell is read, even if it includes cells with empty data. After that, determine whether the cell whose data is not empty belongs to the header cell or the content cell, and mark the header cell and the content cell.
在本申请实施例中,通过对单元格标记为标题单元格或内容单元格,从而将标题单元格与内容单元格进行了区分,对后续数据梳理提供了准确的数据基础,提高了基于表格数据来建立数据库的准确度。In the embodiments of the present application, by marking the cell as a title cell or a content cell, the title cell and the content cell are distinguished, which provides an accurate data basis for subsequent data combing, and improves table-based data To establish the accuracy of the database.
可选地,作为本申请一实施例,步骤103中判定数据不为空的单元格是属于标题单元格,还是属于内容单元格的过程,如图2所示,包括如下步骤201至203。S201,将单元格的数据进行分词处理得到若干个待匹配关键词,并筛选出存在于预设的标题关键词库中的与待匹配关键词相似的相似关键词。Optionally, as an embodiment of the present application, the process of determining whether a cell whose data is not empty in step 103 belongs to a title cell or a content cell, as shown in FIG. 2, includes the following steps 201 to 203. S201: Perform word segmentation processing on cell data to obtain several keywords to be matched, and filter out similar keywords that are similar to the keywords to be matched in a preset title keyword library.
其中,标题关键词库为由预先提取多个表格的标题单元格的关键词组成的词库。Wherein, the title keyword database is a thesaurus composed of keywords extracted in advance from the title cells of multiple tables.
本申请实施例中,可以使用TF-IDF算法从多个,例如100个待提取的表格中,提取表格的标题关键词库。In the embodiment of the present application, the TF-IDF algorithm can be used to extract the title keyword database of a table from multiple, for example, 100 tables to be extracted.
示例性地,使用TF-IDF算法从多个表格中提取出预设的标题关键词库为由金额、序号、成立、时间、注册资本、数量等关键词组成的词库。Exemplarily, the TF-IDF algorithm is used to extract the preset title keyword database from multiple tables as a thesaurus composed of keywords such as amount, serial number, establishment, time, registered capital, and quantity.
将单元格的数据进行分词处理得到若干个待匹配关键词,并筛选出存在于预设的标题关键词库中的与待匹配关键词相似的相似关键词。其中,本申请实施例不限制分词处理的具体方式,现有的分词处理方式均可用于实现本申请。The cell data is subjected to word segmentation processing to obtain a number of keywords to be matched, and similar keywords that are similar to the keywords to be matched in the preset title keyword library are filtered out. Among them, the embodiments of this application do not limit the specific word segmentation processing methods, and all existing word segmentation processing methods can be used to implement this application.
示例性地,当非空单元格的数据为“总共金额”时,利用THULAC分词器进行分词处理,得到两个关键词“总共”和“金额”,筛选出这两个关键词中存在于标题关键词库中相似关键词为“金额”,不同关键词为“总共”。Exemplarily, when the data in a non-empty cell is "total amount", use the THULAC tokenizer for word segmentation to obtain two keywords "total" and "amount", and filter out the two keywords that exist in the title Similar keywords in the keyword database are "amount", and different keywords are "total".
可选地,作为本申请一实施例,S201中,筛选出存在于预设的标题关键词库中的与待匹配关键词相似的相似关键词,包括:Optionally, as an embodiment of the present application, in S201, filtering out similar keywords that are similar to the keywords to be matched that exist in a preset title keyword database, including:
从标题关键词库中获取未被匹配过的目标关键词,将目标关键词与分词处理后得到的待匹配关键词进行匹配得到匹配度,继续获取下一个未被匹配过的目标关键词并将目标关键词与待匹配关键词进行匹配得到匹配度,直至标题关键词库中不存在未被匹配过的目标关键词,将匹配度最高且满足预设条件的目标关键词作为相似关键词。Obtain unmatched target keywords from the title keyword database, match the target keywords with the keywords to be matched obtained after word segmentation processing to obtain the matching degree, continue to obtain the next unmatched target keywords and The target keyword is matched with the keyword to be matched to obtain the matching degree, until there is no unmatched target keyword in the title keyword library, and the target keyword with the highest matching degree and meeting the preset condition is regarded as the similar keyword.
其中,针对每个待匹配关键词而言,将标题关键词库中的每个关键词与待匹配 关键词进行匹配得到匹配度,将匹配度最高且满足预设条件的目标关键词作为相似关键词。预设条件可以为匹配度大于或等于预设阈值,本领域技术人员知晓预设阈值为经验值,可以根据需求设置。例如若将相似度表征匹配度时,预设阈值可以为0.8或0.9,也可以为两者组成的数值区间中的任一数值,也可以为比0.9更大的小于或等于1的数,此处仅为示例性描述,本申请对此不作具体限定。Among them, for each keyword to be matched, each keyword in the title keyword library is matched with the keyword to be matched to obtain a matching degree, and the target keyword with the highest matching degree and meeting preset conditions is taken as the similarity key word. The preset condition may be that the matching degree is greater than or equal to a preset threshold. Those skilled in the art know that the preset threshold is an empirical value, which can be set according to requirements. For example, if the similarity is used to characterize the matching degree, the preset threshold can be 0.8 or 0.9, or it can be any value in the range of the two, and it can also be a number greater than 0.9 and less than or equal to 1. The description is only exemplary, and this application does not specifically limit this.
可选地,如图3所示,将目标关键词与分词处理后得到的待匹配关键词进行匹配得到匹配度,包括如下步骤301至302。Optionally, as shown in FIG. 3, matching the target keyword with the keyword to be matched obtained after word segmentation processing to obtain the matching degree includes the following steps 301 to 302.
S301,预先制作一个含有海量字的词典作为预设的字集合,字集合中的每个字都用一个表征其在字集合中位置的N维向量表示,N为字集合中字的数量。S301: Pre-make a dictionary containing a large number of characters as a preset character set, and each character in the character set is represented by an N-dimensional vector representing its position in the character set, where N is the number of words in the character set.
其中,在这个字集合中各个字依次排列,具有各自对应的在字集合中的排列位置。本申请实施例预先收集大量的文章,并对这些文章中包含的字进行统计,计算出各个字对应的出现频次,最后将这些文章中包含的字按照出现频次由大到小的排列顺序存入该字典中,生成本申请实施例中的字集合。示例性地,假设字集合中包含6个字,需要说明的是,真正使用的字集合中的字远远不止6个,此处仅为示例性说明,则字集合中排在第一位的字用向量[1,0,0,0,0,0]表示,排在第二位的字用向量[0,1,0,0,0,0]表示,以此类推,字集合中的每个字都用一个六维向量表示。Among them, each character in this character set is arranged in sequence and has a corresponding arrangement position in the character set. The embodiment of this application collects a large number of articles in advance, and counts the words contained in these articles, calculates the appearance frequency corresponding to each word, and finally stores the words contained in these articles in the descending order of appearance frequency In this dictionary, the word set in the embodiment of this application is generated. Illustratively, assuming that the character set contains 6 characters, it should be noted that there are far more than 6 characters in the character set that are actually used. This is only an exemplary description, and the character set in the first place Words are represented by the vector [1, 0, 0, 0, 0, 0], the second-ranked word is represented by the vector [0, 1, 0, 0, 0, 0], and so on, the words in the set Each word is represented by a six-dimensional vector.
S302,将目标关键词与待匹配关键词均拆分成若干个字,并通过查找每个字的N维向量,组合形成目标关键词对应的目标关键词向量和待匹配关键词的待匹配关键词向量,计算目标关键词向量和待匹配关键词向量的向量相似度,将向量相似度作为目标关键词与待匹配关键词的匹配度。S302: Split the target keyword and the keyword to be matched into several words, and combine to form the target keyword vector corresponding to the target keyword and the key to be matched of the keyword to be matched by searching the N-dimensional vector of each word The word vector calculates the vector similarity between the target keyword vector and the keyword vector to be matched, and uses the vector similarity as the matching degree between the target keyword and the keyword to be matched.
可以理解地,当建立好字集合之后,将每个目标关键词拆分成一个个目标关键字,并通过查找每个目标关键字的N维向量,组合形成目标关键词向量;同样的处理方式,将每个待匹配关键词拆分成一个个待匹配关键字,并通过查找每个待匹配关键字的N维向量,组合形成待匹配关键词向量。然后,计算目标关键词向量和待匹配关键词向量的相似度,将相似度作为目标关键词与待匹配关键词的匹配度。Understandably, after the word set is established, each target keyword is divided into target keywords, and the N-dimensional vector of each target keyword is searched to form the target keyword vector; the same processing method , Split each keyword to be matched into keywords to be matched, and combine to form a keyword vector to be matched by searching the N-dimensional vector of each keyword to be matched. Then, the similarity between the target keyword vector and the keyword vector to be matched is calculated, and the similarity is taken as the degree of matching between the target keyword and the keyword to be matched.
可选地,向量相似度的计算公式可以为:Optionally, the vector similarity calculation formula can be:
similarity=∑ i=1 n(A i×B i)/{[∑ i=1 n(A i) 2] 1/2×[∑ i=1 n(B i) 2] 1/2}。 similarity=∑ i=1 n (A i ×B i )/{[∑ i=1 n (A i ) 2 ] 1/2 ×[∑ i=1 n (B i ) 2 ] 1/2 }.
其中,目标关键词向量为A,元素组成为A i;待匹配关键词向量为B,元素组成为B i。此外,在本申请其他实施例中,向量相似度的计算方式还可以采用现有技术中的相似度的计算方式,本申请对此不作具体限定。 Among them, the target keyword vector is A, and the element composition is Ai ; the keyword vector to be matched is B, and the element composition is B i . In addition, in other embodiments of the present application, the vector similarity calculation method may also use the similarity calculation method in the prior art, which is not specifically limited in this application.
示例性的,若目标关键词拆分成两个目标关键字,查找两个关键字的N维向量分别为[1,0,0,0,0,0]和[0,1,0,0,0,0],组合形成目标关键词向量为[1,1,0,0,0,0];若待匹配关键词拆分成2个待匹配关键字,查找两个待匹配关键字的N维向量分别为[0,1,0,0,0,0]和[0,0,1,0,0,0],组合形成待匹配关键词向量为[0,1,1,0,0,0]。计算[1,1,0,0,0,0]和[0,1,1,0,0,0]的向量相似度为0.5。Exemplarily, if the target keyword is split into two target keywords, the N-dimensional vectors of the two keywords are [1, 0, 0, 0, 0, 0] and [0, 1, 0, 0]. ,0,0], the combination of the target keyword vector is [1,1,0,0,0,0]; if the keyword to be matched is split into two keywords to be matched, find the two keywords to be matched The N-dimensional vectors are [0, 1, 0, 0, 0, 0] and [0, 0, 1, 0, 0, 0], and the combination to form the keyword vector to be matched is [0, 1, 1, 0, 0,0]. Calculate the vector similarity between [1, 1, 0, 0, 0, 0] and [0, 1, 1, 0, 0, 0] as 0.5.
S202,计算由若干个待匹配关键词组成的第一关键词集合相对于由相似关键词组成的第二关键词集合的相似度。S202: Calculate the similarity between a first keyword set composed of a number of keywords to be matched with respect to a second keyword set composed of similar keywords.
其中,如图4所示,步骤202包括如下步骤401至403。Wherein, as shown in FIG. 4, step 202 includes the following steps 401 to 403.
S401,将若干个待匹配关键词组成第一关键词集合;将相似关键词组成第二关键词集合;将若干个待匹配关键词与相似关键词组成目标集合。In S401, a number of keywords to be matched are formed into a first keyword set; similar keywords are formed into a second keyword set; and a number of keywords to be matched and similar keywords are formed into a target set.
S402,计算所述第一关键词集合相对于所述目标集合的第一词频向量,计算所述第二关键词集合相对于所述目标集合的第二词频向量。S402: Calculate a first word frequency vector of the first keyword set relative to the target set, and calculate a second word frequency vector of the second keyword set relative to the target set.
S403,计算所述第一词频向量和第二词频向量的相似度,作为所述第一关键词集合相对于所述第二关键词集合的相似度。S403: Calculate the similarity between the first word frequency vector and the second word frequency vector as the similarity between the first keyword set and the second keyword set.
示例性地,若干个待匹配关键词组成的第一关键词集合{总共,金额},相似关键词组成的第二关键词集合为{金额};待匹配关键词{总共,金额}和相似关键词{金额}组成的目标集合为{总共,金额};Illustratively, the first keyword set {total, amount} composed of several keywords to be matched, and the second keyword set composed of similar keywords is {amount}; the keywords to be matched {total, amount} and similar keys The target set of words {amount} is {total, amount};
计算第一关键词集合相对于目标集合的第一词频向量为A=[1,1],计算第二键词集合相对于目标集合的第二词频向量为B=[0,1];计算两个词频向量A和B的相似度为0.707,如下:Calculate the first word frequency vector of the first keyword set relative to the target set as A=[1,1], and calculate the second word frequency vector of the second keyword set relative to the target set as B=[0,1]; calculate two The similarity between word frequency vectors A and B is 0.707, as follows:
similarity=∑ i=1 n(A i×B i)/{[∑ i=1 n(A i) 2] 1/2×[∑ i=1 n(B i) 2] 1/2}=1/(2 1/2)=0.707。 similarity=∑ i=1 n (A i ×B i )/{[∑ i=1 n (A i ) 2 ] 1/2 ×[∑ i=1 n (B i ) 2 ] 1/2 }=1 /(2 1/2 )=0.707.
S203,若相似度大于预设阈值,则所述单元格为标题单元格;否则,所述单元格为内容单元格。S203: If the similarity is greater than the preset threshold, the cell is a title cell; otherwise, the cell is a content cell.
可以理解的是,步骤203中预设阈值为经验值,可以根据需求设置。例如预设阈值可以为0.8或0.9,也可以为两者组成的数值区间中的任一数值,也可以为比0.8更小的数,也可以为比0.9更大的小于或等于1的数,此处仅为示例性描述,本申请对此不作具体限定。It can be understood that the preset threshold in step 203 is an empirical value, which can be set according to requirements. For example, the preset threshold value can be 0.8 or 0.9, or it can be any value in the range of the two, it can also be a number smaller than 0.8, or a number larger than 0.9 and less than or equal to 1. This is only an exemplary description, and this application does not specifically limit this.
本申请实施例中提供了一种定量的方式准确地区分单元格是标题单元格,还是内容单元格,为后续数据库的建立提供了准确的数据基础。The embodiment of the application provides a quantitative way to accurately distinguish whether a cell is a title cell or a content cell, which provides an accurate data basis for subsequent database establishment.
S104,若所述合并单元格中包括标题单元格,则将属于所述合并单元格的各单元格均用所述标题单元格的数据进行填充。S104: If the merged cell includes a header cell, all cells belonging to the merged cell are filled with data of the header cell.
其中,步骤102中确定了哪些单元格属于同一个合并单元格,步骤103中确定了各个单元格是属于标题单元格还是内容单元格,因此,在步骤104中,当合并单元格中包括标题单元格的情形下,将属于该合并单元格的各单元格均用标题单元格的数据进行填充。也就是说,对于某个合并单元格中数据不为空的单元格,若该单元格为标题单元格的情形下,将该标题单元格的数据填充至属于同一个合并单元格中数据为空的单元格中。Among them, it is determined in step 102 which cells belong to the same merged cell, and in step 103, it is determined whether each cell belongs to a header cell or a content cell. Therefore, in step 104, when the merged cell includes a header cell In the case of a cell, each cell belonging to the merged cell is filled with the data of the header cell. In other words, for a cell with non-empty data in a merged cell, if the cell is a header cell, fill the header cell with data that belongs to the same merged cell and the data is empty In the cell.
需要说明的是,本申请实施例中,仅对包括标题单元格的合并单元格的数据进行填充,即当合并单元格中包括标题单元格的情形下,将标题单元格填充至合并单元格包括的其余单元格中。而通常情况下,标题单元格和内容单元格不会属于同一个合并单元格,多个内容单元格也不会属于同一个合并单元格,因而本申请实施例中,合并单元格仅包括内容单元格的情况下,不对其余各单元格数据进行填充,因为有可能是数据上传错误所致,避免进一步填充数据导致后续建立数据库出现更大的偏差。It should be noted that in the embodiments of this application, only the data of the merged cell including the header cell is filled, that is, when the merged cell includes the header cell, the header cell is filled until the merged cell includes In the remaining cells. Generally, the header cell and the content cell do not belong to the same merged cell, and multiple content cells do not belong to the same merged cell. Therefore, in this embodiment of the application, the merged cell only includes the content unit In the case of grids, the data in the remaining cells are not filled because it may be caused by data upload errors, so as to avoid further filling of data, which will cause greater deviations in subsequent database creation.
示例性地,步骤103确定“序号”、“股东名称”、“吸收合并前”和“吸收合并后”均为标题单元格,且确定了“序号”和“股东名称”属于合并行的合并单元格;“吸收合并前”和“吸收合并后”属于合并列的合并单元格,将拆分后的各单元格分别用对应标题单元格填充,如下:Illustratively, step 103 determines that "serial number", "shareholder name", "before merger" and "after merger" are header cells, and it is determined that "serial number" and "name of shareholder" belong to the merger unit of the merger bank Grid; "Before absorption and merge" and "After absorption and merge" belong to the merged cells of the merged column. Fill each cell after the split with the corresponding header cell, as follows:
[Table 2][Table 2]
序号Serial number 股东名称Shareholder name 吸收合并前Before the merger 吸收合并前Before the merger 吸收合并后After the merger 吸收合并后After the merger
序号Serial number 股东名称Shareholder name 出资额Contribution 股权比例Equity ratio 出资额Contribution 股权比例Equity ratio
11 XXX1XXX1 800800 33.34%33.34% 817817 33.34%33.34%
22 XXX2XXX2 800800 33.33%33.33% 816.5816.5 33.33%33.33%
33 XXX3XXX3 800800 33.33%33.33% 816.5816.5 33.33%33.33%
 To 合计total 24002400 100%100% 24502450 100%100%
至此,完成了合并表格转换成满格表格的过程。So far, the process of converting the merged table into a full grid table is completed.
综上所述,通过本申请实施例,将非满格表格规整化处理为满格表格,实现了将每个单元格的数据准确读取出来,并且标记了标题单元格和内容单元格,提高了后续数据梳理的准确率,为帮助建立更精准的数据库打好了基础。In summary, through the embodiments of this application, the non-full grid table is normalized into a full grid table, so that the data of each cell can be accurately read, and the title cell and content cell are marked, which improves The accuracy rate of subsequent data sorting has been improved, which lays a solid foundation for helping to establish a more accurate database.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence number of each step in the foregoing embodiment does not mean the order of execution. The execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiment of the present application.
对应于上文实施例所述的一种非满格表格内容提取方法,图5示出了本申请实施例提供的一种非满格表格内容提取装置的结构示意图,如图5所示,所述非满格表格内容提取装置包括:Corresponding to the method for extracting the content of a non-full grid table described in the above embodiment, FIG. 5 shows a schematic structural diagram of a device for extracting the content of a non-full grid table provided by an embodiment of the present application. As shown in FIG. 5, The device for extracting the content of the non-full grid table includes:
获取模块51,用于获取原始表格,所述原始表格为非满格表格;The obtaining module 51 is configured to obtain an original form, and the original form is a non-full grid form;
读取模块52,用于对所述原始表格进行读取,得到满格表格,并确定出属于同一个合并单元格的各单元格;The reading module 52 is configured to read the original table to obtain a full grid table and determine each cell belonging to the same merged cell;
判定模块53,用于依次从所述满格表格中获取各个单元格的数据,判定数据不为空的单元格是属于标题单元格,还是属于内容单元格,并将标题单元格和内容单元格进行标记;The judging module 53 is used to sequentially obtain the data of each cell from the full grid table, determine whether the cell whose data is not empty belongs to a header cell or a content cell, and compare the header cell and the content cell Mark
填充模块54,用于若所述合并单元格中包括标题单元格,则将属于所述合并单元格的各单元格均用标题单元格的数据进行填充。The filling module 54 is configured to, if the merged cell includes a header cell, fill each cell belonging to the merged cell with the data of the header cell.
可选地,所述判定数据不为空的单元格是属于标题单元格,还是内容单元格, 包括:Optionally, whether the cell for determining whether the data is not empty belongs to a title cell or a content cell, including:
将单元格的数据进行分词处理得到若干个待匹配关键词,并筛选出存在于预设的标题关键词库中的与待匹配关键词相似的相似关键词;Perform word segmentation processing on the cell data to obtain several keywords to be matched, and filter out similar keywords that are similar to the keywords to be matched in the preset title keyword library;
计算由若干个待匹配关键词组成的第一关键词集合相对于由相似关键词组成的第二关键词集合的相似度;Calculate the similarity between the first keyword set composed of several keywords to be matched with respect to the second keyword set composed of similar keywords;
若相似度大于预设阈值,则所述单元格为标题单元格;否则,所述单元格为内容单元格。If the similarity is greater than the preset threshold, the cell is a title cell; otherwise, the cell is a content cell.
可选地,所述计算由若干个待匹配关键词组成的第一关键词集合相对于由相似关键词组成的第二关键词集合的相似度,包括:Optionally, the calculating the similarity of the first keyword set composed of several keywords to be matched with respect to the second keyword set composed of similar keywords includes:
将若干个待匹配关键词组成第一关键词集合;将相似关键词组成第二关键词集合;将若干个待匹配关键词与相似关键词组成目标集合;Group several keywords to be matched into a first keyword set; Group similar keywords into a second keyword set; Group several keywords to be matched and similar keywords into a target set;
计算所述第一关键词集合相对于所述目标集合的第一词频向量,计算所述第二关键词集合相对于所述目标集合的第二词频向量;Calculating a first word frequency vector of the first keyword set relative to the target set, and calculating a second word frequency vector of the second keyword set relative to the target set;
计算所述第一词频向量和第二词频向量的相似度,作为所述第一关键词集合相对于所述第二关键词集合的相似度。The similarity between the first word frequency vector and the second word frequency vector is calculated as the similarity between the first keyword set and the second keyword set.
可选地,所述筛选出存在于预设的标题关键词库中的与待匹配关键词相似的相似关键词,包括:Optionally, the filtering out similar keywords existing in a preset title keyword library that are similar to the keywords to be matched includes:
从标题关键词库中获取未被匹配过的目标关键词,将目标关键词与分词处理后得到的待匹配关键词进行匹配得到匹配度,继续获取下一个未被匹配过的目标关键词并将目标关键词与待匹配关键词进行匹配得到匹配度,直至标题关键词库中不存在未被匹配过的目标关键词,将匹配度最高且满足预设条件的目标关键词作为相似关键词。Obtain unmatched target keywords from the title keyword database, match the target keywords with the keywords to be matched obtained after word segmentation processing to obtain the matching degree, continue to obtain the next unmatched target keywords and The target keyword is matched with the keyword to be matched to obtain the matching degree, until there is no unmatched target keyword in the title keyword library, and the target keyword with the highest matching degree and meeting the preset condition is regarded as the similar keyword.
可选地,所述将目标关键词与分词处理后得到的待匹配关键词进行匹配得到匹配度,包括:Optionally, the matching the target keyword with the keyword to be matched obtained after word segmentation processing to obtain the matching degree includes:
预先制作一个含有海量字的词典作为预设的字集合,字集合中的每个字都用一个表征其在字集合中位置的N维向量表示,N为字集合中字的数量;Pre-create a dictionary containing a large number of characters as a preset character set. Each character in the character set is represented by an N-dimensional vector representing its position in the character set, where N is the number of words in the character set;
将目标关键词与待匹配关键词均拆分成若干个字,并通过查找每个字的N维向量,组合形成目标关键词对应的目标关键词向量和待匹配关键词的待匹配关键 词向量,计算目标关键词向量和待匹配关键词向量的向量相似度,将向量相似度作为目标关键词与待匹配关键词的匹配度。Split the target keyword and the keyword to be matched into several words, and by looking up the N-dimensional vector of each word, combine to form the target keyword vector corresponding to the target keyword and the keyword vector to be matched to the keyword to be matched Calculate the vector similarity between the target keyword vector and the keyword vector to be matched, and use the vector similarity as the matching degree between the target keyword and the keyword to be matched.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的终端设备、模块和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for convenience and concise description, the specific working process of the terminal device, module and unit described above can refer to the corresponding process in the foregoing method embodiment, and will not be repeated here.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the description of each embodiment has its own focus. For parts that are not detailed or recorded in a certain embodiment, reference may be made to related descriptions of other embodiments.
图6示出了本申请实施例提供的一种终端设备的示意框图,为了便于说明,仅示出了与本申请实施例相关的部分。FIG. 6 shows a schematic block diagram of a terminal device provided by an embodiment of the present application. For ease of description, only parts related to the embodiment of the present application are shown.
在本实施例中,所述终端设备6可以是本地终端设备,也可以是云端终端设备。该终端设备6可包括:处理器60、存储器61以及存储在所述存储器61中并可在所述处理器60上运行的计算机可读指令62。所述处理器60执行所述计算机可读指令62时实现上述各个非满格表格内容提取方法实施例的步骤,或者,所述处理器60执行所述计算机可读指令62时实现上述各虚拟装置实施例中各模块/单元的功能,例如图5所示模块501至504的功能。In this embodiment, the terminal device 6 may be a local terminal device or a cloud terminal device. The terminal device 6 may include a processor 60, a memory 61, and computer-readable instructions 62 that are stored in the memory 61 and can run on the processor 60. When the processor 60 executes the computer-readable instructions 62, the steps of the above embodiments of the method for extracting the content of a non-full grid table are implemented, or the processor 60 implements the above virtual devices when the computer-readable instructions 62 are executed The functions of each module/unit in the embodiment are, for example, the functions of the modules 501 to 504 shown in FIG. 5.
示例性的,所述计算机可读指令62可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器61中,并由所述处理器60执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机可读指令段,该指令段用于描述所述计算机可读指令62在所述终端设备6中的执行过程。Exemplarily, the computer-readable instructions 62 may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 61 and executed by the processor 60, To complete this application. The one or more modules/units may be a series of computer-readable instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer-readable instructions 62 in the terminal device 6.
所述处理器60可以是中央处理单元(Central Processing Unit,CPU),还可以是其它通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其它可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 60 may be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
所述存储器61可以是所述终端设备6的内部存储单元,例如终端设备6的硬盘或内存。所述存储器61也可以是所述终端设备6的外部存储设备,例如所述终端设 备6上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器61还可以既包括所述终端设备6的内部存储单元也包括外部存储设备。所述存储器61用于存储所述计算机可读指令以及所述终端设备6所需的其它指令和数据。所述存储器61还可以用于暂时地存储已经输出或者将要输出的数据。The memory 61 may be an internal storage unit of the terminal device 6, such as a hard disk or memory of the terminal device 6. The memory 61 may also be an external storage device of the terminal device 6, such as a plug-in hard disk equipped on the terminal device 6, a smart memory card (Smart Media Card, SMC), or a Secure Digital (SD) Card, Flash Card, etc. Further, the memory 61 may also include both an internal storage unit of the terminal device 6 and an external storage device. The memory 61 is used to store the computer-readable instructions and other instructions and data required by the terminal device 6. The memory 61 can also be used to temporarily store data that has been output or will be output.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing relevant hardware through computer-readable instructions, which can be stored in a non-volatile computer. In a readable storage medium, when the computer-readable instructions are executed, they may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and/or volatile memory. Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not a limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在 此不再赘述。Those skilled in the art can clearly understand that for the convenience and conciseness of description, only the division of the above-mentioned functional units and modules is used as an example. In practical applications, the above-mentioned functions can be allocated to different functional units and modules as required. Module completion, that is, divide the internal structure of the device into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist alone physically, or two or more units can be integrated into one unit. The above-mentioned integrated units can be hardware-based Formal realization can also be realized in the form of software functional units. In addition, the specific names of the functional units and modules are only used to facilitate distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working process of the units and modules in the foregoing system, reference may be made to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the description of each embodiment has its own focus. For parts that are not detailed or recorded in a certain embodiment, reference may be made to related descriptions of other embodiments.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, the functional units in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一计算机可读存储介质中,该计算机可读指令在被处理器执行时,可实现上述各个方法实施例的步骤。If the integrated module/unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, this application implements all or part of the procedures in the above-mentioned embodiments and methods, and can also be completed by instructing relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. Here, when the computer-readable instruction is executed by the processor, the steps of the foregoing method embodiments can be implemented.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that it can still implement the foregoing The technical solutions recorded in the examples are modified, or some of the technical features are equivalently replaced; these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the application, and should be included in Within the scope of protection of this application.

Claims (20)

  1. 一种非满格表格内容提取方法,其特征在于,包括:A method for extracting the content of a non-full grid table, which is characterized in that it comprises:
    获取原始表格,所述原始表格为非满格表格;Obtaining an original form, the original form being a non-full grid form;
    对所述原始表格进行读取,得到满格表格,并确定出属于同一个合并单元格的各单元格;Read the original table to obtain a full table, and determine each cell belonging to the same merged cell;
    依次从所述满格表格中获取各个单元格的数据,判定数据不为空的单元格是属于标题单元格,还是属于内容单元格,并将标题单元格和内容单元格进行标记;Obtain the data of each cell from the full grid table in turn, determine whether the cell whose data is not empty belongs to a header cell or a content cell, and mark the header cell and the content cell;
    若所述合并单元格中包括标题单元格,则将属于所述合并单元格的各单元格均用所述标题单元格的数据进行填充。If the merged cell includes a header cell, each cell belonging to the merged cell is filled with the data of the header cell.
  2. 根据权利要求1所述的非满格表格内容提取方法,其特征在于,所述判定数据不为空的单元格是属于标题单元格,还是内容单元格,包括:The method for extracting the content of a non-full grid table according to claim 1, wherein the determining whether the cell whose data is not empty belongs to a title cell or a content cell includes:
    将单元格的数据进行分词处理得到若干个待匹配关键词,并筛选出存在于预设的标题关键词库中的与待匹配关键词相似的相似关键词;Perform word segmentation processing on the cell data to obtain several keywords to be matched, and filter out similar keywords that are similar to the keywords to be matched in the preset title keyword library;
    计算由若干个待匹配关键词组成的第一关键词集合相对于由相似关键词组成的第二关键词集合的相似度;Calculate the similarity between the first keyword set composed of several keywords to be matched with respect to the second keyword set composed of similar keywords;
    若相似度大于预设阈值,则所述单元格为标题单元格;否则,所述单元格为内容单元格。If the similarity is greater than the preset threshold, the cell is a title cell; otherwise, the cell is a content cell.
  3. 根据权利要求2所述的非满格表格内容提取方法,其特征在于,所述计算由若干个待匹配关键词组成的第一关键词集合相对于由相似关键词组成的第二关键词集合的相似度,包括:The method for extracting the content of a non-full grid table according to claim 2, wherein the calculation of the first keyword set consisting of a number of keywords to be matched is relative to the second keyword set consisting of similar keywords Similarity, including:
    将若干个待匹配关键词组成第一关键词集合;将相似关键词组成第二关键词集合;将若干个待匹配关键词与相似关键词组成目标集合;Group several keywords to be matched into a first keyword set; Group similar keywords into a second keyword set; Group several keywords to be matched and similar keywords into a target set;
    计算所述第一关键词集合相对于所述目标集合的第一词频向量,Calculating the first word frequency vector of the first keyword set relative to the target set,
    计算所述第二关键词集合相对于所述目标集合的第二词频向量;Calculating a second word frequency vector of the second keyword set relative to the target set;
    计算所述第一词频向量和第二词频向量的相似度,作为所述第一关键词集合相对于所述第二关键词集合的相似度。The similarity between the first word frequency vector and the second word frequency vector is calculated as the similarity between the first keyword set and the second keyword set.
  4. 根据权利要求2或3所述的非满格表格内容提取方法,其特征在于,所述筛选出存在于预设的标题关键词库中的与待匹配关键词相似的相似关键词,包括:The method for extracting the content of a non-full grid table according to claim 2 or 3, wherein the filtering out similar keywords existing in a preset title keyword database that are similar to the keywords to be matched includes:
    从标题关键词库中获取未被匹配过的目标关键词,将目标关键词与分词处理后得到的待匹配关键词进行匹配得到匹配度,继续获取下一个未被匹配过的目标关键词并将目标关键词与待匹配关键词进行匹配得到匹配度,直至标题关键词库中不存在未被匹配过的目标关键词,将匹配度最高且满足预设条件的目标关键词作为相似关键词。Obtain unmatched target keywords from the title keyword database, match the target keywords with the keywords to be matched obtained after word segmentation processing to obtain the matching degree, continue to obtain the next unmatched target keywords and The target keyword is matched with the keyword to be matched to obtain the matching degree, until there is no unmatched target keyword in the title keyword library, and the target keyword with the highest matching degree and meeting the preset condition is regarded as the similar keyword.
  5. 根据权利要求4所述的非满格表格内容提取方法,其特征在于,所述将目标关键词与分词处理后得到的待匹配关键词进行匹配得到匹配度,包括:The method for extracting the content of a non-full grid table according to claim 4, wherein the matching the target keyword with the keyword to be matched obtained after word segmentation processing to obtain the matching degree comprises:
    预先制作一个含有海量字的词典作为预设的字集合,字集合中的每个字都用一个表征其在字集合中位置的N维向量表示,N为字集合中字的数量;Pre-create a dictionary containing a large number of characters as a preset character set. Each character in the character set is represented by an N-dimensional vector representing its position in the character set, where N is the number of words in the character set;
    将目标关键词与待匹配关键词均拆分成若干个字,并通过查找每个字的N维向量,组合形成目标关键词对应的目标关键词向量和待匹配关键词的待匹配关键词向量,计算目标关键词向量和待匹配关键词向量的向量相似度,将向量相似度作为目标关键词与待匹配关键词的匹配度。Split the target keyword and the keyword to be matched into several words, and by looking up the N-dimensional vector of each word, combine to form the target keyword vector corresponding to the target keyword and the keyword vector to be matched to the keyword to be matched Calculate the vector similarity between the target keyword vector and the keyword vector to be matched, and use the vector similarity as the matching degree between the target keyword and the keyword to be matched.
  6. 一种非满格表格内容提取装置,其特征在于,包括:A device for extracting the content of a non-full grid table, which is characterized in that it comprises:
    获取模块,用于获取原始表格,所述原始表格为非满格表格;An obtaining module for obtaining an original form, the original form being a non-full grid form;
    读取模块,用于对所述原始表格进行读取,得到满格表格,并确定出属于同一个合并行单元格的各单元格;A reading module, which is used to read the original table to obtain a full table, and determine each cell belonging to the same merged row cell;
    判定模块,用于依次从所述满格表格中获取各个单元格的数据,判定数据不为空的单元格是属于标题单元格,还是属于内容单元 格,并将标题单元格和内容单元格进行标记;The determination module is used to obtain the data of each cell from the full grid table in turn, determine whether the cell whose data is not empty belongs to the header cell or the content cell, and compare the header cell and the content cell mark;
    填充模块,用于若所述合并单元格中包括标题单元格,则将属于所述合并单元格的各单元格均用所述标题单元格的数据进行填充。The filling module is configured to, if the merged cell includes a header cell, fill each cell belonging to the merged cell with the data of the header cell.
  7. 根据权利要求6所述的非满格表格内容提取装置,其特征在于,所述判定数据不为空的单元格是属于标题单元格,还是内容单元格,包括:The device for extracting the content of a non-full grid table according to claim 6, wherein whether the cell whose data is not empty is determined to be a title cell or a content cell includes:
    将单元格的数据进行分词处理得到若干个待匹配关键词,并筛选出存在于预设的标题关键词库中的与待匹配关键词相似的相似关键词;Perform word segmentation processing on the cell data to obtain several keywords to be matched, and filter out similar keywords that are similar to the keywords to be matched in the preset title keyword library;
    计算由若干个待匹配关键词组成的第一关键词集合相对于由相似关键词组成的第二关键词集合的相似度;Calculate the similarity between the first keyword set composed of several keywords to be matched with respect to the second keyword set composed of similar keywords;
    若相似度大于预设阈值,则所述单元格为标题单元格;否则,所述单元格为内容单元格。If the similarity is greater than the preset threshold, the cell is a title cell; otherwise, the cell is a content cell.
  8. 根据权利要求7所述的非满格表格内容提取装置,其特征在于,所述计算由若干个待匹配关键词组成的第一关键词集合相对于由相似关键词组成的第二关键词集合的相似度,包括:The non-full grid table content extraction device according to claim 7, wherein the calculation of the first keyword set consisting of several keywords to be matched is relative to the second keyword set consisting of similar keywords Similarity, including:
    将若干个待匹配关键词组成第一关键词集合;将相似关键词组成第二关键词集合;将若干个待匹配关键词与相似关键词组成目标集合;Group several keywords to be matched into a first keyword set; Group similar keywords into a second keyword set; Group several keywords to be matched and similar keywords into a target set;
    计算所述第一关键词集合相对于所述目标集合的第一词频向量,Calculating the first word frequency vector of the first keyword set relative to the target set,
    计算所述第二关键词集合相对于所述目标集合的第二词频向量;Calculating a second word frequency vector of the second keyword set relative to the target set;
    计算所述第一词频向量和第二词频向量的相似度,作为所述第一关键词集合相对于所述第二关键词集合的相似度。The similarity between the first word frequency vector and the second word frequency vector is calculated as the similarity between the first keyword set and the second keyword set.
  9. 根据权利要求7或8所述的非满格表格内容提取装置,其特征在于,所述筛选出存在于预设的标题关键词库中的与待匹配关键词相似的相似关键词,包括:The device for extracting the content of a non-full grid table according to claim 7 or 8, wherein the filtering out similar keywords existing in a preset title keyword library that are similar to the keywords to be matched includes:
    从标题关键词库中获取未被匹配过的目标关键词,将目标关键词 与分词处理后得到的待匹配关键词进行匹配得到匹配度,继续获取下一个未被匹配过的目标关键词并将目标关键词与待匹配关键词进行匹配得到匹配度,直至标题关键词库中不存在未被匹配过的目标关键词,将匹配度最高且满足预设条件的目标关键词作为相似关键词。Obtain unmatched target keywords from the title keyword database, match the target keywords with the keywords to be matched obtained after word segmentation processing to obtain the matching degree, continue to obtain the next unmatched target keywords and The target keyword is matched with the keyword to be matched to obtain the matching degree, until there is no unmatched target keyword in the title keyword library, and the target keyword with the highest matching degree and meeting the preset condition is regarded as the similar keyword.
  10. 根据权利要求9所述的非满格表格内容提取装置,其特征在于,所述将目标关键词与分词处理后得到的待匹配关键词进行匹配得到匹配度,包括:The non-full form content extraction device according to claim 9, wherein the matching the target keyword with the keyword to be matched obtained after word segmentation processing to obtain the matching degree comprises:
    预先制作一个含有海量字的词典作为预设的字集合,字集合中的每个字都用一个表征其在字集合中位置的N维向量表示,N为字集合中字的数量;Pre-create a dictionary containing a large number of characters as a preset character set. Each character in the character set is represented by an N-dimensional vector representing its position in the character set, where N is the number of words in the character set;
    将目标关键词与待匹配关键词均拆分成若干个字,并通过查找每个字的N维向量,组合形成目标关键词对应的目标关键词向量和待匹配关键词的待匹配关键词向量,计算目标关键词向量和待匹配关键词向量的向量相似度,将向量相似度作为目标关键词与待匹配关键词的匹配度。Split the target keyword and the keyword to be matched into several words, and by looking up the N-dimensional vector of each word, combine to form the target keyword vector corresponding to the target keyword and the keyword vector to be matched to the keyword to be matched Calculate the vector similarity between the target keyword vector and the keyword vector to be matched, and use the vector similarity as the matching degree between the target keyword and the keyword to be matched.
  11. 一种终端设备,包括存储器以及处理器,所述存储器中存储有可在所述处理器上运行的计算机可读指令,其特征在于,所述处理器执行所述计算机可读指令时,实现如下步骤:A terminal device includes a memory and a processor, the memory stores computer readable instructions that can run on the processor, and is characterized in that when the processor executes the computer readable instructions, the following is achieved step:
    获取原始表格,所述原始表格为非满格表格;Obtaining an original form, the original form being a non-full grid form;
    对所述原始表格进行读取,得到满格表格,并确定出属于同一个合并单元格的各单元格;Read the original table to obtain a full table, and determine each cell belonging to the same merged cell;
    依次从所述满格表格中获取各个单元格的数据,判定数据不为空的单元格是属于标题单元格,还是属于内容单元格,并将标题单元格和内容单元格进行标记;Obtain the data of each cell from the full grid table in turn, determine whether the cell whose data is not empty belongs to a header cell or a content cell, and mark the header cell and the content cell;
    若所述合并单元格中包括标题单元格,则将属于所述合并单元格的各单元格均用所述标题单元格的数据进行填充。If the merged cell includes a header cell, each cell belonging to the merged cell is filled with the data of the header cell.
  12. 根据权利要求11所述的终端设备,其特征在于,所述判定数据不 为空的单元格是属于标题单元格,还是内容单元格,包括:The terminal device according to claim 11, wherein whether the cell whose data is not empty belongs to a title cell or a content cell, comprising:
    将单元格的数据进行分词处理得到若干个待匹配关键词,并筛选出存在于预设的标题关键词库中的与待匹配关键词相似的相似关键词;Perform word segmentation processing on the cell data to obtain several keywords to be matched, and filter out similar keywords that are similar to the keywords to be matched in the preset title keyword library;
    计算由若干个待匹配关键词组成的第一关键词集合相对于由相似关键词组成的第二关键词集合的相似度;Calculate the similarity between the first keyword set composed of several keywords to be matched with respect to the second keyword set composed of similar keywords;
    若相似度大于预设阈值,则所述单元格为标题单元格;否则,所述单元格为内容单元格。If the similarity is greater than the preset threshold, the cell is a title cell; otherwise, the cell is a content cell.
  13. 根据权利要求12所述的终端设备,其特征在于,所述计算由若干个待匹配关键词组成的第一关键词集合相对于由相似关键词组成的第二关键词集合的相似度,包括:The terminal device according to claim 12, wherein the calculating the similarity of the first keyword set composed of several keywords to be matched with respect to the second keyword set composed of similar keywords comprises:
    将若干个待匹配关键词组成第一关键词集合;将相似关键词组成第二关键词集合;将若干个待匹配关键词与相似关键词组成目标集合;Group several keywords to be matched into a first keyword set; Group similar keywords into a second keyword set; Group several keywords to be matched and similar keywords into a target set;
    计算所述第一关键词集合相对于所述目标集合的第一词频向量,Calculating the first word frequency vector of the first keyword set relative to the target set,
    计算所述第二关键词集合相对于所述目标集合的第二词频向量;Calculating a second word frequency vector of the second keyword set relative to the target set;
    计算所述第一词频向量和第二词频向量的相似度,作为所述第一关键词集合相对于所述第二关键词集合的相似度。The similarity between the first word frequency vector and the second word frequency vector is calculated as the similarity between the first keyword set and the second keyword set.
  14. 根据权利要求12或13所述的终端设备,其特征在于,所述筛选出存在于预设的标题关键词库中的与待匹配关键词相似的相似关键词,包括:The terminal device according to claim 12 or 13, wherein the filtering out similar keywords existing in a preset title keyword library that are similar to the keywords to be matched includes:
    从标题关键词库中获取未被匹配过的目标关键词,将目标关键词与分词处理后得到的待匹配关键词进行匹配得到匹配度,继续获取下一个未被匹配过的目标关键词并将目标关键词与待匹配关键词进行匹配得到匹配度,直至标题关键词库中不存在未被匹配过的目标关键词,将匹配度最高且满足预设条件的目标关键词作为相似关键词。Obtain unmatched target keywords from the title keyword database, match the target keywords with the keywords to be matched obtained after word segmentation processing to obtain the matching degree, continue to obtain the next unmatched target keywords and The target keyword is matched with the keyword to be matched to obtain the matching degree, until there is no unmatched target keyword in the title keyword library, and the target keyword with the highest matching degree and meeting the preset condition is regarded as the similar keyword.
  15. 根据权利要求14所述的终端设备,其特征在于,所述将目标关键 词与分词处理后得到的待匹配关键词进行匹配得到匹配度,包括:The terminal device according to claim 14, wherein the matching the target key word with the to-be-matched keyword obtained after word segmentation processing to obtain the matching degree comprises:
    预先制作一个含有海量字的词典作为预设的字集合,字集合中的每个字都用一个表征其在字集合中位置的N维向量表示,N为字集合中字的数量;Pre-create a dictionary containing a large number of characters as a preset character set. Each character in the character set is represented by an N-dimensional vector representing its position in the character set, where N is the number of words in the character set;
    将目标关键词与待匹配关键词均拆分成若干个字,并通过查找每个字的N维向量,组合形成目标关键词对应的目标关键词向量和待匹配关键词的待匹配关键词向量,计算目标关键词向量和待匹配关键词向量的向量相似度,将向量相似度作为目标关键词与待匹配关键词的匹配度。Split the target keyword and the keyword to be matched into several words, and by looking up the N-dimensional vector of each word, combine to form the target keyword vector corresponding to the target keyword and the keyword vector to be matched to the keyword to be matched Calculate the vector similarity between the target keyword vector and the keyword vector to be matched, and use the vector similarity as the matching degree between the target keyword and the keyword to be matched.
  16. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,其特征在于,所述计算机可读指令被处理器执行时实现如下步骤:A computer-readable storage medium, the computer-readable storage medium storing computer-readable instructions, wherein the computer-readable instructions are executed by a processor to implement the following steps:
    获取原始表格,所述原始表格为非满格表格;Obtaining an original form, the original form being a non-full grid form;
    对所述原始表格进行读取,得到满格表格,并确定出属于同一个合并单元格的各单元格;Read the original table to obtain a full table, and determine each cell belonging to the same merged cell;
    依次从所述满格表格中获取各个单元格的数据,判定数据不为空的单元格是属于标题单元格,还是属于内容单元格,并将标题单元格和内容单元格进行标记;Obtain the data of each cell from the full grid table in turn, determine whether the cell whose data is not empty belongs to a header cell or a content cell, and mark the header cell and the content cell;
    若所述合并单元格中包括标题单元格,则将属于所述合并单元格的各单元格均用所述标题单元格的数据进行填充。If the merged cell includes a header cell, each cell belonging to the merged cell is filled with the data of the header cell.
  17. 根据权利要求16所述的计算机可读存储介质,其特征在于,所述判定数据不为空的单元格是属于标题单元格,还是内容单元格,包括:The computer-readable storage medium according to claim 16, wherein whether the cell for determining whether the data is not empty belongs to a title cell or a content cell, comprising:
    将单元格的数据进行分词处理得到若干个待匹配关键词,并筛选出存在于预设的标题关键词库中的与待匹配关键词相似的相似关键词;Perform word segmentation processing on the cell data to obtain several keywords to be matched, and filter out similar keywords that are similar to the keywords to be matched in the preset title keyword library;
    计算由若干个待匹配关键词组成的第一关键词集合相对于由相似 关键词组成的第二关键词集合的相似度;Calculate the similarity between the first keyword set consisting of several keywords to be matched with respect to the second keyword set consisting of similar keywords;
    若相似度大于预设阈值,则所述单元格为标题单元格;否则,所述单元格为内容单元格。If the similarity is greater than the preset threshold, the cell is a title cell; otherwise, the cell is a content cell.
  18. 根据权利要求17所述的计算机可读存储介质,其特征在于,所述计算由若干个待匹配关键词组成的第一关键词集合相对于由相似关键词组成的第二关键词集合的相似度,包括:The computer-readable storage medium according to claim 17, wherein the calculation of the similarity between a first keyword set consisting of several keywords to be matched with respect to a second keyword set consisting of similar keywords ,include:
    将若干个待匹配关键词组成第一关键词集合;将相似关键词组成第二关键词集合;将若干个待匹配关键词与相似关键词组成目标集合;Group several keywords to be matched into a first keyword set; Group similar keywords into a second keyword set; Group several keywords to be matched and similar keywords into a target set;
    计算所述第一关键词集合相对于所述目标集合的第一词频向量,Calculating the first word frequency vector of the first keyword set relative to the target set,
    计算所述第二关键词集合相对于所述目标集合的第二词频向量;Calculating a second word frequency vector of the second keyword set relative to the target set;
    计算所述第一词频向量和第二词频向量的相似度,作为所述第一关键词集合相对于所述第二关键词集合的相似度。The similarity between the first word frequency vector and the second word frequency vector is calculated as the similarity between the first keyword set and the second keyword set.
  19. 根据权利要求17或18所述的计算机可读存储介质,其特征在于,所述筛选出存在于预设的标题关键词库中的与待匹配关键词相似的相似关键词,包括:The computer-readable storage medium according to claim 17 or 18, wherein the filtering out similar keywords existing in a preset title keyword library that are similar to the keywords to be matched includes:
    从标题关键词库中获取未被匹配过的目标关键词,将目标关键词与分词处理后得到的待匹配关键词进行匹配得到匹配度,继续获取下一个未被匹配过的目标关键词并将目标关键词与待匹配关键词进行匹配得到匹配度,直至标题关键词库中不存在未被匹配过的目标关键词,将匹配度最高且满足预设条件的目标关键词作为相似关键词。Obtain unmatched target keywords from the title keyword database, match the target keywords with the keywords to be matched obtained after word segmentation processing to obtain the matching degree, continue to obtain the next unmatched target keywords and The target keyword is matched with the keyword to be matched to obtain the matching degree, until there is no unmatched target keyword in the title keyword library, and the target keyword with the highest matching degree and meeting the preset condition is regarded as the similar keyword.
  20. 根据权利要求19所述的计算机可读存储介质,其特征在于,所述将目标关键词与分词处理后得到的待匹配关键词进行匹配得到匹配度,包括:The computer-readable storage medium according to claim 19, wherein the matching the target keyword with the keyword to be matched obtained after word segmentation processing to obtain the matching degree comprises:
    预先制作一个含有海量字的词典作为预设的字集合,字集合中的每个字都用一个表征其在字集合中位置的N维向量表示,N为字集合中字的数量;Pre-create a dictionary containing a large number of characters as a preset character set. Each character in the character set is represented by an N-dimensional vector representing its position in the character set, where N is the number of words in the character set;
    将目标关键词与待匹配关键词均拆分成若干个字,并通过查找每个字的N维向量,组合形成目标关键词对应的目标关键词向量和待匹配关键词的待匹配关键词向量,计算目标关键词向量和待匹配关键词向量的向量相似度,将向量相似度作为目标关键词与待匹配关键词的匹配度。Split the target keyword and the keyword to be matched into several words, and by looking up the N-dimensional vector of each word, combine to form the target keyword vector corresponding to the target keyword and the keyword vector to be matched to the keyword to be matched Calculate the vector similarity between the target keyword vector and the keyword vector to be matched, and use the vector similarity as the matching degree between the target keyword and the keyword to be matched.
PCT/CN2019/118650 2019-08-09 2019-11-15 Non-full-cell table content extraction method and apparatus, and terminal device WO2021027162A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910744823.8A CN110598194A (en) 2019-08-09 2019-08-09 Method and device for extracting content of non-full-grid table and terminal equipment
CN201910744823.8 2019-08-09

Publications (1)

Publication Number Publication Date
WO2021027162A1 true WO2021027162A1 (en) 2021-02-18

Family

ID=68854267

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/118650 WO2021027162A1 (en) 2019-08-09 2019-11-15 Non-full-cell table content extraction method and apparatus, and terminal device

Country Status (2)

Country Link
CN (1) CN110598194A (en)
WO (1) WO2021027162A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111897884B (en) * 2020-07-20 2024-02-23 北京用友薪畴数字科技有限公司 Data relationship information display method and terminal equipment
CN113254627B (en) * 2021-04-16 2023-07-25 国网河北省电力有限公司经济技术研究院 Data reading method, device and terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120254730A1 (en) * 2011-03-28 2012-10-04 Microsoft Corporation Techniques to create structured document templates using enhanced content controls
CN106611024A (en) * 2015-10-27 2017-05-03 北京国双科技有限公司 File combining method and device
CN107180019A (en) * 2016-03-11 2017-09-19 阿里巴巴集团控股有限公司 Form methods of exhibiting and device
CN109710771A (en) * 2018-10-30 2019-05-03 北京百度网讯科技有限公司 Form data extracting method, device and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106777259A (en) * 2016-12-28 2017-05-31 深圳市华傲数据技术有限公司 The method and device of structured message in adaptive decimation HTML Table labels
CN107992625A (en) * 2017-12-25 2018-05-04 湖南星汉数智科技有限公司 A kind of automatic abstracting method of web page form data and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120254730A1 (en) * 2011-03-28 2012-10-04 Microsoft Corporation Techniques to create structured document templates using enhanced content controls
CN106611024A (en) * 2015-10-27 2017-05-03 北京国双科技有限公司 File combining method and device
CN107180019A (en) * 2016-03-11 2017-09-19 阿里巴巴集团控股有限公司 Form methods of exhibiting and device
CN109710771A (en) * 2018-10-30 2019-05-03 北京百度网讯科技有限公司 Form data extracting method, device and storage medium

Also Published As

Publication number Publication date
CN110598194A (en) 2019-12-20

Similar Documents

Publication Publication Date Title
WO2019223103A1 (en) Text similarity acquisition method and apparatus, terminal device and medium
WO2019136993A1 (en) Text similarity calculation method and device, computer apparatus, and storage medium
WO2019218699A1 (en) Fraud transaction determining method and apparatus, computer device, and storage medium
US10579661B2 (en) System and method for machine learning and classifying data
CN108595695B (en) Data processing method, data processing device, computer equipment and storage medium
CN110457302B (en) Intelligent structured data cleaning method
WO2019218473A1 (en) Field matching method and device, terminal device and medium
WO2019205308A1 (en) Information input method and apparatus, and terminal device and medium
WO2020114100A1 (en) Information processing method and apparatus, and computer storage medium
WO2020259280A1 (en) Log management method and apparatus, network device and readable storage medium
WO2021258848A1 (en) Data dictionary generation method and apparatus, data query method and apparatus, and device and medium
CN110083832B (en) Article reprint relation identification method, device, equipment and readable storage medium
WO2021003921A1 (en) Data processing method, and terminal device
WO2019148712A1 (en) Phishing website detection method, device, computer equipment and storage medium
WO2021027162A1 (en) Non-full-cell table content extraction method and apparatus, and terminal device
CN112560444A (en) Text processing method and device, computer equipment and storage medium
WO2021169217A1 (en) Abstract extraction method and apparatus, device, and computer-readable storage medium
WO2021218033A1 (en) Dictionary data operation method and apparatus, readable storage medium, and terminal device
WO2020232880A1 (en) Data processing method and apparatus, storage medium and terminal device
CN111813849A (en) Data extraction method, device and equipment and storage medium
WO2020233067A1 (en) User behavior-based data sharing method and apparatus, and computer device
CN109033295B (en) Method and device for merging super-large data sets
CN108595437B (en) Text query error correction method and device, computer equipment and storage medium
CN116303968A (en) Semantic search method, device, equipment and medium based on technical keyword extraction
CN111444712A (en) Keyword extraction method, terminal and computer readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19941634

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19941634

Country of ref document: EP

Kind code of ref document: A1