Datasets:
Tasks:
Text Classification
Formats:
csv
Sub-tasks:
sentiment-classification
Languages:
English
Size:
10K - 100K
License:
Francisco Castillo
commited on
Commit
•
d4ededc
1
Parent(s):
61c6c9e
wip
Browse files- reviews_with_drift.py +4 -1
reviews_with_drift.py
CHANGED
@@ -157,6 +157,9 @@ class ReviewsWithDrift(datasets.GeneratorBasedBuilder):
|
|
157 |
for id_, row in enumerate(csv_reader):
|
158 |
prediction_ts,age,gender,context,text,label = row
|
159 |
print(prediction_ts)
|
|
|
|
|
|
|
160 |
print(age)
|
161 |
print(type(label))
|
162 |
print(label)
|
@@ -166,5 +169,5 @@ class ReviewsWithDrift(datasets.GeneratorBasedBuilder):
|
|
166 |
"gender":gender,
|
167 |
"context":context,
|
168 |
"text": text,
|
169 |
-
"label":
|
170 |
}
|
|
|
157 |
for id_, row in enumerate(csv_reader):
|
158 |
prediction_ts,age,gender,context,text,label = row
|
159 |
print(prediction_ts)
|
160 |
+
print(type(prediction_ts))
|
161 |
+
print(float(prediction_ts))
|
162 |
+
print(type(float(prediction_ts)))
|
163 |
print(age)
|
164 |
print(type(label))
|
165 |
print(label)
|
|
|
169 |
"gender":gender,
|
170 |
"context":context,
|
171 |
"text": text,
|
172 |
+
"label":"Negative",
|
173 |
}
|