realmaud commited on
Commit
f185d86
·
verified ·
1 Parent(s): 4b30e88

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-sa-4.0
3
+ language:
4
+ - en
5
+ pretty_name: "slashyear: 85,753 dated historical events with source revision ids"
6
+ size_categories:
7
+ - 10K<n<100K
8
+ task_categories:
9
+ - question-answering
10
+ - text-retrieval
11
+ - text-classification
12
+ - table-question-answering
13
+ tags:
14
+ - history
15
+ - chronology
16
+ - timeline
17
+ - wikipedia
18
+ - wikidata
19
+ - knowledge-base
20
+ - rag
21
+ - citations
22
+ - temporal-reasoning
23
+ - provenance
24
+ configs:
25
+ - config_name: events
26
+ data_files: data/events/*.parquet
27
+ - config_name: years
28
+ data_files: data/years/*.parquet
29
+ - config_name: subjects
30
+ data_files: data/subjects/*.parquet
31
+ - config_name: subject_events
32
+ data_files: data/subject_events/*.parquet
33
+ ---
34
+
35
+ # slashyear — the dated historical record, with the source revision on every row
36
+
37
+ 85,753 dated historical events spanning 2,909 years, from roughly 3000 BCE to the
38
+ present, extracted from English Wikipedia's year, decade and century articles.
39
+
40
+ **The point of this dataset is the last column.** Every row carries `source_revid`,
41
+ the numeric id of the exact Wikipedia revision the sentence was quoted from. A
42
+ Wikipedia article is a moving target — a quotation you take today may not be there in
43
+ six months, and a reader who follows your link cannot see what you actually read. A
44
+ revision id names one immutable version that will read the same way in ten years. So a
45
+ model that answers from this data can hand the user a link that stays true, which is
46
+ not something you get by quoting an encyclopedia article.
47
+
48
+ Live API, full-text search and MCP server: **https://slashyear.com/data**
49
+
50
+ ## Configs
51
+
52
+ | config | rows | one row is |
53
+ |---|---|---|
54
+ | `events` | 85,753 | one dated event, quoted verbatim, with its source revision |
55
+ | `years` | 2,909 | one year, with its lead summary |
56
+ | `subjects` | 2,941 | one subject (person, place, institution), 2,722 with a Wikidata QID |
57
+ | `subject_events` | ~250k | the join: one (subject, event) pair, so "every dated line mentioning Rome" is a filter |
58
+
59
+ ```python
60
+ from datasets import load_dataset
61
+
62
+ events = load_dataset("<repo-id>", "events", split="train")
63
+ events.filter(lambda r: r["year"] == 1969)
64
+
65
+ rome = load_dataset("<repo-id>", "subject_events", split="train")
66
+ rome.filter(lambda r: r["slug"] == "rome")
67
+ ```
68
+
69
+ ## Fields
70
+
71
+ `events`: `year` (astronomical numbering — `-43` is 44 BCE), `year_label`, `date`,
72
+ `topic`, `text`, `source_title`, `source_revid`, `source_section`, `source_url`, `page`.
73
+
74
+ `subjects`: `slug`, `label`, `qid`, `description`, `entries`, `years`, `first_year`,
75
+ `last_year`, `wikipedia`, `wikidata`, `page`. The 2,722 rows with a `qid` are joinable
76
+ against any other database keyed on Wikidata, with no name matching.
77
+
78
+ `subject_events`: `slug`, `label`, `qid`, `year`, `year_label`, `date`, `topic`, `text`,
79
+ `source_revid`, `source_url`.
80
+
81
+ ## How it was built
82
+
83
+ Deterministic extraction from the wikitext of English Wikipedia's year, decade and
84
+ century articles at a pinned revision, then mechanical cleaning. **No language model
85
+ touches the wording.** A model does exactly one thing: choose which of twelve topic
86
+ labels a sentence files under. That decision cannot make a row say anything untrue,
87
+ because it never alters the row.
88
+
89
+ The subject associations are not inferred either — a subject is attached to an event
90
+ because a Wikipedia editor wrote a `[[wikilink]]` to it inside that dated line.
91
+
92
+ ## Limitations, stated plainly
93
+
94
+ This dataset inherits Wikipedia's errors. If a date is wrong there it is wrong here.
95
+ What it does not inherit is Wikipedia's instability, and it adds no errors of its own,
96
+ because no step in the pipeline is permitted to generate text. Coverage follows what
97
+ Wikipedia's year articles happen to cover, which is uneven across periods and heavily
98
+ weighted toward Europe and the last three centuries. Entries before roughly 1000 BCE
99
+ are sparse and often approximate. English only.
100
+
101
+ ## Licence and attribution
102
+
103
+ CC BY-SA 4.0, inherited from Wikipedia. Free for any use including commercial use and
104
+ including training. Every row carries the article title and revision id needed to
105
+ attribute automatically:
106
+
107
+ > {source_title}, English Wikipedia, revision {source_revid}. {source_url}
data/events/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:28c0b87e703a38d2bc2c1acef7edaaa59abc1855064129062002587c2788cdd4
3
+ size 7005969
data/subject_events/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a9167cc3f816d5a764bf4713ca25d5964713e85efae21cfaf0861c4dea42e333
3
+ size 9192500
data/subjects/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7bafd4a11941238193ef314a67eacfc32c28b9531aca9d4eaf23b7e4334dded3
3
+ size 370600
data/years/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aac4106632bb8cc4e50432b5cc4df527e115565a604a1f2b847de6dcd65b13bd
3
+ size 746727