Datasets:
Tasks:
Text Classification
Formats:
csv
Sub-tasks:
sentiment-classification
Languages:
English
Size:
10K - 100K
License:
Francisco Castillo
commited on
Commit
•
2eac095
1
Parent(s):
ccb362c
wip
Browse files- reviews_with_drift.py +2 -2
reviews_with_drift.py
CHANGED
@@ -90,7 +90,7 @@ class NewDataset(datasets.GeneratorBasedBuilder):
|
|
90 |
features = datasets.Features(
|
91 |
# These are the features of your dataset like images, labels ...
|
92 |
{
|
93 |
-
"prediction_ts": datasets.Value("
|
94 |
"age":datasets.Value("int16"),
|
95 |
"gender":datasets.Value("string"),
|
96 |
"context":datasets.Value("string"),
|
@@ -194,7 +194,7 @@ class NewDataset(datasets.GeneratorBasedBuilder):
|
|
194 |
for id_, row in enumerate(csv_reader):
|
195 |
prediction_ts,age,gender,context,text,label = row
|
196 |
yield id_, {
|
197 |
-
"prediction_ts":
|
198 |
"age":age,
|
199 |
"gender":gender,
|
200 |
"context":context,
|
|
|
90 |
features = datasets.Features(
|
91 |
# These are the features of your dataset like images, labels ...
|
92 |
{
|
93 |
+
"prediction_ts": datasets.Value("string"),
|
94 |
"age":datasets.Value("int16"),
|
95 |
"gender":datasets.Value("string"),
|
96 |
"context":datasets.Value("string"),
|
|
|
194 |
for id_, row in enumerate(csv_reader):
|
195 |
prediction_ts,age,gender,context,text,label = row
|
196 |
yield id_, {
|
197 |
+
"prediction_ts":prediction_ts,
|
198 |
"age":age,
|
199 |
"gender":gender,
|
200 |
"context":context,
|