Datasets:
Upload Biosses-BLUE.py
Browse files- Biosses-BLUE.py +2 -2
Biosses-BLUE.py
CHANGED
@@ -76,7 +76,7 @@ class Biosses(datasets.GeneratorBasedBuilder):
|
|
76 |
description=_DESCRIPTION,
|
77 |
features=datasets.Features(
|
78 |
{
|
79 |
-
"id": datasets.Value("
|
80 |
"sentence1": datasets.Value("string"),
|
81 |
"sentence2": datasets.Value("string"),
|
82 |
"score": datasets.Value("float"),
|
@@ -121,7 +121,7 @@ class Biosses(datasets.GeneratorBasedBuilder):
|
|
121 |
for index, r in df.iterrows():
|
122 |
|
123 |
yield int(r['index']), {
|
124 |
-
"id":
|
125 |
"sentence1": str(r['sentence1']),
|
126 |
"sentence2": str(r['sentence2']),
|
127 |
"score": float(r['score']),
|
|
|
76 |
description=_DESCRIPTION,
|
77 |
features=datasets.Features(
|
78 |
{
|
79 |
+
"id": datasets.Value("string"),
|
80 |
"sentence1": datasets.Value("string"),
|
81 |
"sentence2": datasets.Value("string"),
|
82 |
"score": datasets.Value("float"),
|
|
|
121 |
for index, r in df.iterrows():
|
122 |
|
123 |
yield int(r['index']), {
|
124 |
+
"id": str(r['index']),
|
125 |
"sentence1": str(r['sentence1']),
|
126 |
"sentence2": str(r['sentence2']),
|
127 |
"score": float(r['score']),
|