Thunder-DeID+: Boundary-Aware Korean De-identification from Court Judgments to Broader Sensitive Documents
Organizations: Dept. of Data Science, Seoul National University · Dept. of Computer Science and Engineering, Seoul National University
Abstract
This study examines the transferability of a de-identification model developed for Korean court judgments to a broader range of sensitive documents, focusing on boundary precision, label granularity, and recall. The agglutinative structure of Korean causes Byte Pair Encoding (BPE) tokenizers to frequently merge Personally Identifiable Information (PII) with adjacent particles, which complicates accurate span recovery. Furthermore, current PII taxonomies lack sufficient granularity for legal texts. To address these issues, this study introduces Thunder-DeID+, which integrates a refined three-tier PII taxonomy with a boundary-aware tokenizer. The tokenizer enhances a pretrained BPE vocabulary by incorporating N-gram and boundary-scoring components to better align token and PII span boundaries. The proposed approach is evaluated using a tokenizer-independent word-segment-level protocol. On full-length judgments, the tokenizer consistently improves W. Strict Typed F1-score from 0.76-0.77 to 0.87-0.88 across four model sizes (150M, 395M, 750M, and 1B), mainly by increasing precision rather than model scale. With fine-tuning on 1,000 broader sensitive documents, the judgment-trained model further achieves 0.93 W. Strict Typed F1-score, indicating effective transfer beyond court judgments.
Figures & tables
| Thunder-DeID | Thunder-DeID+ | Ratio | |
| Documents | 6,700 | 5,872 | 0.88 |
| Case types | 10 | 28 | 2.80 |
| Avg. body chars / doc | 2,627 | 4,554 | 1.73 |
| Avg. PII mentions / doc | 21.0 | 32.9 | 1.56 |
| Model | Tokenizer | W. Strict Typed | W. Partial Typed | W. Strict Binary | W. Partial Binary | ||||||||
| F1 | P | R | F1 | P | R | F1 | P | R | F1 | P | R | ||
| 150M | BPE | 0.760 | 0.661 | 0.894 | 0.779 | 0.670 | 0.932 | 0.785 | 0.685 | 0.920 | 0.802 | 0.692 | 0.953 |
| 150M | Thunder-DeID+ tokenizer | 0.867 | 0.851 | 0.884 | 0.886 | 0.856 | 0.919 | 0.890 | 0.877 | 0.904 | 0.908 | 0.881 | 0.937 |
| 395M | BPE | 0.761 | 0.669 | 0.883 | 0.781 | 0.678 | 0.920 | 0.783 | 0.689 | 0.905 | 0.799 | 0.697 | 0.937 |
| 395M | Thunder-DeID+ tokenizer | 0.876 | 0.870 | 0.881 | 0.897 | 0.875 | 0.921 | 0.897 | 0.894 | 0.899 | 0.917 | 0.898 | 0.936 |
| 750M | BPE | 0.770 | 0.675 | 0.895 | 0.790 | 0.684 | 0.935 | 0.792 | 0.696 | 0.918 | 0.809 | 0.704 | 0.952 |
| Model | W. Strict Binary | W. Partial Binary | ||||
| F1 | P | R | F1 | P | R | |
| Thunder-DeID(370M) | 0.600 | 0.539 | 0.676 | 0.677 | 0.583 | 0.807 |
| Thunder-DeID(800M) | 0.698 | 0.605 | 0.825 | 0.737 | 0.625 | 0.897 |
| Thunder-DeID(1.5B) | 0.733 | 0.657 | 0.829 | 0.774 | 0.676 | 0.904 |
| Thunder-DeID+(150M) | 0.874 | 0.849 | 0.901 | 0.895 | 0.854 | 0.939 |
| Thunder-DeID+(395M) | 0.888 | 0.875 | 0.902 | 0.909 | 0.879 | 0.941 |
| Model | Source preservation (%) | W. Strict Typed F1 |
| Qwen 3.5 2B | 0.00 | 0.004 |
| Gemma 4 E2B | 25.89 | 0.141 |
| Gemma 4 26B-A4B | 27.77 | 0.184 |
| Qwen 3.6 27B | 81.09 | 0.483 |
| Tokenizer | Vocab. | Tok./1K | Clean cov. |
| Unicode Char | 2.5K | 1000.0 | 100.0 |
| BPE | 50K | 459.5 | 70.8 |
| Mecab-ko+BPE | 32K | 539.1 | 92.4 |
| Mecab-ko+BPE | 128K | 509.0 | 90.7 |
| Thunder-DeID+ | 50K | 480.2 | 99.7 |
| Model | Tokenizer | 0 | 50 | 100 | 200 | 1,000 |
| 150M | BPE | 0.407 | 0.647 | 0.689 | 0.761 | 0.876 |
| 150M | Thunder-DeID+ tok. | 0.453 | 0.679 | 0.727 | 0.790 | 0.894 |
| 395M | BPE | 0.448 | 0.736 | 0.809 | 0.859 | 0.888 |
| 395M | Thunder-DeID+ tok. | 0.491 | 0.742 | 0.818 | 0.879 | 0.907 |
| 750M | BPE | 0.451 | 0.787 | 0.869 | 0.888 | 0.907 |
| 750M | Thunder-DeID+ tok. | 0.485 | 0.814 | 0.889 | 0.908 | 0.930 |
| Model | W. Strict Binary | ||
| F1 | P | R | |
| OpenAI Privacy Filter | 0.508 | 0.463 | 0.563 |
| Korean-PII-Masking-BERT | 0.427 | 0.793 | 0.292 |
| Microsoft Presidio | 0.171 | 0.115 | 0.339 |
| Thunder-DeID+(150M) | 0.602 | 0.544 | 0.674 |
| Data / annotation | |||
| Metric | Backbone (Thunder-DeID) | Thunder- DeID | Thunder- DeID+ |
| W. Strict Binary F1 | 370M | 0.612 | 0.755 |
| 800M | 0.608 | 0.764 | |
| 1.5B | 0.617 | 0.736 | |
| W. Strict Typed F1 | 370M | 0.476 | 0.722 |
| 800M | 0.452 | 0.724 | |
Appendix figures & tables29 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | gemini-2.5-flash |
| User prompt (original) | 이 판결문 PDF의 모든 내용을 텍스트로 변환해줘. 내용은 그대로 유지하고 (한자 및 숫자 포함) 줄바꿈도 살려줘. |
| User prompt (English translation) | Convert all contents of this judgment PDF into text. Preserve the content as-is, including Hanja characters and numbers, and preserve line breaks. |
| Line | Source judgment text | Annotated text |
| 1 | 【피 고 인】 | 【피 고 인】 <<<피고인:인명>>> |
| 2 | 【검 사】 김유나(기소), 성기범(공판) | 【검 사】 김유나(기소), 성기범(공판) |
| 3 | 【주 문】 | 【주 문】 |
| 4 | 피고인을 징역 3월에 처한다. | 피고인을 징역 3월에 처한다. |
| 5 | ||
| 6 | 【이 유】【범죄사실】 피고인은, 사실 자신 명의의 재산이 없고 그가 운영하는 ‘○○○’이라는 상호의 금은방에 시가 합계 약 2억 원 상당의 귀금속을 보유하고 있었으나 새마을금고에 대한 대출금 채무가 10억여 원에 달하고 사채 6,000만 원 상당을 월 10%의 이자로 빌린 상황이어서 그 이자도 제대로 내기 어려웠으므로 피해자로부터 돈을 빌리더라도 이를 변제할 의사나 능력이 없었음에도, | 【이 유】【범죄사실】 피고인은, 사실 자신 명의의 재산이 없고 그가 운영하는 ‘ <<<○○○:공산품판매업>>> ’이라는 상호의 금은방에 시가 합계 약 2억 원 상당의 귀금속을 보유하고 있었으나 <<<새마을금고:은행업>>> 에 대한 대출금 채무가 10억여 원에 달하고 사채 6,000만 원 상당을 월 10%의 이자로 빌린 상황이어서 그 이자도 제대로 내기 어려웠으므로 피해자로부터 돈을 빌리더라도 이를 변제할 의사나 능력이 없었음에도, |
| Model | Qwen3.6-35B-A3B-UD-Q4_K_M.gguf |
| System prompt (original) | 당신은 한국어 판결서 OCR 후처리기입니다. 입력 텍스트의 띄어쓰기와 줄바꿈만 교정하세요. 반드시 지킬 규칙: - 글자, 숫자, 기호, 한자, 영문, 마크다운 기호를 절대 바꾸지 마세요. - 익명화 태그 … 안의 내용과 태그 기호를 절대 바꾸지 마세요. - 허용되는 변경은 스페이스, 탭, 줄바꿈의 추가/삭제/변경뿐입니다. - 문장을 요약하거나 표현을 바꾸거나 맞춤법을 고치지 마세요. - 사고 과정, 설명, 분석, 주석을 출력하지 마세요. - 출력에는 교정된 텍스트만 포함하세요. |
| System prompt (English translation) | You are a Korean court judgment OCR post-processor. Correct only the spacing and line breaks in the input text. Rules that must be followed: - Never change letters, numbers, symbols, Chinese characters, English text, or markdown symbols. - Never change the content inside anonymization tags … or the tag symbols themselves. - The only permitted changes are adding, deleting, or modifying spaces, tabs, and line breaks. - Do not summarize sentences, rephrase them, or correct spelling. - Do not output reasoning, explanations, analysis, or comments. - Include only the corrected text in the output. |
| User prompt (original) | 아래 텍스트에서 띄어쓰기와 줄바꿈만 정상화하세요. 공백을 제외한 모든 문자는 입력과 정확히 같아야 합니다. [입력 시작] {annotated text} [입력 끝] |
| User prompt (English translation) | Normalize only the spacing and line breaks in the text below. All non-whitespace characters must be exactly the same as in the input. [Input start] {annotated text} [Input end] |
| Statistic | Value |
| Document count | 5,872 |
| Document length, mean | 4,554 chars |
| Document length, median | 3,116 chars |
| Document length, 95th percentile | 12,813 chars |
| Annotated spans | 193,004 |
| Spans per document, mean | 32.9 |
| Legal area | Documents | % |
| Civil | 2,958 | 50.4 |
| Criminal | 2,615 | 44.5 |
| Administrative | 199 | 3.4 |
| Intellectual property | 100 | 1.7 |
| Total | 5,872 | 100.0 |
| Legal Area | Case Category | Fine-grained Case Type | Count | Share |
| Civil | Compensation for Damages | Compensation for Damages | 750 | 25.4% |
| Credit and Debt | Lease | 297 | 10.0% | |
| Payment | 394 | 13.3% | ||
| Loan | 370 | 12.5% | ||
| Real Estate | Transfer of Ownership Registration | 210 | 7.1% | |
| Cancellation of Registration | 208 | 7.0% |
| 150M | 395M | 750M | 1B | |
| Layers | 22 | 28 | 32 | 22 |
| Hidden size | 768 | 1024 | 1152 | 1792 |
| Vocabulary | 50K byte-level BPE | |||
| Sequence length | 4,096 | |||
| Pre-training tokens | 10B (5/5) | 25B (12.5/12.5) | 40B (20/20) | 60B (30/30) |
| Fine-tuning epochs (in-domain) | 30 | |||
| Taxonomy category | Candidate entries | Generator rules |
| Direct identifiers | 67 | 13 |
| Incident-related numbers | 50 | 45 |
| Geographic information | 105,898 | 6 |
| Institutions and facilities | 279,542 | 0 |
| Corporate entities | 1,343,308 | 0 |
| Organizations | 38,775 | 1 |
| Top-level PII category | Replacement source | Example surrogate surface forms | Note |
| Direct identifiers | Generator | 윤건호 (Yun Geon-ho); [email protected] ; 198.51.100.177 (IP) | Names and online identifiers |
| Incident-related numerical information | Generator | 4064-776-153368 (account no.); 870923-2****** (resident registration no.); 2000가합764234 (case no.) | Structured identifiers |
| Geographic information | Mixed generator and lexicon sample | 세종대로 (Sejong-daero, road); 362-989번지 (lot no.); 11층 (11th floor) | Address expressions |
| Institutions and facilities | Lexicon sample | 한국은행 (Bank of Korea); 금융감독원 (Financial Supervisory Service); 우체국 (post office) | Public facilities |
| Corporate entities | Lexicon sample | 금산홍삼종합매장 (Geumsan red-ginseng store); 보은특산품가공식품매장 (Boeun local-food store); 롯데마트 아이오페 매장 (Lotte Mart IOPE counter) | Businesses and stores |
| Organizations | Lexicon sample | 전국이통장연합회 (national village-head association); 금정구 새마을회 (Geumjeong Saemaul association); 노인생활과학연구소 (senior living-science institute) | Civic and social groups |
| Train | Valid | Test | Total | |||||||||
| Category | H | S | All | H | S | All | H | S | All | H | S | All |
| Publications | 286 | 32 | 318 | 33 | 5 | 38 | 272 | 26 | 298 | 591 | 63 | 654 |
| Personal applications | 0 | 289 | 289 | 0 | 32 | 32 | 0 | 228 | 228 | 0 | 549 | 549 |
| Transactions | 0 | 230 | 230 | 0 | 25 | 25 | 0 | 180 | 180 | 0 | 435 | 435 |
| Service requests | 3 | 220 | 223 | 0 | 24 | 24 | 3 | 173 | 176 | 6 | 417 | 423 |
| Administrative submissions | 0 | 81 | 81 | 0 | 9 | 9 | 0 | 63 | 63 | 0 | 153 | 153 |
| Category | Source | 25 | 50 | 100 | 200 | 500 | 1,000 |
| Publications | Human | 6 | 13 | 25 | 49 | 119 | 238 |
| Synthetic | 0 | 0 | 1 | 3 | 12 | 24 | |
| Personal applications | Human | 0 | 0 | 0 | 0 | 0 | 0 |
| Synthetic | 6 | 12 | 24 | 48 | 119 | 239 | |
| Transactions | Human | 0 | 0 | 0 | 0 | 0 | 0 |
| Synthetic | 5 | 10 | 19 | 38 | 95 | 190 |
| Metadata document type | H | S | All |
| Online post | 100 | 1,338 | 1,438 |
| Shopping info | 24 | 355 | 379 |
| News | 319 | 1 | 320 |
| Online comment | 77 | 17 | 94 |
| Announcement | 69 | 6 | 75 |
| Public notice | 2 | 33 | 35 |
| Split | Documents | PII types | PII spans | Spans/doc |
| Train | 1,211 | 18 | 11,034 | 9.11 |
| Validation | 136 | 18 | 1,203 | 8.85 |
| Test | 1,000 | 18 | 9,543 | 9.54 |
| Total | 2,347 | 18 | 21,780 | 9.28 |
| PII label | Train | Validation | Test | Total |
| 인명 (personal names) | 3,182 | 333 | 3,187 | 6,702 |
| 전화번호 (Phone number) | 875 | 105 | 730 | 1,710 |
| 업무관리번호 (task management number) | 717 | 70 | 584 | 1,371 |
| 이메일주소 (email address) | 692 | 91 | 502 | 1,285 |
| 닉네임 (Nickname) | 653 | 67 | 547 | 1,267 |
| 나이 (age) | 593 | 58 | 506 | 1,157 |
| Category | Subcategory | Description | Train | Validation | Test | Total |
| Publications | Articles | Articles, reviews, essays, interviews, profiles, and reference-style text | 145 | 17 | 132 | 294 |
| Publications | News | News reports and press-release style reports | 103 | 12 | 107 | 222 |
| Publications | Notices/info | Notices, announcements, schedules, and public guidance | 70 | 9 | 59 | 138 |
| Administrative submissions | Submissions | Submissions, receipts, lists, surveys, and administrative forms | 81 | 9 | 63 | 153 |
| Service requests | Repair/support | Repair, installation, failure reports, and customer support records | 94 | 10 | 74 | 178 |
| Service requests | Reservations | Reservations, facility use, rentals, visits, and schedule changes | 129 | 14 | 102 | 245 |
| Train | Validation | Test | ||||||||
| Category | Subcategory | H | S | All | H | S | All | H | S | All |
| Publications | Articles | 141 | 4 | 145 | 16 | 1 | 17 | 129 | 3 | 132 |
| Publications | News | 100 | 3 | 103 | 11 | 1 | 12 | 104 | 3 | 107 |
| Publications | Notices/info | 45 | 25 | 70 | 6 | 3 | 9 | 39 | 20 | 59 |
| Administrative submissions | Submissions | 0 | 81 | 81 | 0 | 9 | 9 | 0 | 63 | 63 |
| Service requests | Repair/support | 3 | 91 | 94 | 0 | 10 | 10 | 2 | 72 | 74 |
| Model | Tokenizer | Replacement | W. Strict Typed | W. Partial Typed | W. Strict Binary | W. Partial Binary | ||||||||
| F1 | P | R | F1 | P | R | F1 | P | R | F1 | P | R | |||
| T-370M | Mecab-ko+BPE | – | n/a | n/a | n/a | n/a | n/a | n/a | 0.613 | 0.545 | 0.700 | 0.688 | 0.588 | 0.831 |
| T-800M | Mecab-ko+BPE | – | n/a | n/a | n/a | n/a | n/a | n/a | 0.697 | 0.601 | 0.831 | 0.738 | 0.621 | 0.908 |
| T-1.5B | Mecab-ko+BPE | – | n/a | n/a | n/a | n/a | n/a | n/a | 0.720 | 0.630 | 0.839 | 0.761 | 0.650 | 0.916 |
| 150M | BPE | single | 0.744 | 0.663 | 0.846 | 0.770 | 0.676 | 0.894 | 0.775 | 0.694 | 0.877 | 0.798 | 0.704 | 0.921 |
| BPE | per-epoch | 0.760 | 0.661 | 0.894 | 0.779 | 0.670 | 0.932 | 0.785 | 0.685 | 0.920 | 0.802 | 0.692 | 0.953 | |
| Metric | Model sizes | Thunder- DeID | Thunder- DeID+ |
| W. Strict Typed F1 | 370M / 150M | 0.805 | 0.855 |
| 800M / 395M | 0.810 | 0.867 | |
| 1.5B / 1B | 0.795 | 0.877 | |
| W. Strict Binary F1 | 370M / 150M | 0.841 | 0.887 |
| 800M / 395M | 0.852 | 0.891 | |
| 1.5B / 1B | 0.840 | 0.906 |
| Model | Tokenizer | 0 | 25 | 50 | 100 | 200 | 500 | 1,000 | ||||||||||||||
| F1 | P | R | F1 | P | R | F1 | P | R | F1 | P | R | F1 | P | R | F1 | P | R | F1 | P | R | ||
| 150M | BPE | 0.407 | 0.346 | 0.492 | 0.557 | 0.479 | 0.664 | 0.647 | 0.621 | 0.675 | 0.689 | 0.720 | 0.661 | 0.761 | 0.757 | 0.764 | 0.856 | 0.840 | 0.872 | 0.876 | 0.861 | 0.891 |
| Thunder-DeID+ tok. | 0.453 | 0.402 | 0.519 | 0.597 | 0.530 | 0.684 | 0.679 | 0.677 | 0.681 | 0.727 | 0.769 | 0.689 | 0.790 | 0.807 | 0.775 | 0.876 | 0.897 | 0.857 | 0.894 | 0.898 | 0.890 | |
| 395M | BPE | 0.448 | 0.398 | 0.511 | 0.666 | 0.627 | 0.711 | 0.736 | 0.741 | 0.731 | 0.809 | 0.801 | 0.818 | 0.859 | 0.857 | 0.860 | 0.876 | 0.868 | 0.883 | 0.888 | 0.881 | 0.894 |
| Thunder-DeID+ tok. | 0.491 | 0.464 | 0.520 | 0.676 | 0.624 | 0.737 | 0.742 | 0.770 | 0.716 | 0.818 | 0.834 | 0.803 | 0.879 | 0.901 | 0.858 | 0.896 | 0.910 | 0.883 | 0.907 | 0.923 | 0.892 | |
| 750M | BPE | 0.451 | 0.401 | 0.516 | 0.727 | 0.715 | 0.740 | 0.787 | 0.772 | 0.803 | 0.869 | 0.875 | 0.863 | 0.888 | 0.876 | 0.899 | 0.901 | 0.878 | 0.925 | 0.907 | 0.893 | 0.921 |
| Model | Tokenizer | 0 | 25 | 50 | 100 | 200 | 500 | 1,000 | ||||||||||||||
| F1 | P | R | F1 | P | R | F1 | P | R | F1 | P | R | F1 | P | R | F1 | P | R | F1 | P | R | ||
| T-370M | Mecab-ko+BPE | 0.226 | 0.228 | 0.223 | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
| T-800M | Mecab-ko+BPE | 0.484 | 0.427 | 0.559 | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
| T-1.5B | Mecab-ko+BPE | 0.507 | 0.492 | 0.523 | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
| 150M | BPE | 0.576 | 0.500 | 0.679 | 0.693 | 0.602 | 0.816 | 0.768 | 0.744 | 0.793 | 0.808 | 0.850 | 0.770 | 0.841 | 0.842 | 0.840 | 0.871 | 0.857 | 0.885 | 0.886 | 0.873 | 0.900 |
| 150M | Thunder-DeID+ tok. | 0.602 | 0.544 | 0.674 | 0.722 | 0.647 | 0.817 | 0.794 | 0.800 | 0.789 | 0.834 | 0.888 | 0.787 | 0.864 | 0.886 | 0.843 | 0.890 | 0.913 | 0.868 | 0.905 | 0.911 | 0.899 |
| PII type | Human-curated | Synthetic | ||
| Gold | F1 | Gold | F1 | |
| Email address | 95 | 0.990 | 407 | 1.000 |
| Phone number | 64 | 0.916 | 666 | 0.999 |
| URL | 112 | 0.910 | 341 | 1.000 |
| Account number | 4 | 0.778 | 442 | 1.000 |
| Age | 165 | 0.701 | 341 | 0.999 |
| Tokenizer | Mean latency (ms/doc) | Throughput (chars/s) |
| BPE | 3.27 | 1,379,217 |
| MeCab+BPE | 45.58 | 99,243 |
| Thunder-DeID+ | 21.22 | 213,127 |
| PII type | Train | Test | P | R | F1 |
| Personal names | 90,028 | 10,126 | 0.983 | 0.995 | 0.989 |
| Internal duties and authorities | 4,530 | 722 | 0.750 | 0.897 | 0.817 |
| Banking business | 2,922 | 313 | 0.868 | 0.936 | 0.901 |
| Building and unit number | 2,877 | 565 | 0.771 | 0.802 | 0.786 |
| Construction execution business | 2,382 | 268 | 0.685 | 0.874 | 0.768 |
| Central and local government body | 1,429 | 97 | 0.672 | 0.739 | 0.704 |
| PII type | Train | Test | P | R | F1 |
| Media and press industry | 166 | 94 | 0.600 | 0.351 | 0.443 |
| Hotel and resort business | 166 | 5 | 0.094 | 0.200 | 0.128 |
| url | 161 | 14 | 0.932 | 0.976 | 0.953 |
| Fishery | 161 | 4 | 0.053 | 0.750 | 0.098 |
| Agriculture | 158 | 8 | 0.000 | 0.000 | 0.000 |
| Religious organization | 158 | 68 | 0.524 | 0.902 | 0.663 |
| PII type | Train | Test | P | R | F1 |
| Stage or pen name | 3 | 5 | 0.000 | 0.000 | 0.000 |
| Street | 2 | 2 | 0.000 | 0.000 | 0.000 |
| Password | 2 | 1 | 0.000 | 0.000 | 0.000 |
| Voting district | 2 | 1 | 0.000 | 0.000 | 0.000 |
| Exit number | 2 | 2 | 0.000 | 0.000 | 0.000 |
| Investment products | 2 | 5 | 0.000 | 0.000 | 0.000 |
| Role | Prompt |
| System prompt (original) | 당신은 한국어 문서의 세부 라벨 비식별화 도구입니다. 아래 라벨 집합에 해당하는 모든 문자열을 정확히 <PII type="라벨명">원문 문자열</PII> 형식으로 감싸세요. type에는 반드시 아래 집합의 라벨을 철자까지 그대로 사용하세요. 인명·전화번호 같은 통상적 개인정보만 찾지 말고, 종교·시설·조직 내 직책 등 집합에 포함된 모든 종류를 빠짐없이 찾으세요. 판결서에서 ### [라벨링 대상 본문] 이전의 사건번호·사건명·법원·유형·출처 메타데이터에는 태그를 삽입하지 마세요. 단, 해당 메타데이터와 표식 자체도 생략하지 말고 입력의 첫 글자부터 마지막 글자까지 모두 출력해야 합니다. 원문의 모든 글자, 공백, 줄바꿈, 문장부호와 순서를 추가·삭제·수정하지 마세요. 태그 이름은 항상 PII 여야 합니다. 라벨은 오직 PII 태그의 type 속성에만 사용하세요. 라벨 자체를 태그 이름으로 사용하거나 원문을 라벨 placeholder로 치환하지 마세요. 태그 외 설명, Markdown, 코드 펜스를 출력하지 말고 태그가 삽입된 원문 전체만 출력하세요. [전체 PII 라벨 집합] |
| System prompt (English translation) | You are a fine-grained de-identification tool for Korean documents. Wrap every string corresponding to the label set below exactly in the form <PII type="label">original text</PII> . The value of type must exactly match one of the labels in the provided set. Do not restrict detection to conventional personal information such as names and phone numbers; identify all categories in the label set, including religion, facilities, and roles within organizations. For court judgments, do not insert tags into the case number, case name, court, type, or source metadata appearing before ### [라벨링 대상 본문] . However, do not omit this metadata or the marker itself; output the complete input from the first character to the last. Do not add, delete, or modify any character, whitespace, line break, punctuation mark, or ordering in the source text. The tag name must always be PII , and labels must be used only in the type attribute of the PII tag. Do not use labels themselves as tag names or replace the source text with label placeholders. Output only the full source text with the inserted tags, without explanations, Markdown, or code fences. [Complete PII label inventory] |
| User message | {document chunk} |
| Item | Specification |
| Number of nodes | 3 |
| CPU | 2 Intel Xeon Platinum 8468 per node |
| CPU cores | 96 per node |
| RAM | 1.85 TiB per node |
| GPU | 8 NVIDIA H100 80GB HBM3 per node |
| GPU memory | 81,559 MiB per GPU |
Legal NLP
Legal natural language processing (NLP) develops methods for analyzing and generating statutes, cases, contracts, and legal advice.
See all 109 papers