maximedb commited on
Commit
9289956
1 Parent(s): d451424

add margin score

Browse files
Files changed (1) hide show
  1. mfaq_light.py +4 -2
mfaq_light.py CHANGED
@@ -67,7 +67,8 @@ class MFAQLight(datasets.GeneratorBasedBuilder):
67
  "domain_index": datasets.Value("int32"),
68
  "id": datasets.Value("string"),
69
  "negative": datasets.Value("string"),
70
- "candidates": [datasets.Value("string")]
 
71
  }
72
  return datasets.DatasetInfo(
73
  description=_DESCRIPTION,
@@ -109,5 +110,6 @@ class MFAQLight(datasets.GeneratorBasedBuilder):
109
  "domain_index": question["domain_index"],
110
  "id": question["id"],
111
  "negative": question.get("negative", ""),
112
- "candidates": question.get("candidates", [])
 
113
  }
 
67
  "domain_index": datasets.Value("int32"),
68
  "id": datasets.Value("string"),
69
  "negative": datasets.Value("string"),
70
+ "candidates": [datasets.Value("string")],
71
+ "margin_score": datasets.Value("float32")
72
  }
73
  return datasets.DatasetInfo(
74
  description=_DESCRIPTION,
 
110
  "domain_index": question["domain_index"],
111
  "id": question["id"],
112
  "negative": question.get("negative", ""),
113
+ "candidates": question.get("candidates", []),
114
+ "margin_score": question.get("margin_score", 0)
115
  }