CoolFace
Apppublic

Elckara/table-extraction

sourceHugging Faceapache-2.0updated 11mo agoView on Hugging Face
0likes
App README

Table Extraction

![Hugging Face Spaces](https://huggingface.co/spaces/jobian/table-extraction) ![Made with Gradio](https://gradio.app/) ![License: Apache-2.0](https://opensource.org/licenses/Apache-2.0)

This is a Proof of Concept (PoC) for extracting tables from text-based PDF documents using the GMFT library and serving results via a Gradio app.


What this Space does

  • โ€”Upload a text-based PDF.
  • โ€”Automatically detects tables and extracts them into structured JSON.
  • โ€”Each extracted table includes:
  • โ€”Page number + Table ID
  • โ€”Table columns and data
  • โ€”Bounding box + captions (if detected)
  • โ€”Outputs are saved as:
  • โ€”tables.json โ†’ structured table data
  • โ€”metrics.json โ†’ per-file stats (tables found, processing time, etc.)
  • โ€”Tables are rendered back in the UI for quick inspection.
  • โ€”JSON + metrics are available for download.

โš ๏ธ Limitations

  • โ€”This PoC currently works best with text-based PDFs.
  • โ€”Scanned PDFs may not be parsed correctly (OCR support is not yet included).

Example JSON structure

json
{
  "file": "example.pdf",
  "extracted_at": "2025-09-04T13:22:58+00:00",
  "n_pages": 12,
  "tables": [
    {
      "page": 3,
      "table_id": 5,
      "columns": ["Name", "Age", "Score"],
      "n_rows": 4,
      "n_cols": 3,
      "data": [
        {"Name": "Alice", "Age": 23, "Score": 89},
        {"Name": "Bob", "Age": 25, "Score": 92}
      ]
    }
  ]
}