Datasets:
Tasks:
Image-to-Text
Modalities:
Text
Formats:
webdataset
Languages:
English
Size:
1K - 10K
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?
Got it!
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?