CHisIEC: An Information Extraction Corpus for Ancient Chinese History

Xuemei Tang, Zekun Deng, Qi Su, Hao Yang, Jun Wang · DOI

Abstract

Natural Language Processing (NLP) plays a pivotal role in the realm of Digital Humanities (DH) and serves as the cornerstone for advancing the structural analysis of historical and cultural heritage texts. This is particularly true for the domains of named entity recognition (NER) and relation extraction (RE). In our commitment to expediting ancient history and culture, we present the "Chinese Historical Information Extraction Corpus" (CHisIEC). CHisIEC is a meticulously curated dataset designed to develop and evaluate NER and RE tasks, offering a resource to facilitate research in the field. Spanning a remarkable historical timeline encompassing data from 13 dynasties spanning over 1830 years, CHisIEC epitomizes the extensive temporal range and text heterogeneity inherent in Chinese historical documents. The dataset encompasses four distinct entity types and twelve relation types, resulting in a meticulously labeled dataset comprising 14,194 entities and 8,609 relations. To establish the robustness and versatility of our dataset, we have undertaken comprehensive experimentation involving models of various sizes and paradigms. Additionally, we have evaluated the capabilities of Large Language Models (LLMs) in the context of tasks related to ancient Chinese history.

The Challenge of Ancient Chinese Information Extraction

Digital Humanities (DH) relies on transforming unstructured historical texts into structured data—such as Knowledge Graphs—to analyze patterns in politics, warfare, and social structures. However, ancient Chinese presents significant challenges for NLP:

  1. Temporal Heterogeneity: The language evolved significantly over 2,000 years, leading to shifts in vocabulary and grammar.
  2. Information Density: Ancient Chinese is concise; a few characters can convey complex social hierarchies or military actions.
  3. Data Scarcity: Previous datasets were often too small (under 4,000 samples) to effectively train modern deep learning models.

CHisIEC was created to bridge this gap, providing a high-quality, large-scale benchmark specifically for the "Twenty-Four Histories," the official record of China’s imperial past.

Methodology

The authors employed a rigorous multi-stage annotation pipeline to ensure data quality. This "multi-person annotation + professional review" approach involved eighteen undergraduate students performing initial labeling, followed by a task researcher and a historical expert resolving any inconsistencies.

The multi-stage annotation pipeline used to create the CHisIEC corpus, featuring multi-person annotation and professional review.

To validate the dataset, two distinct modeling paradigms were tested:

  • Domain-Specific PLMs: Fine-tuned SikuBERT and SikuRoBERTa models, which were pre-trained on ancient Chinese corpora.
  • Large Language Models (LLMs): Evaluation of ChatGLM2-6B and Alpaca2-7B (using P-tuning and LoRA), alongside GPT-3.5 in an in-context learning setting.

The CHisIEC Dataset

The corpus is sourced from 22 volumes selected from 13 books within the Twenty-Four Histories (e.g., Records of the Grand Historian, History of Ming). It comprises 150,000 characters, 14,194 entities, and 8,609 relations.

Distribution of (a) Entity types and (b) Relation types within the CHisIEC dataset.

The schema includes:

  • 4 Entity Types: Person, Location, Official Position, and Book.
  • 12 Relation Types: Categorized into Politics (e.g., Superior-subordinate), War (e.g., Attack), Geography (e.g., Manage), Family (e.g., Parents), and Personal Information (e.g., Birthplace).

Key Insights and Results

Experiments revealed that domain pre-training is often more critical than model size for specialized tasks. SikuRoBERTa achieved the highest Micro F1 score of 92.46% for NER, outperforming much larger LLMs. This suggests that for token-level tasks in specialized languages, pre-training on relevant data is paramount.

However, LLMs excelled at semantic relations. Alpaca2-7B led in Relation Extraction with an F1 of 85.00%, slightly edging out domain-specific models. This indicates that the general reasoning capabilities of LLMs are highly effective for semantic classification tasks like RE.

A notable challenge was the "Political Support" relation. All models struggled with this category due to its semantic complexity, involving abstract concepts like "recommending" or "rescuing" that are harder to capture than concrete relations like "Parents" or "Attack."

Limitations and Future Work

The dataset currently shows some imbalance, with "Book" entities representing only 2% of the data. Future work will focus on expanding the corpus to include more informal historical texts beyond official dynastic histories to further test model robustness against text heterogeneity. Additionally, more sophisticated prompt engineering, such as "Chain of Thought" reasoning, may further improve LLM performance on complex historical relations.

Summary updated

BibTeX
@inproceedings{tang2024chisiec,
  author = {Xuemei Tang and Zekun Deng and Qi Su and Hao Yang and Jun Wang},
  title = {{CHisIEC: An Information Extraction Corpus for Ancient Chinese History}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2024},
}
Figure