Downloads · 30 days
0
SBB/bk-omikuji
bk-omikuji is a text classification model from SBB. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
An Annif model, trained on bibliographic metadata for automatic subject indexing tasks. It classifies a given text such as a title or description into one or multiple subjects from the classification system Nederlands…
Downloads · 30 days
0
Access
Public
Updated Oct 20, 2025
Repo size
3.1 GB
Likes
0
Public
Click a slice to open those files.
.cbor1.9 GB · 60%
From the Hugging Face model README
An Annif model, trained on bibliographic metadata for automatic subject indexing tasks. It classifies a given text such as a title or description into one or multiple subjects from the classification system Nederlandse basisclassificatie / Basisklassifikation (BK). The model was developed in the research project Human.Machine.Culture at Staatsbibliothek zu Berlin – Berlin State Library (SBB).
Questions and comments about the model can be directed to Sophie Schneider at [email protected].
An Annif model, trained on title/catalogue metadata for automatic subject indexing tasks. Subject indexing is a classical library task, aiming at describing the content of a resource. The model is intended to be used to automatically classify titles or texts that have not been classified manually so far. For each input, the model outputs one or multiple subjects from the BK classification system. It is part of a collection of 3 models, created with the help of the Annif toolkit, which address the task of automated subject indexing.
This model can directly be used to automatically classify texts with the BK classification scheme. It is intended to be used together with the Annif automated subject indexing toolkit version 1.1.0.
Other/downstream uses outside of the Annif setting described above are not intended but also not excluded.
The task of the model is primarily the subject indexing of bibliographic metadata. Basically, the model can be applied to any kind of text describing publications. However, it might not be suitable for colloquial texts from the internet.
The BK was introduced in the 1980s and therefore its structure partly represents outdated ways of thinking. In itself, the BK is biased, for some examples see https://verbundkonferenz.gbv.de/wp-content/uploads/2024/09/2024-08-20_VK_beckmann_Kunst-oder-Krempel-Potenziale-der-Basisklassifikation.pdf, slide 17. Hence, typical biases are e.g. the binary understanding of gender roles, outmoded use of geographical designators or of social movements. However, in order to keep it up to date, the classification system is under constant revision. As of now, the classes suggested for an input text might not be suitable for today’s understanding and might not conform to contemporary values.
This BK model has been trained solely on the basis of title data. We recommend being aware of this limitation and, if available, to use additional training data such as full texts or tables of contents to enhance the existing model (e.g. by running annif learn or combining models trained with different kinds of training data to an ensemble model).
The vocabulary file for the BK was downloaded directly from https://api.dante.gbv.de/export/download/bk/default/ (bk__default.turtle.ttl as of 05/2024).
For the subject data, several versions were created for each model with slight adaptations.
A dataset was generated following these steps:
kxp-subjects.tsv.gz of Voß, J., & Verbundzentrale des GBV. (2024). Normalized subject indexing data of K10plus library union catalog (2024-02-26) [Data set]. VZG. https://doi.org/10.5281/zenodo.10933926The training dataset has been published on Zenodo.
The training procedure includes loading the BK vocabulary into Annif and training the Omikuji backend with the help of the respective training data. Further aspects on technical specifications can be found in the section Training hyperparameters.
Besides merging and transforming the data as described under Training Data, no further preprocessing of natural language or similar has been performed in the dataset creation. For training the model, we applied the simple analyzer provided by Annif.
Training takes from several minutes to an hour on an 2,8 GHz CPU with 32 cores, depending on the choice of dataset and algorithm as well as hyperparameter settings.
name=BK Omikuji language=de backend=omikuji analyzer=simple vocab=bk cluster_balanced=False cluster_k=100 max_depth=3
documents evaluated: 5000
--limit 2, --threshold 0.05): 0.4664--limit 2, --threshold 0.05): 0.5382--limit 2, --threshold 0.05): 0.4775--limit 2, --threshold 0.05): 0.5385The dataset is described under Training Data. It was split into smaller subsets used for training, testing and validating (80%/10%/10% split).
Model performance has been evaluated based on the following metrics: Precision, Recall, F1 and NDCG. These are standard metrics for machine learning and more specifically for automatic subject indexing tasks and are directly provided in Annif by calling the annif eval statement. Evaluation parameters (limit = maximum number of results to return; threshold = minimum confidence for a suggestion to be considered) have been optimized before using the test subset and chosen based on the best F1 score reached. They affect the final results accordingly. We also state F1@5 and NDCG@5 scores reached without any evaluation parameters.
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
See the Annif Wiki on the Omikuji algorithm.
To run this model, Annif version 1.1.0 must be installed.
Sophie Schneider and Jörg Lehmann
Questions and comments about the model can be directed to Sophie Schneider at [email protected], questions and comments about the model card can be directed to Jörg Lehmann at [email protected]
Follow the Annif Getting Started page to set up and run Annif. Create a projects.cfg file (see section Training hyperparameters for details on the specific project configuration), load the BK vocabulary via annif load-vocab command and copy the model folder over to data/projects.
Model Card as of October 20th, 2025