# Querying a biodiversity corpus - an example of what BHL could aim for

**URL:** <https://forum.biodiversitylibrary.org/t/querying-a-biodiversity-corpus-an-example-of-what-bhl-could-aim-for/158>\
**Category:** General\
**Tags:** ai, ocr, mcp\
**Created:** [July 8, 2026, 1:16pm UTC](https://forum.biodiversitylibrary.org/t/querying-a-biodiversity-corpus-an-example-of-what-bhl-could-aim-for/158 "2026-07-08T13:16:12Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![rdmpage](https://yyz1.discourse-cdn.com/flex033/user_avatar/forum.biodiversitylibrary.org/rdmpage/32/8_2.png) [@rdmpage](https://forum.biodiversitylibrary.org/u/rdmpage)\
**Post date:** [July 8, 2026, 1:16pm UTC](https://forum.biodiversitylibrary.org/t/querying-a-biodiversity-corpus-an-example-of-what-bhl-could-aim-for/158/1 "2026-07-08T13:16:12Z")

</div>

Recently I was asked to review a paper, and by agreeing to do that I stumbled across a very cool project called “Corpus” from Casey Dunn’s lab. The paper is still in review, but the code is on [GitHub](https://github.com/caseywdunn/corpus) and there is a public and citable release:

> **[caseywdunn/corpus: v0.2.0](https://zenodo.org/records/20097066)**
>
> A hardening + iteration release. v0.2 closes out v0.1's deferred items (vision pass at corpus scale, expanded lexicon + taxonomy support, Bouchet batch-script fixes), adds a real update lifecycle (per-stage resume, input fingerprints,...

There’s a lot going on in this project, but what is does is:

- take a bunch of PDFs for articles and extract text and figures
- extract individual panels from figures (e.g., "Fig. 1A, “Fig. 1B, etc.”)
- add a taxonomic database for the species you are interested in
- add a bibliography of relevant papers
- wrap the whole thing in a MCP server which most AI tools can talk too

The end result of this is a “corpuscle” which is something you can “talk” to and ask questions, such as trace the changes in name for a species over time, get illustrations of specific body parts, extract diagnositic characters, etc. Everything is linked to the source literature, so every statement has provenance.

Casey envisages that people will be able to create corpuscles for their taxa of interest (or indeed other topics, such as a particular location, or a person, etc.). I think this points the way to what BHL could become, particularly if the NHM project delivers better OCR and identifies figures, etc. The corpus approach works, but installing the software to make it happen is not for the faint hearted. Most people probably don’t want to deal with that complexity. BHL could hide all that and enable people to ask natural language questions across 64 million pages.

Ambitious? Yes! But I also think not considering this sort of approach may lead to BHL simply being a passive source of content for “corpuscles” (and similar approaches), rather than the place people come to do their research.

---

<div class="post-metadata">

**Author:** ![sav-che](https://yyz1.discourse-cdn.com/flex033/user_avatar/forum.biodiversitylibrary.org/sav-che/32/175_2.png) [@sav-che](https://forum.biodiversitylibrary.org/u/sav-che)\
**Post date:** [July 11, 2026, 8:37am UTC](https://forum.biodiversitylibrary.org/t/querying-a-biodiversity-corpus-an-example-of-what-bhl-could-aim-for/158/2 "2026-07-11T08:37:08Z")

</div>

This is nice but without good and free OCR, and then good and free NER this like building on sand.

---

<div class="post-metadata">

**Author:** ![rdmpage](https://yyz1.discourse-cdn.com/flex033/user_avatar/forum.biodiversitylibrary.org/rdmpage/32/8_2.png) [@rdmpage](https://forum.biodiversitylibrary.org/u/rdmpage)\
**Post date:** [July 11, 2026, 3:17pm UTC](https://forum.biodiversitylibrary.org/t/querying-a-biodiversity-corpus-an-example-of-what-bhl-could-aim-for/158/3 "2026-07-11T15:17:01Z")

</div>

@sav-che Regarding "good’ and “free”, I think you can get “good” for free (e.g, Tesseract), but “great” is going to cost money.That said, there are some very good tools that are can be run cheaply , or for free (albeit maybe not as fast as cloud-based services). [DataLab](https://www.datalab.to) has some great examples.

---

<div class="post-metadata">

**Author:** ![sav-che](https://yyz1.discourse-cdn.com/flex033/user_avatar/forum.biodiversitylibrary.org/sav-che/32/175_2.png) [@sav-che](https://forum.biodiversitylibrary.org/u/sav-che)\
**Post date:** [July 13, 2026, 2:29pm UTC](https://forum.biodiversitylibrary.org/t/querying-a-biodiversity-corpus-an-example-of-what-bhl-could-aim-for/158/4 "2026-07-13T14:29:46Z")

</div>

Yes, the (visible) software landscape for OCR is definitely better than for NER.

---

<div class="post-metadata">

**Author:** ![rdmpage](https://yyz1.discourse-cdn.com/flex033/user_avatar/forum.biodiversitylibrary.org/rdmpage/32/8_2.png) [@rdmpage](https://forum.biodiversitylibrary.org/u/rdmpage)\
**Post date:** [July 13, 2026, 3:35pm UTC](https://forum.biodiversitylibrary.org/t/querying-a-biodiversity-corpus-an-example-of-what-bhl-could-aim-for/158/5 "2026-07-13T15:35:44Z")

</div>

Just to be clear, you are saying that you think the state of named entity recognition is poor? Is there evidence for this? It might be handy to have a list of test datasets relevant to NER in biodiversity. I know that there are some for taxonomic names, I’m ignorant regarding datasets for people, places, and specimens.

---

<div class="post-metadata">

**Author:** ![sav-che](https://yyz1.discourse-cdn.com/flex033/user_avatar/forum.biodiversitylibrary.org/sav-che/32/175_2.png) [@sav-che](https://forum.biodiversitylibrary.org/u/sav-che)\
**Post date:** [July 13, 2026, 4:39pm UTC](https://forum.biodiversitylibrary.org/t/querying-a-biodiversity-corpus-an-example-of-what-bhl-could-aim-for/158/6 "2026-07-13T16:39:59Z")

</div>

I shouldn’t say that it’s poor, because I don’t quite know. But it _feels_ more difficult to get into, and it’s not like there is a flood of successful cases in taxonomy. (I don’t see Plazi as a success, maybe I’m wrong).

---

<div class="post-metadata">

**Author:** ![rdmpage](https://yyz1.discourse-cdn.com/flex033/user_avatar/forum.biodiversitylibrary.org/rdmpage/32/8_2.png) [@rdmpage](https://forum.biodiversitylibrary.org/u/rdmpage)\
**Post date:** [July 13, 2026, 5:12pm UTC](https://forum.biodiversitylibrary.org/t/querying-a-biodiversity-corpus-an-example-of-what-bhl-could-aim-for/158/7 "2026-07-13T17:12:26Z")

</div>

I think Plazi has been a huge success at telling a story (there is data in publications) and getting point locality information into GBIF (which enables nice maps and metrics of impact).

In my experience if you look at individual Plazi records they often get core details about geography, people, and collections wrong (particularly if the paper is not zoological). I think this shows the limitations of relying on regular expressions, there are more sophisticated tools available now which I think will do a better job (based on my limited playing with them).

---

<div class="post-metadata">

**Author:** ![sav-che](https://yyz1.discourse-cdn.com/flex033/user_avatar/forum.biodiversitylibrary.org/sav-che/32/175_2.png) [@sav-che](https://forum.biodiversitylibrary.org/u/sav-che)\
**Post date:** [July 13, 2026, 5:25pm UTC](https://forum.biodiversitylibrary.org/t/querying-a-biodiversity-corpus-an-example-of-what-bhl-could-aim-for/158/8 "2026-07-13T17:25:08Z")

</div>

I hope NHM approach showcased at BHL day will push things forward. IMO the core problem is that to be useful _for taxonomy_, mined data have to be perfect, anything less will make taxonomy worse, not better. But other disciplines can endure more error.

---

<div class="post-metadata">

**Author:** ![rdmpage](https://yyz1.discourse-cdn.com/flex033/user_avatar/forum.biodiversitylibrary.org/rdmpage/32/8_2.png) [@rdmpage](https://forum.biodiversitylibrary.org/u/rdmpage)\
**Post date:** [July 13, 2026, 5:34pm UTC](https://forum.biodiversitylibrary.org/t/querying-a-biodiversity-corpus-an-example-of-what-bhl-could-aim-for/158/9 "2026-07-13T17:34:48Z")

</div>

I am in the [“perfect is the enemy of good”](https://en.wikipedia.org/wiki/Perfect_is_the_enemy_of_good) camp, it doesn’t have to be perfect (and it never will be), it needs to be good enough for the task at hand. Even better, there need to be ways that errors can be fixed. As [Ewan Birney remarked](https://doi.org/10.1038/489049a) in the context of the ENCODE project:

> [during early data production consortia should really be judged not by absolute error rates, but by how quickly they can rectify reported errors](https://www.nature.com/articles/489049a#:~:text=during%20early%20data%20production%20consortia%20should%20really%20be%20judged%20not%20by%20absolute%20error%20rates%2C%20but%20by%20how%20quickly%20they%20can%20rectify%20reported%20errors).

---

<div class="post-metadata">

**Author:** ![sav-che](https://yyz1.discourse-cdn.com/flex033/user_avatar/forum.biodiversitylibrary.org/sav-che/32/175_2.png) [@sav-che](https://forum.biodiversitylibrary.org/u/sav-che)\
**Post date:** [July 13, 2026, 5:51pm UTC](https://forum.biodiversitylibrary.org/t/querying-a-biodiversity-corpus-an-example-of-what-bhl-could-aim-for/158/10 "2026-07-13T17:51:15Z")

</div>

I am just afraid that something far from “good” will be called just that (thinking about mycological bits at Plazi). A user-friendly tool to fix errors would help a lot, but the distance to actual “good” state shoudn’t be too long.

---

<div class="post-metadata">

**Author:** ![RichardLitt](https://yyz1.discourse-cdn.com/flex033/user_avatar/forum.biodiversitylibrary.org/richardlitt/32/48_2.png) [@RichardLitt](https://forum.biodiversitylibrary.org/u/RichardLitt)\
**Post date:** [July 16, 2026, 9:35pm UTC](https://forum.biodiversitylibrary.org/t/querying-a-biodiversity-corpus-an-example-of-what-bhl-could-aim-for/158/11 "2026-07-16T21:35:13Z")

</div>

This as a whole looks interesting - although I have some doubts about leaning on LLMs for serious taxonomic work. I’ve found that Claude can’t reason about the Code very well in depth, and its value is somewhat limited. I’d be curious about use cases for searching using corpuscles that allow high to medium error rates.
