Datasets:

Modalities:
Text
Formats:
webdataset
Languages:
English
Libraries:
Datasets
WebDataset
License:

heuristic to obtain lines from individual text

#4
by VictorSanh - opened

Hi!
the readme mentions a heuristic to create the assemble individual words into lines.

From the pdf digital files, we extracted words, bounding boxes and image bounding boxes that are available in the pdf file. This information is then reshaped into lines organized in reading order, under the key lines. We keep non-reshaped word and bounding box information under the word key, should users want to use their own heuristic.

Is this heuristic available somewhere?

Pixel Parsing org

@VictorSanh that's a q for @Molbap and he's in the middle of nowhere right now :)

Got it!

Pixel Parsing org

Back! Hi @VictorSanh , the heuristic is given in https://huggingface.co/datasets/pixparse/idl-wds and it's the same as the one used for PDFA, to group lines into paragraphs. The gist is find clusters of lines with similar x_min coordinates, indicating a left-aligned block.
For the task of_words into lines_ it was just y-coordinate clustering when the lines were not given. For both PDFA and IDL I think both lines and words are available as raw data right?

Sign up or log in to comment