{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/cail2018-a-large-scale-legal-dataset-for","title":"CAIL2018: A Large-Scale Legal Dataset for Judgment Prediction","arxiv_id":"1807.02478","date":"2018-07-04","proceeding":null,"authors":["Chaojun Xiao","Haoxi Zhong","Zhipeng Guo","Cunchao Tu","Zhiyuan Liu","Maosong Sun","Yansong Feng","Xianpei Han","Zhen Hu","Heng Wang","Jianfeng Xu"],"abstract":"In this paper, we introduce the \\textbf{C}hinese \\textbf{AI} and \\textbf{L}aw\nchallenge dataset (CAIL2018), the first large-scale Chinese legal dataset for\njudgment prediction. \\dataset contains more than $2.6$ million criminal cases\npublished by the Supreme People's Court of China, which are several times\nlarger than other datasets in existing works on judgment prediction. Moreover,\nthe annotations of judgment results are more detailed and rich. It consists of\napplicable law articles, charges, and prison terms, which are expected to be\ninferred according to the fact descriptions of cases. For comparison, we\nimplement several conventional text classification baselines for judgment\nprediction and experimental results show that it is still a challenge for\ncurrent models to predict the judgment results of legal cases, especially on\nprison terms. To help the researchers make improvements on legal judgment\nprediction, both \\dataset and baselines will be released after the CAIL\ncompetition\\footnote{http://cail.cipsc.org.cn/}.","url_abs":"http://arxiv.org/abs/1807.02478v1","url_pdf":"http://arxiv.org/pdf/1807.02478v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"cail2018-a-large-scale-legal-dataset-for","repo_url":"https://github.com/brightmart/ai_law","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok"}},{"paper_slug":"cail2018-a-large-scale-legal-dataset-for","repo_url":"https://github.com/china-ai-law-challenge/CAIL","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"cail2018-a-large-scale-legal-dataset-for","repo_url":"https://github.com/china-ai-law-challenge/cail2018","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"articles","task_name":"Articles"},{"task_slug":"prediction","task_name":"Prediction"},{"task_slug":"text-classification","task_name":"Text Classification"}],"methods":[],"datasets_introduced":[{"slug":"chinese-ai-and-law-cail-2018","name":"Chinese AI and Law (CAIL) 2018","full_name":""}],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=1807.02478","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1807.02478"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/brightmart/ai_law","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/china-ai-law-challenge/cail2018","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/china-ai-law-challenge/CAIL","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":4},"by_repo_kind":{"listed":{"samples":4,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"76d563863d031772","entry":"getClassNum","repo":"china-ai-law-challenge/cail2018","repo_kind":"listed","path":"baseline/predictor/data.py","file_url":"https://github.com/china-ai-law-challenge/cail2018/blob/HEAD/baseline/predictor/data.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"76d563863d031772"}},{"code_sha256_prefix":"a06db22c27a29e9e","entry":"getName","repo":"china-ai-law-challenge/cail2018","repo_kind":"listed","path":"baseline/predictor/data.py","file_url":"https://github.com/china-ai-law-challenge/cail2018/blob/HEAD/baseline/predictor/data.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a06db22c27a29e9e"}},{"code_sha256_prefix":"5fab5da7d585e485","entry":"gettime","repo":"china-ai-law-challenge/cail2018","repo_kind":"listed","path":"baseline/predictor/data.py","file_url":"https://github.com/china-ai-law-challenge/cail2018/blob/HEAD/baseline/predictor/data.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5fab5da7d585e485"}},{"code_sha256_prefix":"b5da5ba8153289d3","entry":"train_tfidf","repo":"china-ai-law-challenge/cail2018","repo_kind":"listed","path":"baseline/svm.py","file_url":"https://github.com/china-ai-law-challenge/cail2018/blob/HEAD/baseline/svm.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b5da5ba8153289d3"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}