1.School of Computer Science and Technology,Wuhan University of Science and Technology,Wuhan 430065,Hubei,China
2.The Key Laboratory of Rich-Media Knowledge Organization and Service of Digital Publishing,National Press and Publication Administration,Beijing 100038,China
3.Hubei Province Key Laboratory of Intelligent Information Processing and Real-Time Industrial System,Wuhan 430065,Hubei,China
4.Big Data Science and Engineering Research Institute,Wuhan University of Science and Technology,Wuhan 430065,Hubei,China
5.Management College,Beijing Union University,Beijing 100101,China
To enhance the efficacy of complex judicial named entity recognition in low-resource and limited-sample scenarios, this study proposes a judicial named entity recognition method based on ontology prompt guidance, utilizing a large language model. First, taking counterfeit judicial documents as an example, a “top-down” approach is used to construct a knowledge graph ontology model of counterfeit judicial documents based on the document content and the existing ontology in the field of judicial documents. Then, the instruction is constructed based on the ontology model. The instruction includes four parts: task description, ontology description, task example and judicial text. A large language model is fine-tuned to complete the judicial named entity recognition task. The ontology description section adds entity definitions and relationship information to the fine-tuning process. Finally, we selected 12 types of fine-grained entities included in the ontology model constructed in this study and collected the datasets for experiments,and compared these results with those obtained using several typical traditional entity recognition methods. The results showed that the method proposed in this study performed better under the condition of small sample fine-tuning.
CHENS, TIANH, LÜY B, et al. Blue book of rule of law: Annual report on informatization of Chinese Courts No.4 (2020) [M]. Beijing: Social Sciences Academic Press(China), 2020: 17-21(Ch).
[3]
RABINERL, JUANGB. An introduction to hidden Markov models[J]. IEEE ASSP Magazine, 1986, 3(1): 4-16. DOI: 10.1109/MASSP.1986.1165342 .
[4]
BURGESC J C. A tutorial on support vector machines for pattern recognition[J]. Data Mining and Knowledge Discovery, 1998, 2(2): 121-167. DOI: 10.1023/A: 1009715923555 .
[5]
LAFFERTYJ D, MCCALLUMA, PEREIRAF C N. Conditional random fields: Probabilistic models for segmenting and labeling sequence data[C]//Proceedings of the18th International Conference on Machine Learning. New York:ACM, 2001: 282-289. DOI: 10.5555/645530.655813 .
[6]
BIKELD M, MILLERS, SCHWARTZR, et al. Nymble: A high-performance learning name-finder[C]//Proceedings of the 5th Conference on Applied Natural Language Processing. Stroudsburg: Association for Computational Linguistics, 1997: 194-201. DOI: 10.3115/974557.974586 .
[7]
QUARESMAP, GONÇALVEST. Using linguistic information and machine learning techniques to identify entities from juridical documents[M]// Semantic Processing of Legal Texts. Berlin: Springer, 2010: 44-59. DOI: 0.1007/978-3-642-12837-0_3 .
[8]
McCALLUMA, LIW. Early results for named entity recognition with conditional random fields, feature induction and web-enhanced lexicons[DB/OL].[2024-01-02]. DOI: 10.3115/1119176.1119206 .
DOS SANTOSC N, ZADROZNYB. Learning character-level representations for part-of-speech tagging[DB/OL].[2024-01-02]. DOI: 10.5555/3044805.3045095 .
[11]
CHIUJ P C, NICHOLSE. Named entity recognition with bidirectional LSTM-CNNs[J]. Transactions of the Association for Computational Linguistics, 2016, 4: 357-370. DOI: 10.1162/tacl_a_00104 .
[12]
SUJ L, MURTADHAA, PANS F, et al. Global pointer: Novel efficient span-based approach for named entity recognition[EB/OL]. 2022: arXiv: 2208.03054. DOI: 10.26689/jcer.v6i5.3958 .
[13]
PETERSM, NEUMANNM, IYYERM, et al. Deep contextualized word representations[C]//Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers). Stroudsburg: Association for Computational Linguistics, 2018: 2227-2237. DOI: 10.18653/v1/n18-1202 .
[14]
DEVLINJ, CHANGM W, LEEK, et al. BERT: Pre-training of deep bidirectional transformers for language understanding[DB/OL].[2024-01-02]. DOI: 10.18653/v1/n18-2 .
CHENJ, HET, WENY Y, et al. Entity recognition method for judicial documents based on BERT model[J]. Journal of Northeastern University (Natural Science), 2020, 41(10): 1382-1387. DOI: 10.12068/j.issn.1005-3026.2020.10.003 (Ch ).
LIC N, WANGL, SUNY Y, et al. BERT based named entity recognition for legal texts on theft cases[J]. Journal of Chinese Information Processing, 2021, 35(8): 73-81. DOI: 10.3969/j.issn.1003-0077.2021.08.010(Ch ).
ZENGL L, WANGY S, CHENP F. Named entity re-cognition based on BERT and joint learning for judgment documents[J]. Journal of Computer Applications, 2022, 42(10): 3011-3017. DOI: 10.11772/j.issn.1001-9081.2021091565 (Ch ).
[21]
POLAKM P, MORGAND. Extracting accurate materials data from research papers with conversational language models and prompt engineering[J]. Nature Communications, 2024, 15(1): 1569. DOI: 10.1038/s41467-024-45914-8 .
[22]
WEIX, CUIX Y, CHENGN, et al. ChatIE:Zero-shot information extraction via chatting with ChatGPT[EB/OL]. 2023: arXiv: 2302.10205.
[23]
WANGS H, SUNX F, LIX Y, et al. GPT-NER: Named entity recognition via large language models[EB/OL]. 2023: arXiv: 2304.10428.
[24]
HUY, CHENQ Y, DUJ C, et al. Improving large language models for clinical named entity recognition via prompt engineering[J]. Journal of the American Medical Informatics Association, 2024,31(9): 1812-1820. DOI: 10.1093/jamia/ocad259 .
[25]
DAGDELENJ, DUNNA, LEES, et al. Structured information extraction from scientific text with large language models[J]. Nature Communications, 2024, 15(1): 1418. DOI: 10.1038/s41467-024-45563-x .
[26]
NGUYENM, KISHANK C, NGUYENT, et al. Efficient fine-tuning large language models for knowledge-aware response planning[C]//Joint European Conference on Machine Learning and Knowledge Discovery in Databases. Cham: Springer, 2023: 593-611. DOI: 10.1007/978-3-031-43415-0_35 .
[27]
NOYN F, McGUINNESSD L. Ontology development 101: A guide to creating your first ontology[DB/OL]. [2024-01-02].
[28]
HUE, WALLISP, ALLEN-ZHUZ Y, et al. LoRA: Low-Rank adaptation of large language models[DB/OL].[2024-01-02].
[29]
DUZ X, QIANY J, LIUX, et al. GLM: General language model pretraining with autoregressive blank infilling[C]//Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). Stroudsburg: Association for Computational Linguistics, 2022: 320-335. DOI: 10.18653/v1/2022.acl-long.26 .
[30]
YANGA Y, XIAOB, WANGB N, et al. Baichuan2: Open large-scale language models[EB/OL]. 2023: arXiv: 2309.10305.