Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
(ReadTimeoutError("HTTPSConnectionPool(host='cas-bridge-direct.xethub.hf.co', port=443): Read timed out. (read timeout=10)"), '(Request ID: 5cd6f452-0b62-4962-98a2-ca7225bf9bd9)')
Error code:   UnexpectedError

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

image
image
End of preview.

JieZi (解字)

JieZi Main Figure

💻 Project  ·  📦 Dataset  ·  🌐 Demo

JieZi (解字) is a large-scale, expert-audited visual question answering (VQA) dataset dedicated to ancient Chinese character exegesis. It pairs high-quality character glyph images with fine-grained expert annotations across nine paleographic tasks—including headword recognition, etymology, structural analysis, glyph evolution, and component function—providing a rigorous benchmark for multimodal understanding of Chinese paleography and calligraphy. Each character image is sourced from the MegaHan97K historical document collection, covering seven major Chinese script types from oracle bone to cursive.

📊 Dataset at a Glance

Property Value
Task Visual Question Answering (VQA)
Language Chinese (中文)
Total VQA Records 505,867
Unique Character Images 132,544
Script Types 7 (甲骨文, 金文, 战国文字, 篆书, 隶书, 楷书, 草书)
Question Types 9 (analysis + 8 fine-grained tasks)
Metadata Files 36,131 (one per character-script pair)
Image Format PNG / JPG
Image Source MegaHan97K Historical Document Collection
License CC BY-NC-ND 4.0

Task Distribution

The dataset covers nine paleographic tasks. Each task asks a different dimension of question about the same set of glyph images:

Task Chinese Name Count Percentage Description
analysis 综合分析 132,978 26.3% Comprehensive exegesis from form, meaning, and origin
headword 字头识别 46,700 9.2% Identify the modern standard Chinese character (字头)
evolution 字形演变 46,664 9.2% Describe the historical glyph evolution
etymology 造字法 46,651 9.2% Determine the method of character creation
script 字形判断 46,620 9.2% Classify the script type (甲骨文, 金文, 战国文, 篆书, 隶书, 楷书, 草书)
function 构件功能 46,620 9.2% Identify the semantic/phonetic function of a given component
meaning 本义解释 46,579 9.2% Explain the original meaning (本义) of the character
structure 结构分析 46,573 9.2% Analyze the structural composition (e.g., 独体, 左右, 上下)
components 构件分析 46,482 9.2% Analyze each component's function and evolution

Script Distribution

Script Records Characters Unique Images Percentage
隶书 (Clerical) 117,450 8,662 14,274 23.2%
篆书 (Seal) 111,340 8,679 23,628 22.0%
草书 (Cursive) 98,846 8,580 9,934 19.5%
楷书 (Regular) 79,350 4,465 16,267 15.7%
甲骨文 (Oracle Bone) 59,269 1,226 48,141 11.7%
金文 (Bronze) 35,474 1,655 19,874 7.0%
战国文字 (Ancient) 4,138 406 426 0.8%

Note on 楷书 (Regular Script): The 16,267 regular-script images are sourced from the MegaHan97K M5HisDoc historical document collection, ensuring high authenticity for printed and handwritten regular script glyphs. The 4,465 characters covered represent those with matching historical document sources.

🗂️ Data Format

Each sample is a JSON object stored as one JSONL line. The full dataset has been shuffled and is ready for train/validation splitting.

Main VQA FileJieZi-Dataset/JieZi-Dataset.jsonl (505,867 records):

{
  "image": "images/U+4E00/K/1.png",
  "question": "请识别图中的字形,并阐述其文字学属性。",
  "answer": "该字在现代字典中字头作「一」,图示为楷书字形。就造字法与结构而言,该字属独体结构之指事字...",
  "character": "一",
  "script": "楷书",
  "task": "analysis"
}

Metadata Filesmetadata/{script_type}/{char}_{script}.json (36,131 files):

