mhla commited on
Commit
ff332ef
·
verified ·
1 Parent(s): 19b5357

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +28 -12
README.md CHANGED
@@ -1,4 +1,7 @@
1
  ---
 
 
 
2
  dataset_info:
3
  features:
4
  - name: text
@@ -13,11 +16,16 @@ dataset_info:
13
  dtype: float64
14
  - name: legibility
15
  dtype: float64
 
 
 
 
 
16
  ---
17
 
18
  # Pre-1900 Corpus
19
 
20
- Cleaned corpus of pre-1900 English-language texts with full metadata.
21
 
22
  ## Schema
23
 
@@ -27,8 +35,8 @@ Cleaned corpus of pre-1900 English-language texts with full metadata.
27
  | `year` | int64 | Publication year |
28
  | `title` | string | Book title or newspaper name |
29
  | `source` | string | Source dataset identifier |
30
- | `ocr_score` | float64 | OCR confidence score (-1.0 if not available) |
31
- | `legibility` | float64 | Legibility score (-1.0 if not available) |
32
 
33
  ## Sources
34
 
@@ -36,16 +44,24 @@ Cleaned corpus of pre-1900 English-language texts with full metadata.
36
  - **British Library books** — TheBritishLibrary/blbooks
37
  - **Historical newspapers** — dell-research-harvard/AmericanStories
38
 
39
- ## Filtering methodology
40
 
41
- Documents were cleaned and filtered through a multi-stage pipeline:
42
-
43
- 1. **OCR cleanup** — removal of common OCR artifacts, Google/HathiTrust boilerplate,
44
- library stamps, and unicode normalization
45
- 2. **Quality filtering** — token frequency prior-based filtering as a cheap proxy
46
- for perplexity, removing garbled or low-quality OCR output
47
- 3. **Anachronism detection** — three-tier post-1900 physics filter to remove
48
- mislabeled modern texts:
49
  - *Always reject*: unambiguous post-1900 terms (photon, spacetime, transistor, etc.)
50
  - *Date reject*: documents with 5+ explicit post-1900 year references
51
  - *Context reject*: 3+ co-occurring ambiguous terms (quantum, nuclear, radiation, etc.)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: mit
3
+ language:
4
+ - en
5
  dataset_info:
6
  features:
7
  - name: text
 
16
  dtype: float64
17
  - name: legibility
18
  dtype: float64
19
+ tags:
20
+ - pre-1900
21
+ - historical
22
+ - physics
23
+ - nlp
24
  ---
25
 
26
  # Pre-1900 Corpus
27
 
28
+ The training corpus for [GPT-1900](https://huggingface.co/mhla/gpt1900-d34-22btok) — a cleaned collection of pre-1900 English-language texts with full metadata. Every document in this corpus was published before the year 1900.
29
 
30
  ## Schema
31
 
 
35
  | `year` | int64 | Publication year |
36
  | `title` | string | Book title or newspaper name |
37
  | `source` | string | Source dataset identifier |
38
+ | `ocr_score` | float64 | OCR confidence score (-1.0 if unavailable) |
39
+ | `legibility` | float64 | Legibility score (-1.0 if unavailable) |
40
 
41
  ## Sources
42
 
 
44
  - **British Library books** — TheBritishLibrary/blbooks
45
  - **Historical newspapers** — dell-research-harvard/AmericanStories
46
 
47
+ ## Filtering Pipeline
48
 
49
+ 1. **OCR cleanup** removal of OCR artifacts, boilerplate, and unicode normalization
50
+ 2. **Quality filtering** — token frequency prior-based filtering as a cheap proxy for perplexity
51
+ 3. **Anachronism detection** — three-tier post-1900 physics filter to remove mislabeled modern texts:
 
 
 
 
 
52
  - *Always reject*: unambiguous post-1900 terms (photon, spacetime, transistor, etc.)
53
  - *Date reject*: documents with 5+ explicit post-1900 year references
54
  - *Context reject*: 3+ co-occurring ambiguous terms (quantum, nuclear, radiation, etc.)
55
+
56
+ ## Usage
57
+
58
+ ```python
59
+ from datasets import load_dataset
60
+ ds = load_dataset("mhla/pre1900-corpus")
61
+ ```
62
+
63
+ ## Related
64
+
65
+ - [mhla/gpt1900-d34-22btok](https://huggingface.co/mhla/gpt1900-d34-22btok) — GPT-1900 base model trained on this corpus
66
+ - [mhla/gpt1900-physics-clm](https://huggingface.co/datasets/mhla/gpt1900-physics-clm) — Physics texts for continued pretraining
67
+ - [mhla/gpt1900-instruct-v3-data](https://huggingface.co/datasets/mhla/gpt1900-instruct-v3-data) — Instruction-tuning data