96abhishekarora
commited on
Commit
•
2fffd34
1
Parent(s):
f35912b
modified loader
Browse files- AmericanStories.py +2 -1
AmericanStories.py
CHANGED
@@ -36,6 +36,8 @@ def make_year_file_splits(data_dir):
|
|
36 |
data_files=os.listdir(data_dir)
|
37 |
###Get only files containing faro_
|
38 |
data_files=[file for file in data_files if file.startswith('faro_')]
|
|
|
|
|
39 |
|
40 |
###Arrange into splits by year - files follow the format faro_YYYY.tar.gz
|
41 |
splits={}
|
@@ -80,7 +82,6 @@ class AmericanStories(datasets.GeneratorBasedBuilder):
|
|
80 |
# You will be able to load one or the other configurations in the following list with
|
81 |
# data = datasets.load_dataset('my_dataset', 'first_domain')
|
82 |
# data = datasets.load_dataset('my_dataset', 'second_domain')
|
83 |
-
BUILDER_CONFIGS = [datasets.BuilderConfig(name="american_stories", version="0.0.1", description="This part of my dataset covers a first domain")]
|
84 |
|
85 |
|
86 |
def _info(self):
|
|
|
36 |
data_files=os.listdir(data_dir)
|
37 |
###Get only files containing faro_
|
38 |
data_files=[file for file in data_files if file.startswith('faro_')]
|
39 |
+
###Test case : starts with 17
|
40 |
+
data_files=[file for file in data_files if file.startswith('faro_17')]
|
41 |
|
42 |
###Arrange into splits by year - files follow the format faro_YYYY.tar.gz
|
43 |
splits={}
|
|
|
82 |
# You will be able to load one or the other configurations in the following list with
|
83 |
# data = datasets.load_dataset('my_dataset', 'first_domain')
|
84 |
# data = datasets.load_dataset('my_dataset', 'second_domain')
|
|
|
85 |
|
86 |
|
87 |
def _info(self):
|