DeBERTa-v3 models fine-tuned for NER on insect collection labels. Given a raw
label string the model extracts semantic fields as verbatim character spans.
1from transformers import pipeline
2
3ner = pipeline(
4 "token-classification",
5 model="SpeciesFileGroup/ento-label-deberta/base",
6 aggregation_strategy="simple",
7)
8
9results = ner("Sudan, Blue Nile: Abu Hashim, 23-24.XI.1962, coll. Linnavuori")
10for r in results:
11 print(r["entity_group"], repr(r["word"]))
12# country 'Sudan'
13# state 'Blue Nile'
14# verbatim_locality 'Abu Hashim'
15# verbatim_date '23-24.XI.1962'
16# verbatim_collectors 'Linnavuori'
ONNX models are compatible with
hugot and ONNX Runtime. Load
from
onnx/small,
onnx/base, or
onnx/large.
Training data: ~22 000 insect collection label strings with character-span
annotations for the 10 entity types above.