Zeb commited on
Commit
23882cc
1 Parent(s): 154c3c1

Fix filepath

Browse files
Files changed (1) hide show
  1. BabyLM.py +1 -1
BabyLM.py CHANGED
@@ -128,7 +128,7 @@ class BabyLM(datasets.GeneratorBasedBuilder):
128
  # Every other row contains POS tags
129
  for row in f:
130
  if is_tags:
131
- yield global_idx, {"text": text, "tagged_text": row, "filename": filename}
132
  global_idx += 1
133
  is_tags = False
134
  else:
 
128
  # Every other row contains POS tags
129
  for row in f:
130
  if is_tags:
131
+ yield global_idx, {"text": text, "tagged_text": row, "filename": filepath}
132
  global_idx += 1
133
  is_tags = False
134
  else: