Dataset Viewer
Auto-converted to Parquet Duplicate
book_id
stringlengths
11
11
title
stringlengths
12
872
author
stringlengths
4
215
⌀
decade
stringdate
1920-01-01 00:00:00
1970-01-01 00:00:00
year
int32
1.92k
1.98k
⌀
publication_year
stringdate
1919-01-01 00:00:00
1979-01-01 00:00:00
⌀
publication_info
stringlengths
9
134
⌀
series
stringclasses
622 values
physical_info
stringlengths
10
110
⌀
script
stringclasses
4 values
pages
int32
1
1.01k
pages_junk
int32
0
1k
pages_failed
int32
0
206
scan_pages
int32
1
1.01k
complete
bool
1 class
conf
float32
0.3
0.99
⌀
words_latin
int64
0
368k
chars_latin
int64
0
2.67M
chars_original
int64
0
4.11M
n_edits
int64
0
68.1k
text_latin
stringlengths
0
2.67M
text_original
stringlengths
0
3.99M
book_000754
Azərneftin 1925-26-cı il üçün iş məramnaməsi [Mətn] : proqram /N. Neyman
Neyman, N.
1920
1,926
1926
Bakı: İŞCİ Mədəniyyət İşçiləri Həmkar İttifaqının Azərbaycan Mərkəzi İdarəsi, 1926.
null
39 s.: cədv., 20 sm.
none
24
23
0
24
true
0.5009
2
7
35,517
0
192e Wq
АРХИ В f-übS Jn'J g?lli Uljəi ig-ALlj ua! (е4j) iuı jsaa A euida .1 .g -g. -sbi gSjər'sf f cbbji tfı-22 N-з7 / mUyie aebaysi e ЛРХИв J='J gS'U- üləj .i c-ALlj uaj Ş (ee4j) -404u il i' sA syia, .1 c .d -gba U-j s ebbji 1--"s-gдч gsK1fr-g1 a- sjəy. SY-jı sil tl ey- daəclejjl el-i, 'üli l ye'- gyzj ƏV, ög--! üüiəi eX- ...
book_002664
"İ. Q. K. ordusu topçusunun öyütnaməsi [Mətn] : batareya və dizizyon dolandırma takımların(...TRUNCATED)
null
1920
1,929
1929
Bakı: Azərb. atıcı divizyasının nəşriyyatı, 1929.
null
105, [1] s.: şək., 17 sm.
lat
56
5
0
56
true
0.945
13,620
103,216
112,114
7
"Butun ölqələrin Joxsyllarb birləşinl\nА РХИ В\n1I. 0. I. 0R0ySy\n'T0RÇuSŞI 80UTNMAS\nBA(...TRUNCATED)
"Butun ölqələrin Joxsyllarb birləşinl\nА РХИ В\n1I. 0. I. 0R0ySy\n'T0РÇуSШI 80UTNMАS\(...TRUNCATED)
book_002074
"Kənd şuraları haqqında vəziyyət [Mətn] : izahatlı və qanuni materiallar /Kommunist Akademi(...TRUNCATED)
null
1920
1,929
1929
Mahaç-Qala: Dağıstan MİK, 1929.
null
331, [1] s.: 22 sm.
none
172
170
0
172
true
0.4903
3
15
388,686
0
-Wf ЛҒХИЕ //zə
"-Wf\nЛҒХИЕ\n\nzqsf\nfa\nj laaH Sijaj тул г-» J\nЈujrr\n[-4тastjjrb4r1\nibii» usjij»2 (...TRUNCATED)
book_002262
Kənd fəalçısının yoxlama kitabçası [Mətn] /Azərbaycan Mərkəzi İcraiyyə Komitəsi
null
1920
1,929
1929
Bakı: Az. MİK təşkilat şöbəsi, 1929.
null
28 s.: 21 sm.
lat
19
1
0
19
true
0.9324
6,568
50,813
51,733
0
"if29\no9\nЛРХИ в\n\nBaqpoligrafın .Khzbl Şərk\" mətbəəsi,\nKarantinnf, 84.\nBaş mətbya(...TRUNCATED)
"if29\no9\nЛРХИ в\n\nAZƏRBA J CAN MƏRQƏZI ICRAIJJƏ KOMlTƏSI\nButun dunja proletarlarb, bir(...TRUNCATED)
book_001788
Hesab məsələləri [Mətn] : II stereotip çap /A. V. Lankov ; tərc. S. Kəmal
Lankov, A. V.
1920
1,928
1928
Bakı: Azərnəşr, 1928.
null
120 s.: cədv., 24 sm.
lat
65
3
0
65
true
0.9116
15,501
123,213
130,303
1
"149\nTfg\n\n1V\nƏMƏQ MƏQTƏBLƏRİ UÇUN TƏDRİS\nVƏ PEDACOZ1 QITABLARI\nA. V. LANKOV\nHESAB\n(...TRUNCATED)
"149\nTfg\n\n1V\nƏMƏQ MƏQTƏBLƏRİ UÇUN TƏDRİS VƏ PEDACOZ1 QITABLARI\nA. V. LANKOV\nHESAB\n;(...TRUNCATED)
book_001319
Bir vərəq kağızın tarixi [Mətn] /A. Semyonov
Semyonov, A
1920
1,927
1927
Bakı: Azərnəşr, 1927.
Təbii-fənni seriya
53 s.: ill., 16 sm.
ru
32
30
0
32
true
0.4779
18
93
26,955
0
"1«fv e1f Ua. ər -jS g6\n\n1199r\n159\niejj 30\nА. Семенов\nИСТОРИП ЛИСТКА Б(...TRUNCATED)
"ık LGji-e\nijr1.\nŞfa\nidiUj\nj\nӘji\n7927-/i\n\nud- g--i«jijgd .T\n1W\nt42f\n-3g'оУ\ng-j lii(...TRUNCATED)
book_001402
Baytar mamalığı [Mətn] /A. Orlov ; tərcümə. L. Əfəndiyev
Orlov, A.
1920
1,927
1927
Bakı: Azərnəşr, 1927.
Kəndli seriyası
44 s.: şəkil, 16 sm.
none
23
23
0
23
true
0.4964
0
0
20,179
0
"g-cyj jıs\nЈJjji Л 'glMk\nА РХ И В\n(AalLl jUl\n«19)2)-99\nЛjJf\n31 -29\n1927 -4'\n\nj-i (...TRUNCATED)
book_002568
"Bakı təşkilatının məruzəsi üzrə materiallar [Mətn] : Ümum İttifaq Kommunist (bolşevik)(...TRUNCATED)
null
1920
1,929
1929
Bakı: [s.n.], 1929.
null
174, [1] s.: cədv., 23 sm.
lat
106
39
0
106
true
0.8599
29,636
232,834
351,740
0
"Umym Ittifak Kommynist (bolseviq) Firkəsi Mərqə- .\nzzl Koınitəsi 1927-ci ilini sentjəbrin 12(...TRUNCATED)
"Blı fui ımlılılır. llılısa\n—fffинİa llia tmyi (lılmlı) filai ataiı\n'lmizi tnmihitl(...TRUNCATED)
book_000171
Heyvanlar aləmi [Mətn] : ən yeni elmi-heyvanat /Əli Nadir
Əli Nadir.
1920
1,924
1924
Bakı: Azərbaycan Xalq Maarif Komissarlığı, 1924.
null
219 s.: şək., 23 sm.
none
31
30
0
31
true
0.4539
5
14
42,499
0
əi d-bi -zf da
"əi\nd-bi\n-zf da\n\n9\nyslga\np-if\nJlyjija\n...tilgg ıagS\njUj Yə ТТуИf\noO\"SO\n\n/90Ч\n-(...TRUNCATED)
book_000033
"Fiziokratlardan günümüzə qədər iqtisadi məzhəblər tarixi [Mətn] /Şarl Rist. Şarl Jid; m(...TRUNCATED)
Rist Şarl. müəllim
1920
1,922
1922
İstanbul: [1922] 1341 h.
null
423 s.: 23 sm.
none
216
215
0
216
true
0.4733
4
19
402,757
0
192a2 1S33 a- ZfХИв
"-22\n-Рjjj,\nJd\nTnca\ndf- Jg\n1ö-J-j иЛ. j4\n.J.k\njaJ-jArjf'elj uyi-dyi1jl jMay v/\n1Jr tüa\(...TRUNCATED)
End of preview. Expand in Data Studio

