Datasets:
Commit ·
617af70
1
Parent(s): 6ca1ef4
adapt dataset version and credit cpp5
Browse files
odor.py
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
# coding=utf-8
|
| 2 |
-
# Copyright 2021 The HuggingFace Datasets Authors and the current dataset script contributor.
|
| 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.
|
|
@@ -12,6 +11,7 @@
|
|
| 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 |
"""ODOR dataset."""
|
| 16 |
|
| 17 |
|
|
@@ -46,7 +46,7 @@ _CATEGORIES = ['ant', 'camel', 'jewellery', 'frog', 'physalis', 'celery', 'cauli
|
|
| 46 |
class ODOR(datasets.GeneratorBasedBuilder):
|
| 47 |
"""ODOR dataset."""
|
| 48 |
|
| 49 |
-
VERSION = datasets.Version("
|
| 50 |
|
| 51 |
def _info(self):
|
| 52 |
features = datasets.Features(
|
|
|
|
| 1 |
# coding=utf-8
|
|
|
|
| 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.
|
|
|
|
| 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 |
+
# Based on: https://huggingface.co/datasets/cppe-5/blob/main/cppe-5.py.
|
| 15 |
"""ODOR dataset."""
|
| 16 |
|
| 17 |
|
|
|
|
| 46 |
class ODOR(datasets.GeneratorBasedBuilder):
|
| 47 |
"""ODOR dataset."""
|
| 48 |
|
| 49 |
+
VERSION = datasets.Version("3.0.0")
|
| 50 |
|
| 51 |
def _info(self):
|
| 52 |
features = datasets.Features(
|