Token classifier that marks animals in Early Modern and 18th–19th-century
Dutch text. It is GysBERT v1
fine-tuned with genannote, without any human-labelled training data: every
training label comes from gpt-6-luna, and the training sentences were chosen
by active learning from a pool of 940k DBNL sentences. It is an experiment in
building a tagger without human labels, not a finished research instrument.
B-Animal, I-Animal, O)These are the guidelines the teacher labelled with (prompt v2, in
task.json). A later revision (v3) also covers eggs and larvae treated as
animals, animal words used figuratively for people, herring as food versus
as a fish, and span boundaries. This model was trained under v2.
gpt-6-luna, zero-shot, reasoning effort medium. On the test
set below it scores token F1 0.914 under these guidelines.gpt-6-luna yes/no filter
("does this sentence name an animal?"), half random.The animals_ner_dutch dev (248 sentences) and test (250 sentences) sets,
gold-standard annotations under the same whole-animal reading. Scores are
token-level and positives-only, plus span-level F1:
| Model | test F1 (P / R) | test span F1 | dev F1 |
|---|---|---|---|
| this model | 0.789 (0.92 / 0.69) | 0.768 | 0.821 |
gpt-6-luna, zero-shot (the teacher) |
0.914 (0.904 / 0.925) | 0.885 | 0.941 |
from transformers import pipeline
tagger = pipeline(
"token-classification",
model="ArjanvD95/gysbert-animals-nov26-v1",
aggregation_strategy="first",
)
tagger("Den Vos ghijngh wt om een proye, en sach van verre den Leeu.")
With genannote, use word-level alignment and a sliding window for long sentences:
from genannote.tasks import load_task_from_file
from genannote.trainers.hf_encoder import HFEncoderAnnotator
ann = HFEncoderAnnotator.from_pretrained(
"ArjanvD95/gysbert-animals-nov26-v1",
task=load_task_from_file("task.json"),
)
metrics.json has the full dev and test scores.
emanjavacas/GysBERT