Commit 06d3406e authored by lintangsutawika's avatar lintangsutawika
Browse files

update

parent f23ae748
dataset_name: professional_accounting
description: 'The following are multiple choice questions (with answers) about professional
accounting.
description: 'The following are multiple choice questions (with answers) about professional accounting.
'
......
dataset_name: professional_law
description: 'The following are multiple choice questions (with answers) about professional
law.
description: 'The following are multiple choice questions (with answers) about professional law.
'
......
dataset_name: professional_medicine
description: 'The following are multiple choice questions (with answers) about professional
medicine.
description: 'The following are multiple choice questions (with answers) about professional medicine.
'
......
dataset_name: professional_psychology
description: 'The following are multiple choice questions (with answers) about professional
psychology.
description: 'The following are multiple choice questions (with answers) about professional psychology.
'
......
dataset_name: public_relations
description: 'The following are multiple choice questions (with answers) about public
relations.
description: 'The following are multiple choice questions (with answers) about public relations.
'
......
dataset_name: security_studies
description: 'The following are multiple choice questions (with answers) about security
studies.
description: 'The following are multiple choice questions (with answers) about security studies.
'
......
dataset_name: us_foreign_policy
description: 'The following are multiple choice questions (with answers) about us
foreign policy.
description: 'The following are multiple choice questions (with answers) about us foreign policy.
'
......
dataset_name: world_religions
description: 'The following are multiple choice questions (with answers) about world
religions.
description: 'The following are multiple choice questions (with answers) about world religions.
'
......
......@@ -4,7 +4,9 @@ import sklearn.metrics
def mean_3class_f1(predictions, references): # This is a passthrough function
string_label = ["entailment", "contradiction", "neutral"]
predictions = string_label.index(predictions[0]) if predictions[0] in string_label else 0
predictions = (
string_label.index(predictions[0]) if predictions[0] in string_label else 0
)
references = string_label.index(references[0])
return (predictions, references)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment