oliviermills commited on
Commit
fd80b93
·
verified ·
1 Parent(s): df6c6e2

Migrate to EU region (snapshot of 5ebe1fa1 from US)

Browse files
Files changed (3) hide show
  1. .gitattributes +0 -1
  2. README.md +57 -0
  3. data/train-00000-of-00001.parquet +3 -0
.gitattributes CHANGED
@@ -1,6 +1,5 @@
1
  *.7z filter=lfs diff=lfs merge=lfs -text
2
  *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.avro filter=lfs diff=lfs merge=lfs -text
4
  *.bin filter=lfs diff=lfs merge=lfs -text
5
  *.bz2 filter=lfs diff=lfs merge=lfs -text
6
  *.ckpt filter=lfs diff=lfs merge=lfs -text
 
1
  *.7z filter=lfs diff=lfs merge=lfs -text
2
  *.arrow filter=lfs diff=lfs merge=lfs -text
 
3
  *.bin filter=lfs diff=lfs merge=lfs -text
4
  *.bz2 filter=lfs diff=lfs merge=lfs -text
5
  *.ckpt filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - document-processing
4
+ - docling
5
+ - hierarchical-parsing
6
+ - pdf-processing
7
+ - generated
8
+ ---
9
+
10
+ # PDF Document Processing with Docling
11
+
12
+ This dataset contains structured markdown extraction from PDFs in [baobabtech/test-eval-documents](https://huggingface.co/datasets/baobabtech/test-eval-documents)
13
+ using Docling with hierarchical parsing.
14
+
15
+ ## Processing Details
16
+
17
+ - **Source Dataset**: [baobabtech/test-eval-documents](https://huggingface.co/datasets/baobabtech/test-eval-documents)
18
+ - **Number of PDFs**: 20
19
+ - **Processing Time**: 8.4 minutes
20
+ - **Processing Date**: 2025-12-02 15:40 UTC
21
+
22
+ ### Configuration
23
+
24
+ - **PDF Column**: `pdf_bytes`
25
+ - **Dataset Split**: `train`
26
+
27
+ ## Dataset Structure
28
+
29
+ The dataset contains all original columns plus:
30
+ - `original_md`: Markdown extracted by Docling (before hierarchical restructuring)
31
+ - `hierarchical_md`: Markdown with proper heading hierarchy (after hierarchical processing)
32
+ - `sections_toc`: Table of contents (one section per line, indented by level)
33
+ - `inference_info`: JSON with processing metadata
34
+
35
+ ## Usage
36
+
37
+ ```python
38
+ from datasets import load_dataset
39
+
40
+ dataset = load_dataset("YOUR_DATASET_ID", split="train")
41
+
42
+ for example in dataset:
43
+ print(f"Document: {example.get('file_name', 'unknown')}")
44
+
45
+ # Original markdown from Docling
46
+ print("=== Original Markdown ===")
47
+ print(example['original_md'][:500])
48
+
49
+ # Hierarchical markdown with proper heading levels
50
+ print("\n=== Hierarchical Markdown ===")
51
+ print(example['hierarchical_md'][:500])
52
+
53
+ # Table of contents
54
+ print("\n=== Table of Contents ===")
55
+ print(example['sections_toc'])
56
+ break
57
+ ```
data/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:297dde4e9842a7f0bbffab07dab965b3c9bbe88387d7cb36c5f724f5cc38fd2b
3
+ size 28920720