Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
parquet
Sub-tasks:
acceptability-classification
Languages:
Italian
Size:
100K - 1M
License:
Commit
•
2ff5f5b
1
Parent(s):
dfcac8f
Convert dataset to Parquet (#4)
Browse files- Convert dataset to Parquet (6a6ee6f35e08fa8e895276959ef7834612b6f2bc)
- Delete loading script (5485302b57e4a196b25ba9e653dc1510b0c2a5a1)
- Delete legacy dataset_infos.json (71f1938b0a8940f77d1cdbe202eb46e4cebede7a)
- README.md +27 -4
- cultural_heritage_metadata_accuracy.py +0 -80
- data/train-00000-of-00001.parquet +3 -0
- dataset_infos.json +0 -1
README.md
CHANGED
@@ -2,16 +2,14 @@
|
|
2 |
annotations_creators:
|
3 |
- machine-generated
|
4 |
- expert-generated
|
5 |
-
language:
|
6 |
-
- it
|
7 |
language_creators:
|
8 |
- expert-generated
|
|
|
|
|
9 |
license:
|
10 |
- cc-by-4.0
|
11 |
multilinguality:
|
12 |
- monolingual
|
13 |
-
pretty_name: Annotated dataset to assess the accuracy of the textual description of
|
14 |
-
cultural heritage records
|
15 |
size_categories:
|
16 |
- 10K<n<100K
|
17 |
source_datasets:
|
@@ -20,6 +18,31 @@ task_categories:
|
|
20 |
- text-classification
|
21 |
task_ids:
|
22 |
- acceptability-classification
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
---
|
24 |
|
25 |
# Dataset Card for Annotated dataset to assess the accuracy of the textual description of cultural heritage records
|
|
|
2 |
annotations_creators:
|
3 |
- machine-generated
|
4 |
- expert-generated
|
|
|
|
|
5 |
language_creators:
|
6 |
- expert-generated
|
7 |
+
language:
|
8 |
+
- it
|
9 |
license:
|
10 |
- cc-by-4.0
|
11 |
multilinguality:
|
12 |
- monolingual
|
|
|
|
|
13 |
size_categories:
|
14 |
- 10K<n<100K
|
15 |
source_datasets:
|
|
|
18 |
- text-classification
|
19 |
task_ids:
|
20 |
- acceptability-classification
|
21 |
+
pretty_name: Annotated dataset to assess the accuracy of the textual description of
|
22 |
+
cultural heritage records
|
23 |
+
dataset_info:
|
24 |
+
features:
|
25 |
+
- name: metadata_text
|
26 |
+
dtype: string
|
27 |
+
- name: label
|
28 |
+
dtype:
|
29 |
+
class_label:
|
30 |
+
names:
|
31 |
+
'0': Low_Quality
|
32 |
+
'1': High_Quality
|
33 |
+
- name: source
|
34 |
+
dtype: string
|
35 |
+
splits:
|
36 |
+
- name: train
|
37 |
+
num_bytes: 29309108
|
38 |
+
num_examples: 100821
|
39 |
+
download_size: 16309144
|
40 |
+
dataset_size: 29309108
|
41 |
+
configs:
|
42 |
+
- config_name: default
|
43 |
+
data_files:
|
44 |
+
- split: train
|
45 |
+
path: data/train-*
|
46 |
---
|
47 |
|
48 |
# Dataset Card for Annotated dataset to assess the accuracy of the textual description of cultural heritage records
|
cultural_heritage_metadata_accuracy.py
DELETED
@@ -1,80 +0,0 @@
|
|
1 |
-
# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
|
2 |
-
#
|
3 |
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4 |
-
# you may not use this file except in compliance with the License.
|
5 |
-
# You may obtain a copy of the License at
|
6 |
-
#
|
7 |
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8 |
-
#
|
9 |
-
# Unless required by applicable law or agreed to in writing, software
|
10 |
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11 |
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12 |
-
# See the License for the specific language governing permissions and
|
13 |
-
# limitations under the License.
|
14 |
-
"""Annotated dataset to assess the accuracy of the textual description of cultural heritage records"""
|
15 |
-
|
16 |
-
import csv
|
17 |
-
|
18 |
-
import datasets
|
19 |
-
|
20 |
-
|
21 |
-
_CITATION = """\
|
22 |
-
@article{Lorenzini2020,
|
23 |
-
author = "Matteo Lorenzini and Marco Rospocher and Sara Tonelli",
|
24 |
-
title = "{Annotated dataset to assess the accuracy of the textual description of cultural heritage records}",
|
25 |
-
year = "2020",
|
26 |
-
month = "12",
|
27 |
-
url = "https://figshare.com/articles/dataset/Annotated_dataset_to_assess_the_accuracy_of_the_textual_description_of_cultural_heritage_records/13359104",
|
28 |
-
doi = "10.6084/m9.figshare.13359104.v1"
|
29 |
-
}
|
30 |
-
"""
|
31 |
-
|
32 |
-
_DESCRIPTION = """\
|
33 |
-
The dataset contains more than 100K textual descriptions of cultural items from Cultura Italia (http://www.culturaitalia.it/opencms/index.jsp?language=en), the Italian National Cultural aggregator.
|
34 |
-
Each of the description is labeled either HIGH or LOW quality, according its adherence to the standard cataloguing guidelines provided by Istituto Centrale per il Catalogo e la Documentazione (ICCD).
|
35 |
-
"""
|
36 |
-
|
37 |
-
_HOMEPAGE = "https://doi.org/10.6084/m9.figshare.13359104.v1"
|
38 |
-
|
39 |
-
_LICENSE = "Creative Commons Attribution 4.0 International"
|
40 |
-
|
41 |
-
|
42 |
-
class CulturalHeritageMetadataAccuracy(datasets.GeneratorBasedBuilder):
|
43 |
-
"""Annotated dataset to assess the accuracy of the textual description of cultural heritage records"""
|
44 |
-
|
45 |
-
VERSION = datasets.Version("1.1.0")
|
46 |
-
|
47 |
-
def _info(self):
|
48 |
-
features = datasets.Features(
|
49 |
-
{
|
50 |
-
"metadata_text": datasets.Value("string"),
|
51 |
-
"label": datasets.ClassLabel(names=["Low_Quality", "High_Quality"]),
|
52 |
-
"source": datasets.Value("string"),
|
53 |
-
}
|
54 |
-
)
|
55 |
-
|
56 |
-
return datasets.DatasetInfo(
|
57 |
-
description=_DESCRIPTION,
|
58 |
-
features=features,
|
59 |
-
homepage=_HOMEPAGE,
|
60 |
-
license=_LICENSE,
|
61 |
-
citation=_CITATION,
|
62 |
-
)
|
63 |
-
|
64 |
-
def _split_generators(self, dl_manager):
|
65 |
-
csv_file = dl_manager.download(
|
66 |
-
"https://figshare.com/ndownloader/files/25796018"
|
67 |
-
)
|
68 |
-
return [
|
69 |
-
datasets.SplitGenerator(
|
70 |
-
name=datasets.Split.TRAIN,
|
71 |
-
gen_kwargs={
|
72 |
-
"csv_file": csv_file,
|
73 |
-
},
|
74 |
-
),
|
75 |
-
]
|
76 |
-
|
77 |
-
def _generate_examples(self, csv_file):
|
78 |
-
with open(csv_file, encoding="utf-8") as f:
|
79 |
-
reader = csv.DictReader(f, fieldnames=["metadata_text", "label", "source"])
|
80 |
-
yield from enumerate(reader)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
data/train-00000-of-00001.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a5406cceec351e27db9d8fc74329370ba65053170fd13343852101230bf9860e
|
3 |
+
size 16309144
|
dataset_infos.json
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"default": {"description": "The dataset contains more than 100K textual descriptions of cultural items from Cultura Italia (http://www.culturaitalia.it/opencms/index.jsp?language=en), the Italian National Cultural aggregator. \nEach of the description is labeled either HIGH or LOW quality, according its adherence to the standard cataloguing guidelines provided by Istituto Centrale per il Catalogo e la Documentazione (ICCD). \n", "citation": "@article{Lorenzini2020,\nauthor = \"Matteo Lorenzini and Marco Rospocher and Sara Tonelli\",\ntitle = \"{Annotated dataset to assess the accuracy of the textual description of cultural heritage records}\",\nyear = \"2020\",\nmonth = \"12\",\nurl = \"https://figshare.com/articles/dataset/Annotated_dataset_to_assess_the_accuracy_of_the_textual_description_of_cultural_heritage_records/13359104\",\ndoi = \"10.6084/m9.figshare.13359104.v1\"\n}\n", "homepage": "https://doi.org/10.6084/m9.figshare.13359104.v1", "license": "Creative Commons Attribution 4.0 International", "features": {"metadata_text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 2, "names": ["Low_Quality", "High_Quality"], "id": null, "_type": "ClassLabel"}, "source": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "cultural_heritage_metadata_accuracy", "config_name": "default", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 29309108, "num_examples": 100821, "dataset_name": "cultural_heritage_metadata_accuracy"}}, "download_checksums": {"https://figshare.com/ndownloader/files/25796018": {"num_bytes": 29187526, "checksum": "2800111101c793d831b3bc8711822611b22da25c4b8c88cc047db79ef94c4f92"}}, "download_size": 29187526, "post_processing_size": null, "dataset_size": 29309108, "size_in_bytes": 58496634}}
|
|
|
|