File size: 1,678 Bytes
00860e3
 
 
 
 
 
 
 
 
 
 
 
 
 
bdfbc23
 
 
 
00860e3
 
bdfbc23
 
00860e3
bdfbc23
 
 
c9163ce
 
 
 
 
 
 
 
 
 
 
 
 
 
00860e3
c9163ce
00860e3
c9163ce
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
  - split: test
    path: data/test-*
dataset_info:
  features:
  - name: text
    dtype: string
  - name: labels
    sequence: string
  - name: id
    dtype: int64
  - name: title
    dtype: string
  splits:
  - name: train
    num_bytes: 415213673.5927568
    num_examples: 283808
  - name: test
    num_bytes: 103804881.40724319
    num_examples: 70953
  download_size: 284679882
  dataset_size: 519018555
license: mit
task_categories:
- text-classification
language:
- da
tags:
- chemistry
- biology
- finance
- legal
- music
- art
- webdataset
---
# Danish Wikipedia Categories

The dataset was created entirely from the [last Danish Wikipedia dump](https://dumps.wikimedia.org/dawiki/20240101/)
by traversing the category hierarchy in the [categorylinks table](https://www.mediawiki.org/wiki/Manual:Categorylinks_table).

All categories that were one level bellow the topcategories, and which had more than 30 articles assigned to them were selected.
In order to see whether an article belongs to a certain category I checked, whether the article was connected to the category in the directed graph of the category hierarchy.
If the length of the path between the article and a category was less than or equal to 5 edges (arbitrary choice, but I found it to work well),
the category was assigned to the article.

Note that this is a multilabel classification task.
Its purpose is to train sentence transformers for the [DFM project](https://centre-for-humanities-computing.github.io/danish-foundation-models/) using a technique similar to [SetFit](https://arxiv.org/abs/2209.11055).