shaypal5 commited on
Commit
efcf3e5
·
verified ·
1 Parent(s): c2f4310

Publish verified htext wikisource-v2

Browse files
releases/wikisource-v2/CORPUS_CARD.md ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Hebrew Wikisource main-namespace text
2
+
3
+ The v2 build, in `htext-by-sa`, under [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/). Credit [Hebrew Wikisource contributors](https://he.wikisource.org). See [NOTICE](NOTICE.md) and `wikisource_rights_index.v1.jsonl.gz` for attribution by revision.
4
+
5
+ Source is the [Wikimedia dump dated 20261101](https://dumps.wikimedia.org/hewikisource/20261101/hewikisource-20261101-pages-articles.xml.bz2) with SHA-256 `15a731d70154941afec2a616d538434573a4e068f94c8ea91b659ac64b833fe1`. Reviewed historical work roots contribute unproofread transcriptions.
6
+
7
+ 39 distinct pages contributed 12,953 lines and 327,577 Unicode characters (excluding newlines). Pages may appear in both files.
8
+
9
+ | File | Pages | Lines | Characters |
10
+ | --- | ---: | ---: | ---: |
11
+ | `wikisource_plain_v2.txt` | 39 | 12,953 | 327,577 |
12
+ | `wikisource_niqqud_v2.txt` | 0 | 0 | 0 |
13
+
14
+ Eval exclusions cover 51 reserved Indexes, 43 works (2,938 articles and subpages) and 2,938 Page revisions. The overlap list supplied 0 units and 143 line hashes. 165 candidate lines matched those hashes.
15
+
16
+ The exclusion map covers the same ProofreadPage work and its article subpages. Other editions require the official eval overlap check. The official HeOCR evaluation overlap check must find 0 before release.
releases/wikisource-v2/NOTICE.md ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ # Attribution
2
+
3
+ Text from [Hebrew Wikisource contributors](https://he.wikisource.org), under [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/).
4
+
5
+ The per-page title, permanent revision URL and contributor history are in `wikisource_rights_index.v1.jsonl.gz`. The index also gives the source of the underlying work's rights evidence and the output line ranges.
6
+
7
+ HeOCR adapted the text by removing wikitext markup and notes, normalizing whitespace and marks, segmenting it into OCR training lines and filtering the results. The processed text is CC BY-SA 4.0. Keep this notice and the per-page attribution when redistributing the text.
releases/wikisource-v2/README.md ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - he
4
+ license: cc-by-sa-4.0
5
+ pretty_name: htext Wikisource B v2
6
+ tags:
7
+ - text
8
+ - ocr
9
+ - training
10
+ ---
11
+
12
+ # htext Wikisource B v2
13
+
14
+ This training-text increment contains 12,953 unpointed Hebrew lines from 39
15
+ pinned historical Wikisource revisions of *Orchot Tzadikim*, *Sefer HaYirah*
16
+ and *Tomer Devorah*. It adds to the v1 release. The pointed file is empty.
17
+
18
+ The text is as transcribed in the pinned Wikisource revisions. A sample of 100
19
+ lines was checked against those revisions. Print collation is pending.
20
+ See [the corpus card](CORPUS_CARD.md) for the source dump and build scope.
21
+
22
+ Text comes from Hebrew Wikisource contributors under CC BY-SA 4.0. The
23
+ [rights index](wikisource_rights_index.v1.jsonl.gz) lists source revisions and
24
+ contributor histories. Retain it and the [attribution notice](NOTICE.md)
25
+ when redistributing the data. The [checksums](SHA256SUMS) pin the corpus
26
+ assets and indexes.
releases/wikisource-v2/SHA256SUMS ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ 23890b8ea6210556ff5c560867292c8e0d339743fa5ce49d888848efc37103e5 CORPUS_CARD.md
2
+ ef871e64199c64673f6f245500063235879f77b1c2f4373950e7a0bd7d44e0a7 NOTICE.md
3
+ 59cb40592bc5fa1ab2869eabf5fc1ae00d077c365feb01f40307c291ebc946da corpus_card.json
4
+ 6240e8a6d4f21f11e0cbd3dee47e57b2869bb6c348c574ef85d19818393e6dfc wikisource_line_index.v1.jsonl.gz
5
+ e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 wikisource_niqqud_v2.txt
6
+ dc0ef72c17ced163f3a64553dc43b00c18ee9df18b72c2cdeb6aa1a12bdb12e7 wikisource_plain_v2.txt
7
+ a2bc236ad235e22a5355d360aaa93fb618fab86fe0f5783115c1c3cc728c0b34 wikisource_rights_index.v1.jsonl.gz
releases/wikisource-v2/corpus_card.json ADDED
@@ -0,0 +1,205 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema": "htext_wikisource_corpus_card.v1",
3
+ "name": "Hebrew Wikisource main-namespace text",
4
+ "builder": {
5
+ "package": "htext",
6
+ "version": "0.1.0"
7
+ },
8
+ "corpus_version": "v2",
9
+ "source": {
10
+ "url": "https://dumps.wikimedia.org/hewikisource/20261101/hewikisource-20261101-pages-articles.xml.bz2",
11
+ "date": "20261101",
12
+ "sha256": "15a731d70154941afec2a616d538434573a4e068f94c8ea91b659ac64b833fe1",
13
+ "bytes": 469082606
14
+ },
15
+ "source_licence": "CC BY-SA 4.0",
16
+ "licence": {
17
+ "outputs": "CC-BY-SA-4.0",
18
+ "source": "CC BY-SA 4.0",
19
+ "url": "https://creativecommons.org/licenses/by-sa/4.0/"
20
+ },
21
+ "credit": {
22
+ "text": "Hebrew Wikisource contributors",
23
+ "url": "https://he.wikisource.org"
24
+ },
25
+ "htext_release": "by-sa",
26
+ "release": {
27
+ "htext_release": "by-sa",
28
+ "release_name": "htext-by-sa",
29
+ "release_licence": "CC-BY-SA-4.0",
30
+ "entries_admitted": 39,
31
+ "source_licences": {
32
+ "CC BY-SA 4.0": 39
33
+ }
34
+ },
35
+ "text_quality": "transcription",
36
+ "proofread_quality_levels": [],
37
+ "parameters": {
38
+ "seed": 15,
39
+ "niqqud_threshold": 0.5,
40
+ "max_line_chars": 55,
41
+ "maqaf_allowed": true,
42
+ "length_profile_source": "hocrsyngen texts/hebrew_lines_train_v1.txt",
43
+ "length_profile_sha256": "155073071cc39a5fcfd2fe3d70878f2e4d89208721d0ecf14447f608895dcdff",
44
+ "fit_check": {
45
+ "ran": true,
46
+ "hocrsyngen_version": null,
47
+ "hocrsyngen_commit": "88c61af4c12cc4a462fc1f57a1c4027b3459366d",
48
+ "bodies": [
49
+ {
50
+ "template_id": "printed_letter",
51
+ "font_file": "Alef-Regular.ttf",
52
+ "size": 42,
53
+ "width": 968,
54
+ "rows_per_line": null
55
+ },
56
+ {
57
+ "template_id": "handwritten_note",
58
+ "font_file": "GveretLevin-Regular.ttf",
59
+ "size": 46,
60
+ "width": 968,
61
+ "rows_per_line": null
62
+ },
63
+ {
64
+ "template_id": "archive_card",
65
+ "font_file": "Alef-Regular.ttf",
66
+ "size": 38,
67
+ "width": 498,
68
+ "rows_per_line": 2
69
+ },
70
+ {
71
+ "template_id": "ledger",
72
+ "font_file": "Alef-Regular.ttf",
73
+ "size": 30,
74
+ "width": 206,
75
+ "rows_per_line": 10
76
+ }
77
+ ],
78
+ "maqaf_glyph_check": true
79
+ }
80
+ },
81
+ "eval_reservations": {
82
+ "sets": [
83
+ {
84
+ "sha256": "daa574e50bbd8d9ee68acce3289547206d00622e86d784d88685b3c39bc650ac"
85
+ }
86
+ ],
87
+ "units": 120,
88
+ "reserved_indexes": 51,
89
+ "works_excluded": 43,
90
+ "scan_families_excluded": 55,
91
+ "pages_excluded": 2938,
92
+ "article_pages_excluded": 2938
93
+ },
94
+ "eval_overlap_drop": {
95
+ "units": 0,
96
+ "line_sha256s": 143,
97
+ "lines_dropped": 165
98
+ },
99
+ "leakage_fixtures": [
100
+ {
101
+ "repository": "HeOCR/hocrgen",
102
+ "path": "docs/evaluation-fixtures/bidi-synthetic-corpus.txt",
103
+ "commit": "c8fb74eb5d0afedd812a0da69562e4610a0b3394",
104
+ "sha256": "b325673476bce8c16f0a2731e5de1ec9b226b8274fc1e7dfb723dbccb3edf966",
105
+ "lines": 100,
106
+ "stripped": true
107
+ },
108
+ {
109
+ "repository": "HeOCR/hocrsyngen",
110
+ "path": "src/hocrsyngen/data/synthetic/texts/hebrew_lines.txt",
111
+ "commit": "88c61af4c12cc4a462fc1f57a1c4027b3459366d",
112
+ "sha256": "ac7e1dc2c21d2506b93c26ce81cab3327baf217d82fb6620c1ddf6f597235fd6",
113
+ "lines": 19,
114
+ "stripped": true
115
+ },
116
+ {
117
+ "repository": "HeOCR/hocrsyngen",
118
+ "path": "src/hocrsyngen/data/synthetic/texts/hebrew_lines_eval_v1.txt",
119
+ "commit": "88c61af4c12cc4a462fc1f57a1c4027b3459366d",
120
+ "sha256": "89e52f8b90cdbb8a276fbdaf96530afff2cc266e13ad6355c215c79e5a58d97f",
121
+ "lines": 812,
122
+ "stripped": true
123
+ },
124
+ {
125
+ "repository": "HeOCR/hocrsyngen",
126
+ "path": "src/hocrsyngen/data/synthetic/texts/hebrew_lines_niqqud_eval_v1.txt",
127
+ "commit": "88c61af4c12cc4a462fc1f57a1c4027b3459366d",
128
+ "sha256": "974ffa19251bcc1137a3baf908f22d2770d801a38d93456d6109bf6565de5640",
129
+ "lines": 40,
130
+ "stripped": true
131
+ },
132
+ {
133
+ "repository": "HeOCR/hocrsyngen",
134
+ "path": "src/hocrsyngen/data/synthetic/texts/hebrew_mixed_lines_eval_v1.txt",
135
+ "commit": "88c61af4c12cc4a462fc1f57a1c4027b3459366d",
136
+ "sha256": "45a81fff1105ba347c2e80ebfe5cafa0c4e3763975279709c0b9af7a0eedaa88",
137
+ "lines": 401,
138
+ "stripped": true
139
+ },
140
+ {
141
+ "repository": "HeOCR/hocrsyngen",
142
+ "path": "src/hocrsyngen/data/synthetic/texts/hebrew_typographic_lines_eval_v1.txt",
143
+ "commit": "88c61af4c12cc4a462fc1f57a1c4027b3459366d",
144
+ "sha256": "3364283592492d8827ae94b8899ce44cecedf1281b4fbeb69f9d76b3e9a09a3c",
145
+ "lines": 418,
146
+ "stripped": true
147
+ }
148
+ ],
149
+ "release_gate": "The official HeOCR evaluation overlap check must find 0 before release.",
150
+ "known_limitations": [
151
+ "The exclusion map covers the same ProofreadPage work and its article subpages. Other editions require the official eval overlap check.",
152
+ "Main-namespace text is an unproofread transcription."
153
+ ],
154
+ "totals": {
155
+ "pages": 39,
156
+ "lines": 12953,
157
+ "characters": 327577
158
+ },
159
+ "counts": {
160
+ "article_pages_excluded_by_eval": 2938,
161
+ "articles_outside_reviewed_inputs": 240730,
162
+ "articles_outside_reviewed_work_scope": 3,
163
+ "lines_dropped:charset": 11,
164
+ "lines_dropped:duplicate": 20,
165
+ "lines_dropped:eval_overlap": 165,
166
+ "lines_dropped:fit:archive_card:too_many_rows": 16,
167
+ "lines_dropped:medial_final_form": 1,
168
+ "lines_dropped:too_few_letters": 2,
169
+ "pages_excluded_by_eval": 2938,
170
+ "pages_redirect": 1296655,
171
+ "pages_seen": 1540365
172
+ },
173
+ "files": {
174
+ "wikisource_plain_v2.txt": {
175
+ "pages": 39,
176
+ "lines": 12953,
177
+ "characters": 327577,
178
+ "bytes": 602896,
179
+ "sha256": "dc0ef72c17ced163f3a64553dc43b00c18ee9df18b72c2cdeb6aa1a12bdb12e7"
180
+ },
181
+ "wikisource_niqqud_v2.txt": {
182
+ "pages": 0,
183
+ "lines": 0,
184
+ "characters": 0,
185
+ "bytes": 0,
186
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
187
+ }
188
+ },
189
+ "rights_index": {
190
+ "name": "wikisource_rights_index.v1.jsonl.gz",
191
+ "schema": "wikisource_rights_index.v1",
192
+ "pages": 39,
193
+ "sha256": "a2bc236ad235e22a5355d360aaa93fb618fab86fe0f5783115c1c3cc728c0b34"
194
+ },
195
+ "line_index": {
196
+ "name": "wikisource_line_index.v1.jsonl.gz",
197
+ "schema": "wikisource_line_index.v1",
198
+ "lines": 12953,
199
+ "sha256": "6240e8a6d4f21f11e0cbd3dee47e57b2869bb6c348c574ef85d19818393e6dfc"
200
+ },
201
+ "notice": "NOTICE.md",
202
+ "main_namespace_inputs": {
203
+ "works_sha256": "86271749632e4adf3182dc571160b4d1c8f55b0b0502c5990ed76f0e0147c78f"
204
+ }
205
+ }
releases/wikisource-v2/wikisource_line_index.v1.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6240e8a6d4f21f11e0cbd3dee47e57b2869bb6c348c574ef85d19818393e6dfc
3
+ size 521870
releases/wikisource-v2/wikisource_niqqud_v2.txt ADDED
File without changes
releases/wikisource-v2/wikisource_plain_v2.txt ADDED
The diff for this file is too large to render. See raw diff
 
releases/wikisource-v2/wikisource_rights_index.v1.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2bc236ad235e22a5355d360aaa93fb618fab86fe0f5783115c1c3cc728c0b34
3
+ size 3111