Lawformer: A Pre-trained Language Model for Chinese Legal Long Documents

Chaojun Xiao, Xueyu Hu, Zhiyuan Liu, Cunchao Tu, Maosong Sun
5/9/2021
cs.CL

Official code: thunlp/LegalPLMs (196 stars, Python, last commit 2021-05-09).

Abstract

Legal artificial intelligence (LegalAI) aims to benefit legal systems with the technology of artificial intelligence, especially natural language processing (NLP). Recently, inspired by the success of pre-trained language models (PLMs) in the generic domain, many LegalAI researchers devote their effort to apply PLMs to legal tasks.

Show full abstract

However, utilizing PLMs to address legal tasks is still challenging, as the legal documents usually consist of thousands of tokens, which is far longer than the length that mainstream PLMs can process. In this paper, we release the Longformer-based pre-trained language model, named as Lawformer, for Chinese legal long documents understanding. We evaluate Lawformer on a variety of LegalAI tasks, including judgment prediction, similar case retrieval, legal reading comprehension, and legal question answering. The experimental results demonstrate that our model can achieve promising improvement on tasks with long documents as inputs.

View on arXivView PDF

Code Implementations(1)

thunlp/LegalPLMsOfficial100%

Source code and checkpoints for legal pre-trained language models.

19626PythonMay 3, 20215 years ago

Similar Papers

Cite this paper

@article{xiao2021lawformer,
  title  = {Lawformer: A Pre-trained Language Model for Chinese Legal Long Documents},
  author = {Chaojun Xiao and Xueyu Hu and Zhiyuan Liu and Cunchao Tu and Maosong Sun},
  year   = {2021},
  eprint = {2105.03887},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.03887}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2105.03887.svg)](https://codeofpaper.com/paper/2105.03887)

Discussion