{
  "character": "一",
  "script": "楷书",
  "creation_method": ["指事字"],
  "structure": "独体",
  "special_structure": "独体",
  "components": [
    {"component": "一", "function": ["表意"], "explanation": "象一根算筹横置之形"}
  ],
  "original_meaning": "数目一",
  "evolution": "甲骨文、金文、战国文字、篆书皆象一根算筹横置之形...",
  "pinyin": ["yī"],
  "meaning_chunks": [
    {"pinyin": "yī", "pos": "数词", "meaning": "数目一", "notes": "本义", "examples": ""}
  ],
  "images": ["JieZi-Dataset/images/U+4E00/K/1.png", "JieZi-Dataset/images/U+4E00/K/2.png"]
}

Field Description — VQA Records

Field Type Description
image string Relative path to the glyph image, rooted at JieZi-Dataset/. Format: images/U+{codepoint}/{script_letter}/{index}.{ext}. The folder hierarchy is organized by Unicode codepoint (U+XXXX) and script type (one uppercase letter: J=甲骨文, B=金文, G=战国文字, S=篆书, L=隶书, K=楷书, C=草书).
question string Natural-language question about the character. Multiple paraphrased templates exist for each task.
answer string Expert-verified ground-truth answer. Long-form for analysis, evolution, and components; short-form for headword, script, and etymology.
character string The modern standard Chinese character (字头) that the depicted glyph corresponds to in contemporary dictionaries.
script string The script type (字形 / 书体): 甲骨文, 金文, 战国文字, 篆书, 隶书, 楷书, or 草书.
task string The task type: analysis, headword, script, etymology, structure, meaning, evolution, components, or function.

Field Description — Metadata Records

Field Type Description
character string Modern standard Chinese character (字头)
script string Script type (字形)
creation_method list Method of character creation, e.g., ["象形字"], ["形声字"]
structure string Structural composition, e.g., "独体", "⿰" (left-right), "⿱" (top-bottom)
special_structure string Special or historical structural variant
components list Array of component objects, each with component (name), function (list), explanation (string)
original_meaning string Original meaning of the character (本义)
evolution string Description of historical glyph evolution across script types
pinyin list Modern pinyin readings
meaning_chunks list Array of meaning entries, each with pinyin, pos (part of speech), meaning, notes, examples
images list Relative paths to all glyph images for this character-script pair

🔍 VQA Examples by Task

Below are representative samples for all nine task types. Open the Dataset Viewer tab above to browse all 505,867 samples interactively.

1. Comprehensive Analysis (analysis)

Image Question Answer
analysis 请对这幅古文字图像进行系统的释读。 观察图像所示篆书字形,该字在现代字典中字头为「雹」。从文字学角度分析,此字为象形字。其构件构成如下:「雨」承担表意功能,演变类型为保留,构字解释为「象天穹降雨之形,标示降水现象。」;「冰粒」承担表意功能,演变类型为讹变,构字解释为「象冰雹颗粒之形,后讹变为声符"包"。」...

2. Headword Recognition (headword)

Image Question Answer
headword 请确认图中字形对应的现代字典字头。

3. Script Classification (script)

Image Question Answer
script 这张图里的字体类型是什么? 甲骨文

4. Etymology (etymology)

Image Question Answer
etymology 这个字的造字法是什么? 形声字

5. Structural Analysis (structure)

Image Question Answer
structure 该字的结构应如何归类? 左右结构

6. Original Meaning (meaning)

Image Question Answer
meaning 图中字的原初意义(本义)是什么? 巡视田禾

7. Glyph Evolution (evolution)

Image Question Answer
evolution 请依时代先后,说明该字字形的演变轨迹。 甲骨文作以戈击门形,金文讹变为手持棍敲门,后综合为从户从聿。篆文定型为三体结构,隶变后楷书分化为肁、肈、肇。草书在此基础上进一步连笔简化,保留上下结构特征。

8. Component Analysis (components)

Image Question Answer
components 请完整分析该字的构件构成,包括每一构件的表意/表音功能、演变类型及解释。 1. 构件凵:表意;演变类型为保留;象坑穴或容器之形,在此表示关押野兽的笼槛。2. 构件牛:功能为表意;演变类型为保留;象牛头及角之形,表示被关押的对象。

9. Component Function (function)

Image Question Answer
function 请说明构件"水"在该字中的功能。 表意

🚀 Usage

Quick Start with Hugging Face datasets

from datasets import load_dataset

# Load from the Hub
dataset = load_dataset("Ran0/JieZi", split="train")