Books Corpus

Text of 40,026 Azerbaijani books (4.81 M scanned pages) published from the 1920s to the 2020s, in two forms side by side:

  • text_original — the OCR output as it is (Latin, Azerbaijani Cyrillic, Russian);
  • text_latin — the same text in the modern Azerbaijani Latin alphabet: Cyrillic books transliterated and their OCR errors corrected by a model, unreadable pages left out, words split at line ends joined back.
text_latin text_original
words 1,678,186,017 1,740,576,775
characters 12,761,506,193 13,165,386,391
tokens (o200k_base, estimate) ≈ 4.81 B ≈ 5.24 B

Words are runs of letters. Token counts depend on the tokenizer (Cyrillic costs about a quarter more than the same text in Latin) and are given for orientation only.

Loading

from datasets import load_dataset

books = load_dataset("LocalDoc/books-corpus", "books", split="train", streaming=True)
pages = load_dataset("LocalDoc/books-corpus", "pages", split="train", streaming=True)

# one decade only
soviet = load_dataset("LocalDoc/books-corpus", data_files="books/1970/*.parquet", split="train")

Files are grouped by decade: books/<decade>/books-<decade>-NNNNN.parquet, pages/<decade>/pages-<decade>-NNNNN.parquet.

books — one row per book

column
book_id book id (book_000001 …, numbered by decade and year), the key shared with pages
title, author bibliographic record
decade, year, publication_year decade; year as a number; year as written in the bibliographic record
publication_info, series, physical_info place and publisher, series, extent (pages, illustrations, format)
script main script of the book: lat, az_cyr (Azerbaijani Cyrillic, transliterated in text_latin), ru (Russian, kept in Cyrillic), none (no usable text)
pages, pages_junk, pages_failed, scan_pages, complete pages recognised; pages left out of text_latin as junk; pages the OCR failed on; pages in the scan; whether the whole book was processed
conf mean OCR confidence, 0–1
words_latin, chars_latin, chars_original size of the two texts
n_edits words changed by the correction model
text_latin the cleaned text: pages separated by a blank line, junk pages left out
text_original the OCR text of all pages

