DH 2026

Daejeon, July 27–31

Thu, July 3016:30–18:00S081206-208
Short Paper

Research on the Recognition of Toponyms in Chinese Ancient Books Based on BERT-BiLSTM-CRF

Jiajun Cao
Shanghai Normal University, China, People's Republic of · jscjj95@126.com
Yiran Peng
Shanghai Normal University, China, People's Republic of · pyr568899@gmail.com
Jingwen Zhang
Shanghai Normal University, China, People's Republic of · 2334944284@qq.com
Zhongqing Heng
Foshan University, China, People's Republic of · hengfosu@163.com

Introduction

Early toponym recognition in ancient Chinese literature relied mainly on manual rules and lexicon-based methods[1]. However, these methods suffered from narrow coverage, rigid patterns, and costly rule design, lacking robustness, portability, and comprehensiveness[2]. Subsequently, BiLSTM and CRF later improved performance and generalization, with BiLSTM-CRF excelling at entity recognition in classical medical texts[3] and botanical entity recognition[4]. However, these methods still have limitations in fully representing the contextual semantics of historical texts.

The breakthrough came with BERT. BERT’s bidirectional attention, combined with BiLSTM and CRF, forms a robust, cross-domain adaptable architecture[5][6]. In ancient Chinese texts, BERT-BiLSTM-CRF proved highly effective for NER tasks such as in the Twenty-Four Histories[7] and processing historical documents[8]. However, Ancient Chinese text deep learning is challenged by scarce data, unique language, and complex toponyms. Local feature fusion offers a partial solution[9], position embedding[10], multi-stage fine-tuning[11] and regularity-guided boundary detection[12] to address these issues and bridge the domain gap.

We compared CNN, LSTM, and BERT and their combinations for Chinese toponym recognition. The main contributions are: (1) developing a BERT-BiLSTM-CRF model for location name identification; (2) comparing its performance with other models; and (3) identifying optimal parameters via systematic tuning to guide similar toponym recognition tasks.

Methodology

As shown in Figure 1, the research process includes: collecting ancient texts, preprocessing (tokenization, segmentation, label alignment), training with BERT-BiLSTM-CRF, evaluating with Precision/Recall/F1, and visualizing results.

Figure 1 Flowchart for Ancient Chinese Toponym Recognition in Ancient Texts.

Data collection and processing

The main data source is the digitized Comprehensive Chronological Biography of Wang Yangming (OCR to TXT). Using the BIO system, place names were annotated character-by-character (B-LOC: start, I-LOC: middle/end, O: non-place-name), including punctuation. A total of 462 TXT files were annotated and randomly split into training (70%), validation (15%), and test (15%) sets.

Construction of entity extraction model

This study uses Google’s Chinese-BERT-wwm to capture semantic and lexical features in ancient Chinese texts via bidirectional context and whole word masking. BiLSTM uses two opposite-direction LSTM networks to handle word sequences, meaning shifts, and long-distance dependencies, improving toponym recognition in complex texts. CRF optimizes sequence labeling by modeling label transition probabilities. The proposed BERT-BiLSTM-CRF model (Figure 2) integrates BERT for semantic extraction, BiLSTM for dynamic context, and CRF for label optimization to output toponym recognition results.

Figure 2 The Model Structure of BERT-BiLSTM-CRF.

Experiment and Result

Experimental setup

To verify the effectiveness of the model, this study conducted a series of experiments. The specific environmental configurations and training parameter settings are presented in Table 1 and Table 2, respectively.

Table 1 Experimental Environment Configuration

Environment NameConfiguration
Operating SystemWindows10
CPUIntel(R) Core(TM) i7-10875H
GPUNVDIA Geforce RTX2060 Laptop
RAM16G
Pytorch2.6.0
CUDA11.8

Table 2 Experimental Training Parameters

Training Parameter NameParameter ValueExplanation of Parameter Name
batch size16The number of training samples per batch
epochs30The number of training rounds
learning rate3e-5Learning rate
max length128Maximum sequence length
optimizerAdamOptimizer

Model performance comparison

To validate the proposed model, multiple models were compared in NER experiments using F1-score, precision, and recall. As shown in Table 3, the BERT-BiLSTM-CRF model achieves the highest precision, recall, and F1-score among all compared models. Table 4 further illustrates that BERT-BiLSTM-CRF accurately identifies toponyms while other models produce false positives (e.g., identifying "室" or "久" as toponyms) or false negatives.

Table 3 Comparison of different models (%)

ModelF1-scorePrecisionRecall
BERT-BiLSTM-CRF0.8970.8750.920
BERT0.8610.8210.905
BERT-BiLSTM0.8540.8150.815
BERT-CRF0.8740.8640.883
BiLSTM-CRF0.7530.8140.700

Table 4 Examples of model performance in recognition tasks

Original TextBERT-BiLSTM-CRFBERTBERT-BiLSTMBERT-CRFBiLSTM-CRF
归至【绍兴】。筑室【阳明洞】中,行导引术,静坐习定,究极道经秘旨。绍兴,阳明洞绍兴,阳明洞绍兴,室,阳明洞绍兴,阳明洞绍兴,阳明洞,秘旨
上处置平复地方以图久安疏,奏请立土官知州,立岑邦相于【田州】,岑邦佐于【武靖】田州、武靖久安、田州、武靖田州、武靖久,田州,武靖田州

Analysis of parameter tuning for BERT-BiLSTM-CRF