# Inspect a sample
sample = dataset[0]
print(sample["question"])   # 请识别图中的字形,并阐述其文字学属性。
print(sample["answer"])     # 该字在现代字典中字头作「㐁」...
print(sample["character"])  # 㐁 (modern standard character)
print(sample["script"])     # 楷书 (script type)
print(sample["task"])       # analysis (task type)
sample["image"].show()      # Display the character image

Manual Loading

If you prefer to work with the raw JSONL directly:

import json
from pathlib import Path

root = Path("JieZi-Dataset")
with (root / "JieZi-Dataset.jsonl").open("r", encoding="utf-8") as f:
    for line in f:
        item = json.loads(line)
        image_path = root / item["image"]   # relative path
        question   = item["question"]
        answer     = item["answer"]
        character  = item["character"]
        script     = item["script"]
        task       = item["task"]
        # ... your processing logic ...

Loading Metadata

import json

# Load metadata for a specific character-script pair
with open("metadata/楷书/一_楷书.json", "r", encoding="utf-8") as f:
    meta = json.load(f)

print(meta["character"])       # 一
print(meta["creation_method"]) # ['指事字']
print(meta["structure"])       # 独体
print(meta["components"])      # [{'component': '一', 'function': ['表意'], 'explanation': '...'}]
print(meta["pinyin"])          # ['yī']
print(meta["meaning_chunks"])  # list of meaning entries with POS, examples, etc.
print(meta["images"])          # ['JieZi-Dataset/images/U+4E00/K/1.png', ...]

⚠️ Path Note: When using the raw JSONL, keep the relative path relationship between JieZi-Dataset.jsonl and images/ unchanged. Images are organized hierarchically as images/U+{codepoint}/{script_letter}/{index}.{ext}, where codepoint is the Unicode of the character, script_letter is one uppercase letter (J/B/G/S/L/K/C), and index is the sequential number for that glyph variant.

🏗️ Project Structure

JieZi/
├── JieZi-Dataset/
│   ├── JieZi-Dataset.jsonl    # Main dataset file (505,867 VQA records, shuffled)
│   └── images/                # Glyph image directory (132,544 images)
│       ├── U+4E00/            # Unicode folder for character "一"
│       │   ├── J/             # 甲骨文 (Jiaguwen / Oracle Bone)
│       │   ├── K/             # 楷书 (Kaishu / Regular — MegaHan97K)
│       │   └── ...
│       ├── U+4E01/            # Unicode folder for character "丁"
│       │   ├── B/             # 金文 (Jinwen / Bronze)
│       │   ├── S/             # 篆书 (Zhuanshu / Seal)
│       │   └── ...
│       └── ...                # One folder per character (U+XXXX)
├── metadata/                  # Character metadata (36,131 JSON files)
│   ├── 隶书/                  #   8,662 files
│   ├── 篆书/                  #   8,679 files
│   ├── 草书/                  #   8,580 files
│   ├── 楷书/                  #   6,923 files (includes chars without VQA images)
│   ├── 金文/                  #   1,655 files
│   ├── 甲骨文/                #   1,226 files
│   └── 战国文字/              #     406 files
├── JieZi-bench/               # Benchmark subset (512 hard characters)
│   ├── hard_04EB5_亵/         # One folder per benchmark character
│   │   ├── entry.json         # Character metadata & annotations
│   │   └── images/            # Glyph images for this character
│   └── ...
├── README.md                  # Dataset documentation (this file)
└── main_figure.png            # Project teaser figure

📚 Citation

If you use this dataset in your research, please cite:

@misc{jiezi2024,
  title={JieZi: A Large-Scale Expert-Audited Dataset and Benchmark for Ancient Chinese Character Exegesis},
  author={Ran et al.},
  year={2024},
  howpublished={\url{https://huggingface.co/datasets/Ran0/JieZi}}
}

📜 License

This dataset is released under CC BY-NC-ND 4.0 for non-commercial research purposes only. By downloading or using the data, you agree to comply with the terms of this license.

🔗 Links

Link Description
💻 Project Source code & documentation
📦 Dataset HuggingFace dataset repository
🌐 Demo Interactive online demo
Downloads last month
6,240