wietsedv commited on
Commit
63944e3
·
1 Parent(s): c0670e0

Update stsbenchmark.py

Browse files
Files changed (1) hide show
  1. stsbenchmark.py +2 -2
stsbenchmark.py CHANGED
@@ -42,8 +42,7 @@ class STSBenchmark(datasets.GeneratorBasedBuilder):
42
  return datasets.DatasetInfo(
43
  description=_DESCRIPTION,
44
  features=datasets.Features({
45
- # "id": datasets.Value("string"),
46
- # "file": datasets.Value("string"),
47
  "sentence1": datasets.Value("string"),
48
  "sentence2": datasets.Value("string"),
49
  "score": datasets.Value("float")
@@ -81,6 +80,7 @@ class STSBenchmark(datasets.GeneratorBasedBuilder):
81
  genre = genre.split("-")[-1]
82
  if self.config.name == "all" or genre == self.config.name:
83
  yield i, {
 
84
  "sentence1": sent1,
85
  "sentence2": sent2,
86
  "score": float(score),
 
42
  return datasets.DatasetInfo(
43
  description=_DESCRIPTION,
44
  features=datasets.Features({
45
+ "id": datasets.Value("int"),
 
46
  "sentence1": datasets.Value("string"),
47
  "sentence2": datasets.Value("string"),
48
  "score": datasets.Value("float")
 
80
  genre = genre.split("-")[-1]
81
  if self.config.name == "all" or genre == self.config.name:
82
  yield i, {
83
+ "id": i,
84
  "sentence1": sent1,
85
  "sentence2": sent2,
86
  "score": float(score),