Zeb commited on
Commit
4ba08cc
1 Parent(s): 325b2bc

Update loading

Browse files
Files changed (1) hide show
  1. BabyLM.py +2 -2
BabyLM.py CHANGED
@@ -35,7 +35,7 @@ class BabyLM(datasets.GeneratorBasedBuilder):
35
  name="strict",
36
  description="Full version of the dataset with 100M words",
37
  version="1.0.0",
38
- )
39
  datasets.BuilderConfig(
40
  name="strict_small_gold",
41
  description="Small version of the dataset with 10M words and gold POS tags",
@@ -122,7 +122,7 @@ class BabyLM(datasets.GeneratorBasedBuilder):
122
 
123
  for filepath in filepaths:
124
  with open(filepath, encoding="utf-8") as f:
125
- filename = filepath.split("/")[-1]
126
  is_tags = False
127
  text = ""
128
  # Every other row contains POS tags
 
35
  name="strict",
36
  description="Full version of the dataset with 100M words",
37
  version="1.0.0",
38
+ ),
39
  datasets.BuilderConfig(
40
  name="strict_small_gold",
41
  description="Small version of the dataset with 10M words and gold POS tags",
 
122
 
123
  for filepath in filepaths:
124
  with open(filepath, encoding="utf-8") as f:
125
+ filename = str(filepath.split("/")[-1])
126
  is_tags = False
127
  text = ""
128
  # Every other row contains POS tags