pere / nb-nn-translation

huggingface.co
Total runs: 1.2K
24-hour runs: 0
7-day runs: -25
30-day runs: -25
Model's Last Updated: September 24 2021
translation

Introduction of nb-nn-translation

Model Details of nb-nn-translation

🇳🇴 Bokmål ⇔ Nynorsk 🇳🇴

Norwegian has two relatively similar written languages; Bokmål and Nynorsk. Historically Nynorsk is a written norm based on dialects curated by the linguist Ivar Aasen in the mid-to-late 1800s, whereas Bokmål is a gradual 'Norwegization' of written Danish. The two written languages are considered equal and citizens have a right to receive public service information in their primary and prefered language. Even though this right has been around for a long time only between 5-10% of Norwegian texts are written in Nynorsk. Nynorsk is therefore a low-resource language within a low-resource language.

Apart from some word-list based engines, there are not any working off-the-shelf machine learning-based translation models. Translation between Bokmål and Nynorsk is not available in Google Translate.

Demo
Widget Try the widget in the top right corner
Huggingface Spaces Spaces Demo
Pretraining a T5-base

There is an mt5 that includes Norwegian. Unfortunately a very small part of this is Nynorsk; there is only around 1GB Nynorsk text in mC4. Despite this, the mt5 also gives a BLEU score above 80. During the project we extracted all available Nynorsk text from the Norwegian Colossal Corpus at the National Library of Norway, and matched it (by material type i.e. book, newspapers and so on) with an equal amount of Bokmål. The corpus collection is described here and the total size is 19GB.

Finetuning - BLEU-SCORE 88.17 🎉

The central finetuning data of the project have been 200k translation units (TU) i.e. aligned pairs of sentences in the respective languages extracted from textbooks of various subjects and newspapers.

Training for [10] epochs with a learning rate of [7e-4], a batch size of [32] and a max source and target length of [512] fine tuning reached a SACREBLEU score of [88.03] at training and a test score of [ 88.17 ] after training.

This is not a translator

We found out that we were able to get almost identical BLEU-score with training it both ways, and letting the model decide if the input is in Bokmål or Nynorsk. This way we can train one model instead of two. We call it a language switcher.

Future work

The following Google Docs Add-on is currently pending approval. Add-on

How to use the model
# Set up the pipeline
from transformers import pipeline
translator = pipeline("translation", model='pere/nb-nn-translation')

# Do the translation
text = "Hun vil ikke gi bort sine personlige data."
print(translator(text, max_length=255))

Runs of pere nb-nn-translation on huggingface.co

1.2K
Total runs
0
24-hour runs
1
3-day runs
-25
7-day runs
-25
30-day runs

More Information About nb-nn-translation huggingface.co Model

More nb-nn-translation license Visit here:

https://choosealicense.com/licenses/cc-by-4.0

nb-nn-translation huggingface.co

nb-nn-translation huggingface.co is an AI model on huggingface.co that provides nb-nn-translation's model effect (), which can be used instantly with this pere nb-nn-translation model. huggingface.co supports a free trial of the nb-nn-translation model, and also provides paid use of the nb-nn-translation. Support call nb-nn-translation model through api, including Node.js, Python, http.

nb-nn-translation huggingface.co Url

https://huggingface.co/pere/nb-nn-translation

pere nb-nn-translation online free

nb-nn-translation huggingface.co is an online trial and call api platform, which integrates nb-nn-translation's modeling effects, including api services, and provides a free online trial of nb-nn-translation, you can try nb-nn-translation online for free by clicking the link below.

pere nb-nn-translation online free url in huggingface.co:

https://huggingface.co/pere/nb-nn-translation

nb-nn-translation install

nb-nn-translation is an open source model from GitHub that offers a free installation service, and any user can find nb-nn-translation on GitHub to install. At the same time, huggingface.co provides the effect of nb-nn-translation install, users can directly use nb-nn-translation installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

nb-nn-translation install url in huggingface.co:

https://huggingface.co/pere/nb-nn-translation

Url of nb-nn-translation

nb-nn-translation huggingface.co Url

Provider of nb-nn-translation huggingface.co

pere
ORGANIZATIONS

Other API from pere

huggingface.co

Total runs: 135
Run Growth: 135
Growth Rate: 100.00%
Updated:November 18 2022
huggingface.co

Total runs: 67
Run Growth: 45
Growth Rate: 67.16%
Updated:September 24 2021
huggingface.co

Total runs: 29
Run Growth: 22
Growth Rate: 75.86%
Updated:September 28 2021
huggingface.co

Total runs: 25
Run Growth: 15
Growth Rate: 60.00%
Updated:August 23 2023
huggingface.co

Total runs: 16
Run Growth: 8
Growth Rate: 50.00%
Updated:September 24 2021
huggingface.co

Total runs: 15
Run Growth: 8
Growth Rate: 53.33%
Updated:November 22 2022
huggingface.co

Total runs: 15
Run Growth: 11
Growth Rate: 73.33%
Updated:December 08 2022
huggingface.co

Total runs: 14
Run Growth: 9
Growth Rate: 64.29%
Updated:March 24 2022
huggingface.co

Total runs: 13
Run Growth: 7
Growth Rate: 53.85%
Updated:September 21 2021
huggingface.co

Total runs: 6
Run Growth: 6
Growth Rate: 100.00%
Updated:March 25 2022
huggingface.co

Total runs: 5
Run Growth: 5
Growth Rate: 100.00%
Updated:March 25 2022
huggingface.co

Total runs: 4
Run Growth: 4
Growth Rate: 100.00%
Updated:March 25 2022
huggingface.co

Total runs: 3
Run Growth: 1
Growth Rate: 33.33%
Updated:February 08 2025
huggingface.co

Total runs: 2
Run Growth: 2
Growth Rate: 100.00%
Updated:March 25 2022
huggingface.co

Total runs: 2
Run Growth: 2
Growth Rate: 100.00%
Updated:March 25 2022
huggingface.co

Total runs: 2
Run Growth: -1
Growth Rate: -50.00%
Updated:September 24 2021
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:May 04 2022
huggingface.co

Total runs: 1
Run Growth: 1
Growth Rate: 100.00%
Updated:January 23 2022
huggingface.co

Total runs: 1
Run Growth: 1
Growth Rate: 100.00%
Updated:March 25 2022
huggingface.co

Total runs: 0
Run Growth: -1
Growth Rate: 0.00%
Updated:December 10 2023
huggingface.co

Total runs: 0
Run Growth: -1
Growth Rate: 0.00%
Updated:September 24 2021
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:May 13 2022
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:October 22 2022
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 22 2023