Datasets:
Add dataset card for PharmaShip
#1
by
nielsr
HF Staff
- opened
README.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- zh
|
| 4 |
+
license: other
|
| 5 |
+
task_categories:
|
| 6 |
+
- image-text-to-text
|
| 7 |
+
tags:
|
| 8 |
+
- document-ai
|
| 9 |
+
- document-understanding
|
| 10 |
+
- pharmaceutical
|
| 11 |
+
- information-extraction
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# PharmaShip: An Entity-Centric, Reading-Order-Supervised Benchmark for Chinese Pharmaceutical Shipping Documents
|
| 15 |
+
|
| 16 |
+
[**Paper**](https://huggingface.co/papers/2512.23714) | [**Github**](https://github.com/KevinYuLei/PharmaShip)
|
| 17 |
+
|
| 18 |
+
**PharmaShip** is a real-world Chinese dataset of scanned pharmaceutical shipping documents designed to stress-test pre-trained text-layout models under noisy OCR and heterogeneous templates.
|
| 19 |
+
|
| 20 |
+
It covers three complementary tasks:
|
| 21 |
+
* **Sequence Entity Recognition (SER)**: Identifying semantic entities at the segment level.
|
| 22 |
+
* **Relation Extraction (RE)**: Modeling linkages between entities (e.g., Question-Answer pairs).
|
| 23 |
+
* **Reading Order Prediction (ROP)**: Predicting a directed acyclic reading order graph to capture layout-induced reading strategies.
|
| 24 |
+
|
| 25 |
+
PharmaShip adopts an entity-centric evaluation protocol to minimize confounds across architectures and highlights sequence-aware constraints as a transferable bias for structure modeling.
|
| 26 |
+
|
| 27 |
+
## Dataset Statistics
|
| 28 |
+
PharmaShip consists of **161** annotated scanned documents with **11,295** segments. The dataset is officially split into 128 samples for training and 33 samples for validation. Compared to existing benchmarks like FUNSD, CORD, and SROIE, PharmaShip features a higher density of entities and relations per sample, making it a more challenging benchmark for layout-intensive scenarios.
|
| 29 |
+
|
| 30 |
+
## Sample Usage
|
| 31 |
+
You can load the dataset directly using the Hugging Face `datasets` library:
|
| 32 |
+
|
| 33 |
+
```python
|
| 34 |
+
from datasets import load_dataset
|
| 35 |
+
|
| 36 |
+
dataset = load_dataset("YuLeiKevin/PharmaShip")
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
## Citation
|
| 40 |
+
If you find this dataset helpful for your research, please cite the following paper:
|
| 41 |
+
|
| 42 |
+
```bibtex
|
| 43 |
+
@misc{xie2025pharmashipentitycentricreadingordersupervisedbenchmark,
|
| 44 |
+
title={PharmaShip: An Entity-Centric, Reading-Order-Supervised Benchmark for Chinese Pharmaceutical Shipping Documents},
|
| 45 |
+
author={Tingwei Xie and Tianyi Zhou and Yonghong Song},
|
| 46 |
+
year={2025},
|
| 47 |
+
eprint={2512.23714},
|
| 48 |
+
archivePrefix={arXiv},
|
| 49 |
+
primaryClass={cs.CL},
|
| 50 |
+
url={https://arxiv.org/abs/2512.23714},
|
| 51 |
+
}
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
+
## License
|
| 55 |
+
The PharmaShip dataset can only be used for non-commercial research purposes.
|