Views
No views yet
bert-ancient-chinese is trained to further optimize the model effect in open environment.@inproceedings{wang2022uncertainty,
title={The Uncertainty-based Retrieval Framework for Ancient Chinese CWS and POS},
author={Wang, Pengyu and Ren, Zhichen},
booktitle={Proceedings of the Second Workshop on Language Technologies for Historical and Ancient Languages},
pages={164--168},
year={2022}
}bert-ancient-chinese mainly has the following characteristics:vocab table (vocabulary) of the pre-trained model without some uncommon Chinese characters. bert-ancient-chinese further expands the vocab (dictionary) of the pre-trained model by learning in a large-scale corpus. The final vocab table size is 38208, compared to bert-base-chinese vocabulary size of 21128, siku-bert vocabulary size of 29791, bert-ancient-chinese has a larger vocabulary, and also includes more uncommon vocabulary word, which is more conducive to improving the performance of the model in downstream tasks. The vocab table is the vocabulary table, which is included in the vocab.txt in the pre-trained model.bert-ancient-chinese uses a larger training set. Compared with siku-bert only using "Siku Quanshu" as training dataset, we use a larger-scale dataset (about six times that of "Siku Quanshu"), covering from the Ministry of Cong, the Ministry of Taoism, the Ministry of Buddhism, the Ministry of Confucianism, the Ministry of Poetry, the Ministry of History, the Ministry of Medicine, the Ministry of Art, the Ministry of Yi, and the Ministry of Zi, are richer in content and wider in scope than the "Siku Quanshu".Domain-Adaptive Pretraining, bert-ancient-chinese was trained on the basis of bert-base-chinese and was combined with ancient Chinese corpus to obtain a pre-trained model for the field of automatic processing of ancient Chinese.from_pretrained method based on Huggingface Transformers can directly obtain bert-ancient-chinese model online.1from transformers import AutoTokenizer, AutoModel
2
3tokenizer = AutoTokenizer.from_pretrained("Jihuai/bert-ancient-chinese")
4
5model = AutoModel.from_pretrained("Jihuai/bert-ancient-chinese")PyTorch version.| Model | Link |
|---|---|
| bert-ancient-chinese | Link Extraction code: qs7x |
Chinese Word Segmentation(CWS) and part-of-speech tagging(POS Tagging).BERT+CRF as the baseline model to compare the performance of siku-bert, siku-roberta and bert-ancient-chinese on downstream tasks. To fully utilize the entire training dataset, we employ K-fold cross-validation, while keeping other hyperparameters the same. The evaluation index is the F1 value.| Zuozhuan | Shiji | |||
| CWS | POS | CWS | POS | |
| siku-bert | 96.0670% | 92.0156% | 92.7909% | 87.1188% |
| siku-roberta | 96.0689% | 92.0496% | 93.0183% | 87.5339% |
| bert-ancient-chinese | 96.3273% | 92.5027% | 93.2917% | 87.8749% |
bert-ancient-chinese is based on bert-base-chinese to continue training.