Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,54 @@
|
|
1 |
-
---
|
2 |
-
license: mit
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
language:
|
4 |
+
- ru
|
5 |
+
tags:
|
6 |
+
- ocr
|
7 |
+
---
|
8 |
+
|
9 |
+
## Basic Description
|
10 |
+
|
11 |
+
Dataset contains source images and human-readable extracted texts. All texts were published in Russia in the 19th century and written using pre-reform orthography.
|
12 |
+
|
13 |
+
The dataset is designed to train and evaluate optical character recognition systems for texts published in Russian before the orthographic reform (1917).
|
14 |
+
|
15 |
+
## Data structure
|
16 |
+
|
17 |
+
For each text there is a file with its image and the text corresponding to this image. The names of these files are the same except for the extension or suffix `_image` and `_text` respectively. The images are placed in either pdf or png files. The texts are contained in files with the extension txt. For example:
|
18 |
+
|
19 |
+
* `afanasjev-chuzhbinskij_a_s.peterburgskie_igroki.pdf`
|
20 |
+
* `afanasjev-chuzhbinskij_a_s.peterburgskie_igroki.txt`
|
21 |
+
|
22 |
+
Or:
|
23 |
+
|
24 |
+
* `300_page_image_009.png`
|
25 |
+
* `300_page_text_009.txt`
|
26 |
+
|
27 |
+
Long texts (mostly novels) are presented in `pdf`. They can be found in the `pdf` subfolder inside the `books-pdf-plaintext` folder. The neighboring `txt` subfolder contains their corresponding texts.
|
28 |
+
Short texts of one-page length are in the `pages-img-plaintext` folder, where images are in `png` format.
|
29 |
+
|
30 |
+
## The specifics of the old orthography
|
31 |
+
|
32 |
+
Old orthography differs from modern orthography in that it contains 4 letters that were removed from the Russian alphabet after the reform, as well as a set of later abolished specific rules for spelling words.
|
33 |
+
|
34 |
+
These letters and rules are taken into account in a special package for Python, which is designed to convert text from the old orthography to the new one: [prereform2modern](https://pypi.org/project/prereform2modern/).
|
35 |
+
|
36 |
+
## Examples
|
37 |
+
|
38 |
+
### Image
|
39 |
+
|
40 |
+
![](./pages-img-plaintext/306_page_image_015.png)
|
41 |
+
|
42 |
+
### Corresponding text
|
43 |
+
|
44 |
+
7
|
45 |
+
|
46 |
+
вамъ это происшествіе со всѣми должными приправами: съ непритворнымъ ужасомъ на лицѣ, въ глазахъ; съ содроганіемъ; съ восклицаніями и, наконецъ, съ поднятіемъ рукъ къ Небу!… Вы увидите какъ это послѣднее тѣлодвиженіе картинно въ немъ.»
|
47 |
+
|
48 |
+
«Не слишкомъ ли много чести, отецъ ректоръ, для жидовскаго раввина, что вы удостоиваете смѣяться надъ нимъ?»
|
49 |
+
|
50 |
+
«Кто вамъ сказалъ, что я смѣюсь надъ нимъ? вотъ увидите сами; пошлите завтра къ нему сказать, чтобъ пришелъ къ вамъ; онъ явится тотчасъ и тогда просто скажите ему, что вамъ любопытно знать для чего всѣ двѣнадцать деревень названы однимъ
|
51 |
+
|
52 |
+
## Acknowledgements
|
53 |
+
|
54 |
+
Dataset was formed thanks to the organizational help of Alexey V. Vdovin.
|