Datasets:
Update README.md
Browse files
README.md
CHANGED
@@ -126,6 +126,16 @@ def get_columnar_separators(page, min_prominence=0.3, num_bins=10, kernel_width=
|
|
126 |
return separators
|
127 |
```
|
128 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
For each pdf document, we store statistics on number of pages per shard, number of valid samples per shard. A valid sample is a sample that can be encoded then decoded, which we did for each sample.
|
130 |
|
131 |
This instance of IDL is in [webdataset](https://github.com/webdataset/webdataset/commits/main) .tar format. It can be used with webdataset library or current releases of Hugging Face `datasets`.
|
|
|
126 |
return separators
|
127 |
```
|
128 |
|
129 |
+
That way, columnar documents can be better separated. This is a basic heuristic but it should improve overall the readability of the documents.
|
130 |
+
|
131 |
+
<div style="text-align: center;">
|
132 |
+
<img src="https://huggingface.co/datasets/pixparse/IDL-wds/resolve/main/doc_images/arrows_plot_straight.png" alt="Numbered bounding boxes on a document" style="width: 300px; height: 150px; display: inline-block;">
|
133 |
+
<img src="https://huggingface.co/datasets/pixparse/IDL-wds/resolve/main/doc_images/bounding_boxes_straight.png" alt="A simple representation of reading order" style="width: 300px; height: 150px; display: inline-block;">
|
134 |
+
</div>
|
135 |
+
<p style="text-align: center;"><em>Standard reading order for a single-column document.</em></p>
|
136 |
+
|
137 |
+
|
138 |
+
|
139 |
For each pdf document, we store statistics on number of pages per shard, number of valid samples per shard. A valid sample is a sample that can be encoded then decoded, which we did for each sample.
|
140 |
|
141 |
This instance of IDL is in [webdataset](https://github.com/webdataset/webdataset/commits/main) .tar format. It can be used with webdataset library or current releases of Hugging Face `datasets`.
|