XLSR-300M-bokmaal / description.md
pere's picture
Update description.md
6968170

Norwegian Wav2Vec2 Models

This is one of several Wav2Vec-models created during the HuggingFace hosted Robust Speech Event. In parallell with the event, the team also converted the Norwegian Parliamentary Speech Corpus (NPSC) to the HuggingFace Dataset format and used that as the main source for training.

We do release all code developed during the event so that the Norwegian NLP community can build upon this to develop even better Norwegian ASR models. The finetuning of these models are not very compute demanding. You should after following the instructions here, be able to train your own automatic speech recognition system in less than a day with an average GPU.

Instructions

We strongly recommend that you follow the instructions from HuggingFace to train a simple Swedish model.

When you have verified that you are able to do this, create a new repo. You can then start by copying the files run.sh and run_speech_recognition_ctc.py from our repo. You should be able to reproduce our results by just running this script. With some tweaking, you will most likely be able to build an even better ASR.

Adding a language model

HuggingFace has provided another very nice blog about how to add a 5-gram language model to improve the ASR model. You can build this from your own corpus, for instance by extracting some suitable text from the Norwegian Colossal Corpus. You can also skip some of the steps in the guide, and copy the 5-gram model from this repo.