← Latest papers
💬 NLP

Named Entity Recognition of Historical Texts via Large Language Model

This study demonstrates that large language models, utilizing zero-shot and few-shot prompting strategies, offer a viable and efficient alternative for Named Entity Recognition in historical texts where annotated training data is scarce, achieving reasonably strong performance despite falling short of fully supervised models.

Original authors: Shibingfeng Zhang, Giovanni Colavizza

Published 2026-04-29
📖 5 min read🧠 Deep dive

Original authors: Shibingfeng Zhang, Giovanni Colavizza

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 have a massive library of old, dusty newspapers and handwritten letters from the 18th and 19th centuries. You want to quickly find every mention of a specific person, city, or organization within them. This is the job of Named Entity Recognition (NER): teaching a computer to spot and label names like "Napoleon," "Paris," or "The Times" in a block of text.

The problem is that these old documents are a nightmare for computers. They are written in strange, archaic languages, have inconsistent spelling (like "shew" instead of "show"), and are full of typos from the scanning process. To teach a computer to handle this, you usually need a human expert to read thousands of pages and manually label every name. This is expensive, slow, and often impossible because there just aren't enough experts or money to do it.

The New Approach: The "Show, Don't Tell" Strategy

This paper tests a new way to solve this problem using Large Language Models (LLMs). Think of an LLM as a super-smart, well-read robot that has read almost everything on the internet. Instead of forcing the robot to go through a grueling training course (which requires those expensive labeled examples), the researchers tried a different approach: Prompting.

They treated the robot like a new employee who hasn't been trained on the specific job yet. They gave the robot a "cheat sheet" (a prompt) and asked it to do the work. They tested two main strategies:

  1. Zero-Shot (The "Blind" Test): They simply told the robot, "Here is a text. Find the people and places." No examples were given.
  2. Few-Shot (The "Show Me" Test): They gave the robot a tiny sample of the work first. They said, "Here is a sentence: 'Napoleon went to Paris.' In this sentence, 'Napoleon' is a Person and 'Paris' is a Location. Now, look at this new sentence and do the same."

The Experiment: The "One Example" Surprise

The researchers tested this on a collection of historical texts in five different languages (German, French, English, Swedish, and Finnish). They tried giving the robot different numbers of examples: 1, 3, or 5. They also tried different ways to pick those examples, such as picking them randomly or picking ones that looked very similar to the text the robot was about to read.

Here is what they found, using some simple analogies:

  • One Example is the Sweet Spot: Surprisingly, giving the robot just one example worked better than giving it three or five. It's like trying to explain a game to a child: one clear example is often enough. If you give them five examples, they might get confused by the extra noise or the length of the instructions. The robot performed best with a single, clear demonstration.
  • How You Pick the Example Doesn't Matter Much: The researchers wondered if picking an example that was exactly like the target text (like finding a twin) would help more than picking a random one. They found that it didn't really matter. Whether the example was a perfect match or just a random sample, the robot learned just as well from a single example. It's as if the robot is so smart that it can figure out the rules of the game from almost any single example, regardless of how similar it is to the task.
  • The "Group Vote" Trick: Since AI can sometimes be a bit unpredictable (like flipping a coin), the researchers asked the robot to do the task three times and then took the answer that appeared most often (Majority Voting). This helped slightly, like a committee agreeing on a decision, but the improvement was small.

The Results: Good, But Not Perfect

The robot did a decent job. It was much better at finding names when given even one example compared to when it was given no examples at all. However, it still couldn't beat the "gold standard" systems that had been trained for months by humans on massive amounts of labeled data.

  • The Exception: There was one dataset (a collection of German texts called "Sonar") where the robot actually did better than the previous best methods.
  • The Gap: For most other texts, the robot was still behind the experts who had done the heavy lifting of manual training.

The Bottom Line

This paper proves that you don't always need a massive team of human labelers to get a computer to read old history books. You can use a smart AI and just show it one example to get surprisingly good results.

While this "one-shot" method isn't perfect yet and can't replace the most accurate, human-trained systems, it is a powerful, free, and fast tool. It allows researchers to start exploring historical archives immediately, even if they don't have the budget or time to create a massive training dataset. It's like having a helpful assistant who can read the old books with you, even if they need a quick reminder of what to look for before they start.

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 →