Datasets:

Languages:
English
ArXiv:
License:
tommasobonomo commited on
Commit
d899fde
·
verified ·
1 Parent(s): 59585fe

Update README

Browse files
Files changed (1) hide show
  1. README.md +88 -0
README.md CHANGED
@@ -64,4 +64,92 @@ dataset_info:
64
  num_examples: 152
65
  download_size: 54361434
66
  dataset_size: 127513276
 
 
 
 
 
 
 
 
67
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  num_examples: 152
65
  download_size: 54361434
66
  dataset_size: 127513276
67
+ language:
68
+ - en
69
+ pretty_name: BOOKCOREF
70
+ size_categories:
71
+ - 10M<n<100M
72
+ tags:
73
+ - coreference-resolution
74
+ license: cc-by-sa-4.0
75
  ---
76
+
77
+
78
+ <div align="center">
79
+ <img src="assets/bookcoref.png" width="700">
80
+ </div>
81
+ <!-- Aggiungi nome degli autori, ACL 2025, link -->
82
+ This repository contains the <span style="font-variant: small-caps;">BookCoref</span> dataset, introduced in the paper "<span style="font-variant: small-caps;">BookCoref</span>: Coreference Resolution at Book Scale" by [Martinelli et al., 2025]().
83
+
84
+
85
+ We release both the manually-annotated `test` split (<span style="font-variant: small-caps;">BookCoref</span><sub>gold</sub>) and the pipeline-generated `train` and `validation` splits (<span style="font-variant: small-caps;">BookCoref</span><sub>silver</sub>).
86
+ In order to enable the replication of our results, we also release the splitted version of each split, available by adding the suffix `_splitted` to each split name.
87
+ As specified in the paper, this version is obtained through chunking the text into contiguous windows of 1500 tokens, retaining the coreference clusters of each window.
88
+
89
+ ## 📚 Quickstart
90
+
91
+ Simply load the dataset through Huggingface's `datasets` library:
92
+
93
+ ```python
94
+ from datasets import load_dataset
95
+
96
+ bookcoref = load_dataset("sapienzanlp/bookcoref")
97
+ ```
98
+
99
+ ## ℹ️ Data format
100
+
101
+ <span style="font-variant: small-caps;">BookCoref</span> is a collection of annotated books.
102
+ Each item contains the annotations of one book following the structure of OntoNotes:
103
+
104
+ ```python
105
+ {
106
+ doc_id: "pride_and_prejudice_142", # (str) i.e., id of document
107
+ sentences: [["Pride", "and", "Prejudice", "."], ["Begin", ...], ...], # list[list[str]] i.e., list of word-tokenized sentences
108
+ clusters: [[[0,0], [3,5]], [[4,9]...], ...], # list[list[list[int]]] i.e., list of clusters' mention offsets
109
+ characters: [
110
+ {
111
+ name: "Mr.Bennet",
112
+ cluster: [[0,0], ...],
113
+ },
114
+ {
115
+ name: "Mr. Darcy",
116
+ cluster: [[5,7], ...],
117
+ }
118
+ ] # list[character], list of characters objects with name and his mentions offsets, i,e., dict(name: str, cluster: list[list[int]])
119
+ }
120
+ ```
121
+ <!-- Add description of fields in example, maybe OntoNotes format is not enough -->
122
+ We also include information on character names, which is not exploited in traditional coreference settings, but can be useful in future works.
123
+
124
+ ## 📊 Dataset statistics
125
+
126
+ <span style="font-variant: small-caps;">BookCoref</span> has distinctly book-scale characteristics, as summarized in the following table:
127
+
128
+ <!-- chage to markdown table -->
129
+ <div align="center">
130
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/64f85270ceabf1e6fc524bb8/DgYU_2yKlZuwDTV-duGWh.png" width=1000/>
131
+ </div>
132
+
133
+ ## 🖋️ Cite this work
134
+
135
+ This work has been published at ACL 2025 (main conference). If you use any artifact of this dataset, please consider citing our paper as follows:
136
+
137
+ ```bibtex
138
+ @inproceedings{martinelli-etal-2025-bookcoref,
139
+ title = "{BookCoref}: Coreference Resolution at Book Scale",
140
+ author = "Martinelli, Giuliano and
141
+ Bonomo, Tommaso and
142
+ Huguet Cabot, Pere-Llu{\'\i}s and
143
+ Navigli, Roberto",
144
+ booktitle = "Proceedings of the 63nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)",
145
+ month = jul,
146
+ year = "2025",
147
+ address = "Vienna, Austria",
148
+ publisher = "Association for Computational Linguistics",
149
+ }
150
+ ```
151
+
152
+
153
+ ## ©️ License information
154
+
155
+ All the annotations provided by this repository are licensed under the [Creative Commons Attribution Share Alike 4.0](https://creativecommons.org/licenses/by-nc/4.0/) license. The tokenized text of books is a modification of books from Project Gutenberg, following [their license](https://www.gutenberg.org/policy/license.html).