Update README.md
Browse files
README.md
CHANGED
@@ -21,4 +21,82 @@ configs:
|
|
21 |
data_files:
|
22 |
- split: train
|
23 |
path: data/train-*
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
data_files:
|
22 |
- split: train
|
23 |
path: data/train-*
|
24 |
+
license: cc-by-4.0
|
25 |
+
language:
|
26 |
+
- da
|
27 |
+
pretty_name: Danish Compounds
|
28 |
+
size_categories:
|
29 |
+
- n<1K
|
30 |
---
|
31 |
+
|
32 |
+
## Danish Compounds
|
33 |
+
|
34 |
+
Danish Compounds consists of a list of Danish compound words as well as an annotation of how they were split. This can be used to evaluate how close a model can obtain similar splits.
|
35 |
+
|
36 |
+
## Loading the dataset
|
37 |
+
|
38 |
+
To load the dataset simply run:
|
39 |
+
|
40 |
+
```py
|
41 |
+
from datasets import load_dataset
|
42 |
+
|
43 |
+
ds = load_dataset("KennethEnevoldsen/danish-compounds", split="train")
|
44 |
+
```
|
45 |
+
|
46 |
+
|
47 |
+
## Sample
|
48 |
+
|
49 |
+
A sample from the dataset looks as follows:
|
50 |
+
|
51 |
+
```py
|
52 |
+
{
|
53 |
+
"words": "A-aktie",
|
54 |
+
"annotated_splits": "A|-|aktie",
|
55 |
+
"splits": [["A"], ["-"], ["aktie"]],
|
56 |
+
"source": "wiktionary",
|
57 |
+
}
|
58 |
+
```
|
59 |
+
|
60 |
+
Where:
|
61 |
+
|
62 |
+
- `words`: The word as a string
|
63 |
+
- `annotated_splits`: The annotated splits, including primary and secondary splits
|
64 |
+
- `splits`: The words.
|
65 |
+
- `source` Where the word was found.
|
66 |
+
|
67 |
+
## Dataset Source
|
68 |
+
|
69 |
+
The dataset is derived from two source [Wiktionary](https://da.wiktionary.org/wiki/Kategori:Sammensatte_ord_på_dansk) and [sproget.dk](https://sproget.dk/raad-og-regler/ordlister/sproglige-ordlister/ordforbindelser-i-et-eller-flere-ord).
|
70 |
+
|
71 |
+
|
72 |
+
## Annotation Creator
|
73 |
+
|
74 |
+
The word splits were manually annotated by Kenneth Enevoldsen.
|
75 |
+
|
76 |
+
## Annotation Scheme
|
77 |
+
Words that the annotator did not understand (e.g. some Icelandic words) were removed.
|
78 |
+
|
79 |
+
- "|" indicates primary split (into compound words)
|
80 |
+
- "&" indicates secondary split (used in case of compound word existing of a multiple compounds) e.g. blindtarmsbetændelse consist of two compounds "blindtarm" "betændelse" with a 'lim-s' ("s"), but blindtarm is itself a compound, namely "blind", "tarm".
|
81 |
+
|
82 |
+
## Reason for annotation
|
83 |
+
|
84 |
+
This dataset was initially annotated to get a gist of how well BPE, Unigram, and similar tokenizers obtain tokens similar to conventional splits.
|
85 |
+
|
86 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/5ff5943752c26e9bc240bada/tdTHo4W-_36-1U1gSR8CI.png)
|
87 |
+
|
88 |
+
It was annotated as a part of Kenneth Enevoldsen's master thesis.
|
89 |
+
|
90 |
+
## Citation
|
91 |
+
|
92 |
+
If you use this work please cite:
|
93 |
+
|
94 |
+
```
|
95 |
+
@mastersthesis{Enevoldsen2022,
|
96 |
+
title = {Representation Learning for Decision-Support in Clinical Psychiatry},
|
97 |
+
author = {Kenneth Enevoldsen},
|
98 |
+
year = {2022},
|
99 |
+
school = {Aarhus University},
|
100 |
+
note = {Master's Thesis}
|
101 |
+
}
|
102 |
+
```
|