suchirsalhan commited on
Commit
be8aaa8
1 Parent(s): 7251974

Update BabyLM.py

Browse files
Files changed (1) hide show
  1. BabyLM.py +17 -3
BabyLM.py CHANGED
@@ -36,6 +36,20 @@ filenames = [
36
  "wikipedia.txt"
37
  ]
38
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  #Suchir Salhan– addition of French, German, Japanese and Chinese dataset BUILDER_CONFIGS
40
 
41
  class BabyLM(datasets.GeneratorBasedBuilder):
@@ -196,9 +210,9 @@ class BabyLM(datasets.GeneratorBasedBuilder):
196
  urls_to_download["dev"].append(f"{folder}/dev/aojapanese_dev.txt")
197
  urls_to_download["test"].append(f"{folder}/test/aojapanese_test.txt")
198
  else:
199
- urls_to_download["train"] = [f"{folder}/10M/{fn}" for fn in filenames]
200
- urls_to_download["dev"] = [f"{folder}/dev/{fn}" for fn in filenames]
201
- urls_to_download["test"] = [f"{folder}/test/{fn}" for fn in filenames]
202
 
203
 
204
  downloaded_files = dl_manager.download_and_extract(urls_to_download)
 
36
  "wikipedia.txt"
37
  ]
38
 
39
+
40
+ en_filenames = [
41
+ "aochildes.txt",
42
+ "bnc_spoken.txt",
43
+ "cbt.txt",
44
+ "children_stories.txt",
45
+ "gutenberg.txt",
46
+ "open_subtitles.txt",
47
+ "qed.txt",
48
+ "simple_wikipedia.txt",
49
+ "switchboard.txt",
50
+ "wikipedia.txt"
51
+ ]
52
+
53
  #Suchir Salhan– addition of French, German, Japanese and Chinese dataset BUILDER_CONFIGS
54
 
55
  class BabyLM(datasets.GeneratorBasedBuilder):
 
210
  urls_to_download["dev"].append(f"{folder}/dev/aojapanese_dev.txt")
211
  urls_to_download["test"].append(f"{folder}/test/aojapanese_test.txt")
212
  else:
213
+ urls_to_download["train"] = [f"{folder}/10M/{fn}" for fn in en_filenames]
214
+ urls_to_download["dev"] = [f"{folder}/dev/{fn}" for fn in en_filenames]
215
+ urls_to_download["test"] = [f"{folder}/test/{fn}" for fn in en_filenames]
216
 
217
 
218
  downloaded_files = dl_manager.download_and_extract(urls_to_download)