Datasets:
Tasks:
Image-to-Text
Modalities:
Text
Formats:
parquet
Languages:
Spanish
Size:
10K - 100K
ArXiv:
Tags:
finance
License:
Update README.md
Browse filesAdd details on dataset
README.md
CHANGED
|
@@ -1,19 +1,114 @@
|
|
| 1 |
---
|
|
|
|
| 2 |
dataset_info:
|
| 3 |
features:
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
splits:
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
download_size: 11661151472
|
| 13 |
dataset_size: 11860671915
|
| 14 |
configs:
|
| 15 |
-
- config_name: default
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
dataset_info:
|
| 4 |
features:
|
| 5 |
+
- name: image
|
| 6 |
+
dtype: string
|
| 7 |
+
- name: text
|
| 8 |
+
dtype: string
|
| 9 |
splits:
|
| 10 |
+
- name: train
|
| 11 |
+
num_bytes: 11860671915
|
| 12 |
+
num_examples: 13320
|
| 13 |
download_size: 11661151472
|
| 14 |
dataset_size: 11860671915
|
| 15 |
configs:
|
| 16 |
+
- config_name: default
|
| 17 |
+
data_files:
|
| 18 |
+
- split: train
|
| 19 |
+
path: data/train-*
|
| 20 |
+
task_categories:
|
| 21 |
+
- image-to-text
|
| 22 |
+
language:
|
| 23 |
+
- es
|
| 24 |
+
tags:
|
| 25 |
+
- finance
|
| 26 |
+
pretty_name: SpanishOCR
|
| 27 |
+
size_categories:
|
| 28 |
+
- 10K<n<100K
|
| 29 |
---
|
| 30 |
+
---
|
| 31 |
+
license: cc-by-4.0
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
----------------------------------------------------------------
|
| 35 |
+
# Dataset Card for SpanishOCR Dataset
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
### Dataset Summary
|
| 39 |
+
The SpanishOCR dataset contains images derived from regulatory documents from Peru government in pdf format. This dataset is used for benchmarkingg and evaluating Large Language Models ability on converting unstructured dcuments, such as pdfs and images, into machine readable format, particularly in finance domain, where the conversion task is more complex and valuable.
|
| 40 |
+
|
| 41 |
+
### Supported Tasks
|
| 42 |
+
|
| 43 |
+
- **Task:** Information Extraction
|
| 44 |
+
- **Evaluation Metrics:** ROUGE-1
|
| 45 |
+
|
| 46 |
+
### Languages
|
| 47 |
+
|
| 48 |
+
- Spanish
|
| 49 |
+
|
| 50 |
+
## Dataset Structure
|
| 51 |
+
|
| 52 |
+
### Data Instances
|
| 53 |
+
Each instance in the SpanishOCR dataset comprises 2 fields:
|
| 54 |
+
- **image** : image of regulatory document, each image represent one page in pdf
|
| 55 |
+
- **text**: ground truth of tet extracted from regulatory document
|
| 56 |
+
|
| 57 |
+
### Data Fields
|
| 58 |
+
- **image** : string - Base64-encoded png
|
| 59 |
+
- **text**: extracted text from pdf files
|
| 60 |
+
|
| 61 |
+
## Dataset Creation
|
| 62 |
+
|
| 63 |
+
### Curation Rationale
|
| 64 |
+
The SpanishOCR dataset was curated to support research and development on information extraction techniques and layout retain ability for unstructured documents in Spanish. By providing real-world regulatory documents in unstructured format with ground truth, the dataset seeks to address challenges in extracting informat as well as layouts and convert into machine-readable format.
|
| 65 |
+
### Source Data
|
| 66 |
+
|
| 67 |
+
#### Initial Data Collection and Normalization
|
| 68 |
+
- The source data are regulatory documents for Securities Market from Peru government publically available.
|
| 69 |
+
- The pdf files of those documents are downloaded and split via API, split into page per file, and convert into images.
|
| 70 |
+
|
| 71 |
+
#### Who are the Source Language Producers?
|
| 72 |
+
- The source data are regulatory documents for Securities Market from Peru government, and is collected to a Peruvian digital platform: https://www.gob.pe/institucion/smv/buscador?contenido=normas&sheet=1&sort_by=re
|
| 73 |
+
|
| 74 |
+
### Annotations
|
| 75 |
+
|
| 76 |
+
#### Annotation Process
|
| 77 |
+
- The dataset was prepared by collecting, spliting, and converting regulatory documents in Spanish
|
| 78 |
+
- The annotation of ground truth text is done by Python OCR package ```fitz```
|
| 79 |
+
|
| 80 |
+
#### Who are the Annotators?
|
| 81 |
+
|
| 82 |
+
- The dataset stems from publicly available regulatory documents.
|
| 83 |
+
- No external annotation team was involved beyond this.
|
| 84 |
+
|
| 85 |
+
### Personal and Sensitive Information
|
| 86 |
+
|
| 87 |
+
- The SpanishOCR dataset does not contain any personally identifiable information (PII) and is strictly focused on Greek text data for summarization purposes.
|
| 88 |
+
|
| 89 |
+
## Considerations for Using the Data
|
| 90 |
+
|
| 91 |
+
### Social Impact of Dataset
|
| 92 |
+
This dataset enables AI models to extract structured information from scanned financial documents in multiple languages, promoting transparency and accessibility. By aligning page-level PDF images with accurate ground truth text, it supports the development of fairer, more inclusive models that work across diverse formats and languages.
|
| 93 |
+
|
| 94 |
+
### Discussion of Biases
|
| 95 |
+
- The source data is limited toregulatory documents for Scurity Markets, it may underrepresent other financial document types such as tax records, bank statements, or private company reports, potentially limiting model generalizability.
|
| 96 |
+
|
| 97 |
+
### Other Known Limitations
|
| 98 |
+
- The ground truth text is extracted using the Python package fitz (PyMuPDF), which may introduce inaccuracies in complex layouts, potentially affecting training quality and evaluation reliability.
|
| 99 |
+
- While the dataset covers regulatory documents, it may lack sufficient variety in layout styles (e.g., handwritten notes, non-standard financial forms, embedded charts), which could limit a model’s ability to generalize to less structured or unconventional financial documents.
|
| 100 |
+
|
| 101 |
+
## Additional Information
|
| 102 |
+
|
| 103 |
+
### Dataset Curators
|
| 104 |
+
- Yueru He
|
| 105 |
+
- Ruoyu Xiang
|
| 106 |
+
|
| 107 |
+
### Licensing Information
|
| 108 |
+
|
| 109 |
+
- **License:** CC BY 4.0
|
| 110 |
+
|
| 111 |
+
### Citation Information
|
| 112 |
+
|
| 113 |
+
If you use this dataset in your research, please consider citing the following paper:
|
| 114 |
+
|