Describe XLM-R as the default set
Browse files1 unmodified line234567834 unmodified lines434445454647464748495051525354555657585913 unmodified lines7374757176777873798081821 unmodified linelicense: agpl-3.0base_model: - FacebookAI/xlm-roberta-large - FacebookAI/xlm-roberta-base - allegro/herbert-large-cased - allegro/herbert-base-casedtags:34 unmodified lines| 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` || 2. Find the references in a footnote | `ner/validated_v2_xlmr_nested/NER_reference/` | XLM-R large | `Reference` || 3. Tag the parts of a reference | `ner/validated_v2_xlmr_nested/NER_component/` | XLM-R large | 17 labels, such as `Author`, `BookTitle`, `PublicationYear` and `Ibidem` || 4. Split names | `ner/validated_v2_xlmr_nested/NER_names/` | XLM-R 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.
`ner/validated_v2_nested/` holds a second set: XLM-R large for references, HerBERT large for parts andHerBERT base for names. `python setup_models.py --herbert` fetches it as well, and you choose it under**Advanced Options** when you upload.
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.13 unmodified linesThey build on:
- the Ultralytics YOLO11 detector, AGPL-3.0- [xlm-roberta-large](https://huggingface.co/FacebookAI/xlm-roberta-large), MIT- [xlm-roberta-large](https://huggingface.co/FacebookAI/xlm-roberta-large) and [xlm-roberta-base](https://huggingface.co/FacebookAI/xlm-roberta-base), 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 [herbert-base-cased](https://huggingface.co/allegro/herbert-base-cased) by Allegro, CC BY 4.0 (second set only)
**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.README.md+11-5