Francisco Castillo commited on
Commit
1f3a899
1 Parent(s): c63bdee
Files changed (1) hide show
  1. 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
- "label": "caca"
 
 
 
 
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
  }