oliverkinch commited on
Commit
cbb44ec
·
verified ·
1 Parent(s): d5a413e

Add dataset card

Browse files
Files changed (1) hide show
  1. README.md +78 -49
README.md CHANGED
@@ -1,51 +1,80 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: id
5
- dtype: string
6
- - name: meta
7
- struct:
8
- - name: content_type
9
- dtype: string
10
- - name: passage_idx
11
- dtype: int64
12
- - name: source_dataset
13
- dtype: string
14
- - name: source_id
15
- dtype: string
16
- - name: source_row_index
17
- dtype: int64
18
- - name: source_split
19
- dtype: string
20
- - name: target_chars
21
- dtype: int64
22
- - name: title
23
- dtype: string
24
- - name: prompt
25
- dtype: string
26
- - name: sources
27
- list:
28
- - name: dataset
29
- dtype: string
30
- - name: row_id
31
- dtype: string
32
- - name: split
33
- dtype: string
34
- - name: title
35
- dtype: string
36
- - name: url
37
- dtype: string
38
- - name: target
39
- dtype: string
40
- splits:
41
- - name: train
42
- num_bytes: 9289968
43
- num_examples: 7154
44
- download_size: 6070062
45
- dataset_size: 9289968
46
- configs:
47
- - config_name: default
48
- data_files:
49
- - split: train
50
- path: data/train-*
51
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - da
4
+ license: cc-by-4.0
5
+ task_categories:
6
+ - question-answering
7
+ - text-generation
8
+ tags:
9
+ - danish
10
+ - statistics
11
+ - synthetic
12
+ - instruction-tuning
13
+ - backtranslation
14
+ pretty_name: Danmarks Statistik BT
15
+ size_categories:
16
+ - 1K<n<10K
17
+ source_datasets:
18
+ - oliverkinch/danmarks-statistik
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  ---
20
+
21
+ # Danmarks Statistik BT
22
+
23
+ Synthetic Danish instruction-tuning dataset built from [Danmarks Statistik](https://www.dst.dk) publications using backtranslation. Each row pairs a short, natural Danish chatbot input (`prompt`) with a prose passage from a DST publication as the grounding answer (`target`).
24
+
25
+ ## Dataset construction
26
+
27
+ Passages are extracted from the source dataset [`oliverkinch/danmarks-statistik`](https://huggingface.co/datasets/oliverkinch/danmarks-statistik), which covers four content types published by Danmarks Statistik:
28
+
29
+ | Content type | Description | Rows |
30
+ |---|---|---|
31
+ | `bag` | Background material and in-depth analysis | 3,190 |
32
+ | `nyt` | Short statistical news releases | 1,926 |
33
+ | `pub` | Statistical publication summaries | 1,416 |
34
+ | `analyse` | In-depth statistical analyses | 622 |
35
+
36
+ For each passage an LLM writes a short, persona-conditioned Danish chatbot input that a person might send about the topic — without referencing specific numbers or the source document. Personas are sampled from [`nvidia/Nemotron-Personas-USA`](https://huggingface.co/datasets/nvidia/Nemotron-Personas-USA) to produce varied registers (researchers, students, journalists, retirees, etc.).
37
+
38
+ Generated prompts are filtered to ensure they:
39
+ - end with terminal punctuation
40
+ - do not reference "the above text" or similar
41
+ - are in Danish (not English)
42
+
43
+ ## Statistics
44
+
45
+ | | |
46
+ |---|---|
47
+ | Split | train |
48
+ | Rows | 7,154 |
49
+ | Prompt length (chars) | min 42 · mean 129 · max 367 |
50
+ | Target length (chars) | min 200 · mean 686 · max 2,499 |
51
+ | Generation failures | 8 (0.1%) |
52
+
53
+ ## Schema
54
+
55
+ | Field | Type | Description |
56
+ |---|---|---|
57
+ | `id` | string | Unique row identifier, e.g. `dst-000013-p00` |
58
+ | `prompt` | string | Short Danish chatbot input about the passage topic |
59
+ | `target` | string | Source passage from a DST publication |
60
+ | `sources` | list | Provenance: source dataset, split, row id, title, URL |
61
+ | `meta` | dict | Content type, passage index, character count, source coordinates |
62
+
63
+ ## Example
64
+
65
+ ```python
66
+ from datasets import load_dataset
67
+ ds = load_dataset("oliverkinch/danmarks-statistik-bt", split="train")
68
+ print(ds[0]["prompt"])
69
+ # "Har du en fornemmelse af, hvorfor eksporten er faldet igen ..."
70
+ print(ds[0]["target"])
71
+ # "I februar faldt den samlede eksport af varer og tjenester med 3,7 pct. ..."
72
+ ```
73
+
74
+ ## Intended use
75
+
76
+ Fine-tuning and evaluating Danish language models on instruction-following and retrieval-augmented generation tasks grounded in official Danish statistics.
77
+
78
+ ## Source data
79
+
80
+ Danmarks Statistik publications are released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). See the [source dataset](https://huggingface.co/datasets/oliverkinch/danmarks-statistik) for full provenance.