Downloads · 30 days
29
5% of all-time downloads
impresso-project/ner-newsagency-bert-de
ner-newsagency-bert-de is a token classification model from impresso-project. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as agpl-3.0.
This model is designed to detect mentions of news agencies in historical newspaper articles in German. It was developed as part of the Impresso project, a multidisciplinary initiative aiming to enable exploration of l…
Downloads · 30 days
29
5% of all-time downloads
All-time downloads
540
Public
Parameters
109M
2.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors434 MB · 100%
From the Hugging Face model README
impresso-project/ner-newsagency-bert-deThis model is designed to detect mentions of news agencies in historical newspaper articles in German. It was developed as part of the Impresso project, a multidisciplinary initiative aiming to enable exploration of large-scale historical media archives.
The model is fine-tuned from dbmdz/bert-base-german-europeana-cased, trained on a custom annotated dataset of over 1,500 historical articles (1840–2000) from the Swiss and Luxembourgish press.
dbmdz/bert-base-german-europeana-casedThe model architecture consists of the following component:
The model predicts whether a given token span corresponds to a news agency mention. The following tags are used:
| Tag | Description |
|---|---|
| AFP | Agence France Presse (A.F.P.) |
| ANP | Algemeen Nederlands Persbureau |
| ANSA | Agenzia Nationale Stampa Associata |
| AP | Associated Press (Assoc. Press) |
| APA | Austria Press Agentur |
| ATS-SDA | Agence télégraphique suisse / Schweizerische Depeschenagentur (ATS, SDA) |
| BTA | Bulgarska Telegrafitscheka Agentzia (Agence Bulgare) |
| Belga | Agence Belga SA |
| CTK | Czechoslavenska Tiskova Kancelar (Ceteka) |
| DDP-DAPD | Deutscher Depeschendienst / Deutscher Auslands-Depeschendienst |
| DNB | Deutsches Nachrichtenbüro GmbH (D.N.B.) |
| DPA | Deutsche Presse Agentur |
| Domei | Domei Tsushin (Japan) |
| Europapress | Europapress (Europapreß, Europapr.) |
| Extel | Exchange Telegraph Co. Ltd. (Agence Extel) |
| Havas | Havas (Agence Havas) |
| Interfax | Interfax News Agency |
| PAP | Polska Agencja Prasowa |
| Reuters | Reuters (Reuter, Reutermeldung, Reuter’sche Bureau) |
| SPK-SMP | Schweizer Mittelpresse / Schweizerische Politische Korrespondenz (SPK, SMP) |
| Stefani | Agenzia Stefani (Agence Stefani) |
| TANJUG | Telegrafska Agencija nova Jugoslavija |
| TASS | Telegrafnoie Agenstvo sovietskavo Soyusa (ITAR-TASS, Taß, etc.) |
| TT | Tidningarnas Telegrambyra (Sweden) |
| Telunion | Telegraphen-Union (TU) |
| UP-UPI | United Press / United Press International (UP, UPI) |
| Wolff | Wolffs Telegraphisches Bureau (Wolffagentur, etc.) |
| ag | Generic agency mention (e.g. “ag.”, “Agence”) |
| pers.ind.articleauthor | Author of the newspaper article |
| unk | Unknown agency not in tagset |
from transformers import pipeline
nlp = pipeline("newsagency-ner", model="impresso-project/ner-newsagency-bert-multilingual", trust_remote_code=True)
nlp("La dépêche vient de (Reuter), diffusée hier.")
{
"type": "org.ent.pressagency.Reuters",
"confidence": 98.94,
"index": 12,
"surface": "Reuter",
"start": 43,
"end": 49
}
The model was trained on a custom dataset of 1,530 documents (1,133 FR / 397 DE) from the Impresso HIPE-2020 dataset. The training data was manually annotated to identify mentions of news agencies in historical newspaper articles.
| Lang | Docs | Tokens | Mentions | % Noisy |
|---|---|---|---|---|
| de | 397 | 299k | 577 | 9% |
ag, pers.ind.articleauthor, unkdbmdz/bert-base-german-europeana-casedModel evaluation was performed on a manually annotated dataset with 1,530 documents (1,133 FR / 397 DE). Results are summarised below:
| Language | Precision | Recall | F1-score |
|---|---|---|---|
| German | 0.89 | 0.83 | 0.86 |
Evaluation methodology and full results are detailed in the thesis: Marxen, 2023. are detailed in the thesis: Marxen, 2023.
@misc{marxen_newsagency_2023,
title = {Where Did the News come from? Detection of News Agency Releases in Historical Newspapers},
author = {Marxen, Lea and Ehrmann, Maud and Boros, Emanuela},
year = {2023},
url = {https://github.com/impresso/newsagency-classification/},
note = {Master Thesis}
}