kacperwikiel commited on
Commit
9497d1e
·
1 Parent(s): 79dc2b0

Add dataset growth plot by version

Browse files
README.md CHANGED
@@ -45,6 +45,8 @@ family (Enevoldsen et al., [arXiv:2508.02271](https://arxiv.org/abs/2508.02271))
45
  | `v0.3.0-preview` | validation release, candidate-only | candidate-only | TBD | Live source gates validated; Biblioteka Nauki, Europeana, and HPLT/Common Corpus expansion remain subject to per-source QA, dedup, and legal review. |
46
  | `v0.3.1-preview` | reproducible Europeana shard | 810 | 140,042 | 1,000 direct API records sampled; 810 passed short/language/OCR gates, with per-record rights and author metadata. |
47
 
 
 
48
  ### Version details
49
 
50
  #### v0.2.3 — current stable
 
45
  | `v0.3.0-preview` | validation release, candidate-only | candidate-only | TBD | Live source gates validated; Biblioteka Nauki, Europeana, and HPLT/Common Corpus expansion remain subject to per-source QA, dedup, and legal review. |
46
  | `v0.3.1-preview` | reproducible Europeana shard | 810 | 140,042 | 1,000 direct API records sampled; 810 passed short/language/OCR gates, with per-record rights and author metadata. |
47
 
48
+ ![Stable dataset size by version](artifacts/dataset_size_by_version.png)
49
+
50
  ### Version details
51
 
52
  #### v0.2.3 — current stable
artifacts/dataset_size_by_version.png ADDED

Git LFS Details

  • SHA256: 0c4503a693cd7b7e64843ebd180ab113629c62129f52be4ec67444f79d75e705
  • Pointer size: 130 Bytes
  • Size of remote file: 98 kB
src/make_docs.py CHANGED
@@ -185,6 +185,8 @@ family (Enevoldsen et al., [arXiv:2508.02271](https://arxiv.org/abs/2508.02271))
185
  | `v0.2.0` | previous stable | 2,490,773 | 6.22B | Provenance-first corpus from 11 open/official sources. |
186
  | `v0.3.0-preview` | workflow + candidate data in progress | candidate-only | TBD | Biblioteka Nauki, Europeana, and HPLT/Common Corpus style expansion pending per-source QA, dedup, and legal review. |
187
 
 
 
188
  ### Version details
189
 
190
  #### v0.2.3 — current stable
 
185
  | `v0.2.0` | previous stable | 2,490,773 | 6.22B | Provenance-first corpus from 11 open/official sources. |
186
  | `v0.3.0-preview` | workflow + candidate data in progress | candidate-only | TBD | Biblioteka Nauki, Europeana, and HPLT/Common Corpus style expansion pending per-source QA, dedup, and legal review. |
187
 
188
+ ![Stable dataset size by version](artifacts/dataset_size_by_version.png)
189
+
190
  ### Version details
191
 
192
  #### v0.2.3 — current stable
src/plot_version_growth.py ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Plot stable Polish DynaWord corpus growth across released versions."""
3
+
4
+ from pathlib import Path
5
+
6
+ import matplotlib.pyplot as plt
7
+ from matplotlib.ticker import FuncFormatter
8
+
9
+
10
+ ROOT = Path(__file__).resolve().parent.parent
11
+ OUTPUT = ROOT / "artifacts" / "dataset_size_by_version.png"
12
+
13
+ VERSIONS = ["v0.2.0", "v0.2.1", "v0.2.2", "v0.2.3"]
14
+ DOCUMENTS = [2_490_773, 2_491_773, 2_579_963, 2_710_974]
15
+ TOKENS = [6_221_393_871, 6_281_911_234, 6_362_577_363, 6_881_277_362]
16
+
17
+
18
+ def millions(value, _position):
19
+ return f"{value / 1_000_000:.1f}M"
20
+
21
+
22
+ def billions(value, _position):
23
+ return f"{value / 1_000_000_000:.1f}B"
24
+
25
+
26
+ def main():
27
+ plt.style.use("seaborn-v0_8-whitegrid")
28
+ fig, axes = plt.subplots(1, 2, figsize=(12, 4.8))
29
+
30
+ panels = [
31
+ (axes[0], DOCUMENTS, "Documents", millions, lambda v: f"{v / 1_000_000:.3f}M", "#2563eb"),
32
+ (axes[1], TOKENS, "Tokens (cl100k proxy)", billions, lambda v: f"{v / 1_000_000_000:.3f}B", "#0f766e"),
33
+ ]
34
+
35
+ for axis, values, ylabel, formatter, labeler, color in panels:
36
+ axis.plot(VERSIONS, values, marker="o", linewidth=2.5, color=color)
37
+ axis.fill_between(VERSIONS, values, alpha=0.12, color=color)
38
+ axis.set_ylabel(ylabel)
39
+ axis.yaxis.set_major_formatter(FuncFormatter(formatter))
40
+ axis.spines[["top", "right"]].set_visible(False)
41
+ axis.grid(axis="x", visible=False)
42
+ padding = (max(values) - min(values)) * 0.3 or max(values) * 0.02
43
+ axis.set_ylim(min(values) - padding, max(values) + padding)
44
+
45
+ for version, value in zip(VERSIONS, values):
46
+ axis.annotate(
47
+ labeler(value),
48
+ (version, value),
49
+ xytext=(0, 9),
50
+ textcoords="offset points",
51
+ ha="center",
52
+ fontsize=9,
53
+ fontweight="bold",
54
+ color=color,
55
+ )
56
+
57
+ fig.suptitle("Polish DynaWord — stable dataset growth by version", fontsize=15)
58
+ fig.tight_layout()
59
+ OUTPUT.parent.mkdir(parents=True, exist_ok=True)
60
+ fig.savefig(OUTPUT, dpi=180, bbox_inches="tight")
61
+ plt.close(fig)
62
+ print(OUTPUT)
63
+
64
+
65
+ if __name__ == "__main__":
66
+ main()