Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,56 @@
|
|
| 1 |
---
|
| 2 |
license: cc-by-nc-4.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: cc-by-nc-4.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
tags:
|
| 6 |
+
- education
|
| 7 |
+
- figure
|
| 8 |
+
- caption
|
| 9 |
+
- books
|
| 10 |
+
pretty_name: ml-figs
|
| 11 |
+
size_categories:
|
| 12 |
+
- 1K<n<10K
|
| 13 |
---
|
| 14 |
+
|
| 15 |
+
# ML-FIGS ππ
|
| 16 |
+
|
| 17 |
+
This dataset comprises a collection of **4,256 figures** and corresponding metadata extracted from **43 different machine learning books**. Each directory represents one book and contains a subdirectory with **images** and a **JSON file** holding metadata for each figure. The dataset is organized hierarchically as follows:
|
| 18 |
+
|
| 19 |
+
```python
|
| 20 |
+
ml-figs/
|
| 21 |
+
βββ Book_1/
|
| 22 |
+
β βββ image/
|
| 23 |
+
β β βββ Figure1.png
|
| 24 |
+
β β βββ Figure2.png
|
| 25 |
+
β β βββ ...
|
| 26 |
+
β βββ Book_1.json
|
| 27 |
+
βββ Book_2/
|
| 28 |
+
β βββ image/
|
| 29 |
+
β β βββ Figure1.png
|
| 30 |
+
β β βββ Figure2.png
|
| 31 |
+
β β βββ ...
|
| 32 |
+
β βββ Book_2.json
|
| 33 |
+
βββ ...
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
Each **JSON file** in the dataset represents the metadata for all the figures within a particular book. A typical entry for a figure in the JSON file includes the following attributes:
|
| 37 |
+
- **caption**: Describes the content of the figure. For example, "Figure 25: Gradient Descent (4/4)".
|
| 38 |
+
- **captionBoundary**: The bounding box of the caption text within the page, represented as a dictionary:
|
| 39 |
+
- **x1, x2**: Horizontal boundaries of the caption.
|
| 40 |
+
- **y1, y2**: Vertical boundaries of the caption.
|
| 41 |
+
- **figType**: The type of figure (usually "Figure", "Table", or other structural elements).
|
| 42 |
+
- **imageText**: A list of any text recognized within the figure image.
|
| 43 |
+
- **name**: The unique identifier for each figure within the book (e.g., "25").
|
| 44 |
+
- **page**: The page number on which the figure appears.
|
| 45 |
+
- **regionBoundary**: The bounding box of the entire figure within the page, defined as:
|
| 46 |
+
- **x1, x2**: Horizontal boundaries of the figure.
|
| 47 |
+
- **y1, y2**: Vertical boundaries of the figure.
|
| 48 |
+
- **renderDpi**: The DPI (dots per inch) resolution used when rendering the image.
|
| 49 |
+
- **renderURL**: The path to the corresponding figure image file within the image/ directory.
|
| 50 |
+
- **ocr**: OCR (Optical Character Recognition) data, capturing any text detected within the figure.
|
| 51 |
+
- **text** : A list of strings, representing the recognized text within the figure. These are typically individual words or symbols extracted by the OCR system.
|
| 52 |
+
- **left** : Horizontal coordinates (in pixels) representing the left edge of each recognized text element.
|
| 53 |
+
- **top** : Vertical coordinates (in pixels) representing the top edge of each recognized text element.
|
| 54 |
+
- **width** : Width of each recognized text element, providing the horizontal span of the text box.
|
| 55 |
+
- **height** : Height of each recognized text element.
|
| 56 |
+
- **conf** : Each recognized text element is assigned a confidence score ranging from 0 to 100, indicating the OCR system's confidence in its recognition.
|