← Latest papers
💬 NLP

A Fine-Tuned BERT Classifier for Personal-Letter Titles in Late-Ming and Early-Qing Collected Works

This paper introduces Lepton, a fine-tuned BERT classifier trained on 5,438 hand-labeled titles from thirty-three late-Ming and early-Qing literati, which successfully distinguishes personal letters from confusable prefaces and has been deployed to identify approximately 55,000 letters for the Ming Letter Platform via the China Biographical Database.

Original authors: Queenie Luo

Published 2026-05-25
📖 4 min read☕ Coffee break read

Original authors: Queenie Luo

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are walking through a massive, ancient library filled with thousands of books. These aren't just any books; they are the collected works of famous Chinese scholars from the late 1500s to the early 1700s. Each book has a table of contents, a long list of titles. Some titles are for poems, some for official reports, and some are for personal letters.

The problem is that the library is too big for any single person to read every single title to find the letters. You need a librarian who can scan the list and instantly say, "That's a letter," or "That's something else."

The "Look-Alike" Problem

The hardest part of this job isn't finding the obvious letters. It's distinguishing a personal letter from a farewell preface (a speech given when someone is leaving town).

Think of it like trying to tell the difference between a "Hello" text message and a "Goodbye" speech.

  • The Old Way (The Regex): Historians used to use a simple rule: "If the title ends with the character for 'Book' (書), it's a letter."
    • The Flaw: This is like saying, "If a text message ends with a period, it's a love letter." It misses 91% of the real letters because most ancient letter titles don't end with that specific character. They often start with a verb like "Reply" or "Send."
  • The Second Old Way: "If the title starts with a verb like 'Reply,' it's a letter."
    • The Flaw: This catches too many false alarms. Farewell speeches also start with verbs like "Reply" or "Send." It's like a security guard stopping everyone who says "Hello," even if they are just saying goodbye to a friend.

The Solution: "Lepton" (The Smart Librarian)

The author, Queenie Luo, built a digital librarian named Lepton.

Lepton is a computer program based on a technology called BERT (think of it as a super-smart student who has read millions of modern Chinese sentences and learned how words fit together). Instead of just looking for one specific character at the start or end of a title, Lepton looks at the whole picture.

  • How it learned: The author fed Lepton a training manual containing about 5,400 titles that were manually labeled by humans. Some were letters, some were farewell speeches. Lepton studied the patterns: "Ah, when I see 'Reply' followed by a person's name, that's usually a letter. When I see 'Send' followed by 'Preface,' that's a speech."
  • The Result: Lepton became incredibly good at this specific job. In testing, it was nearly perfect. It didn't make any mistakes calling a speech a letter (100% precision), and it only missed a tiny handful of actual letters.

What Lepton Can and Cannot Do

It's important to know what this tool is designed for, just like knowing a hammer is for nails, not screws.

  • What it does: It looks at a title in a table of contents and decides: "Is this a personal letter or a farewell speech?"
  • What it does NOT do:
    • It doesn't read the actual content of the letter (it only looks at the title).
    • It doesn't tell you who the letter was sent to or when it was written.
    • It doesn't work well on texts from much earlier or later than the Ming and Qing dynasties (it's trained specifically on that era).
    • It doesn't distinguish between official government letters and private family notes; it just knows they are "letters."

The Real-World Impact

The author has put Lepton to work in the China Biographical Database (CBDB). By using this tool, researchers have been able to scan thousands of books and automatically find about 55,000 personal letters.

This has helped build the Ming Letter Platform, a digital resource that allows historians to map out the social networks of scholars from 500 years ago. Instead of spending years reading titles one by one, they now have a map of who wrote to whom, all thanks to a digital librarian that learned to spot the difference between a "Hello" and a "Goodbye."

The One Weakness

Lepton isn't magic. It failed on six specific titles in the test. These were very short, weird titles that didn't follow the usual rules (like just a person's name). Because Lepton learned from "normal" examples, it got confused by these oddballs and guessed they were speeches. It's a reminder that even smart computers can struggle with things that break the pattern.

In short: The paper describes building a specialized AI tool that acts like a highly trained librarian, capable of instantly sorting through thousands of ancient book titles to find personal letters, solving a problem that simple keyword searches couldn't handle.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →