kermitt2 / grobid

A machine learning software for extracting information from scholarly documents
https://grobid.readthedocs.io
Apache License 2.0
3.6k stars 460 forks source link

Extracting tables spanning across multiple pages #1186

Open BC-Naman opened 1 month ago

BC-Naman commented 1 month ago

Operating System and architecture (arm64, amd64, x86, etc.)

No response

What is your Java version

java 22.0.2 2024-07-16

Log and information

No response

Further information

Hi, I have multiple pdfs having tables that span across multiple pages. For eg:

Column 1 Column 2 Column 3
In the quiet town of Elmford, nestled between rolling hills and winding rivers, a peculiar event took place one autumn afternoon. Children often played near the base of the tower, imagining it to be a gateway to another world. Among them was little Sophie, an adventurous girl with a wild imagination. One day, while chasing a butterfly near the clock tower, Sophie stumbled upon an old, weathered key hidden beneath a pile of fallen leaves. Her heart raced with excitement as she wondered what the key might unlock.

----------------------------------------------------End of page 1----------------------------------------------------------------

Word of Sophie's discovery spread quickly through Elmford, and soon, the entire town was buzzing with anticipation. Some believed the key would unlock the mystery of the clock tower, while others thought it might lead to hidden treasure long forgotten. As dusk settled in and the town prepared for the annual harvest festival, Sophie stood in front of the clock tower, key in hand, ready to uncover the secrets it had kept for so long. At the center of town stood an old clock tower, its hands frozen at 3:15, a mystery that had puzzled the townsfolk for decades. No one knew when, or why, the clock had stopped ticking, but it had become a symbol of the town's timeless charm. One day, while chasing a butterfly near the clock tower, Sophie stumbled upon an old, weathered key hidden beneath a pile of fallen leaves. Her heart raced with excitement as she wondered what the key might unlock.

Problem: When I try extracting this information using the grobid_python_client all the information on page 2 gets tagged to column 3. The client is not able to extract the information of each column when table spans multiple pages.