Downloads · 30 days
0
thesanogoeffect/bibr-parser-giant-v4
bibr-parser-giant-v4 is a token classification model from thesanogoeffect. Use it when you need labels on individual words, such as names. It is set up for pytorch. The card lists the license as mit.
Token-classification model that labels the fields of a bibliographic reference string (AUTHOR, TITLE, CONTAINER, YEAR, …) with a BIO tag scheme. Consumed at runtime by bibr; trained by bibr-training.
Downloads · 30 days
0
Access
Public
Updated Jun 10, 2026
Repo size
596 MB
Likes
0
Public
Click a slice to open those files.
.pt596 MB · 100%
From the Hugging Face model README
Token-classification model that labels the fields of a bibliographic reference string (AUTHOR, TITLE, CONTAINER, YEAR, …) with a BIO tag scheme. Consumed at runtime by bibr; trained by bibr-training.
FeatureGatedEncoderCRF: answerdotai/ModernBERT-base encoder → linear
projection → CRF decoder, with a per-token numeric feature gate (layout/font
signals). GIANT has no layout signal, so features are all-empty (mask 0) here and
the gate down-weights them to zero — the gate/projection ship with the checkpoint
so the same artifact can later be gold-fine-tuned with real layout features.
O + B-/I- for 19 field types). See tag_config.json.best.pt (PyTorch state_dict, loads strict=True).GIANT (Crossref ~1B citation metadata) converted to word-level BIO, then
re-tokenized with the ModernBERT subword tokenizer. ~2.0M references, 40/60
noised/clean mix (augment_reference: per-token character noise), with a
deterministic clean GIANT holdout (val_size 40,002) used for model selection.
Entity-level F1 (seqeval strict) on the clean GIANT holdout:
| metric | value |
|---|---|
| val entity F1 | 0.9993 |
Per-field F1 (see report.txt): AUTHOR 0.9990, TITLE 0.9994, CONTAINER 0.9998,
DOI 0.9997, ISSUE 0.9996, PUBLISHER 0.9996, URL 1.0000, VOLUME 0.9994, YEAR
0.9985, EDITOR 0.9968.
⚠️ Read this number in context. It is measured on in-distribution, synthetic GIANT data (clean Crossref metadata + the same per-token noise seen in training). It is not a real-world-reference benchmark; expect lower performance on OCR'd or free-text bibliographies. The metric is meaningful for model selection but should not be quoted as real-world accuracy.
GIANT emits 10 of the 19 field types: AUTHOR, TITLE, CONTAINER, YEAR, VOLUME, ISSUE, DOI, PUBLISHER, URL, EDITOR. The other fields (PAGES, ARXIV, PMID, etc.) are never predicted by this GIANT-only checkpoint.
The model is trained with add_special_tokens=False. Any inference MUST
tokenize the same way (no CLS/SEP), or predictions shift by one token. Token
labels are derived from the majority field over each token's whole character
span (ModernBERT byte-level BPE folds the leading space into a token's offset,
so a first-character-only rule mislabels every space-led subword).