pages — one row per page

column
page_id <book_id>_<file number>
book_id, decade, year, page_number, file the book and the place of the page in it
script main script of the page: lat, az_cyr, ru, other, empty
conf OCR confidence of the page, 0–1
junk, junk_reason page judged unreadable and why: conf (confidence below 0.70: Arabic script, formulas, bad scans), oov (confidence below 0.90 and more than 30 % of words unknown to the corpus: garbled typescript), script
n_lines lines on the page
words_checked, oov words of three or more letters on Azerbaijani lines, and the share of them the corpus does not know
n_edits words changed by the correction model
text_latin line for line with text_original: Azerbaijani Cyrillic lines transliterated and corrected, Latin lines with look-alike letters repaired, Russian lines untouched
text_original the OCR text

Junk pages stay in pages with their flag; they are left out only of the book-level text_latin.

By decade

decade books pages junk pages words (text_latin) tokens (o200k_base) words corrected
1920 2,684 120,421 69,505 17,657,400 53,446,295 812
1930 2,933 120,583 9,758 41,578,264 126,991,513 3,415
1940 491 32,149 1,738 12,759,193 35,606,365 2,070,612
1950 1,059 88,998 3,277 36,806,069 104,401,580 5,114,651
1960 1,960 166,041 6,583 67,128,284 191,498,359 5,343,385
1970 2,064 177,527 9,897 71,458,952 204,236,331 6,504,364
1980 3,028 271,232 19,891 112,448,100 320,365,130 10,739,038
1990 3,901 363,202 29,130 145,720,415 416,453,138 12,542,566
2000 9,289 1,322,417 33,706 475,264,992 1,356,180,273 2,650,504
2010 11,181 1,834,759 42,830 619,947,159 1,776,721,537 91,055
2020 1,436 315,122 4,330 77,417,189 223,258,543 4,963
total 40,026 4,812,451 230,645 1,678,186,017 4,809,159,064 45,065,365

Most of the 1920s is in Arabic script, which the OCR model does not read: those pages are junk.

By main script of the book

script books words (text_latin) tokens (o200k_base)
lat 25,768 1,218,724,549 3,490,345,996
az_cyr 11,542 422,694,728 1,202,855,459
ru 1,435 36,761,398 115,939,914
none 1,281 5,342 17,695

The same numbers by decade and script, and page counts by junk reason, are in stats.json.

How it was made

  1. OCR. Text lines are found with PP-OCRv5 (server detector), put into reading order (two-page spreads are split) and read with LocalDoc/azerbaijani-ocr-crnn.
  2. Language of each line. Latin, Azerbaijani Cyrillic or Russian, by letter statistics and a character-trigram model. Russian lines are never transliterated.
  3. Transliteration of Azerbaijani Cyrillic to the modern Latin alphabet, with repair of look-alike letters from the other alphabet inside a word.
  4. Correction of the transliterated lines with a character-level edit-tagging model (26 M parameters) trained on clean modern text with synthetic OCR noise and on lines labelled by three LLMs. Its main job: the OCR model never prints the Cyrillic letter ҝ and misreads part of ҹ, so every g comes out as k and many c as ç; the model restores them from context. A restored g / c is undone when modern Latin print knows the word only with k / ç (Komsomol, leninçi).
  5. Junk pages are flagged by OCR confidence and by the share of words the corpus does not know.
  6. Words split at line ends are joined by corpus frequencies: a compound keeps its hyphen (tez-tez), an ordinary word loses it (mərkəzləş- + dirilmiş), and when both halves are words in their own right that never occur as one, the lines are left as they were (a column or caption break, not a split word).

Quality and limits

  • On a human-checked benchmark of Cyrillic lines the correction model lowers the character error rate from 1.06 % to 0.57 % and the word error rate from 5.98 % to 3.11 %. On synthetic text with known truth it restores 98 % of g and 96 % of c.
  • The model corrects letters, it does not rewrite: words are never added, dropped or reordered. Rare names and Russian words inside Azerbaijani text are where a wrongly restored g / c is most likely.
  • Modern Latin print is not corrected (the OCR error rate there is already about 0.04 % of characters); only look-alike letters are repaired.
  • Reading order on complex layouts (several columns, captions, tables) is not always right.
  • Page headers, footers and page numbers are part of the text.
  • Russian text is kept as the OCR printed it; the OCR model is trained for Azerbaijani and reads Russian with more errors (it rarely prints ь, я, ю).

Rights

The books belong to their authors and publishers; many are still under copyright. The corpus is private and meant for research and model training inside the organisation. Check the rights before sharing texts outside it.

Downloads last month
2