TableCoder: Table Extraction from Text via Reliable Code Generation

This paper introduces a task aimed at extracting structured tables from text using natural language (NL) instructions.We present TABLECODER, an approach that leverages the symbolic nature of code to enhance the robustness of table structure construction and content extraction.TABLE-CODER first generates Python classes or SQL statements to explicitly construct table structures, capturing semantic ontology, computational dependencies, numerical properties, and format strings.This approach reliably mitigates issues such as structural errors, erroneous computations, and mismatched value types.Subsequently, TABLE-CODER proposes grounded content extraction, populating table cells sequentially and maintaining the exact order in which they are mentioned in the source text.By simulating a grounded "translation" from text to code, this method reduces the likelihood of omissions and hallucinations.Experimental results demonstrate that TABLE-CODER significantly improves F1 scores and mitigates hallucination and computational errors, crucial for high-stakes applications like government data analytics and financial compliance reporting.Moreover, the code-generation-based method naturally integrates with standard SQL databases and Python workflows, ensuring seamless deployment in existing enterprise data pipelines.

Authors

Institutions

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.acl-industry.98
Primary Topic
Advanced Text Analysis Techniques
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

TableCoder: Table Extraction from Text via Reliable Code Generation

Huailiang Peng, Haoyu Dong, Yue Hu, Yanan Cao
Advanced Text Analysis Techniques
article

TableCoder: Table Extraction from Text via Reliable Code Generation

Huailiang Peng, Haoyu Dong, Yue Hu, Yanan Cao
article en

Abstract

This paper introduces a task aimed at extracting structured tables from text using natural language (NL) instructions.We present TABLECODER, an approach that leverages the symbolic nature of code to enhance the robustness of table structure construction and content extraction.TABLE-CODER first generates Python classes or SQL statements to explicitly construct table structures, capturing semantic ontology, computational dependencies, numerical properties, and format strings.This approach reliably mitigates issues such as structural errors, erroneous computations, and mismatched value types.Subsequently, TABLE-CODER proposes grounded content extraction, populating table cells sequentially and maintaining the exact order in which they are mentioned in the source text.By simulating a grounded "translation" from text to code, this method reduces the likelihood of omissions and hallucinations.Experimental results demonstrate that TABLE-CODER significantly improves F1 scores and mitigates hallucination and computational errors, crucial for high-stakes applications like government data analytics and financial compliance reporting.Moreover, the code-generation-based method naturally integrates with standard SQL databases and Python workflows, ensuring seamless deployment in existing enterprise data pipelines.

Institute of Information Engineering (CN)
National Natural Science Foundation of China
Openalex Percentile: Top 90%
Advanced Text Analysis Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.