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 and there is a public and citable release:
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
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.
@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 has some great examples.
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.
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).
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).
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.
I am in the “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 in the context of the ENCODE project:
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.
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.