@@ -71,54 +71,64 @@ class HendrycksEthics(datasets.GeneratorBasedBuilder):
...
@@ -71,54 +71,64 @@ class HendrycksEthics(datasets.GeneratorBasedBuilder):
EthicsConfig(
EthicsConfig(
name="commonsense",
name="commonsense",
prefix="cm",
prefix="cm",
features=datasets.Features({
features=datasets.Features(
{
"label":datasets.Value("int32"),
"label":datasets.Value("int32"),
"input":datasets.Value("string"),
"input":datasets.Value("string"),
"is_short":datasets.Value("bool"),
"is_short":datasets.Value("bool"),
"edited":datasets.Value("bool"),
"edited":datasets.Value("bool"),
}),
}
description="The Commonsense subset contains examples focusing on moral standards and principles that most people intuitively accept."
),
description="The Commonsense subset contains examples focusing on moral standards and principles that most people intuitively accept.",
),
),
EthicsConfig(
EthicsConfig(
name="deontology",
name="deontology",
prefix="deontology",
prefix="deontology",
features=datasets.Features({
features=datasets.Features(
{
"group_id":datasets.Value("int32"),
"group_id":datasets.Value("int32"),
"label":datasets.Value("int32"),
"label":datasets.Value("int32"),
"scenario":datasets.Value("string"),
"scenario":datasets.Value("string"),
"excuse":datasets.Value("string"),
"excuse":datasets.Value("string"),
}),
}
),
description="The Deontology subset contains examples focusing on whether an act is required, permitted, or forbidden according to a set of rules or constraints",
description="The Deontology subset contains examples focusing on whether an act is required, permitted, or forbidden according to a set of rules or constraints",
),
),
EthicsConfig(
EthicsConfig(
name="justice",
name="justice",
prefix="justice",
prefix="justice",
features=datasets.Features({
features=datasets.Features(
{
"group_id":datasets.Value("int32"),
"group_id":datasets.Value("int32"),
"label":datasets.Value("int32"),
"label":datasets.Value("int32"),
"scenario":datasets.Value("string"),
"scenario":datasets.Value("string"),
}),
}
),
description="The Justice subset contains examples focusing on how a character treats another person",
description="The Justice subset contains examples focusing on how a character treats another person",
),
),
EthicsConfig(
EthicsConfig(
name="utilitarianism",
name="utilitarianism",
prefix="util",
prefix="util",
features=datasets.Features({
features=datasets.Features(
{
"activity":datasets.Value("string"),
"activity":datasets.Value("string"),
"baseline":datasets.Value("string"),
"baseline":datasets.Value("string"),
"rating":datasets.Value("string"),# Empty rating.
"rating":datasets.Value("string"),# Empty rating.
}),
}
),
description="The Utilitarianism subset contains scenarios that should be ranked from most pleasant to least pleasant for the person in the scenario",
description="The Utilitarianism subset contains scenarios that should be ranked from most pleasant to least pleasant for the person in the scenario",
),
),
EthicsConfig(
EthicsConfig(
name="virtue",
name="virtue",
prefix="virtue",
prefix="virtue",
features=datasets.Features({
features=datasets.Features(
{
"group_id":datasets.Value("int32"),
"group_id":datasets.Value("int32"),
"label":datasets.Value("int32"),
"label":datasets.Value("int32"),
"scenario":datasets.Value("string"),
"scenario":datasets.Value("string"),
"trait":datasets.Value("string"),
"trait":datasets.Value("string"),
}),
}
),
description="The Virtue subset contains scenarios focusing on whether virtues or vices are being exemplified",
description="The Virtue subset contains scenarios focusing on whether virtues or vices are being exemplified",
),
),
]
]
...
@@ -140,7 +150,12 @@ class HendrycksEthics(datasets.GeneratorBasedBuilder):
...
@@ -140,7 +150,12 @@ class HendrycksEthics(datasets.GeneratorBasedBuilder):
name=datasets.Split.TRAIN,
name=datasets.Split.TRAIN,
# These kwargs will be passed to _generate_examples
# These kwargs will be passed to _generate_examples
datasets.BuilderConfig(name="mutual_plus",version=VERSION,description="MuTualPlus is a more difficult MuTual that replaces positive responses with a safe responses."),