Kevin Zhao
commited on
Commit
·
50abd2b
1
Parent(s):
8304308
Change dataset name to psycholinguistic_eval
Browse files
Ettinger.py → psycholinguistic_eval.py
RENAMED
|
@@ -19,7 +19,6 @@ import datasets
|
|
| 19 |
import pandas as pd
|
| 20 |
|
| 21 |
|
| 22 |
-
# TODO: Add BibTeX citation
|
| 23 |
# Find for instance the citation on arxiv or on the dataset repo/website
|
| 24 |
_CITATION = """\
|
| 25 |
@article{ettinger2020bert,
|
|
@@ -33,16 +32,14 @@ _CITATION = """\
|
|
| 33 |
}
|
| 34 |
"""
|
| 35 |
|
| 36 |
-
# TODO: Add description of the dataset here
|
| 37 |
# You can copy an official description
|
| 38 |
_DESCRIPTION = """\
|
| 39 |
-
|
|
|
|
| 40 |
"""
|
| 41 |
|
| 42 |
-
|
| 43 |
-
_HOMEPAGE = ""
|
| 44 |
|
| 45 |
-
# TODO: Add the licence for the dataset here if you can find it
|
| 46 |
_LICENSE = """MIT License
|
| 47 |
|
| 48 |
Copyright (c) 2020 Allyson Ettinger
|
|
@@ -66,10 +63,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
| 66 |
SOFTWARE.
|
| 67 |
"""
|
| 68 |
|
| 69 |
-
# TODO: Add link to the official dataset URLs here
|
| 70 |
# The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
|
| 71 |
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
| 72 |
-
_URL = "https://huggingface.co/datasets/KevinZ/
|
| 73 |
_URLS = {
|
| 74 |
"CPRAG": _URL + "CPRAG/test.csv",
|
| 75 |
"ROLE": _URL + "ROLE/test.csv",
|
|
@@ -78,7 +74,7 @@ _URLS = {
|
|
| 78 |
}
|
| 79 |
|
| 80 |
# TODO: Name of the dataset usually match the script name with CamelCase instead of snake_case
|
| 81 |
-
class
|
| 82 |
"""TODO: Short description of my dataset."""
|
| 83 |
|
| 84 |
VERSION = datasets.Version("1.0.0")
|
|
@@ -95,8 +91,8 @@ class NewDataset(datasets.GeneratorBasedBuilder):
|
|
| 95 |
# data = datasets.load_dataset('my_dataset', 'first_domain')
|
| 96 |
# data = datasets.load_dataset('my_dataset', 'second_domain')
|
| 97 |
BUILDER_CONFIGS = [
|
| 98 |
-
datasets.BuilderConfig(name="CPRAG", version=VERSION, description="
|
| 99 |
-
datasets.BuilderConfig(name="ROLE", version=VERSION, description="
|
| 100 |
datasets.BuilderConfig(name="NEG-NAT", version=VERSION, description="[NEG-NAT description]"),
|
| 101 |
datasets.BuilderConfig(name="NEG-SIMP", version=VERSION, description="[NEG-SIMP description]"),
|
| 102 |
]
|
|
@@ -213,4 +209,3 @@ class NewDataset(datasets.GeneratorBasedBuilder):
|
|
| 213 |
}
|
| 214 |
else:
|
| 215 |
raise NotImplementedError
|
| 216 |
-
|
|
|
|
| 19 |
import pandas as pd
|
| 20 |
|
| 21 |
|
|
|
|
| 22 |
# Find for instance the citation on arxiv or on the dataset repo/website
|
| 23 |
_CITATION = """\
|
| 24 |
@article{ettinger2020bert,
|
|
|
|
| 32 |
}
|
| 33 |
"""
|
| 34 |
|
|
|
|
| 35 |
# You can copy an official description
|
| 36 |
_DESCRIPTION = """\
|
| 37 |
+
Psycholinguistic dataset from 'What BERT is not: Lessons from a new suite of psycholinguistic diagnostics for language models'
|
| 38 |
+
by Allyson Ettinger
|
| 39 |
"""
|
| 40 |
|
| 41 |
+
_HOMEPAGE = "https://github.com/aetting/lm-diagnostics"
|
|
|
|
| 42 |
|
|
|
|
| 43 |
_LICENSE = """MIT License
|
| 44 |
|
| 45 |
Copyright (c) 2020 Allyson Ettinger
|
|
|
|
| 63 |
SOFTWARE.
|
| 64 |
"""
|
| 65 |
|
|
|
|
| 66 |
# The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
|
| 67 |
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
| 68 |
+
_URL = "https://huggingface.co/datasets/KevinZ/psycholinguistic_eval/resolve/main/"
|
| 69 |
_URLS = {
|
| 70 |
"CPRAG": _URL + "CPRAG/test.csv",
|
| 71 |
"ROLE": _URL + "ROLE/test.csv",
|
|
|
|
| 74 |
}
|
| 75 |
|
| 76 |
# TODO: Name of the dataset usually match the script name with CamelCase instead of snake_case
|
| 77 |
+
class PsycholinguisticEvalDataset(datasets.GeneratorBasedBuilder):
|
| 78 |
"""TODO: Short description of my dataset."""
|
| 79 |
|
| 80 |
VERSION = datasets.Version("1.0.0")
|
|
|
|
| 91 |
# data = datasets.load_dataset('my_dataset', 'first_domain')
|
| 92 |
# data = datasets.load_dataset('my_dataset', 'second_domain')
|
| 93 |
BUILDER_CONFIGS = [
|
| 94 |
+
datasets.BuilderConfig(name="CPRAG", version=VERSION, description="34 questions evaluating commonsense knowledge"),
|
| 95 |
+
datasets.BuilderConfig(name="ROLE", version=VERSION, description="88 questions evaluating event knowledge and semantic roles"),
|
| 96 |
datasets.BuilderConfig(name="NEG-NAT", version=VERSION, description="[NEG-NAT description]"),
|
| 97 |
datasets.BuilderConfig(name="NEG-SIMP", version=VERSION, description="[NEG-SIMP description]"),
|
| 98 |
]
|
|
|
|
| 209 |
}
|
| 210 |
else:
|
| 211 |
raise NotImplementedError
|
|
|