To systematically examine the effects of training epochs and dropout rate on model performance, a 5×5 grid search was performed using five dropout rates (0.1-0.5) and five epoch values (10-50), with all other hyperparameters fixed. Early stopping (patience=5) was applied based on validation F1 score. the results are shown in Figure 3.

Figure 3 Impact of Epoch and Dropout Rate on Model Performance.

The figure shows that all curves converge around 20 epochs. Moderate dropout (0.3–0.4) improves generalization; low dropout (0.1) gives fast early gains but later stagnates; high dropout (0.5) lowers F1 scores.

Overall, The best performance (F1 = 0.906) occurs at Epoch=20, Dropout=0.1, a 0.9% gain over the baseline (0.897). This optimal combination balances training duration and regularization, serving as a reference for fine-tuning similar models in ancient text digitization and historical GIS.

Discussion

Model performance discussion

BERT-BiLSTM-CRF outperformed BERT, BERT-BiLSTM, and BERT-CRF in ancient text NER by combining context-aware representations, long-range dependency handling, and label optimization. The poor performance of BiLSTM-CRF highlights the importance of pre-trained models for specialized domains.

Fine-tuning performance discussion

Parameter tuning for BERT-BiLSTM-CRF showed that the optimal combination (Epoch=20, Dropout=0.1) improved the F1 score, highlighting the importance of balancing training duration and regularization. Performance gains may be limited by the small training dataset. Future work should use larger, more diverse datasets to further optimize fine-tuning.

Conclusion

This study proposes BERT-BiLSTM-CRF for ancient text NER. Empirical results confirm its effectiveness over baseline models, and parameter tuning provides insights into model optimization. However, several limitations should be acknowledged: the small dataset limits learning of complex patterns; evaluation focuses exclusively on F1, precision, and recall, overlooking interpretability and efficiency; and the method is tested only on ancient text NER without extension to broader historical or cultural applications. Future work should therefore prioritize data expansion, metric diversification, and application generalization. Overall, this work contributes a robust baseline for ancient text information extraction.

Acknowledgements

This work is supported by the separate project on Chinese studies in the Philosophy and Social Sciences Planning of Guizhou Province (22GZGX03).

References
  1. [1] Deng, N., H. Fu and X. Chen (2021). Named entity recognition of traditional chinese medicine patents based on BiLSTM-CRF. Wirel. Commun. Mob. Comput. 2021: 1–12. doi:10.1155/2021/6696205.
  2. [2] Li, W., K. Sun, S. Wang, Y. Zhu, X. Dai and L. Hu (2024). DePNR: A DeBERTa‐based deep learning model with complete position embedding for place name recognition from geographical literature. Trans. GIS. doi:10.1111/tgis.13170.
  3. [3] Liu, H., Q. Qiu, L. Wu, W. Li, B. Wang and Y. Zhou (2022). Few-shot learning for name entity recognition in geological text based on GeoBERT. Earth Sci. Inform. doi:10.1007/s12145-022-00775-x.
  4. [4] Liu, S., H. Yang, J. Li and S. Kolmanič (2021). Chinese named entity recognition method in history and culture field based on BERT. Int. J. Comput. Intell. Syst. 14.1. doi:10.1007/s44196-021-00019-8.
  5. [5] Ma, K., Y. Tan, Z. Xie, Q. Qiu and S. Chen (2022). Chinese toponym recognition with variant neural structures from social media messages based on BERT methods. J. Geogr. Syst. doi:10.1007/s10109-022-00375-9.
  6. [6] Sui, H., J. Wang, X. Zhang, H. Ning, W. Wang and L. Hu (2025). RB-TRNet: a regularity-guided and boundary-aware architecture for toponym recognition from Chinese text. Geo-Spatial Inf. Sci.: 1–15. doi:10.1080/10095020.2024.2440079.
  7. [7] Tao, L., Z. Xie, D. Xu, K. Ma, Q. Qiu, S. Pan and B. Huang (2022). Geographic named entity recognition by employing natural language processing and an improved BERT model. ISPRS Int. J. Geo-Information 11.12: 598. doi:10.3390/ijgi11120598.
  8. [8] Wei, Y., Y. Li and X. Zhou (2023). A study on toponymic entity recognition based on pre-trained models fused with local features for genglubu in the south china sea. Electronics 13.1: 4. doi:10.3390/electronics13010004.
  9. [9] Yu, P. and X. Wang (2020). BERT-Based named entity recognition in chinese twenty-four histories. In: Web information systems and applications. Cham: Springer International Publishing: 289–301. doi:10.1007/978-3-030-60029-7_27.
  10. [10] Zhang, M., X. Liu, Z. Zhang, Y. Qiu, Z. Jiang and P. Zhang (2024). CHTopoNER model-based method for recognizing Chinese place names from social media information. J. Geogr. Syst. doi:10.1007/s10109-023-00433-w.
  11. [11] Zhou, J., K. Wang, Y. Wu, R. Li and X. Liu (2024). Research on named entity recognition of shen nong's materia medica based on BiLSTM-CRF. J. Chengdu Univ. Tradit. Chin. Med. 47.03: 54–59. doi:10.13593/j.cnki.51-1501/r.2024.03.59.
  12. [12] Zhu, S. and P. Bao (2011). Recognition and system development for location names in ancient local chronicles. J. Libr. Sci. China 37.03: 118–124. doi:10.13530/j.cnki.jlis.2011.03.014.