---
title: DocHieNet
canonical_url: "https://www.modelscope.cn/datasets/iic/DocHieNet"
md_url: "https://www.modelscope.cn/datasets/iic/DocHieNet.md"
repository: iic/DocHieNet
chinese_name: "文档层级解析数据集DocHieNet"
last_updated: 2024-12-23
license: "Apache License 2.0"
storage_size: "4.9 GB"
downloads: 8074
stars: 4
---

# DocHieNet

> DocHieNet - iic 在 ModelScope 开源的数据集。The DocHieNet for Document Hierarchy Parsing

iic/DocHieNet 是 ModelScope 魔搭社区上的数据集，存储大小 4.9 GB，采用 Apache License 2.0 许可。

- **Repository**: iic/DocHieNet
- **License**: Apache License 2.0
- **Storage size**: 4.9 GB
- **Downloads**: 8074
- **Stars**: 4
- **Last updated**: 2024-12-23

Source: https://www.modelscope.cn/datasets/iic/DocHieNet

---

# The DocHieNet for Document Hierarchy Parsing

This repository contains the dataset used for document hierarchy parsing, including the images, and annotations of layout entities, text, reading order of entities and hierarchical structure for documents.

## Dataset Structure

The dataset is organized into two main parts: images and labels. The directory named 'hres_images' contains document images with higher resolution.

### Annotation Format

Each label file contains the annotations of one document, and the annotations are organized as :

```
{
    "pages": {
        "page1": {
            "width": width of page 1,
            "height": height of page 1 
        },
        ...
    
    },
    "contents":[
        {
            "box": [x1, y1, x2, y2],
            "text": text of the layout entity,
            "page": page number,
            "label": type of the layout entity,
            "linking": [
                [
                    parent_id,
                    self_id
                ]
            ],
            "id": self_id,
            "order": reading order
        },
        ...
    ]
}
```
Each item in the 'content' list contains the annotations of a layout entity, such as a paragraph, title, table, header, etc.

### Data Split
The split of training and testing subset is provided in the 'train_test_split.json' file. The split of English and Chinese subset is provided in the 'en_zh_split.json' file.

## How to Use


To set up the dataset, please follow these steps:

```sh
cat dochienet_dataset.zip.part-* > dochienet_dataset.zip
unzip dochienet_dataset.zip
```

This will reconstruct and unpack the dataset files for use.

<!-- ### Download Method:
:modelscope-code[]{type="git"} -->
