Downloads · 30 days
81
4% of all-time downloads
Riksarkivet/bert-base-cased-swe-historical
bert-base-cased-swe-historical is a fill-mask model from Riksarkivet. Use it when you need the model to fill a missing word. It is set up for transformers. The card lists the license as mit.
WORK IN PROGRESS (Will be updated with bigger datasets soon + new OCR is coming to extend the dataset even further)
Downloads · 30 days
81
4% of all-time downloads
All-time downloads
1.8K
Public
Parameters
135M
1.6 GB on disk
Likes
4
Public
Click a slice to open those files.
.bin541 MB · 50%
How the weights are stored.
F32135M · 100%
From the Hugging Face model README
** WORK IN PROGRESS ** (Will be updated with bigger datasets soon + new OCR is coming to extend the dataset even further)
A historical Swedish Bert model is released from the National Swedish Archives to better generalise to Swedish historical text. Researches are well-aware that the Swedish language has been subject to change over time which means that present-day point-of-view models less ideal candidates for the job. However, this model can be used to interpret and analyse historical textual material and be fine-tuned for different downstream tasks.
This model should primarly be used to fine-tune further on and downstream tasks.
Inference for fill-mask with Huggingface Transformers in python:
from transformers import pipeline
summarizer = pipeline("fill-mask", model="Riksarkivet/bert-base-cased-swe-historical")
historical_text = """Det vore [MASK] häller nödvändigt att bita af tungan än berättat hvad jag varit med om."""
print(summarizer(historical_text))
The training procedure can be recreated from here: Src_code. The preprocessing procedure can be recreated from here: Src_code.
Model: The following hyperparameters were used during training:
Dataset (WIP):
We gratefully acknowledge EuroHPC for funding this research by providing computing resources of the HPC system Vega and SWE-clarin for the datasets.
Eva Pettersson and Lars Borin (2022) Swedish Diachronic Corpus In Darja Fišer & Andreas Witt (eds.), CLARIN. The Infrastructure for Language Resources. Berlin: deGruyter. https://degruyter.com/document/doi/10.1515/9783110767377-022/html