parquet-converter
commited on
Update parquet files
Browse files- README.md +0 -211
- dataset_infos.json +0 -1
- definite_pronoun_resolution.py +0 -105
- plain_text/test/0000.parquet +3 -0
- plain_text/train/0000.parquet +3 -0
README.md
DELETED
@@ -1,211 +0,0 @@
|
|
1 |
-
---
|
2 |
-
annotations_creators:
|
3 |
-
- expert-generated
|
4 |
-
language_creators:
|
5 |
-
- crowdsourced
|
6 |
-
language:
|
7 |
-
- en
|
8 |
-
license:
|
9 |
-
- unknown
|
10 |
-
multilinguality:
|
11 |
-
- monolingual
|
12 |
-
size_categories:
|
13 |
-
- 1K<n<10K
|
14 |
-
source_datasets:
|
15 |
-
- original
|
16 |
-
task_categories:
|
17 |
-
- token-classification
|
18 |
-
task_ids:
|
19 |
-
- word-sense-disambiguation
|
20 |
-
paperswithcode_id: definite-pronoun-resolution-dataset
|
21 |
-
pretty_name: Definite Pronoun Resolution Dataset
|
22 |
-
dataset_info:
|
23 |
-
features:
|
24 |
-
- name: sentence
|
25 |
-
dtype: string
|
26 |
-
- name: pronoun
|
27 |
-
dtype: string
|
28 |
-
- name: candidates
|
29 |
-
sequence: string
|
30 |
-
length: 2
|
31 |
-
- name: label
|
32 |
-
dtype:
|
33 |
-
class_label:
|
34 |
-
names:
|
35 |
-
'0': '0'
|
36 |
-
'1': '1'
|
37 |
-
config_name: plain_text
|
38 |
-
splits:
|
39 |
-
- name: test
|
40 |
-
num_bytes: 71691
|
41 |
-
num_examples: 564
|
42 |
-
- name: train
|
43 |
-
num_bytes: 171511
|
44 |
-
num_examples: 1322
|
45 |
-
download_size: 227452
|
46 |
-
dataset_size: 243202
|
47 |
-
---
|
48 |
-
|
49 |
-
# Dataset Card for "definite_pronoun_resolution"
|
50 |
-
|
51 |
-
## Table of Contents
|
52 |
-
- [Dataset Description](#dataset-description)
|
53 |
-
- [Dataset Summary](#dataset-summary)
|
54 |
-
- [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
|
55 |
-
- [Languages](#languages)
|
56 |
-
- [Dataset Structure](#dataset-structure)
|
57 |
-
- [Data Instances](#data-instances)
|
58 |
-
- [Data Fields](#data-fields)
|
59 |
-
- [Data Splits](#data-splits)
|
60 |
-
- [Dataset Creation](#dataset-creation)
|
61 |
-
- [Curation Rationale](#curation-rationale)
|
62 |
-
- [Source Data](#source-data)
|
63 |
-
- [Annotations](#annotations)
|
64 |
-
- [Personal and Sensitive Information](#personal-and-sensitive-information)
|
65 |
-
- [Considerations for Using the Data](#considerations-for-using-the-data)
|
66 |
-
- [Social Impact of Dataset](#social-impact-of-dataset)
|
67 |
-
- [Discussion of Biases](#discussion-of-biases)
|
68 |
-
- [Other Known Limitations](#other-known-limitations)
|
69 |
-
- [Additional Information](#additional-information)
|
70 |
-
- [Dataset Curators](#dataset-curators)
|
71 |
-
- [Licensing Information](#licensing-information)
|
72 |
-
- [Citation Information](#citation-information)
|
73 |
-
- [Contributions](#contributions)
|
74 |
-
|
75 |
-
## Dataset Description
|
76 |
-
|
77 |
-
- **Homepage:** [https://www.hlt.utdallas.edu/~vince/data/emnlp12/](https://www.hlt.utdallas.edu/~vince/data/emnlp12/)
|
78 |
-
- **Repository:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
79 |
-
- **Paper:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
80 |
-
- **Point of Contact:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
81 |
-
- **Size of downloaded dataset files:** 0.23 MB
|
82 |
-
- **Size of the generated dataset:** 0.24 MB
|
83 |
-
- **Total amount of disk used:** 0.47 MB
|
84 |
-
|
85 |
-
### Dataset Summary
|
86 |
-
|
87 |
-
Composed by 30 students from one of the author's undergraduate classes. These
|
88 |
-
sentence pairs cover topics ranging from real events (e.g., Iran's plan to
|
89 |
-
attack the Saudi ambassador to the U.S.) to events/characters in movies (e.g.,
|
90 |
-
Batman) and purely imaginary situations, largely reflecting the pop culture as
|
91 |
-
perceived by the American kids born in the early 90s. Each annotated example
|
92 |
-
spans four lines: the first line contains the sentence, the second line contains
|
93 |
-
the target pronoun, the third line contains the two candidate antecedents, and
|
94 |
-
the fourth line contains the correct antecedent. If the target pronoun appears
|
95 |
-
more than once in the sentence, its first occurrence is the one to be resolved.
|
96 |
-
|
97 |
-
### Supported Tasks and Leaderboards
|
98 |
-
|
99 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
100 |
-
|
101 |
-
### Languages
|
102 |
-
|
103 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
104 |
-
|
105 |
-
## Dataset Structure
|
106 |
-
|
107 |
-
### Data Instances
|
108 |
-
|
109 |
-
#### plain_text
|
110 |
-
|
111 |
-
- **Size of downloaded dataset files:** 0.23 MB
|
112 |
-
- **Size of the generated dataset:** 0.24 MB
|
113 |
-
- **Total amount of disk used:** 0.47 MB
|
114 |
-
|
115 |
-
An example of 'train' looks as follows.
|
116 |
-
```
|
117 |
-
{
|
118 |
-
"candidates": ["coreference resolution", "chunking"],
|
119 |
-
"label": 0,
|
120 |
-
"pronoun": "it",
|
121 |
-
"sentence": "There is currently more work on coreference resolution than on chunking because it is a problem that is still far from being solved."
|
122 |
-
}
|
123 |
-
```
|
124 |
-
|
125 |
-
### Data Fields
|
126 |
-
|
127 |
-
The data fields are the same among all splits.
|
128 |
-
|
129 |
-
#### plain_text
|
130 |
-
- `sentence`: a `string` feature.
|
131 |
-
- `pronoun`: a `string` feature.
|
132 |
-
- `candidates`: a `list` of `string` features.
|
133 |
-
- `label`: a classification label, with possible values including `0` (0), `1` (1).
|
134 |
-
|
135 |
-
### Data Splits
|
136 |
-
|
137 |
-
| name |train|test|
|
138 |
-
|----------|----:|---:|
|
139 |
-
|plain_text| 1322| 564|
|
140 |
-
|
141 |
-
## Dataset Creation
|
142 |
-
|
143 |
-
### Curation Rationale
|
144 |
-
|
145 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
146 |
-
|
147 |
-
### Source Data
|
148 |
-
|
149 |
-
#### Initial Data Collection and Normalization
|
150 |
-
|
151 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
152 |
-
|
153 |
-
#### Who are the source language producers?
|
154 |
-
|
155 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
156 |
-
|
157 |
-
### Annotations
|
158 |
-
|
159 |
-
#### Annotation process
|
160 |
-
|
161 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
162 |
-
|
163 |
-
#### Who are the annotators?
|
164 |
-
|
165 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
166 |
-
|
167 |
-
### Personal and Sensitive Information
|
168 |
-
|
169 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
170 |
-
|
171 |
-
## Considerations for Using the Data
|
172 |
-
|
173 |
-
### Social Impact of Dataset
|
174 |
-
|
175 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
176 |
-
|
177 |
-
### Discussion of Biases
|
178 |
-
|
179 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
180 |
-
|
181 |
-
### Other Known Limitations
|
182 |
-
|
183 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
184 |
-
|
185 |
-
## Additional Information
|
186 |
-
|
187 |
-
### Dataset Curators
|
188 |
-
|
189 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
190 |
-
|
191 |
-
### Licensing Information
|
192 |
-
|
193 |
-
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
194 |
-
|
195 |
-
### Citation Information
|
196 |
-
|
197 |
-
```
|
198 |
-
@inproceedings{rahman2012resolving,
|
199 |
-
title={Resolving complex cases of definite pronouns: the winograd schema challenge},
|
200 |
-
author={Rahman, Altaf and Ng, Vincent},
|
201 |
-
booktitle={Proceedings of the 2012 Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning},
|
202 |
-
pages={777--789},
|
203 |
-
year={2012},
|
204 |
-
organization={Association for Computational Linguistics}
|
205 |
-
}
|
206 |
-
```
|
207 |
-
|
208 |
-
|
209 |
-
### Contributions
|
210 |
-
|
211 |
-
Thanks to [@thomwolf](https://github.com/thomwolf), [@lewtun](https://github.com/lewtun), [@patrickvonplaten](https://github.com/patrickvonplaten) for adding this dataset.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dataset_infos.json
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"plain_text": {"description": "Composed by 30 students from one of the author's undergraduate classes. These\nsentence pairs cover topics ranging from real events (e.g., Iran's plan to\nattack the Saudi ambassador to the U.S.) to events/characters in movies (e.g.,\nBatman) and purely imaginary situations, largely reflecting the pop culture as\nperceived by the American kids born in the early 90s. Each annotated example\nspans four lines: the first line contains the sentence, the second line contains\nthe target pronoun, the third line contains the two candidate antecedents, and\nthe fourth line contains the correct antecedent. If the target pronoun appears\nmore than once in the sentence, its first occurrence is the one to be resolved.\n", "citation": "@inproceedings{rahman2012resolving,\n title={Resolving complex cases of definite pronouns: the winograd schema challenge},\n author={Rahman, Altaf and Ng, Vincent},\n booktitle={Proceedings of the 2012 Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning},\n pages={777--789},\n year={2012},\n organization={Association for Computational Linguistics}\n}", "homepage": "http://www.hlt.utdallas.edu/~vince/data/emnlp12/", "license": "", "features": {"sentence": {"dtype": "string", "id": null, "_type": "Value"}, "pronoun": {"dtype": "string", "id": null, "_type": "Value"}, "candidates": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": 2, "id": null, "_type": "Sequence"}, "label": {"num_classes": 2, "names": ["0", "1"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": {"input": "sentence", "output": "label"}, "task_templates": null, "builder_name": "definite_pronoun_resolution", "config_name": "plain_text", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"test": {"name": "test", "num_bytes": 71691, "num_examples": 564, "dataset_name": "definite_pronoun_resolution"}, "train": {"name": "train", "num_bytes": 171511, "num_examples": 1322, "dataset_name": "definite_pronoun_resolution"}}, "download_checksums": {"https://s3.amazonaws.com/datasets.huggingface.co/definite_pronoun_resolution/train.c.txt": {"num_bytes": 160408, "checksum": "c310158d0cbac1a556e3284e6c167f4478271d8d50b0b9d15dfe428c905a0867"}, "https://s3.amazonaws.com/datasets.huggingface.co/definite_pronoun_resolution/test.c.txt": {"num_bytes": 67044, "checksum": "cf1cf025e1d59a5b363e6dcfbd5a13aae8a9830831ac16fd7f865aca7a1559d8"}}, "download_size": 227452, "post_processing_size": null, "dataset_size": 243202, "size_in_bytes": 470654}}
|
|
|
|
definite_pronoun_resolution.py
DELETED
@@ -1,105 +0,0 @@
|
|
1 |
-
# coding=utf-8
|
2 |
-
# Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace Datasets Authors.
|
3 |
-
#
|
4 |
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5 |
-
# you may not use this file except in compliance with the License.
|
6 |
-
# You may obtain a copy of the License at
|
7 |
-
#
|
8 |
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9 |
-
#
|
10 |
-
# Unless required by applicable law or agreed to in writing, software
|
11 |
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12 |
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13 |
-
# See the License for the specific language governing permissions and
|
14 |
-
# limitations under the License.
|
15 |
-
|
16 |
-
# Lint as: python3
|
17 |
-
"""The Definite Pronoun Resolution Dataset."""
|
18 |
-
|
19 |
-
|
20 |
-
import datasets
|
21 |
-
|
22 |
-
|
23 |
-
_CITATION = """\
|
24 |
-
@inproceedings{rahman2012resolving,
|
25 |
-
title={Resolving complex cases of definite pronouns: the winograd schema challenge},
|
26 |
-
author={Rahman, Altaf and Ng, Vincent},
|
27 |
-
booktitle={Proceedings of the 2012 Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning},
|
28 |
-
pages={777--789},
|
29 |
-
year={2012},
|
30 |
-
organization={Association for Computational Linguistics}
|
31 |
-
}"""
|
32 |
-
|
33 |
-
_DESCRIPTION = """\
|
34 |
-
Composed by 30 students from one of the author's undergraduate classes. These
|
35 |
-
sentence pairs cover topics ranging from real events (e.g., Iran's plan to
|
36 |
-
attack the Saudi ambassador to the U.S.) to events/characters in movies (e.g.,
|
37 |
-
Batman) and purely imaginary situations, largely reflecting the pop culture as
|
38 |
-
perceived by the American kids born in the early 90s. Each annotated example
|
39 |
-
spans four lines: the first line contains the sentence, the second line contains
|
40 |
-
the target pronoun, the third line contains the two candidate antecedents, and
|
41 |
-
the fourth line contains the correct antecedent. If the target pronoun appears
|
42 |
-
more than once in the sentence, its first occurrence is the one to be resolved.
|
43 |
-
"""
|
44 |
-
|
45 |
-
|
46 |
-
_DATA_URL_PATTERN = "https://s3.amazonaws.com/datasets.huggingface.co/definite_pronoun_resolution/{}.c.txt"
|
47 |
-
|
48 |
-
|
49 |
-
class DefinitePronounResolution(datasets.GeneratorBasedBuilder):
|
50 |
-
"""The Definite Pronoun Resolution Dataset."""
|
51 |
-
|
52 |
-
BUILDER_CONFIGS = [
|
53 |
-
datasets.BuilderConfig(
|
54 |
-
name="plain_text",
|
55 |
-
version=datasets.Version("1.0.0", ""),
|
56 |
-
description="Plain text import of the Definite Pronoun Resolution Dataset.", # pylint: disable=line-too-long
|
57 |
-
)
|
58 |
-
]
|
59 |
-
|
60 |
-
def _info(self):
|
61 |
-
return datasets.DatasetInfo(
|
62 |
-
description=_DESCRIPTION,
|
63 |
-
features=datasets.Features(
|
64 |
-
{
|
65 |
-
"sentence": datasets.Value("string"),
|
66 |
-
"pronoun": datasets.Value("string"),
|
67 |
-
"candidates": datasets.features.Sequence(datasets.Value("string"), length=2),
|
68 |
-
"label": datasets.features.ClassLabel(num_classes=2),
|
69 |
-
}
|
70 |
-
),
|
71 |
-
supervised_keys=("sentence", "label"),
|
72 |
-
homepage="http://www.hlt.utdallas.edu/~vince/data/emnlp12/",
|
73 |
-
citation=_CITATION,
|
74 |
-
)
|
75 |
-
|
76 |
-
def _split_generators(self, dl_manager):
|
77 |
-
files = dl_manager.download_and_extract(
|
78 |
-
{
|
79 |
-
"train": _DATA_URL_PATTERN.format("train"),
|
80 |
-
"test": _DATA_URL_PATTERN.format("test"),
|
81 |
-
}
|
82 |
-
)
|
83 |
-
return [
|
84 |
-
datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": files["test"]}),
|
85 |
-
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": files["train"]}),
|
86 |
-
]
|
87 |
-
|
88 |
-
def _generate_examples(self, filepath):
|
89 |
-
with open(filepath, encoding="utf-8") as f:
|
90 |
-
line_num = -1
|
91 |
-
while True:
|
92 |
-
line_num += 1
|
93 |
-
sentence = f.readline().strip()
|
94 |
-
pronoun = f.readline().strip()
|
95 |
-
candidates = [c.strip() for c in f.readline().strip().split(",")]
|
96 |
-
correct = f.readline().strip()
|
97 |
-
f.readline()
|
98 |
-
if not sentence:
|
99 |
-
break
|
100 |
-
yield line_num, {
|
101 |
-
"sentence": sentence,
|
102 |
-
"pronoun": pronoun,
|
103 |
-
"candidates": candidates,
|
104 |
-
"label": candidates.index(correct),
|
105 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plain_text/test/0000.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:265c839584a93a59ad0b90647775bdd0c203968da23066aa712314c14e9b630d
|
3 |
+
size 32221
|
plain_text/train/0000.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f149f1b00e5a8b193f704237f5870bae18812bca9f90431eccd5d99d829e4974
|
3 |
+
size 74776
|