Извлечение реляционных данных из произвольных таблиц электронных документов редактируемых форматов на основе пользовательских правил

Шигаров Алексей Олегович · Вычислительные технологии · 2025

Сегодня в мире имеется большое количество реляционных данных, доступных в неструктурированных источниках, а именно в таблицах произвольной формы, являющихся частью электронных документов различных редактируемых форматов. Последние, в отличие от баз данных, предназначены не для того, чтобы быть интерпретируемыми компьютерными программами, а исключительно для понимания человеком. Только будучи приведенными к структурированной форме, они станут доступными для использования в различных приложениях автоматической интерпретации данных. Настоящая работа посвящена комплексной научной задаче автоматизации процессов извлечения реляционных данных из произвольных таблиц электронных редактируемых документов. Предложен метод решения поставленной задачи на основе пользовательского программирования правил анализа и интерпретации таблиц, приводимых к формату так называемых рабочих книг (Excel/Sheets). Впервые такие правила отделены от применяемых моделей представления и алгоритмов обработки, при этом обеспечена поддержка произвольности структуры таблиц, а именно пользовательской компоновки, структурированности ячеек и иерархичности заголовков. Выполненная оценка производительности решений, реализованных на основе предлагаемого метода, показывает высокую эффективность их применения. Currently, a vast amount of relational data is available in unstructured sources, particularly as arbitrary tables within electronic documents in various editable formats. Unlike databases, these tables are primarily designed for human comprehension rather than for direct interpretation by computer programs. To be utilized in applications requiring automatic data interpretation, these tables have to be converted into a structured representation first. This work addresses the complex task of automating the extraction of relational data from arbitrary tables within electronic documents. A novel method is proposed to tackle this problem, leveraging end-user programming to create rules for analyzing and interpreting tables that have been converted into spreadsheet formats (Excel/Sheets). Unlike the existing rule-based methods devoted to the stated task, this approach decouples the rules from the underlying representation models and processing algorithms. Additionally, the proposed method accommodates arbitrary table layouts, structured cells, and header hierarchies. The tools implementing this method offer several notable advantages. The developed model of a document table supports arbitrary layouts, structured cells, and header hierarchies, providing flexibility in handling diverse table formats. The problem-oriented language, CRL, simplifies syntax specifically designed for end-user programming. Unlike general-purpose rule languages, CRL conceals irrelevant details, allowing users to focus exclusively on the logic of table analysis and interpretation. CRL rules can effectively replace specialized algorithms typically implemented using imperative programming or supervised learning. A single set of CRL rules can process a class of tables that share similar layout, formatting, and content characteristics. The complexity of implementing these rules varies depending on the diversity of these shared properties. The tools for table analysis and interpretation are integrated into the TabbyXL software package, which specializes in extracting data from tables. TabbyXL supports workbooks in formats (Excel/Sheets). It is important to note that document tables in other editable formats (Word/Docs, HTML, etc.) can be converted to the supported formats using existing conversion tools. The effectiveness of TabbyXL is substantiated by experimental data, both qualitative and quantitative comparisons with existing analogues. Additionally, the software has been successfully implemented in various scientific and industrial projects, addressing practical challenges such as data integration, constructing domain-specific ontologies, and managing the template document exchange.

Cited by 0 works. doi:10.25743/ict.2025.30.3.010

Authors