viklofg's picture
Update README.md
0f64611
|
raw
history blame
No virus
2.6 kB
metadata
language:
  - sv
widget:
  - text: >-
      Den i HandelstidniDgens g&rdagsnnmmer omtalade hvalfisken, sorn fångats i
      Frölnndaviken
    example_title: 'News article #1'
  - text: En Gosse fur plats nu genast ! inetallyrkc, JU 83 Drottninggatan.
    example_title: 'News article #2'
  - text: AfgäiigStiden bestämmes wid fartyget» hltkomst.
    example_title: 'News article #3'
  - text: >-
      Elt godt Fortepiano om 6 octaver, ifräân Contra-F till o< med fyrſtrukna
      F, förfäljes af underte>uad för 260 R:dr Rgs.
    example_title: Long-s piano ad

(Work in progress)

Swedish OCR correction

This model corrects OCR errors in Swedish text.

Model Description

This model is a fine-tuned version of byt5-small, a character-level multilingual transformer. It is fine-tuned on OCR samples from Swedish 19th and 20th century newspapers and historical text.

Training Data

The base model byt5 is pre-trained on mc4. This fine-tuned version is further trained on:

This data includes characters not used in Swedish today, such as the long s (ſ) and the esszett ligature (ß).

Usage

The model accepts input sequences of at most 128 UTF-8 bytes, longer sequences are truncated to this limit. 128 UTF-8 bytes corresponds to slightly less than 128 characters of Swedish text, since most characters use one byte but Å, Ä and Ö use two bytes.

[Demo code here]