Datasets:
Upload Biosses-BLUE.py
Browse files- Biosses-BLUE.py +3 -3
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"),
|
@@ -122,7 +122,7 @@ class Biosses(datasets.GeneratorBasedBuilder):
|
|
122 |
|
123 |
yield int(r['index']), {
|
124 |
"id": int(r['index']),
|
125 |
-
"sentence1": r['sentence1'],
|
126 |
-
"sentence2": r['sentence2'],
|
127 |
"score": float(r['score']),
|
128 |
}
|
|
|
76 |
description=_DESCRIPTION,
|
77 |
features=datasets.Features(
|
78 |
{
|
79 |
+
"id": datasets.Value("int"),
|
80 |
"sentence1": datasets.Value("string"),
|
81 |
"sentence2": datasets.Value("string"),
|
82 |
"score": datasets.Value("float"),
|
|
|
122 |
|
123 |
yield int(r['index']), {
|
124 |
"id": int(r['index']),
|
125 |
+
"sentence1": str(r['sentence1']),
|
126 |
+
"sentence2": str(r['sentence2']),
|
127 |
"score": float(r['score']),
|
128 |
}
|