Datasets:

Modalities:
Text
Formats:
parquet
Languages:
Danish
Libraries:
Datasets
pandas
License:
File size: 5,511 Bytes
f860e0e
 
2abd78e
 
 
 
 
 
 
 
 
 
 
 
 
dd622c1
2abd78e
 
dd622c1
2abd78e
 
dd622c1
2abd78e
dd622c1
 
 
 
 
 
 
 
 
f860e0e
dd622c1
 
 
 
 
 
 
 
 
 
 
 
 
0c97bfa
dd622c1
 
 
 
990617f
dd622c1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0c97bfa
 
 
 
 
dd622c1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
---
license: cc-by-sa-4.0
dataset_info:
  features:
  - name: sent_id
    dtype: string
  - name: text
    dtype: string
  - name: tokens
    sequence: string
  - name: clusters
    sequence:
      sequence: int64
  splits:
  - name: train
    num_bytes: 871763
    num_examples: 2686
  - name: val
    num_bytes: 103309
    num_examples: 332
  - name: test
    num_bytes: 123444
    num_examples: 385
  download_size: 568857
  dataset_size: 1098516
language:
- da
tags:
- coreference-resolution
pretty_name: DaCoref
size_categories:
- 1K<n<10K
---

# Dataset Card for DaCoref

## Dataset Description

- **Repository:** <https://gist.github.com/saattrupdan/3551300138e8668fbb8d32357e7b39f7>
- **Point of Contact:** [Dan Saattrup Nielsen](mailto:dan.nielsen@alexandra.dk)
- **Size of downloaded dataset files:** 569 KB
- **Size of the generated dataset:** 1099 KB
- **Total amount of disk used:** 1668 KB

### Dataset Summary

This dataset contains coreference annotations of part of the [Copenhagen Dependency Treebank](https://github.com/mbkromann/copenhagen-dependency-treebank/wiki/CDT).


### Supported Tasks and Leaderboards

This dataset is meant to train coreference resolution models.


### Languages

The dataset is available in Danish (`da`).


## Dataset Structure

### Data Instances

- **Size of downloaded dataset files:** 569 KB
- **Size of the generated dataset:** 1099 KB
- **Total amount of disk used:** 1668 KB

|   split | samples |
|---------|--------:|
| train   | 2,686   |
| val     | 332     |
| test    | 385     |

An example from the dataset looks as follows.
```
{
  'sent_id': 'train-v2-0',
  'doc_id': 'nw/0442',
  'text': 'På fredag har SID inviteret til reception i SID-huset i anledning af at formanden Kjeld Christensen går ind i de glade tressere.',
  'tokens': ['På',
    'fredag',
    'har',
    'SID',
    'inviteret',
    'til',
    'reception',
    'i',
    'SID-huset',
    'i',
    'anledning',
    'af',
    'at',
    'formanden',
    'Kjeld',
    'Christensen',
    'går',
    'ind',
    'i',
    'de',
    'glade',
    'tressere',
    '.'
  ],
 'clusters': [[13, 14, 15]]
}
```

### Data Fields

The data fields are the same among all splits.

- `sent_id` (`string`): The sentence ID from the [Universal Dependencies]().
- `doc_id` (`string`): The document ID from the [Copenhagen Dependency Treebank]().
- `text` (`string`): The document.
- `tokens` (`list[str]`): The tokens appearing in the document.
- `clusters` (`list[list[int]]`): The coreference clusters in the document, where the integers refer to the indices in `tokens`.


## Dataset Creation

This coreference dataset was originally annotated as part of the Copenhagen Dependency Treebank (CDT) project but never finished. The incomplete annotation can be downloaded from the [project github](https://github.com/mbkromann/copenhagen-dependency-treebank).

The [CDT documentation](https://github.com/mbkromann/copenhagen-dependency-treebank/blob/master/manual/cdt-manual.pdf) contains description of the coreference classes as well as inter-annotator agreement and confusion matrices.

For this resource, we used the annotation files from the annotator "Lotte" along with the UD syntax which is an automatic conversion of the CDT syntax annotation by Johansen et al. (2015). We provide the sentence ID from the UD resource as well as the document ID from CDT. The document ID has been prepended with a two letter domain code compatible with the domain codes of the Ontonotes corpus. This is a manually mapping of the sources listed in the CDT. Only nw (newswire), mz (magazine), and bn (broadcast news) were present:

- 299 nw documents
- 41 mz documents
- 1 bn

For the CDT, only the core node of each span was annotated and one annotator manually propagated the label to the entire span. A few systematic errors were corrected in this process, the most important being that plural pronouns "we" and "they" can be coreferent with company names if they refer to the employee group of this company.

For this resource we have merged the following labels to form uniquely numbered clusters: coref, coref-evol, coref-iden, coref-iden.sb, coref-var, and ref. Coref-res and coref-res.prg are also included as clusters but not merged with any other label, nor each other.

Some notes about the annotation, but see also the CDT documentation: If conjunctions of entities are only referred to as a group, they are marked as one span. (e.g. if "Lise, Lone og Birthe" are only referred to as a group, e.g. by the plural pronoun "de"), "Line, Lone og Birthe" is marked as one span. The spans are generally as long as possible. Example: Det sidste gik ud over politikerne, da de i sin tid præsenterede [det første forslag til den milliard-dyre vandmiljøplan].

Singletons are not annotated. The annotation does not label attributative noun phrases that are connected through copula verbs such as to be. Name-initual appositive constructions are part of the same mention as the name. Generic pronouns (mainly "man" and "du") are not clustered unless they are part of a cluster, e.g. with a reflexive or possesive pronoun.

## Additional Information

### Dataset Curators

The work was conducted by Maria Jung Barrett, and has been uploaded to the Hugging Face Hub by [Dan Saattrup Nielsen](https://saattrupdan.github.io/) from the [The Alexandra
Institute](https://alexandra.dk/).

### Licensing Information

The dataset is licensed under the [CC BY 4.0
license](https://creativecommons.org/licenses/by/4.0/).