"vscode:/vscode.git/clone" did not exist on "612f438a270cae306e7af6054bc3d168c51eb5f3"
Commit 06d3406e authored by lintangsutawika's avatar lintangsutawika
Browse files

update

parent f23ae748
dataset_name: professional_accounting dataset_name: professional_accounting
description: 'The following are multiple choice questions (with answers) about professional description: 'The following are multiple choice questions (with answers) about professional accounting.
accounting.
' '
......
dataset_name: professional_law dataset_name: professional_law
description: 'The following are multiple choice questions (with answers) about professional description: 'The following are multiple choice questions (with answers) about professional law.
law.
' '
......
dataset_name: professional_medicine dataset_name: professional_medicine
description: 'The following are multiple choice questions (with answers) about professional description: 'The following are multiple choice questions (with answers) about professional medicine.
medicine.
' '
......
dataset_name: professional_psychology dataset_name: professional_psychology
description: 'The following are multiple choice questions (with answers) about professional description: 'The following are multiple choice questions (with answers) about professional psychology.
psychology.
' '
......
dataset_name: public_relations dataset_name: public_relations
description: 'The following are multiple choice questions (with answers) about public description: 'The following are multiple choice questions (with answers) about public relations.
relations.
' '
......
dataset_name: security_studies dataset_name: security_studies
description: 'The following are multiple choice questions (with answers) about security description: 'The following are multiple choice questions (with answers) about security studies.
studies.
' '
......
dataset_name: us_foreign_policy dataset_name: us_foreign_policy
description: 'The following are multiple choice questions (with answers) about us description: 'The following are multiple choice questions (with answers) about us foreign policy.
foreign policy.
' '
......
dataset_name: world_religions dataset_name: world_religions
description: 'The following are multiple choice questions (with answers) about world description: 'The following are multiple choice questions (with answers) about world religions.
religions.
' '
......
...@@ -4,7 +4,9 @@ import sklearn.metrics ...@@ -4,7 +4,9 @@ import sklearn.metrics
def mean_3class_f1(predictions, references): # This is a passthrough function def mean_3class_f1(predictions, references): # This is a passthrough function
string_label = ["entailment", "contradiction", "neutral"] 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]) references = string_label.index(references[0])
return (predictions, references) 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