FootnotesExtractor models
Browse filesFiles changed (18)
- .gitattributes+1
- README.mdAdded+88
- ner/validated_v2_nested/NER_component/config.jsonAdded+109
- ner/validated_v2_nested/NER_component/label_map.jsonAdded+113
- ner/validated_v2_nested/NER_component/model.safetensorsAdded+3
- ner/validated_v2_nested/NER_component/tokenizer.jsonAdded
- ner/validated_v2_nested/NER_component/tokenizer_config.jsonAdded+15
- ner/validated_v2_nested/NER_names/config.jsonAdded+43
- ner/validated_v2_nested/NER_names/label_map.jsonAdded+23
- ner/validated_v2_nested/NER_names/model.safetensorsAdded+3
- ner/validated_v2_nested/NER_names/tokenizer.jsonAdded
- ner/validated_v2_nested/NER_names/tokenizer_config.jsonAdded+15
- ner/validated_v2_nested/NER_reference/config.jsonAdded+40
- ner/validated_v2_nested/NER_reference/label_map.jsonAdded+17
- ner/validated_v2_nested/NER_reference/model.safetensorsAdded+3
- ner/validated_v2_nested/NER_reference/tokenizer.jsonAdded+3
- ner/validated_v2_nested/NER_reference/tokenizer_config.jsonAdded+15
- od/yolo11n_validated_v2.ptAdded+3
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353632 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textner/validated_v2_nested/NER_reference/tokenizer.json filter=lfs diff=lfs merge=lfs -text
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788---license: agpl-3.0base_model: - FacebookAI/xlm-roberta-large - allegro/herbert-large-cased - allegro/herbert-base-casedtags: - footnotes - bibliographic-references - citation-parsing - object-detection - yolo---
# FootnotesExtractor models
The model weights used by [FootnotesExtractor](https://github.com/FootnotesExtractor/FootnotesExtractor),an open-source, interactive system that extracts and parses bibliographic references from thefootnotes of scholarly books and articles.
Project page: <https://footnotesextractor.github.io/FootnotesExtractor/>
## Install
You don't need to download anything by hand. The app's installer fetches these files into `models/`:
```bashgit clone https://github.com/FootnotesExtractor/FootnotesExtractor.gitcd FootnotesExtractorpython3 -m venv venvsource venv/bin/activatepip install -r requirements.txtpython setup_models.py```
The full instructions are in the [README](https://github.com/FootnotesExtractor/FootnotesExtractor#install).
## What is in this repository
The app runs these models one after another:
| Step | File or folder | Architecture | Output ||---|---|---|---|| 1. Find the footnote areas on a page | `od/yolo11n_validated_v2.pt` | YOLO11-n, 640 px | One class: `footnote` || 2. Find the references in a footnote | `ner/validated_v2_nested/NER_reference/` | XLM-R large | `Reference` || 3. Tag the parts of a reference | `ner/validated_v2_nested/NER_component/` | HerBERT large | 17 labels, such as `Author`, `BookTitle`, `PublicationYear` and `Ibidem` || 4. Split names | `ner/validated_v2_nested/NER_names/` | HerBERT base | `FirstName`, `LastName` |
Each folder holds a standard Hugging Face token-classification model with its tokenizer, plus`label_map.json`, which lists its labels. Steps 2 to 4 use BIO tags.
Reading a page's text, splitting footnote areas into single footnotes and resolving ibid. and op. cit.are done by the app itself. Scanned pages are read with Surya OCR, whose weights are not part of thisrepository.
## Limitations
- The models are trained on footnotes in open-access scholarly books. Handwriting, marginal notes and heavily degraded scans may give poor results.- They make mistakes. The app's interactive viewer exists so that a reviewer can check and correct the output.
## Licence
These weights are released under the[GNU Affero General Public License v3.0](https://www.gnu.org/licenses/agpl-3.0.html), like the app.
They build on:
- the Ultralytics YOLO11 detector, AGPL-3.0- [xlm-roberta-large](https://huggingface.co/FacebookAI/xlm-roberta-large), MIT- [herbert-large-cased](https://huggingface.co/allegro/herbert-large-cased) and [herbert-base-cased](https://huggingface.co/allegro/herbert-base-cased) by Allegro, CC BY 4.0
**Commercial use:** some of the books used for training are under non-commercial (-NC) licences.Commercial use of these models would require retraining without those books.
## Authors and funding
- Michał Ulaniuk, National Information Processing Institute, Poland- Emanuel Kulczycki, Humboldt-Universität zu Berlin; German Centre for Higher Education Research and Science Studies (DZHW)- Przemysław Korytkowski, West Pomeranian University of Technology in Szczecin, Poland
Work co-financed by the state budget under the program of the Ministry of Education and Sciencecalled 'Science for Society II', project no. NdS-II/SP/0460/2023/01. We gratefully acknowledgePoland's high-performance computing infrastructure PLGrid and ACC Cyfronet AGH for providingcomputational facilities and support under computational grant no. PLG/2025/018513.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109{ "add_cross_attention": false, "architectures": [ "BertForTokenClassification" ], "attention_probs_dropout_prob": 0.1, "bos_token_id": 0, "classifier_dropout": null, "directionality": "bidi", "dtype": "float32", "eos_token_id": null, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 1024, "id2label": { "0": "O", "1": "B-Author", "2": "I-Author", "3": "B-BookTitle", "4": "I-BookTitle", "5": "B-DOI", "6": "I-DOI", "7": "B-Editor", "8": "I-Editor", "9": "B-Ibidem", "10": "I-Ibidem", "11": "B-Issue", "12": "I-Issue", "13": "B-Journal", "14": "I-Journal", "15": "B-OpusCitatum", "16": "I-OpusCitatum", "17": "B-Pages", "18": "I-Pages", "19": "B-PublicationPlace", "20": "I-PublicationPlace", "21": "B-PublicationYear", "22": "I-PublicationYear", "23": "B-PublicationYearSuffix", "24": "I-PublicationYearSuffix", "25": "B-Publisher", "26": "I-Publisher", "27": "B-Title", "28": "I-Title", "29": "B-Translator", "30": "I-Translator", "31": "B-Volume", "32": "I-Volume", "33": "B-Webpage", "34": "I-Webpage" }, "initializer_range": 0.02, "intermediate_size": 4096, "is_decoder": false, "label2id": { "B-Author": 1, "B-BookTitle": 3, "B-DOI": 5, "B-Editor": 7, "B-Ibidem": 9, "B-Issue": 11, "B-Journal": 13, "B-OpusCitatum": 15, "B-Pages": 17, "B-PublicationPlace": 19, "B-PublicationYear": 21, "B-PublicationYearSuffix": 23, "B-Publisher": 25, "B-Title": 27, "B-Translator": 29, "B-Volume": 31, "B-Webpage": 33, "I-Author": 2, "I-BookTitle": 4, "I-DOI": 6, "I-Editor": 8, "I-Ibidem": 10, "I-Issue": 12, "I-Journal": 14, "I-OpusCitatum": 16, "I-Pages": 18, "I-PublicationPlace": 20, "I-PublicationYear": 22, "I-PublicationYearSuffix": 24, "I-Publisher": 26, "I-Title": 28, "I-Translator": 30, "I-Volume": 32, "I-Webpage": 34, "O": 0 }, "layer_norm_eps": 1e-12, "max_position_embeddings": 514, "model_type": "bert", "num_attention_heads": 16, "num_hidden_layers": 24, "pad_token_id": 1, "pooler_fc_size": 768, "pooler_num_attention_heads": 12, "pooler_num_fc_layers": 3, "pooler_size_per_head": 128, "pooler_type": "first_token_transform", "tie_word_embeddings": true, "tokenizer_class": "HerbertTokenizerFast", "transformers_version": "5.19.0", "type_vocab_size": 2, "use_cache": false, "vocab_size": 50000}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113{ "label_list": [ "O", "B-Author", "I-Author", "B-BookTitle", "I-BookTitle", "B-DOI", "I-DOI", "B-Editor", "I-Editor", "B-Ibidem", "I-Ibidem", "B-Issue", "I-Issue", "B-Journal", "I-Journal", "B-OpusCitatum", "I-OpusCitatum", "B-Pages", "I-Pages", "B-PublicationPlace", "I-PublicationPlace", "B-PublicationYear", "I-PublicationYear", "B-PublicationYearSuffix", "I-PublicationYearSuffix", "B-Publisher", "I-Publisher", "B-Title", "I-Title", "B-Translator", "I-Translator", "B-Volume", "I-Volume", "B-Webpage", "I-Webpage" ], "label2id": { "O": 0, "B-Author": 1, "I-Author": 2, "B-BookTitle": 3, "I-BookTitle": 4, "B-DOI": 5, "I-DOI": 6, "B-Editor": 7, "I-Editor": 8, "B-Ibidem": 9, "I-Ibidem": 10, "B-Issue": 11, "I-Issue": 12, "B-Journal": 13, "I-Journal": 14, "B-OpusCitatum": 15, "I-OpusCitatum": 16, "B-Pages": 17, "I-Pages": 18, "B-PublicationPlace": 19, "I-PublicationPlace": 20, "B-PublicationYear": 21, "I-PublicationYear": 22, "B-PublicationYearSuffix": 23, "I-PublicationYearSuffix": 24, "B-Publisher": 25, "I-Publisher": 26, "B-Title": 27, "I-Title": 28, "B-Translator": 29, "I-Translator": 30, "B-Volume": 31, "I-Volume": 32, "B-Webpage": 33, "I-Webpage": 34 }, "id2label": { "0": "O", "1": "B-Author", "2": "I-Author", "3": "B-BookTitle", "4": "I-BookTitle", "5": "B-DOI", "6": "I-DOI", "7": "B-Editor", "8": "I-Editor", "9": "B-Ibidem", "10": "I-Ibidem", "11": "B-Issue", "12": "I-Issue", "13": "B-Journal", "14": "I-Journal", "15": "B-OpusCitatum", "16": "I-OpusCitatum", "17": "B-Pages", "18": "I-Pages", "19": "B-PublicationPlace", "20": "I-PublicationPlace", "21": "B-PublicationYear", "22": "I-PublicationYear", "23": "B-PublicationYearSuffix", "24": "I-PublicationYearSuffix", "25": "B-Publisher", "26": "I-Publisher", "27": "B-Title", "28": "I-Title", "29": "B-Translator", "30": "I-Translator", "31": "B-Volume", "32": "I-Volume", "33": "B-Webpage", "34": "I-Webpage" }}123version https://git-lfs.github.com/spec/v1oid sha256:506f6eeeb40756ccbc590d16565a4a4c323d95c0837afd261225dd062a4f9501size 1416349604123456789101112131415{ "backend": "tokenizers", "bos_token": "<s>", "cls_token": "<s>", "do_lowercase_and_remove_accent": false, "extra_special_tokens": [], "is_local": false, "local_files_only": false, "mask_token": "<mask>", "model_max_length": 512, "pad_token": "<pad>", "sep_token": "</s>", "tokenizer_class": "HerbertTokenizer", "unk_token": "<unk>"}12345678910111213141516171819202122232425262728293031323334353637383940414243{ "add_cross_attention": false, "architectures": [ "BertForTokenClassification" ], "attention_probs_dropout_prob": 0.1, "bos_token_id": 0, "classifier_dropout": null, "dtype": "float32", "eos_token_id": null, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "id2label": { "0": "O", "1": "B-FirstName", "2": "I-FirstName", "3": "B-LastName", "4": "I-LastName" }, "initializer_range": 0.02, "intermediate_size": 3072, "is_decoder": false, "label2id": { "B-FirstName": 1, "B-LastName": 3, "I-FirstName": 2, "I-LastName": 4, "O": 0 }, "layer_norm_eps": 1e-12, "max_position_embeddings": 514, "model_type": "bert", "num_attention_heads": 12, "num_hidden_layers": 12, "pad_token_id": 1, "tie_word_embeddings": true, "tokenizer_class": "HerbertTokenizerFast", "transformers_version": "5.19.0", "type_vocab_size": 2, "use_cache": false, "vocab_size": 50000}1234567891011121314151617181920212223{ "label_list": [ "O", "B-FirstName", "I-FirstName", "B-LastName", "I-LastName" ], "label2id": { "O": 0, "B-FirstName": 1, "I-FirstName": 2, "B-LastName": 3, "I-LastName": 4 }, "id2label": { "0": "O", "1": "B-FirstName", "2": "I-FirstName", "3": "B-LastName", "4": "I-LastName" }}123version https://git-lfs.github.com/spec/v1oid sha256:5985e78cac2f7605bb9d6c9499ef156327bea7d69f846f6e87a63593930889e4size 495447884123456789101112131415{ "backend": "tokenizers", "bos_token": "<s>", "cls_token": "<s>", "do_lowercase_and_remove_accent": false, "extra_special_tokens": [], "is_local": false, "local_files_only": false, "mask_token": "<mask>", "model_max_length": 512, "pad_token": "<pad>", "sep_token": "</s>", "tokenizer_class": "HerbertTokenizer", "unk_token": "<unk>"}12345678910111213141516171819202122232425262728293031323334353637383940{ "add_cross_attention": false, "architectures": [ "XLMRobertaForTokenClassification" ], "attention_probs_dropout_prob": 0.1, "bos_token_id": 0, "classifier_dropout": null, "dtype": "float32", "eos_token_id": 2, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 1024, "id2label": { "0": "O", "1": "B-Reference", "2": "I-Reference" }, "initializer_range": 0.02, "intermediate_size": 4096, "is_decoder": false, "label2id": { "B-Reference": 1, "I-Reference": 2, "O": 0 }, "layer_norm_eps": 1e-05, "max_position_embeddings": 514, "model_type": "xlm-roberta", "num_attention_heads": 16, "num_hidden_layers": 24, "output_past": true, "pad_token_id": 1, "position_embedding_type": "absolute", "tie_word_embeddings": true, "transformers_version": "5.19.0", "type_vocab_size": 1, "use_cache": false, "vocab_size": 250002}1234567891011121314151617{ "label_list": [ "O", "B-Reference", "I-Reference" ], "label2id": { "O": 0, "B-Reference": 1, "I-Reference": 2 }, "id2label": { "0": "O", "1": "B-Reference", "2": "I-Reference" }}123version https://git-lfs.github.com/spec/v1oid sha256:1c58f578e9b6c79fdf50ea04bff0ed11bf2c57599155554e7d927967c4a69983size 2235424156123version https://git-lfs.github.com/spec/v1oid sha256:e6c77ee2ef43d82281b6f419aaadb55954ac3faa4ffd2c339b5b33bea9060930size 17098186123456789101112131415{ "add_prefix_space": true, "backend": "tokenizers", "bos_token": "<s>", "cls_token": "<s>", "eos_token": "</s>", "is_local": false, "local_files_only": false, "mask_token": "<mask>", "model_max_length": 512, "pad_token": "<pad>", "sep_token": "</s>", "tokenizer_class": "XLMRobertaTokenizer", "unk_token": "<unk>"}123version https://git-lfs.github.com/spec/v1oid sha256:b779f8d7ae13056729110fa02fc2a7a26fbabf15cac2f70346d0c32b89a24c8esize 5476099.gitattributes+1
README.mdAdded+88
ner/validated_v2_nested/NER_component/config.jsonAdded+109
ner/validated_v2_nested/NER_component/label_map.jsonAdded+113
ner/validated_v2_nested/NER_component/model.safetensorsAdded+3
ner/validated_v2_nested/NER_component/tokenizer.jsonAdded
ner/validated_v2_nested/NER_component/tokenizer_config.jsonAdded+15
ner/validated_v2_nested/NER_names/config.jsonAdded+43
ner/validated_v2_nested/NER_names/label_map.jsonAdded+23
ner/validated_v2_nested/NER_names/model.safetensorsAdded+3
ner/validated_v2_nested/NER_names/tokenizer.jsonAdded
ner/validated_v2_nested/NER_names/tokenizer_config.jsonAdded+15
ner/validated_v2_nested/NER_reference/config.jsonAdded+40
ner/validated_v2_nested/NER_reference/label_map.jsonAdded+17
ner/validated_v2_nested/NER_reference/model.safetensorsAdded+3
ner/validated_v2_nested/NER_reference/tokenizer.jsonAdded+3
ner/validated_v2_nested/NER_reference/tokenizer_config.jsonAdded+15
od/yolo11n_validated_v2.ptAdded+3