Datasets:
Tasks:
Text Classification
Formats:
csv
Sub-tasks:
sentiment-classification
Languages:
English
Size:
10K - 100K
License:
Francisco Castillo
commited on
Commit
•
1f3a899
1
Parent(s):
c63bdee
wip
Browse files- reviews_with_drift.py +5 -2
reviews_with_drift.py
CHANGED
@@ -191,7 +191,10 @@ class NewDataset(datasets.GeneratorBasedBuilder):
|
|
191 |
# The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
|
192 |
with open(filepath, encoding="utf-8") as f:
|
193 |
yield 33, {
|
194 |
-
"text": f.read(),
|
195 |
"prediction_ts":99,
|
196 |
-
"
|
|
|
|
|
|
|
|
|
197 |
}
|
|
|
191 |
# The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
|
192 |
with open(filepath, encoding="utf-8") as f:
|
193 |
yield 33, {
|
|
|
194 |
"prediction_ts":99,
|
195 |
+
"age":11,
|
196 |
+
"gender":"maleish",
|
197 |
+
"context":"movielike",
|
198 |
+
"text": f.read(),
|
199 |
+
"label":"Negative-soso"
|
200 |
}
|