Hierarchical delimiter identification for parsing of raw data
Abstract
An example system for parsing and transforming input data that includes processing circuitry and memory, the memory configured to store the input data. The processing circuitry is configured to determine a first delimiter in the input data. The processing circuitry is configured to determine a plurality of second delimiter hypotheses and parse the input data according to the first delimiter and the plurality of second delimiter hypotheses to generate a plurality of tables that are each associated with a respective one of the plurality of second delimiter hypotheses. The processing circuitry is configured to determine a respective consistency score for each of the plurality of tables and select a table from among the plurality of tables based on the respective consistency score associated with the table. The processing circuitry is configured to format the input data based on the selected table to generate formatted data and output the formatted data.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 14 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A computing system comprising: one or more processors; and one or more memories storing processor-executable instructions that, when executed by the one or more processors, cause the one or more processors to perform operations comprising: obtaining input data; determining a first delimiter within the input data; generating, from the input data and using the first delimiter, an arranged string; determining an N most frequent characters in the arranged string, wherein Nis greater than one; determining a plurality of second delimiter hypotheses, the plurality of second delimiter hypotheses comprising the N most frequent characters in the arranged string, each of the plurality of second delimiter hypotheses comprising a respective potential delimiter to use with the first delimiter; parsing the arranged string using each of the plurality of second delimiter hypotheses; generating, based on parsing the arranged string using each of the plurality of second delimiter hypotheses, a plurality
- Claim 2Depends on #1
The computing system of claim 1, wherein formatting the input data comprises formatting the input data into payload data labeled according to a column and a row of the selected table.
- Claim 3Depends on #1
The computing system of claim 1, wherein selecting the table from among the plurality of tables comprises selecting the table having a highest consistency score among the plurality of tables.
- Claim 4Depends on #1
The computing system of claim 1, wherein the operations further comprise: determining a plurality of child delimiter hypotheses within the input data for a column or a row of the selected table, the column including column data or the row including row data, each of the plurality of child delimiter hypotheses comprising a respective potential child delimiter; parsing the column data or the row data according to each of the plurality of child delimiter hypotheses; generating, based on parsing the column data or the row data, a plurality of child tables, each of the plurality of child tables associated with a respective one of the plurality of child delimiter hypotheses; determining a respective child consistency score for each of the plurality of child delimiter hypotheses; and selecting a child delimiter hypothesis from among the plurality of child delimiter hypotheses or no child delimiter hypothesis for the column or the row based on the respective child consistency score for each of
- Claim 5Depends on #4
The computing system of claim 4, wherein selecting the child delimiter hypothesis from among the plurality of child delimiter hypotheses or no child delimiter hypothesis for the column or the row comprises selecting no child delimiter hypothesis based on the respective child consistency score for each of the plurality of child delimiter hypotheses being equal to zero.
- Claim 6Depends on #4
The computing system of claim 4, wherein selecting the child delimiter hypothesis from among the plurality of child delimiter hypotheses or no child delimiter hypothesis for the column or the row comprises selecting the child delimiter hypothesis based on the child delimiter hypothesis having a highest consistency score among the respective child consistency score of each of the plurality of child delimiter hypotheses for the column or the row.
- Claim 7Depends on #1
The computing system of claim 1, wherein the first delimiter comprises a row delimiter, the plurality of second delimiter hypotheses comprises a plurality of column delimiter hypotheses, and wherein determining the respective consistency score comprises determining: P ( x, θ) = 1 k ∑ k = 1 k N k ( M k ( M k + 1)) * ( M col R C filled), where P is a function yielding the respective consistency score, x is a block of input text, θ is a hypothetical delimiter applied to the input text, k is a total number of unique patterns found while processing for θ, N k is a total number of tuples, M k is a total number of delimiters per pattern, M col is a total number of columns created and RC filled is a total number of rows and columns filled by values.
- Claim 8Depends on #1
The computing system of claim 1, wherein the operations further comprise: determining a second delimiter hypothesis as a respective one of the plurality of second delimiter hypotheses associated with the selected table; and outputting at least two of the first delimiter, the second delimiter hypothesis, or a child delimiter hypothesis.
Technical Overview & Description
TECHNICAL FIELD The disclosure relates to computing systems, and in particular, to computing systems that parse data. BACKGROUND Data is stored in repositories, such as databases. Data is stored in many different repositories, in many different formats. With the explosion of data that is collected and stored (e.g., “ Big Data ” ), these different formats make it increasingly difficult to mine the data for useful or desired information. For example, one table may be formatted using certain delimiters, while another table may be formatted using different delimiters. The inconsistency of formatting (e.g., the inconsistent formatting of tabular data) may require a human to manually rectify the formatting, leading to a time consuming and expensive process in order to even begin mining the data for useful or desired information. SUMMARY In general, this disclosure describes computer-implemented techniques for identifying tables and/or tables within other tables (e.g., nested tables, or a table within a column and/or cell of another table) and outputting data indicative of the tables and/or tables within other tables, such that any tabular data output is in a consistent format. As such, the techniques of this disclosure enables a machine (e.g., one or more processors of a computing system) to transform inconsistently structured data into commonly structured data for ease of viewing when displayed and/or further processing by downstream computer application(s) or machine(s). Data, including healthcare data, is currently stored in countless inconsistent formats, which may include tabular data using a wide variety of characters and/or groups of characters, as delimiters. Such delimiters may denote the beginning or end of a row or column or may even denote the existence of a child table (e.g., a table nested within another table). The inconsistency of the formatting impedes the aggregation of the disparate data into much larger, more useful datasets. Understanding of data stru
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (14)
| Patent | Title | Year | Citations |
|---|---|---|---|
| ES 8,707,166 A1 | Oxidn. of cyclohexane in multistage reactor | — | 0 |
Non-Patent Literature (10)
- Embley et al.,
- “
- Table-processing paradigms: a research survey
- ”
- , International Journal of Document Analysis and Recognition, Springer, May 9, 2006, pp. 66-86, URL: https://sites.ecse.rpi.edu/
- ˜
- nagy/PDF_files/Embley_Hurst_Lopresti_Nagy_tablesurvey.pdf.
- Saurav et al.,
- “
- A Machine-Learning Approach to Automatic Detection of Delimiters in Tabular Data Files