Punctuation restoration in Swedish through fine-tuned KB-BERT
Not on the map. Why?
Abstract (arXiv)
Presented here is a method for automatic punctuation restoration in Swedish using a BERT model. The method is based on KB-BERT, a publicly available, neural network language model pre-trained on a Swedish corpus by National Library of Sweden. This model has then been fine-tuned for this specific task using a corpus of government texts. With a lower-case and unpunctuated Swedish text as input, the model is supposed to return a grammatically correct punctuated copy of the text as output. A successful solution to this problem brings benefits for an array of NLP domains, such as speech-to-text and automated text. Only the punctuation marks period, comma and question marks were considered for the project, due to a lack of data for more rare marks such as semicolon. Additionally, some marks are somewhat interchangeable with the more common, such as exclamation points and periods. Thus, the data set had all exclamation points replaced with periods. The fine-tuned Swedish BERT model, dubbed prestoBERT, achieved an overall F1-score of 78.9. The proposed model scored similarly to international counterparts, with Hungarian and Chinese models obtaining F1-scores of 82.2 and 75.6 respectively. As further comparison, a human evaluation case study was carried out. The human test group achieved an overall F1-score of 81.7, but scored substantially worse than prestoBERT on both period and comma. Inspecting output sentences from the model and humans show satisfactory results, despite the difference in F1-score. The disconnect seems to stem from an unnecessary focus on replicating the exact same punctuation used in the test set, rather than providing any of the number of correct interpretations. If the loss function could be rewritten to reward all grammatically correct outputs, rather than only the one original example, the performance could improve significantly for both prestoBERT and the human group.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 19 of its 41 references that are in the map. First posted on arXiv 14 Feb 2022.
Builds on
19 of 41 references.
References · 19
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
- 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,016
- 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,471
- 2019CamemBERT: a Tasty French Language Modelcited by 368
- 2019A Multiscale Visualization of Attention in the Transformer Modelcited by 292
- 2017Recent Trends in Deep Learning Based Natural Language Processingcited by 262
- 2020Are All Languages Created Equal in Multilingual BERT?cited by 206
- 2019Multilingual is not enough: BERT for Finnishcited by 118
7 more
- 2019Adaptation of Deep Bidirectional Multilingual Transformers for Russian Languagecited by 109
- 2019Exploiting BERT for End-to-End Aspect-based Sentiment Analysiscited by 57
- 2020GottBERT: a pure German Language Modelcited by 49
- 2020The birth of Romanian BERTcited by 44
- 2020Playing with Words at the National Library of Sweden -- Making a Swedish BERTcited by 35
- 2020Adversarial Transfer Learning for Punctuation Restorationcited by 15
- 2021Automatic punctuation restoration with BERT modelscited by 12
Built on by
Not cited yet.