Commit ·
b22aeec
1
Parent(s): 3926f9f
create README.md (#1)
Browse files- create README.md (0bdc09b15abc8131914e1d42fa7eee142d5c31e7)
README.md
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: PyLaia
|
| 3 |
+
license: mit
|
| 4 |
+
tags:
|
| 5 |
+
- PyLaia
|
| 6 |
+
- PyTorch
|
| 7 |
+
- Handwritten text recognition
|
| 8 |
+
metrics:
|
| 9 |
+
- CER
|
| 10 |
+
- WER
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# Hugin-Munin handwritten text recognition
|
| 14 |
+
|
| 15 |
+
This model performs Handwritten Text Recognition in Norwegian. It was was developed during the [HUGIN-MUNIN project](https://hugin-munin-project.github.io/).
|
| 16 |
+
|
| 17 |
+
## Model description
|
| 18 |
+
|
| 19 |
+
The model has been trained using the PyLaia library on the [NorHand](https://zenodo.org/record/6542056) document images.
|
| 20 |
+
Training images were resized with a fixed height of 128 pixels, keeping the original aspect ratio.
|
| 21 |
+
|
| 22 |
+
## Evaluation results
|
| 23 |
+
|
| 24 |
+
The model achieves the following results:
|
| 25 |
+
|
| 26 |
+
| set | CER (%) | WER (%) |
|
| 27 |
+
| ----- | ---------- | --------- |
|
| 28 |
+
| train | 2.17 | 7.65 |
|
| 29 |
+
| val | 8.78 | 24.93 |
|
| 30 |
+
| test | 7.94 | 24.04 |
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
Results improve on validation and test sets when PyLaia is combined with a 6-gram language model.
|
| 34 |
+
The language model is trained on [this text corpus](https://www.nb.no/sprakbanken/en/resource-catalogue/oai-nb-no-sbr-73/) published by the National Library of Norway.
|
| 35 |
+
|
| 36 |
+
| set | CER (%) | WER (%) |
|
| 37 |
+
| ----- | ---------- | --------- |
|
| 38 |
+
| train | 2.40 | 8.10 |
|
| 39 |
+
| val | 7.45 | 19.75 |
|
| 40 |
+
| test | 6.55 | 18.2 |
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
## How to use
|
| 44 |
+
|
| 45 |
+
Please refer to the PyLaia library page (https://pypi.org/project/pylaia/) to use this model.
|
| 46 |
+
|
| 47 |
+
# Cite us!
|
| 48 |
+
|
| 49 |
+
```bibtex
|
| 50 |
+
@inproceedings{10.1007/978-3-031-06555-2_27,
|
| 51 |
+
author = {Maarand, Martin and Beyer, Yngvil and K\r{a}sen, Andre and Fosseide, Knut T. and Kermorvant, Christopher},
|
| 52 |
+
title = {A Comprehensive Comparison of Open-Source Libraries for Handwritten Text Recognition in Norwegian},
|
| 53 |
+
year = {2022},
|
| 54 |
+
isbn = {978-3-031-06554-5},
|
| 55 |
+
publisher = {Springer-Verlag},
|
| 56 |
+
address = {Berlin, Heidelberg},
|
| 57 |
+
url = {https://doi.org/10.1007/978-3-031-06555-2_27},
|
| 58 |
+
doi = {10.1007/978-3-031-06555-2_27},
|
| 59 |
+
booktitle = {Document Analysis Systems: 15th IAPR International Workshop, DAS 2022, La Rochelle, France, May 22–25, 2022, Proceedings},
|
| 60 |
+
pages = {399–413},
|
| 61 |
+
numpages = {15},
|
| 62 |
+
keywords = {Norwegian language, Open-source, Handwriting recognition},
|
| 63 |
+
location = {La Rochelle, France}
|
| 64 |
+
}
|
| 65 |
+
```
|